]>
Commit | Line | Data |
---|---|---|
090089c4 | 1 | #! /bin/sh |
f4114eb4 | 2 | # From configure.in Revision: 1.438 . |
090089c4 | 3 | # Guess values for system-dependent variables and create Makefiles. |
505c100d | 4 | # Generated by GNU Autoconf 2.59 for Squid Web Proxy 3.0.PRE4-CVS. |
6e4fdb42 | 5 | # |
6 | # Report bugs to <http://www.squid-cache.org/bugs/>. | |
090089c4 | 7 | # |
af3004ff | 8 | # Copyright (C) 2003 Free Software Foundation, Inc. |
090089c4 | 9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
33f5f8b9 | 11 | ## --------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
14 | ||
15 | # Be Bourne compatible | |
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
17 | emulate sh | |
18 | NULLCMD=: | |
ad21602a | 19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
20 | # is contrary to our usage. Disable this feature. | |
21 | alias -g '${1+"$@"}'='"$@"' | |
33f5f8b9 | 22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
23 | set -o posix | |
24 | fi | |
af3004ff | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
33f5f8b9 | 26 | |
33f5f8b9 | 27 | # Support unset when possible. |
af3004ff | 28 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
33f5f8b9 | 29 | as_unset=unset |
30 | else | |
31 | as_unset=false | |
32 | fi | |
33 | ||
ad21602a | 34 | |
35 | # Work around bugs in pre-3.0 UWIN ksh. | |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
40 | ||
41 | # NLS nuisances. | |
42 | for as_var in \ | |
43 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
44 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
45 | LC_TELEPHONE LC_TIME | |
46 | do | |
af3004ff | 47 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
ad21602a | 48 | eval $as_var=C; export $as_var |
49 | else | |
50 | $as_unset $as_var | |
51 | fi | |
52 | done | |
53 | ||
54 | # Required to use basename. | |
55 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
56 | as_expr=expr | |
57 | else | |
58 | as_expr=false | |
59 | fi | |
60 | ||
61 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
62 | as_basename=basename | |
63 | else | |
64 | as_basename=false | |
65 | fi | |
33f5f8b9 | 66 | |
67 | ||
68 | # Name of the executable. | |
ad21602a | 69 | as_me=`$as_basename "$0" || |
33f5f8b9 | 70 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
71 | X"$0" : 'X\(//\)$' \| \ | |
72 | X"$0" : 'X\(/\)$' \| \ | |
73 | . : '\(.\)' 2>/dev/null || | |
74 | echo X/"$0" | | |
75 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
76 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
77 | /^X\/\(\/\).*/{ s//\1/; q; } | |
78 | s/.*/./; q'` | |
79 | ||
ad21602a | 80 | |
33f5f8b9 | 81 | # PATH needs CR, and LINENO needs CR and PATH. |
82 | # Avoid depending upon Character Ranges. | |
83 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
84 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
85 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
86 | as_cr_digits='0123456789' | |
87 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
88 | ||
89 | # The user is always right. | |
90 | if test "${PATH_SEPARATOR+set}" != set; then | |
ad21602a | 91 | echo "#! /bin/sh" >conf$$.sh |
92 | echo "exit 0" >>conf$$.sh | |
93 | chmod +x conf$$.sh | |
94 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
33f5f8b9 | 95 | PATH_SEPARATOR=';' |
96 | else | |
97 | PATH_SEPARATOR=: | |
98 | fi | |
ad21602a | 99 | rm -f conf$$.sh |
33f5f8b9 | 100 | fi |
101 | ||
102 | ||
103 | as_lineno_1=$LINENO | |
104 | as_lineno_2=$LINENO | |
105 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
106 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
107 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
108 | # Find who we are. Look in the path if we contain no path at all | |
109 | # relative or not. | |
110 | case $0 in | |
111 | *[\\/]* ) as_myself=$0 ;; | |
112 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
113 | for as_dir in $PATH | |
114 | do | |
115 | IFS=$as_save_IFS | |
116 | test -z "$as_dir" && as_dir=. | |
117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
118 | done | |
119 | ||
120 | ;; | |
121 | esac | |
122 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
123 | # in which case we are not to be found in the path. | |
124 | if test "x$as_myself" = x; then | |
125 | as_myself=$0 | |
126 | fi | |
127 | if test ! -f "$as_myself"; then | |
128 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
129 | { (exit 1); exit 1; }; } | |
130 | fi | |
131 | case $CONFIG_SHELL in | |
132 | '') | |
133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
135 | do | |
136 | IFS=$as_save_IFS | |
137 | test -z "$as_dir" && as_dir=. | |
138 | for as_base in sh bash ksh sh5; do | |
139 | case $as_dir in | |
140 | /*) | |
141 | if ("$as_dir/$as_base" -c ' | |
142 | as_lineno_1=$LINENO | |
143 | as_lineno_2=$LINENO | |
144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
145 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
146 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
ad21602a | 147 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
148 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
33f5f8b9 | 149 | CONFIG_SHELL=$as_dir/$as_base |
150 | export CONFIG_SHELL | |
151 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
152 | fi;; | |
153 | esac | |
154 | done | |
155 | done | |
156 | ;; | |
157 | esac | |
158 | ||
159 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
160 | # uniformly replaced by the line number. The first 'sed' inserts a | |
161 | # line-number line before each line; the second 'sed' does the real | |
162 | # work. The second script uses 'N' to pair each line-number line | |
163 | # with the numbered line, and appends trailing '-' during | |
164 | # substitution so that $LINENO is not a special case at line end. | |
165 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
166 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
167 | sed '=' <$as_myself | | |
168 | sed ' | |
169 | N | |
170 | s,$,-, | |
171 | : loop | |
172 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
173 | t loop | |
174 | s,-$,, | |
175 | s,^['$as_cr_digits']*\n,, | |
176 | ' >$as_me.lineno && | |
177 | chmod +x $as_me.lineno || | |
178 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
179 | { (exit 1); exit 1; }; } | |
180 | ||
181 | # Don't try to exec as it changes $[0], causing all sort of problems | |
182 | # (the dirname of $[0] is not the place where we might find the | |
183 | # original and so on. Autoconf is especially sensible to this). | |
184 | . ./$as_me.lineno | |
185 | # Exit status is that of the last command. | |
186 | exit | |
187 | } | |
188 | ||
189 | ||
190 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
191 | *c*,-n*) ECHO_N= ECHO_C=' | |
192 | ' ECHO_T=' ' ;; | |
193 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
194 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
195 | esac | |
196 | ||
197 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
202 | ||
203 | rm -f conf$$ conf$$.exe conf$$.file | |
204 | echo >conf$$.file | |
205 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
206 | # We could just check for DJGPP; but this test a) works b) is more generic | |
207 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
208 | if test -f conf$$.exe; then | |
209 | # Don't use ln at all; we don't have any links | |
210 | as_ln_s='cp -p' | |
211 | else | |
212 | as_ln_s='ln -s' | |
213 | fi | |
214 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
215 | as_ln_s=ln | |
216 | else | |
217 | as_ln_s='cp -p' | |
218 | fi | |
219 | rm -f conf$$ conf$$.exe conf$$.file | |
220 | ||
ad21602a | 221 | if mkdir -p . 2>/dev/null; then |
222 | as_mkdir_p=: | |
223 | else | |
af3004ff | 224 | test -d ./-p && rmdir ./-p |
ad21602a | 225 | as_mkdir_p=false |
226 | fi | |
227 | ||
33f5f8b9 | 228 | as_executable_p="test -f" |
229 | ||
230 | # Sed expression to map a string onto a valid CPP name. | |
af3004ff | 231 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
33f5f8b9 | 232 | |
233 | # Sed expression to map a string onto a valid variable name. | |
af3004ff | 234 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
33f5f8b9 | 235 | |
236 | ||
237 | # IFS | |
238 | # We need space, tab and new line, in precisely that order. | |
239 | as_nl=' | |
240 | ' | |
241 | IFS=" $as_nl" | |
242 | ||
243 | # CDPATH. | |
ad21602a | 244 | $as_unset CDPATH |
33f5f8b9 | 245 | |
246 | ||
a33e1d91 | 247 | |
248 | # Check that we are running under the correct shell. | |
249 | SHELL=${CONFIG_SHELL-/bin/sh} | |
250 | ||
251 | case X$ECHO in | |
252 | X*--fallback-echo) | |
253 | # Remove one level of quotation (which was required for Make). | |
254 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
255 | ;; | |
256 | esac | |
257 | ||
258 | echo=${ECHO-echo} | |
259 | if test "X$1" = X--no-reexec; then | |
260 | # Discard the --no-reexec flag, and continue. | |
261 | shift | |
262 | elif test "X$1" = X--fallback-echo; then | |
263 | # Avoid inline document here, it may be left over | |
264 | : | |
265 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | |
266 | # Yippee, $echo works! | |
267 | : | |
268 | else | |
269 | # Restart under the correct shell. | |
270 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
271 | fi | |
272 | ||
273 | if test "X$1" = X--fallback-echo; then | |
274 | # used as fallback echo | |
275 | shift | |
276 | cat <<EOF | |
277 | $* | |
278 | EOF | |
279 | exit 0 | |
280 | fi | |
281 | ||
282 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
283 | # if CDPATH is set. | |
631008fb | 284 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
a33e1d91 | 285 | |
286 | if test -z "$ECHO"; then | |
287 | if test "X${echo_test_string+set}" != Xset; then | |
288 | # find a string as large as possible, as long as the shell can cope with it | |
289 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
290 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
693f5c2e | 291 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
292 | echo_test_string=`eval $cmd` && | |
a33e1d91 | 293 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
294 | then | |
295 | break | |
296 | fi | |
297 | done | |
298 | fi | |
299 | ||
300 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
301 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
302 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
303 | : | |
304 | else | |
305 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
306 | # backslashes. This makes it impossible to quote backslashes using | |
307 | # echo "$something" | sed 's/\\/\\\\/g' | |
308 | # | |
309 | # So, first we look for a working echo in the user's PATH. | |
310 | ||
311 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
312 | for dir in $PATH /usr/ucb; do | |
313 | IFS="$lt_save_ifs" | |
314 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
315 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
316 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
317 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
318 | echo="$dir/echo" | |
319 | break | |
320 | fi | |
321 | done | |
322 | IFS="$lt_save_ifs" | |
323 | ||
324 | if test "X$echo" = Xecho; then | |
325 | # We didn't find a better echo, so look for alternatives. | |
326 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | |
327 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | |
328 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
329 | # This shell has a builtin print -r that does the trick. | |
330 | echo='print -r' | |
331 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | |
332 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
333 | # If we have ksh, try running configure again with it. | |
334 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
335 | export ORIGINAL_CONFIG_SHELL | |
336 | CONFIG_SHELL=/bin/ksh | |
337 | export CONFIG_SHELL | |
338 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
339 | else | |
340 | # Try using printf. | |
341 | echo='printf %s\n' | |
342 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
343 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
344 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
345 | # Cool, printf works | |
346 | : | |
347 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
348 | test "X$echo_testing_string" = 'X\t' && | |
349 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
350 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
351 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
352 | export CONFIG_SHELL | |
353 | SHELL="$CONFIG_SHELL" | |
354 | export SHELL | |
355 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
356 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
357 | test "X$echo_testing_string" = 'X\t' && | |
358 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
359 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
360 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
361 | else | |
362 | # maybe with a smaller string... | |
363 | prev=: | |
364 | ||
365 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
366 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | |
367 | then | |
368 | break | |
369 | fi | |
370 | prev="$cmd" | |
371 | done | |
372 | ||
373 | if test "$prev" != 'sed 50q "$0"'; then | |
374 | echo_test_string=`eval $prev` | |
375 | export echo_test_string | |
376 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
377 | else | |
378 | # Oops. We lost completely, so just stick with echo. | |
379 | echo=echo | |
380 | fi | |
381 | fi | |
382 | fi | |
383 | fi | |
384 | fi | |
385 | fi | |
386 | ||
387 | # Copy echo and quote the copy suitably for passing to libtool from | |
388 | # the Makefile, instead of quoting the original, which is used later. | |
389 | ECHO=$echo | |
390 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
391 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
392 | fi | |
393 | ||
394 | ||
395 | ||
396 | ||
397 | tagnames=${tagnames+${tagnames},}CXX | |
398 | ||
399 | tagnames=${tagnames+${tagnames},}F77 | |
400 | ||
33f5f8b9 | 401 | # Name of the host. |
402 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
403 | # so uname gets run too. | |
404 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
405 | ||
406 | exec 6>&1 | |
407 | ||
408 | # | |
409 | # Initializations. | |
410 | # | |
090089c4 | 411 | ac_default_prefix=/usr/local |
ad21602a | 412 | ac_config_libobj_dir=. |
33f5f8b9 | 413 | cross_compiling=no |
414 | subdirs= | |
415 | MFLAGS= | |
416 | MAKEFLAGS= | |
417 | SHELL=${CONFIG_SHELL-/bin/sh} | |
418 | ||
419 | # Maximum number of lines to put in a shell here document. | |
420 | # This variable seems obsolete. It should probably be removed, and | |
421 | # only ac_max_sed_lines should be used. | |
422 | : ${ac_max_here_lines=38} | |
423 | ||
424 | # Identity of this package. | |
6e4fdb42 | 425 | PACKAGE_NAME='Squid Web Proxy' |
25b6a907 | 426 | PACKAGE_TARNAME='squid' |
505c100d | 427 | PACKAGE_VERSION='3.0.PRE4-CVS' |
428 | PACKAGE_STRING='Squid Web Proxy 3.0.PRE4-CVS' | |
6e4fdb42 | 429 | PACKAGE_BUGREPORT='http://www.squid-cache.org/bugs/' |
33f5f8b9 | 430 | |
e6ccf245 | 431 | ac_unique_file="src/main.cc" |
2877b8a9 | 432 | ac_default_prefix=/usr/local/squid |
33f5f8b9 | 433 | # Factoring default headers for most tests. |
434 | ac_includes_default="\ | |
435 | #include <stdio.h> | |
436 | #if HAVE_SYS_TYPES_H | |
437 | # include <sys/types.h> | |
438 | #endif | |
439 | #if HAVE_SYS_STAT_H | |
440 | # include <sys/stat.h> | |
441 | #endif | |
442 | #if STDC_HEADERS | |
443 | # include <stdlib.h> | |
444 | # include <stddef.h> | |
445 | #else | |
446 | # if HAVE_STDLIB_H | |
447 | # include <stdlib.h> | |
448 | # endif | |
449 | #endif | |
450 | #if HAVE_STRING_H | |
451 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
452 | # include <memory.h> | |
453 | # endif | |
454 | # include <string.h> | |
455 | #endif | |
456 | #if HAVE_STRINGS_H | |
457 | # include <strings.h> | |
458 | #endif | |
459 | #if HAVE_INTTYPES_H | |
460 | # include <inttypes.h> | |
461 | #else | |
462 | # if HAVE_STDINT_H | |
463 | # include <stdint.h> | |
464 | # endif | |
465 | #endif | |
466 | #if HAVE_UNISTD_H | |
467 | # include <unistd.h> | |
468 | #endif" | |
469 | ||
12a5c9fd | 470 | ac_subdirs_all="$ac_subdirs_all lib/libTrie" |
f5691f9c | 471 | ac_subdirs_all="$ac_subdirs_all lib/cppunit-1.10.0" |
6e6cb8f0 | 472 | 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBADD_DL CGIEXT ENABLE_WIN32SPECIFIC_TRUE ENABLE_WIN32SPECIFIC_FALSE WIN32_PSAPI USE_IPC_WIN32_TRUE USE_IPC_WIN32_FALSE MINGW_LIBS CACHE_HTTP_PORT CACHE_ICP_PORT SQUID_CFLAGS SQUID_CXXFLAGS LIBDLMALLOC LIB_MALLOC STORE_OBJS STORE_LIBS STORE_LINKOBJS STORE_TESTS DISK_LIBS DISK_PROGRAMS DISK_LINKOBJS USE_AIOPS_WIN32_TRUE USE_AIOPS_WIN32_FALSE USE_AIO_WIN32_TRUE USE_AIO_WIN32_FALSE REPL_POLICIES REPL_OBJS REPL_LIBS ENABLE_PINGER_TRUE ENABLE_PINGER_FALSE USE_DELAY_POOLS_TRUE USE_DELAY_POOLS_FALSE USE_ESI_TRUE USE_ESI_FALSE USE_ICAP_CLIENT_TRUE USE_ICAP_CLIENT_FALSE ICAP_LIBS USE_SNMP_TRUE USE_SNMP_FALSE SNMPLIB makesnmplib ENABLE_ARP_ACL_TRUE ENABLE_ARP_ACL_FALSE ENABLE_HTCP_TRUE ENABLE_HTCP_FALSE ENABLE_SSL_TRUE ENABLE_SSL_FALSE NEED_OWN_MD5_TRUE NEED_OWN_MD5_FALSE SSLLIB ERR_DEFAULT_LANGUAGE ERR_LANGUAGES MAKE_LEAKFINDER_TRUE MAKE_LEAKFINDER_FALSE ENABLE_IDENT_TRUE ENABLE_IDENT_FALSE USE_DNSSERVER_TRUE USE_DNSSERVER_FALSE OPT_DEFAULT_HOSTS AUTH_MODULES AUTH_LIBS AUTH_LINKOBJS AUTH_OBJS BASIC_AUTH_HELPERS NTLM_AUTH_HELPERS NEGOTIATE_AUTH_HELPERS DIGEST_AUTH_HELPERS EXTERNAL_ACL_HELPERS LIBSASL ENABLE_UNLINKD_TRUE ENABLE_UNLINKD_FALSE ENABLE_XPROF_STATS_TRUE ENABLE_XPROF_STATS_FALSE CPPUNITCONFIG SQUID_CPPUNIT_LIBS SQUID_CPPUNIT_LA SQUID_CPPUNIT_INC SQUID_CPPUNIT_DIR SH FALSE TRUE RM MV MKDIR LN PERL AR_R ALLOCA CRYPTLIB LIB_LDAP LIB_LBER LIB_DB EPOLL_LIBS NEED_OWN_SNPRINTF_TRUE NEED_OWN_SNPRINTF_FALSE NEED_OWN_STRSEP_TRUE NEED_OWN_STRSEP_FALSE REGEXLIB LIBREGEX LIBOBJS XTRA_OBJS XTRA_LIBS subdirs LTLIBOBJS' |
ad21602a | 473 | ac_subst_files='' |
090089c4 | 474 | |
475 | # Initialize some variables set by options. | |
33f5f8b9 | 476 | ac_init_help= |
477 | ac_init_version=false | |
090089c4 | 478 | # The variables have the same names as the options, with |
479 | # dashes changed to underlines. | |
33f5f8b9 | 480 | cache_file=/dev/null |
090089c4 | 481 | exec_prefix=NONE |
090089c4 | 482 | no_create= |
090089c4 | 483 | no_recursion= |
484 | prefix=NONE | |
485 | program_prefix=NONE | |
486 | program_suffix=NONE | |
487 | program_transform_name=s,x,x, | |
488 | silent= | |
489 | site= | |
490 | srcdir= | |
090089c4 | 491 | verbose= |
492 | x_includes=NONE | |
493 | x_libraries=NONE | |
33f5f8b9 | 494 | |
495 | # Installation directory options. | |
496 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
497 | # and all the variables that are supposed to be based on exec_prefix | |
498 | # by default will actually change. | |
499 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
090089c4 | 500 | bindir='${exec_prefix}/bin' |
501 | sbindir='${exec_prefix}/sbin' | |
502 | libexecdir='${exec_prefix}/libexec' | |
503 | datadir='${prefix}/share' | |
504 | sysconfdir='${prefix}/etc' | |
505 | sharedstatedir='${prefix}/com' | |
506 | localstatedir='${prefix}/var' | |
507 | libdir='${exec_prefix}/lib' | |
508 | includedir='${prefix}/include' | |
509 | oldincludedir='/usr/include' | |
510 | infodir='${prefix}/info' | |
511 | mandir='${prefix}/man' | |
512 | ||
090089c4 | 513 | ac_prev= |
514 | for ac_option | |
515 | do | |
090089c4 | 516 | # If the previous option needs an argument, assign it. |
517 | if test -n "$ac_prev"; then | |
518 | eval "$ac_prev=\$ac_option" | |
519 | ac_prev= | |
520 | continue | |
521 | fi | |
522 | ||
33f5f8b9 | 523 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
090089c4 | 524 | |
525 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
526 | ||
33f5f8b9 | 527 | case $ac_option in |
090089c4 | 528 | |
529 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
530 | ac_prev=bindir ;; | |
531 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
33f5f8b9 | 532 | bindir=$ac_optarg ;; |
090089c4 | 533 | |
534 | -build | --build | --buil | --bui | --bu) | |
33f5f8b9 | 535 | ac_prev=build_alias ;; |
090089c4 | 536 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
33f5f8b9 | 537 | build_alias=$ac_optarg ;; |
090089c4 | 538 | |
539 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
540 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
541 | ac_prev=cache_file ;; | |
542 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
543 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
33f5f8b9 | 544 | cache_file=$ac_optarg ;; |
545 | ||
546 | --config-cache | -C) | |
547 | cache_file=config.cache ;; | |
090089c4 | 548 | |
549 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
550 | ac_prev=datadir ;; | |
551 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
552 | | --da=*) | |
33f5f8b9 | 553 | datadir=$ac_optarg ;; |
090089c4 | 554 | |
555 | -disable-* | --disable-*) | |
33f5f8b9 | 556 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
090089c4 | 557 | # Reject names that are not valid shell variable names. |
33f5f8b9 | 558 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
559 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
560 | { (exit 1); exit 1; }; } | |
561 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
562 | eval "enable_$ac_feature=no" ;; | |
090089c4 | 563 | |
564 | -enable-* | --enable-*) | |
33f5f8b9 | 565 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
090089c4 | 566 | # Reject names that are not valid shell variable names. |
33f5f8b9 | 567 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
568 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
569 | { (exit 1); exit 1; }; } | |
570 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
571 | case $ac_option in | |
572 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
090089c4 | 573 | *) ac_optarg=yes ;; |
574 | esac | |
33f5f8b9 | 575 | eval "enable_$ac_feature='$ac_optarg'" ;; |
090089c4 | 576 | |
577 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
578 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
579 | | --exec | --exe | --ex) | |
580 | ac_prev=exec_prefix ;; | |
581 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
582 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
583 | | --exec=* | --exe=* | --ex=*) | |
33f5f8b9 | 584 | exec_prefix=$ac_optarg ;; |
090089c4 | 585 | |
586 | -gas | --gas | --ga | --g) | |
587 | # Obsolete; use --with-gas. | |
588 | with_gas=yes ;; | |
589 | ||
33f5f8b9 | 590 | -help | --help | --hel | --he | -h) |
591 | ac_init_help=long ;; | |
592 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
593 | ac_init_help=recursive ;; | |
594 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
595 | ac_init_help=short ;; | |
090089c4 | 596 | |
597 | -host | --host | --hos | --ho) | |
33f5f8b9 | 598 | ac_prev=host_alias ;; |
090089c4 | 599 | -host=* | --host=* | --hos=* | --ho=*) |
33f5f8b9 | 600 | host_alias=$ac_optarg ;; |
090089c4 | 601 | |
602 | -includedir | --includedir | --includedi | --included | --include \ | |
603 | | --includ | --inclu | --incl | --inc) | |
604 | ac_prev=includedir ;; | |
605 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
606 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
33f5f8b9 | 607 | includedir=$ac_optarg ;; |
090089c4 | 608 | |
609 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
610 | ac_prev=infodir ;; | |
611 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
33f5f8b9 | 612 | infodir=$ac_optarg ;; |
090089c4 | 613 | |
614 | -libdir | --libdir | --libdi | --libd) | |
615 | ac_prev=libdir ;; | |
616 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
33f5f8b9 | 617 | libdir=$ac_optarg ;; |
090089c4 | 618 | |
619 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
620 | | --libexe | --libex | --libe) | |
621 | ac_prev=libexecdir ;; | |
622 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
623 | | --libexe=* | --libex=* | --libe=*) | |
33f5f8b9 | 624 | libexecdir=$ac_optarg ;; |
090089c4 | 625 | |
626 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
627 | | --localstate | --localstat | --localsta | --localst \ | |
628 | | --locals | --local | --loca | --loc | --lo) | |
629 | ac_prev=localstatedir ;; | |
630 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
631 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
632 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
33f5f8b9 | 633 | localstatedir=$ac_optarg ;; |
090089c4 | 634 | |
635 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
636 | ac_prev=mandir ;; | |
637 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
33f5f8b9 | 638 | mandir=$ac_optarg ;; |
090089c4 | 639 | |
640 | -nfp | --nfp | --nf) | |
641 | # Obsolete; use --without-fp. | |
642 | with_fp=no ;; | |
643 | ||
644 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
33f5f8b9 | 645 | | --no-cr | --no-c | -n) |
090089c4 | 646 | no_create=yes ;; |
647 | ||
648 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
649 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
650 | no_recursion=yes ;; | |
651 | ||
652 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
653 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
654 | | --oldin | --oldi | --old | --ol | --o) | |
655 | ac_prev=oldincludedir ;; | |
656 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
657 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
658 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
33f5f8b9 | 659 | oldincludedir=$ac_optarg ;; |
090089c4 | 660 | |
661 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
662 | ac_prev=prefix ;; | |
663 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
33f5f8b9 | 664 | prefix=$ac_optarg ;; |
090089c4 | 665 | |
666 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
667 | | --program-pre | --program-pr | --program-p) | |
668 | ac_prev=program_prefix ;; | |
669 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
670 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
33f5f8b9 | 671 | program_prefix=$ac_optarg ;; |
090089c4 | 672 | |
673 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
674 | | --program-suf | --program-su | --program-s) | |
675 | ac_prev=program_suffix ;; | |
676 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
677 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
33f5f8b9 | 678 | program_suffix=$ac_optarg ;; |
090089c4 | 679 | |
680 | -program-transform-name | --program-transform-name \ | |
681 | | --program-transform-nam | --program-transform-na \ | |
682 | | --program-transform-n | --program-transform- \ | |
683 | | --program-transform | --program-transfor \ | |
684 | | --program-transfo | --program-transf \ | |
685 | | --program-trans | --program-tran \ | |
686 | | --progr-tra | --program-tr | --program-t) | |
687 | ac_prev=program_transform_name ;; | |
688 | -program-transform-name=* | --program-transform-name=* \ | |
689 | | --program-transform-nam=* | --program-transform-na=* \ | |
690 | | --program-transform-n=* | --program-transform-=* \ | |
691 | | --program-transform=* | --program-transfor=* \ | |
692 | | --program-transfo=* | --program-transf=* \ | |
693 | | --program-trans=* | --program-tran=* \ | |
694 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
33f5f8b9 | 695 | program_transform_name=$ac_optarg ;; |
090089c4 | 696 | |
697 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
698 | | -silent | --silent | --silen | --sile | --sil) | |
699 | silent=yes ;; | |
700 | ||
701 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
702 | ac_prev=sbindir ;; | |
703 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
704 | | --sbi=* | --sb=*) | |
33f5f8b9 | 705 | sbindir=$ac_optarg ;; |
090089c4 | 706 | |
707 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
708 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
709 | | --sharedst | --shareds | --shared | --share | --shar \ | |
710 | | --sha | --sh) | |
711 | ac_prev=sharedstatedir ;; | |
712 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
713 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
714 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
715 | | --sha=* | --sh=*) | |
33f5f8b9 | 716 | sharedstatedir=$ac_optarg ;; |
090089c4 | 717 | |
718 | -site | --site | --sit) | |
719 | ac_prev=site ;; | |
720 | -site=* | --site=* | --sit=*) | |
33f5f8b9 | 721 | site=$ac_optarg ;; |
090089c4 | 722 | |
723 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
724 | ac_prev=srcdir ;; | |
725 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
33f5f8b9 | 726 | srcdir=$ac_optarg ;; |
090089c4 | 727 | |
728 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
729 | | --syscon | --sysco | --sysc | --sys | --sy) | |
730 | ac_prev=sysconfdir ;; | |
731 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
732 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
33f5f8b9 | 733 | sysconfdir=$ac_optarg ;; |
090089c4 | 734 | |
735 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
33f5f8b9 | 736 | ac_prev=target_alias ;; |
090089c4 | 737 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
33f5f8b9 | 738 | target_alias=$ac_optarg ;; |
090089c4 | 739 | |
740 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
741 | verbose=yes ;; | |
742 | ||
33f5f8b9 | 743 | -version | --version | --versio | --versi | --vers | -V) |
744 | ac_init_version=: ;; | |
090089c4 | 745 | |
746 | -with-* | --with-*) | |
33f5f8b9 | 747 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
090089c4 | 748 | # Reject names that are not valid shell variable names. |
33f5f8b9 | 749 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
750 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
751 | { (exit 1); exit 1; }; } | |
090089c4 | 752 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
33f5f8b9 | 753 | case $ac_option in |
754 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
090089c4 | 755 | *) ac_optarg=yes ;; |
756 | esac | |
33f5f8b9 | 757 | eval "with_$ac_package='$ac_optarg'" ;; |
090089c4 | 758 | |
759 | -without-* | --without-*) | |
33f5f8b9 | 760 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
090089c4 | 761 | # Reject names that are not valid shell variable names. |
33f5f8b9 | 762 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
763 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
764 | { (exit 1); exit 1; }; } | |
765 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
766 | eval "with_$ac_package=no" ;; | |
090089c4 | 767 | |
768 | --x) | |
769 | # Obsolete; use --with-x. | |
770 | with_x=yes ;; | |
771 | ||
772 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
773 | | --x-incl | --x-inc | --x-in | --x-i) | |
774 | ac_prev=x_includes ;; | |
775 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
776 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
33f5f8b9 | 777 | x_includes=$ac_optarg ;; |
090089c4 | 778 | |
779 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
780 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
781 | ac_prev=x_libraries ;; | |
782 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
783 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
33f5f8b9 | 784 | x_libraries=$ac_optarg ;; |
090089c4 | 785 | |
33f5f8b9 | 786 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
787 | Try \`$0 --help' for more information." >&2 | |
788 | { (exit 1); exit 1; }; } | |
090089c4 | 789 | ;; |
790 | ||
33f5f8b9 | 791 | *=*) |
792 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
793 | # Reject names that are not valid shell variable names. | |
794 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
795 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
796 | { (exit 1); exit 1; }; } | |
797 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
798 | eval "$ac_envvar='$ac_optarg'" | |
799 | export $ac_envvar ;; | |
800 | ||
090089c4 | 801 | *) |
33f5f8b9 | 802 | # FIXME: should be removed in autoconf 3.0. |
803 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
804 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
805 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
806 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
090089c4 | 807 | ;; |
808 | ||
809 | esac | |
810 | done | |
811 | ||
812 | if test -n "$ac_prev"; then | |
33f5f8b9 | 813 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
814 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
815 | { (exit 1); exit 1; }; } | |
3f961930 | 816 | fi |
3f961930 | 817 | |
33f5f8b9 | 818 | # Be sure to have absolute paths. |
819 | for ac_var in exec_prefix prefix | |
820 | do | |
821 | eval ac_val=$`echo $ac_var` | |
822 | case $ac_val in | |
823 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
824 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
825 | { (exit 1); exit 1; }; };; | |
826 | esac | |
827 | done | |
090089c4 | 828 | |
33f5f8b9 | 829 | # Be sure to have absolute paths. |
830 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
af3004ff | 831 | localstatedir libdir includedir oldincludedir infodir mandir |
090089c4 | 832 | do |
33f5f8b9 | 833 | eval ac_val=$`echo $ac_var` |
834 | case $ac_val in | |
835 | [\\/$]* | ?:[\\/]* ) ;; | |
836 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
837 | { (exit 1); exit 1; }; };; | |
090089c4 | 838 | esac |
839 | done | |
840 | ||
33f5f8b9 | 841 | # There might be people who depend on the old broken behavior: `$host' |
842 | # used to hold the argument of --host etc. | |
843 | # FIXME: To remove some day. | |
844 | build=$build_alias | |
845 | host=$host_alias | |
846 | target=$target_alias | |
847 | ||
848 | # FIXME: To remove some day. | |
849 | if test "x$host_alias" != x; then | |
850 | if test "x$build_alias" = x; then | |
851 | cross_compiling=maybe | |
852 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
853 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
854 | elif test "x$build_alias" != "x$host_alias"; then | |
855 | cross_compiling=yes | |
856 | fi | |
857 | fi | |
b65c7b0d | 858 | |
33f5f8b9 | 859 | ac_tool_prefix= |
860 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
861 | ||
862 | test "$silent" = yes && exec 6>/dev/null | |
090089c4 | 863 | |
090089c4 | 864 | |
865 | # Find the source files, if location was not specified. | |
866 | if test -z "$srcdir"; then | |
867 | ac_srcdir_defaulted=yes | |
868 | # Try the directory containing this script, then its parent. | |
33f5f8b9 | 869 | ac_confdir=`(dirname "$0") 2>/dev/null || |
870 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
af3004ff | 871 | X"$0" : 'X\(//\)[^/]' \| \ |
872 | X"$0" : 'X\(//\)$' \| \ | |
873 | X"$0" : 'X\(/\)' \| \ | |
874 | . : '\(.\)' 2>/dev/null || | |
33f5f8b9 | 875 | echo X"$0" | |
876 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
877 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
878 | /^X\(\/\/\)$/{ s//\1/; q; } | |
879 | /^X\(\/\).*/{ s//\1/; q; } | |
880 | s/.*/./; q'` | |
090089c4 | 881 | srcdir=$ac_confdir |
882 | if test ! -r $srcdir/$ac_unique_file; then | |
883 | srcdir=.. | |
884 | fi | |
885 | else | |
886 | ac_srcdir_defaulted=no | |
887 | fi | |
888 | if test ! -r $srcdir/$ac_unique_file; then | |
889 | if test "$ac_srcdir_defaulted" = yes; then | |
33f5f8b9 | 890 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
891 | { (exit 1); exit 1; }; } | |
090089c4 | 892 | else |
33f5f8b9 | 893 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
894 | { (exit 1); exit 1; }; } | |
090089c4 | 895 | fi |
896 | fi | |
ad21602a | 897 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
898 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
899 | { (exit 1); exit 1; }; } | |
33f5f8b9 | 900 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
901 | ac_env_build_alias_set=${build_alias+set} | |
902 | ac_env_build_alias_value=$build_alias | |
903 | ac_cv_env_build_alias_set=${build_alias+set} | |
904 | ac_cv_env_build_alias_value=$build_alias | |
905 | ac_env_host_alias_set=${host_alias+set} | |
906 | ac_env_host_alias_value=$host_alias | |
907 | ac_cv_env_host_alias_set=${host_alias+set} | |
908 | ac_cv_env_host_alias_value=$host_alias | |
909 | ac_env_target_alias_set=${target_alias+set} | |
910 | ac_env_target_alias_value=$target_alias | |
911 | ac_cv_env_target_alias_set=${target_alias+set} | |
912 | ac_cv_env_target_alias_value=$target_alias | |
913 | ac_env_CC_set=${CC+set} | |
914 | ac_env_CC_value=$CC | |
915 | ac_cv_env_CC_set=${CC+set} | |
916 | ac_cv_env_CC_value=$CC | |
917 | ac_env_CFLAGS_set=${CFLAGS+set} | |
918 | ac_env_CFLAGS_value=$CFLAGS | |
919 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
920 | ac_cv_env_CFLAGS_value=$CFLAGS | |
921 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
922 | ac_env_LDFLAGS_value=$LDFLAGS | |
923 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
924 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
925 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
926 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
927 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
928 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
929 | ac_env_CXX_set=${CXX+set} | |
930 | ac_env_CXX_value=$CXX | |
931 | ac_cv_env_CXX_set=${CXX+set} | |
932 | ac_cv_env_CXX_value=$CXX | |
933 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
934 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
935 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
936 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
937 | ac_env_CPP_set=${CPP+set} | |
938 | ac_env_CPP_value=$CPP | |
939 | ac_cv_env_CPP_set=${CPP+set} | |
940 | ac_cv_env_CPP_value=$CPP | |
a33e1d91 | 941 | ac_env_CXXCPP_set=${CXXCPP+set} |
942 | ac_env_CXXCPP_value=$CXXCPP | |
943 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
944 | ac_cv_env_CXXCPP_value=$CXXCPP | |
945 | ac_env_F77_set=${F77+set} | |
946 | ac_env_F77_value=$F77 | |
947 | ac_cv_env_F77_set=${F77+set} | |
948 | ac_cv_env_F77_value=$F77 | |
949 | ac_env_FFLAGS_set=${FFLAGS+set} | |
950 | ac_env_FFLAGS_value=$FFLAGS | |
951 | ac_cv_env_FFLAGS_set=${FFLAGS+set} | |
952 | ac_cv_env_FFLAGS_value=$FFLAGS | |
090089c4 | 953 | |
33f5f8b9 | 954 | # |
955 | # Report the --help message. | |
956 | # | |
957 | if test "$ac_init_help" = "long"; then | |
958 | # Omit some internal or obsolete options to make the list less imposing. | |
959 | # This message is too long to be a string in the A/UX 3.1 sh. | |
960 | cat <<_ACEOF | |
505c100d | 961 | \`configure' configures Squid Web Proxy 3.0.PRE4-CVS to adapt to many kinds of systems. |
090089c4 | 962 | |
33f5f8b9 | 963 | Usage: $0 [OPTION]... [VAR=VALUE]... |
090089c4 | 964 | |
33f5f8b9 | 965 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
966 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
b65c7b0d | 967 | |
33f5f8b9 | 968 | Defaults for the options are specified in brackets. |
b65c7b0d | 969 | |
33f5f8b9 | 970 | Configuration: |
971 | -h, --help display this help and exit | |
972 | --help=short display options specific to this package | |
973 | --help=recursive display the short help of all the included packages | |
974 | -V, --version display version information and exit | |
975 | -q, --quiet, --silent do not print \`checking...' messages | |
976 | --cache-file=FILE cache test results in FILE [disabled] | |
977 | -C, --config-cache alias for \`--cache-file=config.cache' | |
978 | -n, --no-create do not create output files | |
979 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
980 | ||
981 | _ACEOF | |
982 | ||
983 | cat <<_ACEOF | |
984 | Installation directories: | |
985 | --prefix=PREFIX install architecture-independent files in PREFIX | |
af3004ff | 986 | [$ac_default_prefix] |
33f5f8b9 | 987 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
af3004ff | 988 | [PREFIX] |
b65c7b0d | 989 | |
33f5f8b9 | 990 | By default, \`make install' will install all the files in |
991 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
992 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
993 | for instance \`--prefix=\$HOME'. | |
b65c7b0d | 994 | |
33f5f8b9 | 995 | For better control, use the options below. |
996 | ||
997 | Fine tuning of the installation directories: | |
998 | --bindir=DIR user executables [EPREFIX/bin] | |
999 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1000 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1001 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
1002 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1003 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1004 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1005 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1006 | --includedir=DIR C header files [PREFIX/include] | |
1007 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1008 | --infodir=DIR info documentation [PREFIX/info] | |
1009 | --mandir=DIR man documentation [PREFIX/man] | |
1010 | _ACEOF | |
1011 | ||
1012 | cat <<\_ACEOF | |
1013 | ||
1014 | Program names: | |
1015 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1016 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1017 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1018 | ||
1019 | System types: | |
1020 | --build=BUILD configure for building on BUILD [guessed] | |
1021 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1022 | _ACEOF | |
1023 | fi | |
1024 | ||
1025 | if test -n "$ac_init_help"; then | |
25b6a907 | 1026 | case $ac_init_help in |
505c100d | 1027 | short | recursive ) echo "Configuration of Squid Web Proxy 3.0.PRE4-CVS:";; |
25b6a907 | 1028 | esac |
33f5f8b9 | 1029 | cat <<\_ACEOF |
1030 | ||
1031 | Optional Features: | |
1032 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1033 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
07d1f987 | 1034 | --enable-maintainer-mode enable make rules and dependencies not useful |
1035 | (and sometimes confusing) to the casual installer | |
1036 | --disable-dependency-tracking speeds up one-time build | |
1037 | --enable-dependency-tracking do not reject slow dependency extractors | |
a33e1d91 | 1038 | --enable-shared[=PKGS] |
07d1f987 | 1039 | build shared libraries [default=no] |
a33e1d91 | 1040 | --enable-static[=PKGS] |
1041 | build static libraries [default=yes] | |
1042 | --enable-fast-install[=PKGS] | |
1043 | optimize for fast installation [default=yes] | |
1044 | --disable-libtool-lock avoid locking (might break parallel builds) | |
33f5f8b9 | 1045 | --enable-dlmalloc=LIB Compile & use the malloc package by Doug Lea |
ae24c48d | 1046 | --enable-gnuregex Compile GNUregex. Unless you have reason to use this |
ca732765 | 1047 | option, you should not enable it. This library file |
1048 | is usually only required on Windows and very old | |
1049 | Unix boxes which do not have their own regex library | |
1050 | built in. | |
9a1efaa8 | 1051 | --disable-optimizations Don't compile Squid with compiler optimizations enabled. |
ca732765 | 1052 | Optimization is good for production builds, but not |
1053 | good for debugging. During development, use | |
1054 | --disable-optimizations to reduce compilation times | |
1055 | and allow easier debugging. This option implicitly | |
1056 | also enabled --disable-inline | |
3360d3f2 | 1057 | --disable-inline Don't compile trivial methods as inline. Squid |
ca732765 | 1058 | is coded with much of the code able to be inlined. |
1059 | Inlining is good for production builds, but not | |
1060 | good for development. During development, use | |
1061 | --disable-inline to reduce compilation times and | |
1062 | allow incremental builds to be quick. For | |
1063 | production builds, or load tests, use | |
1064 | --enable-inline to have squid make all trivial | |
1065 | methods inlinable by the compiler. | |
33f5f8b9 | 1066 | --enable-debug-cbdata Provide some debug information in cbdata |
1067 | --enable-xmalloc-statistics | |
1068 | Show malloc statistics in status page | |
1069 | --disable-carp Disable CARP support | |
1070 | --enable-async-io=N_THREADS | |
1071 | Shorthand for | |
1072 | --with-aufs-threads=N_THREADS | |
1073 | --with-pthreads | |
1074 | --enable-storeio=ufs,aufs | |
1075 | --enable-storeio=\"list of modules\" | |
1076 | Build support for the list of store I/O modules. | |
1077 | The default is only to build the "ufs" module. | |
1078 | See src/fs for a list of available modules, or | |
1079 | Programmers Guide section <not yet written> | |
1080 | for details on how to build your custom store module | |
b9ae18aa | 1081 | --enable-disk-io=\"list of modules\" |
1082 | Build support for the list of disk I/O modules. | |
1083 | The default is only to build the "Blocking" module. | |
1084 | See src/DiskIO for a list of available modules, or | |
1085 | Programmers Guide section <not yet written> | |
1086 | for details on how to build your custom disk module | |
33f5f8b9 | 1087 | --enable-removal-policies=\"list of policies\" |
1088 | Build support for the list of removal policies. | |
1089 | The default is only to build the "lru" module. | |
1090 | See src/repl for a list of available modules, or | |
1091 | Programmers Guide section 9.9 for details on how | |
1092 | to build your custom policy | |
1093 | --enable-icmp Enable ICMP pinging | |
1094 | --enable-delay-pools Enable delay pools to limit bandwidth usage | |
12a5c9fd | 1095 | --enable-esi Enable ESI for accelerators. Requires libexpat. |
1096 | Enabling ESI will cause squid to follow the Edge | |
1097 | Acceleration Specification (www.esi.org). This | |
1098 | causes squid to IGNORE client Cache-Control headers. | |
1099 | DO NOT use this in a squid configured as a web | |
1100 | proxy, ONLY use it in a squid configured for | |
1101 | webserver acceleration. | |
2f2d507f | 1102 | --enable-icap-client Enable the ICAP client. |
33f5f8b9 | 1103 | --enable-useragent-log Enable logging of User-Agent header |
1104 | --enable-referer-log Enable logging of Referer header | |
1105 | --disable-wccp Disable Web Cache Coordination Protocol | |
fbbe3d25 | 1106 | --disable-wccpv2 Disable Web Cache Coordination V2 Protocol |
33f5f8b9 | 1107 | --enable-kill-parent-hack |
1108 | Kill parent on shutdown | |
1109 | --enable-snmp Enable SNMP monitoring | |
1110 | --enable-cachemgr-hostname=hostname | |
1111 | Make cachemgr.cgi default to this host | |
1112 | --enable-arp-acl Enable use of ARP ACL lists (ether address) | |
1113 | --enable-htcp Enable HTCP protocol | |
1114 | --enable-ssl Enable ssl gatewaying support using OpenSSL | |
1115 | --enable-forw-via-db Enable Forw/Via database | |
1116 | --enable-cache-digests Use Cache Digests | |
1117 | see http://www.squid-cache.org/FAQ/FAQ-16.html | |
1118 | --enable-default-err-language=lang | |
1119 | Select default language for Error pages (see | |
1120 | errors directory) | |
1121 | --enable-err-languages=\"lang1 lang2..\" | |
1122 | Select languages to be installed. (All will be | |
1123 | installed by default) | |
ca732765 | 1124 | --enable-poll Enable poll() support. |
33f5f8b9 | 1125 | --disable-poll Disable poll() support. |
ca732765 | 1126 | --enable-select Enable select() support. |
33f5f8b9 | 1127 | --disable-select Disable select() support. |
ca732765 | 1128 | --enable-kqueue Enable kqueue() support. |
33f5f8b9 | 1129 | --disable-kqueue Disable kqueue() support. |
ca732765 | 1130 | --enable-epoll Enable epoll() support. |
1131 | --disable-epoll Disable epoll() support. | |
33f5f8b9 | 1132 | --disable-http-violations |
1133 | This allows you to remove code which is known to | |
1134 | violate the HTTP protocol specification. | |
1135 | --enable-ipf-transparent | |
1136 | Enable Transparent Proxy support for systems | |
1137 | using IP-Filter network address redirection. | |
1138 | --enable-pf-transparent | |
1139 | Enable Transparent Proxy support for systems | |
1140 | using PF network address redirection. | |
1141 | --enable-linux-netfilter | |
82fd361a | 1142 | Enable Transparent Proxy support for Linux (Netfilter) systems. |
33f5f8b9 | 1143 | --enable-leakfinder |
1144 | Enable Leak Finding code. Enabling this alone | |
1145 | does nothing; you also have to modify the source | |
1146 | code to use the leak finding functions. Probably | |
1147 | Useful for hackers only. | |
1148 | --disable-ident-lookups | |
1149 | This allows you to remove code that performs | |
1150 | Ident (RFC 931) lookups. | |
1151 | --disable-internal-dns This prevents Squid from directly sending and | |
1152 | receiving DNS messages, and instead enables the | |
1153 | old external 'dnsserver' processes. | |
1154 | --enable-truncate This uses truncate() instead of unlink() when | |
1155 | removing cache files. Truncate gives a little | |
1156 | performance improvement, but may cause problems | |
1157 | when used with async I/O. Truncate uses more | |
1158 | filesystem inodes than unlink.. | |
c8a31e86 | 1159 | --enable-hostname-checks |
1160 | Tells Squid to rejects any host names with | |
1161 | odd characters in their name to conform with | |
1162 | internet standards. This was the default in | |
1163 | prior Squid versions, but since Squid-3 Squid | |
1164 | no longer tries to police the use of DNS | |
33f5f8b9 | 1165 | --enable-underscores Squid by default rejects any host names with _ |
1166 | in their name to conform with internet standards. | |
1167 | If you disagree with this you may allow _ in | |
1168 | hostnames by using this switch, provided that | |
1169 | the resolver library on the host where Squid runs | |
1170 | does not reject _ in hostnames... | |
1171 | --enable-default-hostsfile=path | |
1172 | Select default location for hosts file. | |
1173 | See hosts_file directive in squid.conf for details | |
1174 | --enable-auth=\"list of auth scheme modules\" | |
1175 | Build support for the list of authentication schemes. | |
1176 | The default is to build support for the Basic scheme. | |
1177 | See src/auth for a list of available modules, or | |
1178 | Programmers Guide section authentication schemes | |
1179 | for details on how to build your custom auth scheme | |
1180 | module | |
33f5f8b9 | 1181 | --enable-basic-auth-helpers=\"list of helpers\" |
1182 | This option selects which basic scheme proxy_auth | |
1183 | helpers to build and install as part of the normal | |
1184 | build process. For a list of available | |
1185 | helpers see the helpers/basic_auth directory. | |
1186 | --enable-ntlm-auth-helpers=\"list of helpers\" | |
1187 | This option selects which proxy_auth ntlm helpers | |
1188 | to build and install as part of the normal build | |
1189 | process. For a list of available helpers see | |
1190 | the helpers/ntlm_auth directory. | |
ce4caa86 | 1191 | --enable-negotiate-auth-helpers=\"list of helpers\" |
1192 | This option selects which proxy_auth negotiate helpers | |
1193 | to build and install as part of the normal build | |
1194 | process. For a list of available helpers see | |
1195 | the helpers/negotiate_auth directory. | |
33f5f8b9 | 1196 | --enable-digest-auth-helpers=\"list of helpers\" |
1197 | This option selects which digest scheme authentication | |
1198 | helpers to build and install as part of the normal build | |
1199 | process. For a list of available helpers see the | |
1200 | helpers/digest_auth directory. | |
1201 | --enable-ntlm-fail-open Enable NTLM fail open, where a helper that fails one of the | |
1202 | Authentication steps can allow squid to still authenticate | |
1203 | the user. | |
1204 | --enable-external-acl-helpers=\"list of helpers\" | |
1205 | This option selects which external_acl helpers to | |
1206 | build and install as part of the normal build | |
1207 | process. For a list of available helpers see the | |
1208 | helpers/external_acl directory. | |
a33e1d91 | 1209 | --disable-mempools Disable memPools. Note that this option now simply sets the |
ca732765 | 1210 | default behaviour. Specific classes can override this at runtime, and |
1211 | only lib/MemPool.c needs to be altered to change the squid-wide | |
1212 | default for all classes. | |
9e6ab3ce | 1213 | --enable-win32-service Compile Squid as a WIN32 Service |
1214 | Works only on Windows NT and Windows 2000 Platforms. | |
33f5f8b9 | 1215 | --disable-unlinkd Do not use unlinkd |
1216 | --enable-stacktraces Enable automatic call backtrace on fatal errors | |
1217 | --enable-cpu-profiling | |
1218 | This option allows you to see which internal functions | |
1219 | in Squid are consuming how much CPU. Compiles in probes | |
1220 | that measure time spent in probed functions. Needs | |
1221 | source modifications to add new probes. This is meant | |
1222 | for developers to assist in performance optimisations | |
1223 | of Squid internal functions. | |
1224 | If you are not developer and not interested in the stats | |
1225 | you shouldn't enable this, as overhead added, although | |
1226 | small, is still overhead. See lib/Profiler.c for more. | |
1227 | ||
1228 | --enable-x-accelerator-vary | |
1229 | Enable support for the X-Accelerator-Vary | |
1230 | HTTP header. Can be used to indicate | |
1231 | variance within an accelerator setup. | |
1232 | Typically used together with other code | |
1233 | that adds custom HTTP headers to the requests. | |
1234 | ||
1235 | Optional Packages: | |
1236 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1237 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
a33e1d91 | 1238 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1239 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1240 | both] | |
1241 | --with-tags[=TAGS] | |
1242 | include additional configurations [automatic] | |
33f5f8b9 | 1243 | --with-aufs-threads=N_THREADS |
1244 | Tune the number of worker threads for the aufs object | |
1245 | store. | |
1246 | --with-pthreads Use POSIX Threads | |
1247 | --with-aio Use POSIX AIO | |
1248 | --with-dl Use dynamic linking | |
1249 | --with-openssl=prefix | |
1250 | Compile with the OpenSSL libraries. The path to | |
1251 | the OpenSSL development libraries and headers | |
1252 | installation can be specified if outside of the | |
1253 | system standard directories | |
1254 | --with-coss-membuf-size COSS membuf size (default 1048576 bytes) | |
ca732765 | 1255 | --with-large-files Enable support for large files (logs etc). Still |
1256 | experimental. | |
1257 | --with-build-environment=model | |
1258 | The build environment to use. Normally one of | |
1259 | POSIX_V6_ILP32_OFF32 32 bits | |
1260 | POSIX_V6_ILP32_OFFBIG 32 bits with large file support | |
1261 | POSIX_V6_LP64_OFF64 64 bits | |
1262 | POSIX_V6_LPBIG_OFFBIG large pointers and files | |
1263 | XBS5_ILP32_OFF32 32 bits (legacy) | |
1264 | XBS5_ILP32_OFFBIG 32 bits with large file support (legacy) | |
1265 | XBS5_LP64_OFF64 64 bits (legacy) | |
1266 | XBS5_LPBIG_OFFBIG large pointers and files (legacy) | |
1267 | default The default for your OS | |
00b2804c | 1268 | --with-valgrind Include debug instrumentation for use with valgrind |
33f5f8b9 | 1269 | --with-filedescriptors=NUMBER Force squid to support NUMBER filedescriptors |
a33e1d91 | 1270 | --with-cppunit-basedir=/path/to/cppunit-base |
1271 | Path where the cppunit headers are libraries are found | |
1272 | for unit testing. (defaults to use internal copies - | |
1273 | version 1.10.0) | |
1274 | ||
33f5f8b9 | 1275 | |
1276 | Some influential environment variables: | |
1277 | CC C compiler command | |
1278 | CFLAGS C compiler flags | |
1279 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1280 | nonstandard directory <lib dir> | |
1281 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1282 | headers in a nonstandard directory <include dir> | |
1283 | CXX C++ compiler command | |
1284 | CXXFLAGS C++ compiler flags | |
1285 | CPP C preprocessor | |
a33e1d91 | 1286 | CXXCPP C++ preprocessor |
1287 | F77 Fortran 77 compiler command | |
1288 | FFLAGS Fortran 77 compiler flags | |
33f5f8b9 | 1289 | |
1290 | Use these variables to override the choices made by `configure' or to help | |
1291 | it to find libraries and programs with nonstandard names/locations. | |
1292 | ||
6e4fdb42 | 1293 | Report bugs to <http://www.squid-cache.org/bugs/>. |
33f5f8b9 | 1294 | _ACEOF |
1295 | fi | |
1296 | ||
1297 | if test "$ac_init_help" = "recursive"; then | |
1298 | # If there are subdirs, report their specific --help. | |
1299 | ac_popdir=`pwd` | |
1300 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1301 | test -d $ac_dir || continue | |
1302 | ac_builddir=. | |
1303 | ||
1304 | if test "$ac_dir" != .; then | |
1305 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1306 | # A "../" for each directory in $ac_dir_suffix. | |
1307 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1308 | else | |
1309 | ac_dir_suffix= ac_top_builddir= | |
1310 | fi | |
1311 | ||
1312 | case $srcdir in | |
1313 | .) # No --srcdir option. We are building in place. | |
1314 | ac_srcdir=. | |
1315 | if test -z "$ac_top_builddir"; then | |
1316 | ac_top_srcdir=. | |
1317 | else | |
1318 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1319 | fi ;; | |
1320 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1321 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1322 | ac_top_srcdir=$srcdir ;; | |
1323 | *) # Relative path. | |
1324 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1325 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1326 | esac | |
af3004ff | 1327 | |
1328 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
1329 | # the directories may not exist. | |
1330 | case `pwd` in | |
1331 | .) ac_abs_builddir="$ac_dir";; | |
1332 | *) | |
1333 | case "$ac_dir" in | |
1334 | .) ac_abs_builddir=`pwd`;; | |
1335 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1336 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1337 | esac;; | |
1338 | esac | |
1339 | case $ac_abs_builddir in | |
1340 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1341 | *) | |
1342 | case ${ac_top_builddir}. in | |
1343 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1344 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1345 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1346 | esac;; | |
1347 | esac | |
1348 | case $ac_abs_builddir in | |
1349 | .) ac_abs_srcdir=$ac_srcdir;; | |
1350 | *) | |
1351 | case $ac_srcdir in | |
1352 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1353 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1354 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1355 | esac;; | |
1356 | esac | |
1357 | case $ac_abs_builddir in | |
1358 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1359 | *) | |
1360 | case $ac_top_srcdir in | |
1361 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1362 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1363 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1364 | esac;; | |
1365 | esac | |
33f5f8b9 | 1366 | |
1367 | cd $ac_dir | |
1368 | # Check for guested configure; otherwise get Cygnus style configure. | |
1369 | if test -f $ac_srcdir/configure.gnu; then | |
1370 | echo | |
1371 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1372 | elif test -f $ac_srcdir/configure; then | |
1373 | echo | |
1374 | $SHELL $ac_srcdir/configure --help=recursive | |
1375 | elif test -f $ac_srcdir/configure.ac || | |
af3004ff | 1376 | test -f $ac_srcdir/configure.in; then |
33f5f8b9 | 1377 | echo |
1378 | $ac_configure --help | |
1379 | else | |
1380 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1381 | fi | |
6263d81f | 1382 | cd $ac_popdir |
33f5f8b9 | 1383 | done |
1384 | fi | |
1385 | ||
1386 | test -n "$ac_init_help" && exit 0 | |
1387 | if $ac_init_version; then | |
1388 | cat <<\_ACEOF | |
505c100d | 1389 | Squid Web Proxy configure 3.0.PRE4-CVS |
25b6a907 | 1390 | generated by GNU Autoconf 2.59 |
33f5f8b9 | 1391 | |
af3004ff | 1392 | Copyright (C) 2003 Free Software Foundation, Inc. |
33f5f8b9 | 1393 | This configure script is free software; the Free Software Foundation |
1394 | gives unlimited permission to copy, distribute and modify it. | |
1395 | _ACEOF | |
1396 | exit 0 | |
1397 | fi | |
1398 | exec 5>config.log | |
1399 | cat >&5 <<_ACEOF | |
1400 | This file contains any messages produced by compilers while | |
1401 | running configure, to aid debugging if configure makes a mistake. | |
1402 | ||
505c100d | 1403 | It was created by Squid Web Proxy $as_me 3.0.PRE4-CVS, which was |
af3004ff | 1404 | generated by GNU Autoconf 2.59. Invocation command line was |
33f5f8b9 | 1405 | |
1406 | $ $0 $@ | |
1407 | ||
1408 | _ACEOF | |
1409 | { | |
1410 | cat <<_ASUNAME | |
1411 | ## --------- ## | |
1412 | ## Platform. ## | |
1413 | ## --------- ## | |
1414 | ||
1415 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1416 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1417 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1418 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1419 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1420 | ||
1421 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1422 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1423 | ||
1424 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1425 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1426 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1427 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1428 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1429 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1430 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1431 | ||
1432 | _ASUNAME | |
1433 | ||
1434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1435 | for as_dir in $PATH | |
1436 | do | |
1437 | IFS=$as_save_IFS | |
1438 | test -z "$as_dir" && as_dir=. | |
1439 | echo "PATH: $as_dir" | |
1440 | done | |
1441 | ||
1442 | } >&5 | |
1443 | ||
1444 | cat >&5 <<_ACEOF | |
1445 | ||
1446 | ||
1447 | ## ----------- ## | |
1448 | ## Core tests. ## | |
1449 | ## ----------- ## | |
1450 | ||
1451 | _ACEOF | |
1452 | ||
1453 | ||
1454 | # Keep a trace of the command line. | |
1455 | # Strip out --no-create and --no-recursion so they do not pile up. | |
ad21602a | 1456 | # Strip out --silent because we don't want to record it for future runs. |
33f5f8b9 | 1457 | # Also quote any args containing shell meta-characters. |
ad21602a | 1458 | # Make two passes to allow for proper duplicate-argument suppression. |
33f5f8b9 | 1459 | ac_configure_args= |
ad21602a | 1460 | ac_configure_args0= |
1461 | ac_configure_args1= | |
33f5f8b9 | 1462 | ac_sep= |
ad21602a | 1463 | ac_must_keep_next=false |
1464 | for ac_pass in 1 2 | |
33f5f8b9 | 1465 | do |
ad21602a | 1466 | for ac_arg |
1467 | do | |
1468 | case $ac_arg in | |
1469 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1470 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1471 | | -silent | --silent | --silen | --sile | --sil) | |
1472 | continue ;; | |
1473 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1474 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1475 | esac | |
1476 | case $ac_pass in | |
1477 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1478 | 2) | |
1479 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1480 | if test $ac_must_keep_next = true; then | |
af3004ff | 1481 | ac_must_keep_next=false # Got value, back to normal. |
ad21602a | 1482 | else |
af3004ff | 1483 | case $ac_arg in |
1484 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1485 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1486 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1487 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1488 | case "$ac_configure_args0 " in | |
1489 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1490 | esac | |
1491 | ;; | |
1492 | -* ) ac_must_keep_next=true ;; | |
1493 | esac | |
ad21602a | 1494 | fi |
1495 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1496 | # Get rid of the leading space. | |
1497 | ac_sep=" " | |
1498 | ;; | |
1499 | esac | |
1500 | done | |
33f5f8b9 | 1501 | done |
ad21602a | 1502 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1503 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
33f5f8b9 | 1504 | |
1505 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1506 | # config.log. We remove comments because anyway the quotes in there | |
1507 | # would cause problems or look ugly. | |
1508 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1509 | # such as our DU 5.0 friend, will then `close' the trap. | |
1510 | trap 'exit_status=$? | |
1511 | # Save into config.log some information that might help in debugging. | |
1512 | { | |
1513 | echo | |
ad21602a | 1514 | |
33f5f8b9 | 1515 | cat <<\_ASBOX |
1516 | ## ---------------- ## | |
1517 | ## Cache variables. ## | |
1518 | ## ---------------- ## | |
1519 | _ASBOX | |
1520 | echo | |
1521 | # The following way of writing the cache mishandles newlines in values, | |
1522 | { | |
1523 | (set) 2>&1 | | |
1524 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1525 | *ac_space=\ *) | |
1526 | sed -n \ | |
af3004ff | 1527 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1528 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
33f5f8b9 | 1529 | ;; |
1530 | *) | |
1531 | sed -n \ | |
af3004ff | 1532 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
33f5f8b9 | 1533 | ;; |
1534 | esac; | |
1535 | } | |
1536 | echo | |
ad21602a | 1537 | |
1538 | cat <<\_ASBOX | |
1539 | ## ----------------- ## | |
1540 | ## Output variables. ## | |
1541 | ## ----------------- ## | |
1542 | _ASBOX | |
1543 | echo | |
1544 | for ac_var in $ac_subst_vars | |
1545 | do | |
1546 | eval ac_val=$`echo $ac_var` | |
1547 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1548 | done | sort | |
1549 | echo | |
1550 | ||
1551 | if test -n "$ac_subst_files"; then | |
1552 | cat <<\_ASBOX | |
1553 | ## ------------- ## | |
1554 | ## Output files. ## | |
1555 | ## ------------- ## | |
1556 | _ASBOX | |
1557 | echo | |
1558 | for ac_var in $ac_subst_files | |
1559 | do | |
1560 | eval ac_val=$`echo $ac_var` | |
af3004ff | 1561 | echo "$ac_var='"'"'$ac_val'"'"'" |
ad21602a | 1562 | done | sort |
1563 | echo | |
1564 | fi | |
1565 | ||
33f5f8b9 | 1566 | if test -s confdefs.h; then |
1567 | cat <<\_ASBOX | |
1568 | ## ----------- ## | |
1569 | ## confdefs.h. ## | |
1570 | ## ----------- ## | |
1571 | _ASBOX | |
1572 | echo | |
ad21602a | 1573 | sed "/^$/d" confdefs.h | sort |
33f5f8b9 | 1574 | echo |
1575 | fi | |
1576 | test "$ac_signal" != 0 && | |
1577 | echo "$as_me: caught signal $ac_signal" | |
1578 | echo "$as_me: exit $exit_status" | |
1579 | } >&5 | |
af3004ff | 1580 | rm -f core *.core && |
33f5f8b9 | 1581 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1582 | exit $exit_status | |
1583 | ' 0 | |
1584 | for ac_signal in 1 2 13 15; do | |
1585 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1586 | done | |
1587 | ac_signal=0 | |
1588 | ||
1589 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1590 | rm -rf conftest* confdefs.h | |
1591 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1592 | echo >confdefs.h | |
1593 | ||
1594 | # Predefined preprocessor variables. | |
1595 | ||
1596 | cat >>confdefs.h <<_ACEOF | |
1597 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1598 | _ACEOF | |
1599 | ||
1600 | ||
1601 | cat >>confdefs.h <<_ACEOF | |
1602 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1603 | _ACEOF | |
1604 | ||
1605 | ||
1606 | cat >>confdefs.h <<_ACEOF | |
1607 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1608 | _ACEOF | |
1609 | ||
1610 | ||
1611 | cat >>confdefs.h <<_ACEOF | |
1612 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1613 | _ACEOF | |
1614 | ||
1615 | ||
1616 | cat >>confdefs.h <<_ACEOF | |
1617 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1618 | _ACEOF | |
1619 | ||
1620 | ||
1621 | # Let the site file select an alternate cache file if it wants to. | |
1622 | # Prefer explicitly selected file to automatically selected ones. | |
1623 | if test -z "$CONFIG_SITE"; then | |
1624 | if test "x$prefix" != xNONE; then | |
1625 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1626 | else | |
1627 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1628 | fi | |
1629 | fi | |
1630 | for ac_site_file in $CONFIG_SITE; do | |
1631 | if test -r "$ac_site_file"; then | |
1632 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1633 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1634 | sed 's/^/| /' "$ac_site_file" >&5 | |
1635 | . "$ac_site_file" | |
1636 | fi | |
1637 | done | |
1638 | ||
1639 | if test -r "$cache_file"; then | |
1640 | # Some versions of bash will fail to source /dev/null (special | |
1641 | # files actually), so we avoid doing that. | |
1642 | if test -f "$cache_file"; then | |
1643 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1644 | echo "$as_me: loading cache $cache_file" >&6;} | |
1645 | case $cache_file in | |
1646 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1647 | *) . ./$cache_file;; | |
1648 | esac | |
1649 | fi | |
1650 | else | |
1651 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1652 | echo "$as_me: creating cache $cache_file" >&6;} | |
1653 | >$cache_file | |
1654 | fi | |
1655 | ||
1656 | # Check that the precious variables saved in the cache have kept the same | |
1657 | # value. | |
1658 | ac_cache_corrupted=false | |
1659 | for ac_var in `(set) 2>&1 | | |
af3004ff | 1660 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
33f5f8b9 | 1661 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1662 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1663 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1664 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1665 | case $ac_old_set,$ac_new_set in | |
1666 | set,) | |
1667 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1668 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1669 | ac_cache_corrupted=: ;; | |
1670 | ,set) | |
1671 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1672 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1673 | ac_cache_corrupted=: ;; | |
1674 | ,);; | |
1675 | *) | |
1676 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
af3004ff | 1677 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
33f5f8b9 | 1678 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
af3004ff | 1679 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
33f5f8b9 | 1680 | echo "$as_me: former value: $ac_old_val" >&2;} |
af3004ff | 1681 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
33f5f8b9 | 1682 | echo "$as_me: current value: $ac_new_val" >&2;} |
af3004ff | 1683 | ac_cache_corrupted=: |
33f5f8b9 | 1684 | fi;; |
1685 | esac | |
1686 | # Pass precious variables to config.status. | |
1687 | if test "$ac_new_set" = set; then | |
1688 | case $ac_new_val in | |
1689 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1690 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1691 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1692 | esac | |
1693 | case " $ac_configure_args " in | |
1694 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1695 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1696 | esac | |
1697 | fi | |
1698 | done | |
1699 | if $ac_cache_corrupted; then | |
1700 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1701 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1702 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1703 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1704 | { (exit 1); exit 1; }; } | |
1705 | fi | |
1706 | ||
1707 | ac_ext=c | |
1708 | ac_cpp='$CPP $CPPFLAGS' | |
1709 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1710 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1711 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1712 | ||
1713 | ||
1714 | ||
1715 | ||
1716 | ||
1717 | ||
1718 | ||
1719 | ||
1720 | ||
1721 | ||
1722 | ||
1723 | ||
25b6a907 | 1724 | |
1725 | ||
1726 | ||
1727 | ||
1728 | ||
1729 | ||
1730 | ||
1731 | ||
33f5f8b9 | 1732 | |
1733 | ||
1734 | ||
1735 | ||
1736 | ||
1737 | ||
1738 | ||
ad21602a | 1739 | |
6e4fdb42 | 1740 | ac_config_headers="$ac_config_headers include/autoconf.h" |
dd0004a0 | 1741 | |
33f5f8b9 | 1742 | ac_aux_dir= |
1743 | for ac_dir in cfgaux $srcdir/cfgaux; do | |
1744 | if test -f $ac_dir/install-sh; then | |
1745 | ac_aux_dir=$ac_dir | |
1746 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1747 | break | |
1748 | elif test -f $ac_dir/install.sh; then | |
1749 | ac_aux_dir=$ac_dir | |
1750 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1751 | break | |
1752 | elif test -f $ac_dir/shtool; then | |
1753 | ac_aux_dir=$ac_dir | |
1754 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1755 | break | |
1756 | fi | |
1757 | done | |
1758 | if test -z "$ac_aux_dir"; then | |
1759 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cfgaux $srcdir/cfgaux" >&5 | |
1760 | echo "$as_me: error: cannot find install-sh or install.sh in cfgaux $srcdir/cfgaux" >&2;} | |
1761 | { (exit 1); exit 1; }; } | |
1762 | fi | |
1763 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1764 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1765 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
8efddab9 | 1766 | |
6e4fdb42 | 1767 | |
07d1f987 | 1768 | am__api_version="1.9" |
a2794549 | 1769 | # Find a good install program. We prefer a C program (faster), |
1770 | # so one script is as good as another. But avoid the broken or | |
1771 | # incompatible versions: | |
1772 | # SysV /etc/install, /usr/sbin/install | |
1773 | # SunOS /usr/etc/install | |
1774 | # IRIX /sbin/install | |
1775 | # AIX /bin/install | |
33f5f8b9 | 1776 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
a2794549 | 1777 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1778 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1779 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
af3004ff | 1780 | # OS/2's system install, which has a completely different semantic |
a2794549 | 1781 | # ./install, which can be erroneously created by make from ./install.sh. |
33f5f8b9 | 1782 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1783 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
a2794549 | 1784 | if test -z "$INSTALL"; then |
33f5f8b9 | 1785 | if test "${ac_cv_path_install+set}" = set; then |
1786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1787 | else | |
1788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1789 | for as_dir in $PATH | |
1790 | do | |
1791 | IFS=$as_save_IFS | |
1792 | test -z "$as_dir" && as_dir=. | |
1793 | # Account for people who put trailing slashes in PATH elements. | |
1794 | case $as_dir/ in | |
1795 | ./ | .// | /cC/* | \ | |
1796 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
af3004ff | 1797 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
33f5f8b9 | 1798 | /usr/ucb/* ) ;; |
1799 | *) | |
1800 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1801 | # Don't use installbsd from OSF since it installs stuff as root | |
1802 | # by default. | |
1803 | for ac_prog in ginstall scoinst install; do | |
1804 | for ac_exec_ext in '' $ac_executable_extensions; do | |
af3004ff | 1805 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
1806 | if test $ac_prog = install && | |
1807 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1808 | # AIX install. It has an incompatible calling convention. | |
1809 | : | |
1810 | elif test $ac_prog = install && | |
1811 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1812 | # program-specific install script used by HP pwplus--don't use. | |
1813 | : | |
1814 | else | |
1815 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1816 | break 3 | |
1817 | fi | |
1818 | fi | |
a2794549 | 1819 | done |
33f5f8b9 | 1820 | done |
1821 | ;; | |
1822 | esac | |
1823 | done | |
1824 | ||
da22ac20 | 1825 | |
da22ac20 | 1826 | fi |
a2794549 | 1827 | if test "${ac_cv_path_install+set}" = set; then |
33f5f8b9 | 1828 | INSTALL=$ac_cv_path_install |
a2794549 | 1829 | else |
1830 | # As a last resort, use the slow shell script. We don't cache a | |
1831 | # path for INSTALL within a source directory, because that will | |
1832 | # break other packages using the cache if that directory is | |
1833 | # removed, or if the path is relative. | |
33f5f8b9 | 1834 | INSTALL=$ac_install_sh |
a2794549 | 1835 | fi |
1836 | fi | |
33f5f8b9 | 1837 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
1838 | echo "${ECHO_T}$INSTALL" >&6 | |
da22ac20 | 1839 | |
a2794549 | 1840 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
1841 | # It thinks the first close brace ends the variable substitution. | |
1842 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
da22ac20 | 1843 | |
33f5f8b9 | 1844 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
da22ac20 | 1845 | |
a2794549 | 1846 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
da22ac20 | 1847 | |
33f5f8b9 | 1848 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1849 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
a2794549 | 1850 | # Just in case |
1851 | sleep 1 | |
1852 | echo timestamp > conftest.file | |
1853 | # Do `set' in a subshell so we don't clobber the current shell's | |
1854 | # arguments. Must try -L first in case configure is actually a | |
1855 | # symlink; some systems play weird games with the mod time of symlinks | |
1856 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1857 | # directory). | |
1858 | if ( | |
1859 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1860 | if test "$*" = "X"; then | |
1861 | # -L didn't work. | |
1862 | set X `ls -t $srcdir/configure conftest.file` | |
1863 | fi | |
1864 | rm -f conftest.file | |
1865 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1866 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1867 | ||
1868 | # If neither matched, then we have a broken ls. This can happen | |
1869 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1870 | # broken ls alias from the environment. This has actually | |
1871 | # happened. Such a system could not be considered "sane". | |
33f5f8b9 | 1872 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
1873 | alias in your environment" >&5 | |
1874 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1875 | alias in your environment" >&2;} | |
1876 | { (exit 1); exit 1; }; } | |
a2794549 | 1877 | fi |
090089c4 | 1878 | |
a2794549 | 1879 | test "$2" = conftest.file |
1880 | ) | |
1881 | then | |
1882 | # Ok. | |
1883 | : | |
1884 | else | |
33f5f8b9 | 1885 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
1886 | Check your system clock" >&5 | |
1887 | echo "$as_me: error: newly created file is older than distributed files! | |
1888 | Check your system clock" >&2;} | |
1889 | { (exit 1); exit 1; }; } | |
a2794549 | 1890 | fi |
33f5f8b9 | 1891 | echo "$as_me:$LINENO: result: yes" >&5 |
1892 | echo "${ECHO_T}yes" >&6 | |
a2794549 | 1893 | test "$program_prefix" != NONE && |
33f5f8b9 | 1894 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
a2794549 | 1895 | # Use a double $ so make ignores it. |
1896 | test "$program_suffix" != NONE && | |
33f5f8b9 | 1897 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
1898 | # Double any \ or $. echo might interpret backslashes. | |
1899 | # By default was `s,x,x', remove it if useless. | |
1900 | cat <<\_ACEOF >conftest.sed | |
1901 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1902 | _ACEOF | |
1903 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1904 | rm conftest.sed | |
1905 | ||
33f5f8b9 | 1906 | # expand $ac_aux_dir to an absolute path |
ad21602a | 1907 | am_aux_dir=`cd $ac_aux_dir && pwd` |
a2794549 | 1908 | |
8efddab9 | 1909 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
a2794549 | 1910 | # Use eval to expand $SHELL |
1911 | if eval "$MISSING --run true"; then | |
1912 | am_missing_run="$MISSING --run " | |
1913 | else | |
1914 | am_missing_run= | |
ad21602a | 1915 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
1916 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
983061ed | 1917 | fi |
1918 | ||
07d1f987 | 1919 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
1920 | # We used to keeping the `.' as first argument, in order to | |
1921 | # allow $(mkdir_p) to be used without argument. As in | |
1922 | # $(mkdir_p) $(somedir) | |
1923 | # where $(somedir) is conditionally defined. However this is wrong | |
1924 | # for two reasons: | |
1925 | # 1. if the package is installed by a user who cannot write `.' | |
1926 | # make install will fail, | |
1927 | # 2. the above comment should most certainly read | |
1928 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
1929 | # so it does not work when $(somedir) is undefined and | |
1930 | # $(DESTDIR) is not. | |
1931 | # To support the latter case, we have to write | |
1932 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
1933 | # so the `.' trick is pointless. | |
1934 | mkdir_p='mkdir -p --' | |
1935 | else | |
1936 | # On NextStep and OpenStep, the `mkdir' command does not | |
1937 | # recognize any option. It will interpret all options as | |
1938 | # directories to create, and then abort because `.' already | |
1939 | # exists. | |
1940 | for d in ./-p ./--version; | |
1941 | do | |
1942 | test -d $d && rmdir $d | |
1943 | done | |
1944 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1945 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1946 | mkdir_p='$(mkinstalldirs)' | |
1947 | else | |
1948 | mkdir_p='$(install_sh) -d' | |
1949 | fi | |
1950 | fi | |
1951 | ||
33f5f8b9 | 1952 | for ac_prog in gawk mawk nawk awk |
a2794549 | 1953 | do |
33f5f8b9 | 1954 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
a2794549 | 1955 | set dummy $ac_prog; ac_word=$2 |
33f5f8b9 | 1956 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1957 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1958 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a2794549 | 1960 | else |
1961 | if test -n "$AWK"; then | |
1962 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1963 | else | |
33f5f8b9 | 1964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1965 | for as_dir in $PATH | |
1966 | do | |
1967 | IFS=$as_save_IFS | |
1968 | test -z "$as_dir" && as_dir=. | |
1969 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1970 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1971 | ac_cv_prog_AWK="$ac_prog" | |
1972 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1973 | break 2 | |
1974 | fi | |
1975 | done | |
1976 | done | |
1977 | ||
a2794549 | 1978 | fi |
1979 | fi | |
33f5f8b9 | 1980 | AWK=$ac_cv_prog_AWK |
a2794549 | 1981 | if test -n "$AWK"; then |
33f5f8b9 | 1982 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1983 | echo "${ECHO_T}$AWK" >&6 | |
a2794549 | 1984 | else |
33f5f8b9 | 1985 | echo "$as_me:$LINENO: result: no" >&5 |
1986 | echo "${ECHO_T}no" >&6 | |
a2794549 | 1987 | fi |
df087e68 | 1988 | |
33f5f8b9 | 1989 | test -n "$AWK" && break |
a2794549 | 1990 | done |
0e6d05ef | 1991 | |
ad21602a | 1992 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1993 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
af3004ff | 1994 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
33f5f8b9 | 1995 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
1996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a2794549 | 1997 | else |
33f5f8b9 | 1998 | cat >conftest.make <<\_ACEOF |
a2794549 | 1999 | all: |
ad21602a | 2000 | @echo 'ac_maketemp="$(MAKE)"' |
33f5f8b9 | 2001 | _ACEOF |
a2794549 | 2002 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
33f5f8b9 | 2003 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
a2794549 | 2004 | if test -n "$ac_maketemp"; then |
2005 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2006 | else | |
2007 | eval ac_cv_prog_make_${ac_make}_set=no | |
a26bdc75 | 2008 | fi |
33f5f8b9 | 2009 | rm -f conftest.make |
a2794549 | 2010 | fi |
2011 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
33f5f8b9 | 2012 | echo "$as_me:$LINENO: result: yes" >&5 |
2013 | echo "${ECHO_T}yes" >&6 | |
a2794549 | 2014 | SET_MAKE= |
2015 | else | |
33f5f8b9 | 2016 | echo "$as_me:$LINENO: result: no" >&5 |
2017 | echo "${ECHO_T}no" >&6 | |
a2794549 | 2018 | SET_MAKE="MAKE=${MAKE-make}" |
2019 | fi | |
2020 | ||
ad21602a | 2021 | rm -rf .tst 2>/dev/null |
2022 | mkdir .tst 2>/dev/null | |
2023 | if test -d .tst; then | |
2024 | am__leading_dot=. | |
8b036616 | 2025 | else |
ad21602a | 2026 | am__leading_dot=_ |
8b036616 | 2027 | fi |
ad21602a | 2028 | rmdir .tst 2>/dev/null |
8b036616 | 2029 | |
07d1f987 | 2030 | # test to see if srcdir already configured |
ad21602a | 2031 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
a2794549 | 2032 | test -f $srcdir/config.status; then |
33f5f8b9 | 2033 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
2034 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2035 | { (exit 1); exit 1; }; } | |
a2794549 | 2036 | fi |
2037 | ||
ad21602a | 2038 | # test whether we have cygpath |
2039 | if test -z "$CYGPATH_W"; then | |
2040 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2041 | CYGPATH_W='cygpath -w' | |
2042 | else | |
2043 | CYGPATH_W=echo | |
2044 | fi | |
2045 | fi | |
2046 | ||
2047 | ||
a2794549 | 2048 | # Define the identity of the package. |
25b6a907 | 2049 | PACKAGE='squid' |
505c100d | 2050 | VERSION='3.0.PRE4-CVS' |
ad21602a | 2051 | |
33f5f8b9 | 2052 | |
2053 | cat >>confdefs.h <<_ACEOF | |
a2794549 | 2054 | #define PACKAGE "$PACKAGE" |
33f5f8b9 | 2055 | _ACEOF |
2056 | ||
b65c7b0d | 2057 | |
33f5f8b9 | 2058 | cat >>confdefs.h <<_ACEOF |
a2794549 | 2059 | #define VERSION "$VERSION" |
33f5f8b9 | 2060 | _ACEOF |
a2794549 | 2061 | |
a2794549 | 2062 | # Some tools Automake needs. |
2063 | ||
ad21602a | 2064 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
a2794549 | 2065 | |
2066 | ||
2067 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2068 | ||
2069 | ||
ad21602a | 2070 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
a2794549 | 2071 | |
2072 | ||
2073 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2074 | ||
2075 | ||
2076 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2077 | ||
a2794549 | 2078 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
2079 | ||
ad21602a | 2080 | # Installed binaries are usually stripped using `strip' when the user |
2081 | # run `make install-strip'. However `strip' might not be the right | |
2082 | # tool to use in cross-compilation environments, therefore Automake | |
2083 | # will honor the `STRIP' environment variable to overrule this program. | |
2084 | if test "$cross_compiling" != no; then | |
2085 | if test -n "$ac_tool_prefix"; then | |
2086 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2087 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2088 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2089 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2090 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2092 | else | |
2093 | if test -n "$STRIP"; then | |
2094 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2095 | else | |
2096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2097 | for as_dir in $PATH | |
2098 | do | |
2099 | IFS=$as_save_IFS | |
2100 | test -z "$as_dir" && as_dir=. | |
2101 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2102 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2103 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2104 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2105 | break 2 | |
2106 | fi | |
2107 | done | |
2108 | done | |
2109 | ||
2110 | fi | |
2111 | fi | |
2112 | STRIP=$ac_cv_prog_STRIP | |
2113 | if test -n "$STRIP"; then | |
2114 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2115 | echo "${ECHO_T}$STRIP" >&6 | |
2116 | else | |
2117 | echo "$as_me:$LINENO: result: no" >&5 | |
2118 | echo "${ECHO_T}no" >&6 | |
2119 | fi | |
2120 | ||
2121 | fi | |
2122 | if test -z "$ac_cv_prog_STRIP"; then | |
2123 | ac_ct_STRIP=$STRIP | |
2124 | # Extract the first word of "strip", so it can be a program name with args. | |
2125 | set dummy strip; ac_word=$2 | |
2126 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2127 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2128 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2130 | else | |
2131 | if test -n "$ac_ct_STRIP"; then | |
2132 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2133 | else | |
2134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2135 | for as_dir in $PATH | |
2136 | do | |
2137 | IFS=$as_save_IFS | |
2138 | test -z "$as_dir" && as_dir=. | |
2139 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2140 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2141 | ac_cv_prog_ac_ct_STRIP="strip" | |
2142 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2143 | break 2 | |
2144 | fi | |
2145 | done | |
2146 | done | |
2147 | ||
2148 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
2149 | fi | |
2150 | fi | |
2151 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2152 | if test -n "$ac_ct_STRIP"; then | |
2153 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2154 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
2155 | else | |
2156 | echo "$as_me:$LINENO: result: no" >&5 | |
2157 | echo "${ECHO_T}no" >&6 | |
2158 | fi | |
2159 | ||
2160 | STRIP=$ac_ct_STRIP | |
2161 | else | |
2162 | STRIP="$ac_cv_prog_STRIP" | |
2163 | fi | |
2164 | ||
2165 | fi | |
a2794549 | 2166 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
2167 | ||
2168 | # We need awk for the "check" target. The system "awk" is bad on | |
2169 | # some platforms. | |
07d1f987 | 2170 | # Always define AMTAR for backward compatibility. |
2171 | ||
2172 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2173 | ||
25b6a907 | 2174 | |
2175 | echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5 | |
2176 | echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6 | |
2177 | # Loop over all known methods to create a tar archive until one works. | |
2178 | _am_tools='gnutar plaintar pax cpio none' | |
2179 | _am_tools=${am_cv_prog_tar_ustar-$_am_tools} | |
2180 | # Do not fold the above two line into one, because Tru64 sh and | |
2181 | # Solaris sh will not grok spaces in the rhs of `-'. | |
2182 | for _am_tool in $_am_tools | |
2183 | do | |
2184 | case $_am_tool in | |
2185 | gnutar) | |
2186 | for _am_tar in tar gnutar gtar; | |
2187 | do | |
2188 | { echo "$as_me:$LINENO: $_am_tar --version" >&5 | |
2189 | ($_am_tar --version) >&5 2>&5 | |
2190 | ac_status=$? | |
2191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2192 | (exit $ac_status); } && break | |
2193 | done | |
2194 | am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' | |
2195 | am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' | |
2196 | am__untar="$_am_tar -xf -" | |
2197 | ;; | |
2198 | plaintar) | |
2199 | # Must skip GNU tar: if it does not support --format= it doesn't create | |
2200 | # ustar tarball either. | |
2201 | (tar --version) >/dev/null 2>&1 && continue | |
2202 | am__tar='tar chf - "$$tardir"' | |
2203 | am__tar_='tar chf - "$tardir"' | |
2204 | am__untar='tar xf -' | |
2205 | ;; | |
2206 | pax) | |
2207 | am__tar='pax -L -x ustar -w "$$tardir"' | |
2208 | am__tar_='pax -L -x ustar -w "$tardir"' | |
2209 | am__untar='pax -r' | |
2210 | ;; | |
2211 | cpio) | |
2212 | am__tar='find "$$tardir" -print | cpio -o -H ustar -L' | |
2213 | am__tar_='find "$tardir" -print | cpio -o -H ustar -L' | |
2214 | am__untar='cpio -i -H ustar -d' | |
2215 | ;; | |
2216 | none) | |
2217 | am__tar=false | |
2218 | am__tar_=false | |
2219 | am__untar=false | |
2220 | ;; | |
2221 | esac | |
2222 | ||
2223 | # If the value was cached, stop now. We just wanted to have am__tar | |
2224 | # and am__untar set. | |
2225 | test -n "${am_cv_prog_tar_ustar}" && break | |
2226 | ||
2227 | # tar/untar a dummy directory, and stop if the command works | |
2228 | rm -rf conftest.dir | |
2229 | mkdir conftest.dir | |
2230 | echo GrepMe > conftest.dir/file | |
2231 | { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 | |
2232 | (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 | |
2233 | ac_status=$? | |
2234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2235 | (exit $ac_status); } | |
2236 | rm -rf conftest.dir | |
2237 | if test -s conftest.tar; then | |
2238 | { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 | |
2239 | ($am__untar <conftest.tar) >&5 2>&5 | |
2240 | ac_status=$? | |
2241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2242 | (exit $ac_status); } | |
2243 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
2244 | fi | |
2245 | done | |
2246 | rm -rf conftest.dir | |
2247 | ||
2248 | if test "${am_cv_prog_tar_ustar+set}" = set; then | |
2249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2250 | else | |
2251 | am_cv_prog_tar_ustar=$_am_tool | |
2252 | fi | |
2253 | ||
2254 | echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5 | |
2255 | echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6 | |
07d1f987 | 2256 | |
2257 | ||
a2794549 | 2258 | |
2259 | ||
a2794549 | 2260 | |
33f5f8b9 | 2261 | |
2262 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2263 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
b65c7b0d | 2264 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
2796fcd2 | 2265 | if test "${enable_maintainer_mode+set}" = set; then |
2266 | enableval="$enable_maintainer_mode" | |
2267 | USE_MAINTAINER_MODE=$enableval | |
2268 | else | |
2269 | USE_MAINTAINER_MODE=no | |
33f5f8b9 | 2270 | fi; |
2271 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
2272 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
2796fcd2 | 2273 | |
2796fcd2 | 2274 | |
2275 | if test $USE_MAINTAINER_MODE = yes; then | |
2276 | MAINTAINER_MODE_TRUE= | |
2277 | MAINTAINER_MODE_FALSE='#' | |
2278 | else | |
2279 | MAINTAINER_MODE_TRUE='#' | |
2280 | MAINTAINER_MODE_FALSE= | |
2281 | fi | |
ad21602a | 2282 | |
2796fcd2 | 2283 | MAINT=$MAINTAINER_MODE_TRUE |
33f5f8b9 | 2284 | |
2796fcd2 | 2285 | |
30a4f2a8 | 2286 | |
c65da457 | 2287 | PRESET_CFLAGS="$CFLAGS" |
2288 | PRESET_LDFLAGS="$LDFLAGS" | |
2289 | ||
30a4f2a8 | 2290 | if test -z "$LDFLAGS"; then |
a2794549 | 2291 | LDFLAGS="-g" |
30a4f2a8 | 2292 | fi |
2293 | ||
33f5f8b9 | 2294 | ac_ext=c |
2295 | ac_cpp='$CPP $CPPFLAGS' | |
2296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2299 | if test -n "$ac_tool_prefix"; then | |
2300 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2301 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2302 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2303 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2304 | if test "${ac_cv_prog_CC+set}" = set; then | |
2305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2306 | else | |
2307 | if test -n "$CC"; then | |
2308 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2309 | else | |
2310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2311 | for as_dir in $PATH | |
2312 | do | |
2313 | IFS=$as_save_IFS | |
2314 | test -z "$as_dir" && as_dir=. | |
2315 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2316 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2317 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2318 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2319 | break 2 | |
2320 | fi | |
2321 | done | |
2322 | done | |
2323 | ||
2324 | fi | |
2325 | fi | |
2326 | CC=$ac_cv_prog_CC | |
2327 | if test -n "$CC"; then | |
2328 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2329 | echo "${ECHO_T}$CC" >&6 | |
2330 | else | |
2331 | echo "$as_me:$LINENO: result: no" >&5 | |
2332 | echo "${ECHO_T}no" >&6 | |
2333 | fi | |
2334 | ||
2335 | fi | |
2336 | if test -z "$ac_cv_prog_CC"; then | |
2337 | ac_ct_CC=$CC | |
2338 | # Extract the first word of "gcc", so it can be a program name with args. | |
090089c4 | 2339 | set dummy gcc; ac_word=$2 |
33f5f8b9 | 2340 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2341 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2342 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2344 | else | |
2345 | if test -n "$ac_ct_CC"; then | |
2346 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2347 | else | |
2348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2349 | for as_dir in $PATH | |
2350 | do | |
2351 | IFS=$as_save_IFS | |
2352 | test -z "$as_dir" && as_dir=. | |
2353 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2354 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2355 | ac_cv_prog_ac_ct_CC="gcc" | |
2356 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2357 | break 2 | |
2358 | fi | |
2359 | done | |
2360 | done | |
2361 | ||
2362 | fi | |
2363 | fi | |
2364 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2365 | if test -n "$ac_ct_CC"; then | |
2366 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2367 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2368 | else | |
2369 | echo "$as_me:$LINENO: result: no" >&5 | |
2370 | echo "${ECHO_T}no" >&6 | |
2371 | fi | |
2372 | ||
2373 | CC=$ac_ct_CC | |
2374 | else | |
2375 | CC="$ac_cv_prog_CC" | |
2376 | fi | |
2377 | ||
2378 | if test -z "$CC"; then | |
2379 | if test -n "$ac_tool_prefix"; then | |
2380 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2381 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2382 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2383 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2384 | if test "${ac_cv_prog_CC+set}" = set; then | |
2385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
090089c4 | 2386 | else |
2387 | if test -n "$CC"; then | |
2388 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2389 | else | |
33f5f8b9 | 2390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2391 | for as_dir in $PATH | |
2392 | do | |
2393 | IFS=$as_save_IFS | |
2394 | test -z "$as_dir" && as_dir=. | |
2395 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2396 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2397 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2398 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2399 | break 2 | |
2400 | fi | |
2401 | done | |
2402 | done | |
2403 | ||
090089c4 | 2404 | fi |
2405 | fi | |
33f5f8b9 | 2406 | CC=$ac_cv_prog_CC |
090089c4 | 2407 | if test -n "$CC"; then |
33f5f8b9 | 2408 | echo "$as_me:$LINENO: result: $CC" >&5 |
2409 | echo "${ECHO_T}$CC" >&6 | |
2410 | else | |
2411 | echo "$as_me:$LINENO: result: no" >&5 | |
2412 | echo "${ECHO_T}no" >&6 | |
2413 | fi | |
2414 | ||
2415 | fi | |
2416 | if test -z "$ac_cv_prog_CC"; then | |
2417 | ac_ct_CC=$CC | |
2418 | # Extract the first word of "cc", so it can be a program name with args. | |
2419 | set dummy cc; ac_word=$2 | |
2420 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2421 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2422 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2424 | else | |
2425 | if test -n "$ac_ct_CC"; then | |
2426 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
090089c4 | 2427 | else |
33f5f8b9 | 2428 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2429 | for as_dir in $PATH | |
2430 | do | |
2431 | IFS=$as_save_IFS | |
2432 | test -z "$as_dir" && as_dir=. | |
2433 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2434 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2435 | ac_cv_prog_ac_ct_CC="cc" | |
2436 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2437 | break 2 | |
2438 | fi | |
2439 | done | |
2440 | done | |
2441 | ||
2442 | fi | |
2443 | fi | |
2444 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2445 | if test -n "$ac_ct_CC"; then | |
2446 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2447 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2448 | else | |
2449 | echo "$as_me:$LINENO: result: no" >&5 | |
2450 | echo "${ECHO_T}no" >&6 | |
090089c4 | 2451 | fi |
2452 | ||
33f5f8b9 | 2453 | CC=$ac_ct_CC |
2454 | else | |
2455 | CC="$ac_cv_prog_CC" | |
2456 | fi | |
2457 | ||
2458 | fi | |
03a0d3b0 | 2459 | if test -z "$CC"; then |
2460 | # Extract the first word of "cc", so it can be a program name with args. | |
2461 | set dummy cc; ac_word=$2 | |
33f5f8b9 | 2462 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2463 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2464 | if test "${ac_cv_prog_CC+set}" = set; then | |
2465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
03a0d3b0 | 2466 | else |
2467 | if test -n "$CC"; then | |
2468 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2469 | else | |
03a0d3b0 | 2470 | ac_prog_rejected=no |
33f5f8b9 | 2471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2472 | for as_dir in $PATH | |
2473 | do | |
2474 | IFS=$as_save_IFS | |
2475 | test -z "$as_dir" && as_dir=. | |
2476 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2477 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2478 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2479 | ac_prog_rejected=yes | |
2480 | continue | |
2481 | fi | |
2482 | ac_cv_prog_CC="cc" | |
2483 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2484 | break 2 | |
2485 | fi | |
2486 | done | |
2487 | done | |
2488 | ||
03a0d3b0 | 2489 | if test $ac_prog_rejected = yes; then |
2490 | # We found a bogon in the path, so make sure we never use it. | |
2491 | set dummy $ac_cv_prog_CC | |
2492 | shift | |
33f5f8b9 | 2493 | if test $# != 0; then |
03a0d3b0 | 2494 | # We chose a different compiler from the bogus one. |
2495 | # However, it has the same basename, so the bogon will be chosen | |
2496 | # first if we set CC to just the basename; use the full file name. | |
2497 | shift | |
ad21602a | 2498 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
03a0d3b0 | 2499 | fi |
2500 | fi | |
2501 | fi | |
2502 | fi | |
33f5f8b9 | 2503 | CC=$ac_cv_prog_CC |
03a0d3b0 | 2504 | if test -n "$CC"; then |
33f5f8b9 | 2505 | echo "$as_me:$LINENO: result: $CC" >&5 |
2506 | echo "${ECHO_T}$CC" >&6 | |
03a0d3b0 | 2507 | else |
33f5f8b9 | 2508 | echo "$as_me:$LINENO: result: no" >&5 |
2509 | echo "${ECHO_T}no" >&6 | |
03a0d3b0 | 2510 | fi |
2511 | ||
33f5f8b9 | 2512 | fi |
2513 | if test -z "$CC"; then | |
2514 | if test -n "$ac_tool_prefix"; then | |
2515 | for ac_prog in cl | |
2516 | do | |
2517 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2518 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2519 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2520 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2521 | if test "${ac_cv_prog_CC+set}" = set; then | |
2522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b7db09a3 | 2523 | else |
2524 | if test -n "$CC"; then | |
2525 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2526 | else | |
33f5f8b9 | 2527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2528 | for as_dir in $PATH | |
2529 | do | |
2530 | IFS=$as_save_IFS | |
2531 | test -z "$as_dir" && as_dir=. | |
2532 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2533 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2534 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2535 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2536 | break 2 | |
2537 | fi | |
2538 | done | |
2539 | done | |
2540 | ||
b7db09a3 | 2541 | fi |
2542 | fi | |
33f5f8b9 | 2543 | CC=$ac_cv_prog_CC |
b7db09a3 | 2544 | if test -n "$CC"; then |
33f5f8b9 | 2545 | echo "$as_me:$LINENO: result: $CC" >&5 |
2546 | echo "${ECHO_T}$CC" >&6 | |
b7db09a3 | 2547 | else |
33f5f8b9 | 2548 | echo "$as_me:$LINENO: result: no" >&5 |
2549 | echo "${ECHO_T}no" >&6 | |
b65c7b0d | 2550 | fi |
33f5f8b9 | 2551 | |
2552 | test -n "$CC" && break | |
2553 | done | |
2554 | fi | |
2555 | if test -z "$CC"; then | |
2556 | ac_ct_CC=$CC | |
2557 | for ac_prog in cl | |
2558 | do | |
2559 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2560 | set dummy $ac_prog; ac_word=$2 | |
2561 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2563 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2565 | else | |
2566 | if test -n "$ac_ct_CC"; then | |
2567 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2568 | else | |
2569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2570 | for as_dir in $PATH | |
2571 | do | |
2572 | IFS=$as_save_IFS | |
2573 | test -z "$as_dir" && as_dir=. | |
2574 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2575 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2576 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2577 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2578 | break 2 | |
b7db09a3 | 2579 | fi |
33f5f8b9 | 2580 | done |
2581 | done | |
2582 | ||
2583 | fi | |
2584 | fi | |
2585 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2586 | if test -n "$ac_ct_CC"; then | |
2587 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2588 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2589 | else | |
2590 | echo "$as_me:$LINENO: result: no" >&5 | |
2591 | echo "${ECHO_T}no" >&6 | |
b65c7b0d | 2592 | fi |
b1e77ec1 | 2593 | |
33f5f8b9 | 2594 | test -n "$ac_ct_CC" && break |
2595 | done | |
b1e77ec1 | 2596 | |
33f5f8b9 | 2597 | CC=$ac_ct_CC |
2598 | fi | |
2599 | ||
2600 | fi | |
b7db09a3 | 2601 | |
b65c7b0d | 2602 | |
ad21602a | 2603 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2604 | See \`config.log' for more details." >&5 | |
2605 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2606 | See \`config.log' for more details." >&2;} | |
33f5f8b9 | 2607 | { (exit 1); exit 1; }; } |
2608 | ||
2609 | # Provide some information about the compiler. | |
2610 | echo "$as_me:$LINENO:" \ | |
2611 | "checking for C compiler version" >&5 | |
2612 | ac_compiler=`set X $ac_compile; echo $2` | |
2613 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2614 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2615 | ac_status=$? | |
2616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2617 | (exit $ac_status); } | |
2618 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2619 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2620 | ac_status=$? | |
2621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2622 | (exit $ac_status); } | |
2623 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2624 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2625 | ac_status=$? | |
2626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2627 | (exit $ac_status); } | |
2628 | ||
2629 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 2630 | /* confdefs.h. */ |
2631 | _ACEOF | |
2632 | cat confdefs.h >>conftest.$ac_ext | |
2633 | cat >>conftest.$ac_ext <<_ACEOF | |
2634 | /* end confdefs.h. */ | |
b7db09a3 | 2635 | |
33f5f8b9 | 2636 | int |
2637 | main () | |
2638 | { | |
2639 | ||
2640 | ; | |
2641 | return 0; | |
2642 | } | |
2643 | _ACEOF | |
2644 | ac_clean_files_save=$ac_clean_files | |
ad21602a | 2645 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
33f5f8b9 | 2646 | # Try to create an executable without -o first, disregard a.out. |
2647 | # It will help us diagnose broken compilers, and finding out an intuition | |
2648 | # of exeext. | |
af3004ff | 2649 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2650 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
33f5f8b9 | 2651 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2652 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2653 | (eval $ac_link_default) 2>&5 | |
2654 | ac_status=$? | |
2655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2656 | (exit $ac_status); }; then | |
2657 | # Find the output, starting from the most likely. This scheme is | |
2658 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2659 | # resort. | |
2660 | ||
2661 | # Be careful to initialize this variable, since it used to be cached. | |
2662 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2663 | ac_cv_exeext= | |
ad21602a | 2664 | # b.out is created by i960 compilers. |
2665 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2666 | do | |
2667 | test -f "$ac_file" || continue | |
33f5f8b9 | 2668 | case $ac_file in |
ad21602a | 2669 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
af3004ff | 2670 | ;; |
ad21602a | 2671 | conftest.$ac_ext ) |
af3004ff | 2672 | # This is the source file. |
2673 | ;; | |
ad21602a | 2674 | [ab].out ) |
af3004ff | 2675 | # We found the default executable, but exeext='' is most |
2676 | # certainly right. | |
2677 | break;; | |
ad21602a | 2678 | *.* ) |
af3004ff | 2679 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2680 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2681 | # but it would be cool to find out if it's true. Does anybody | |
2682 | # maintain Libtool? --akim. | |
2683 | export ac_cv_exeext | |
2684 | break;; | |
ad21602a | 2685 | * ) |
af3004ff | 2686 | break;; |
33f5f8b9 | 2687 | esac |
2688 | done | |
2689 | else | |
2690 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 2691 | sed 's/^/| /' conftest.$ac_ext >&5 |
2692 | ||
2693 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2694 | See \`config.log' for more details." >&5 | |
2695 | echo "$as_me: error: C compiler cannot create executables | |
2696 | See \`config.log' for more details." >&2;} | |
33f5f8b9 | 2697 | { (exit 77); exit 77; }; } |
2698 | fi | |
2699 | ||
2700 | ac_exeext=$ac_cv_exeext | |
2701 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2702 | echo "${ECHO_T}$ac_file" >&6 | |
2703 | ||
2704 | # Check the compiler produces executables we can run. If not, either | |
2705 | # the compiler is broken, or we cross compile. | |
2706 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2707 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2708 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2709 | # If not cross compiling, check that we can run a simple program. | |
2710 | if test "$cross_compiling" != yes; then | |
2711 | if { ac_try='./$ac_file' | |
2712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2713 | (eval $ac_try) 2>&5 | |
2714 | ac_status=$? | |
2715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2716 | (exit $ac_status); }; }; then | |
2717 | cross_compiling=no | |
133b6d90 | 2718 | else |
33f5f8b9 | 2719 | if test "$cross_compiling" = maybe; then |
2720 | cross_compiling=yes | |
2721 | else | |
2722 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
ad21602a | 2723 | If you meant to cross compile, use \`--host'. |
2724 | See \`config.log' for more details." >&5 | |
33f5f8b9 | 2725 | echo "$as_me: error: cannot run C compiled programs. |
ad21602a | 2726 | If you meant to cross compile, use \`--host'. |
2727 | See \`config.log' for more details." >&2;} | |
33f5f8b9 | 2728 | { (exit 1); exit 1; }; } |
2729 | fi | |
133b6d90 | 2730 | fi |
33f5f8b9 | 2731 | fi |
2732 | echo "$as_me:$LINENO: result: yes" >&5 | |
2733 | echo "${ECHO_T}yes" >&6 | |
2734 | ||
ad21602a | 2735 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
33f5f8b9 | 2736 | ac_clean_files=$ac_clean_files_save |
2737 | # Check the compiler produces executables we can run. If not, either | |
2738 | # the compiler is broken, or we cross compile. | |
2739 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2740 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2741 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2742 | echo "${ECHO_T}$cross_compiling" >&6 | |
2743 | ||
2744 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2745 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2746 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2747 | (eval $ac_link) 2>&5 | |
2748 | ac_status=$? | |
2749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2750 | (exit $ac_status); }; then | |
2751 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2752 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2753 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2754 | # `rm'. | |
ad21602a | 2755 | for ac_file in conftest.exe conftest conftest.*; do |
2756 | test -f "$ac_file" || continue | |
33f5f8b9 | 2757 | case $ac_file in |
ad21602a | 2758 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
33f5f8b9 | 2759 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
af3004ff | 2760 | export ac_cv_exeext |
2761 | break;; | |
33f5f8b9 | 2762 | * ) break;; |
2763 | esac | |
2764 | done | |
b1e77ec1 | 2765 | else |
ad21602a | 2766 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2767 | See \`config.log' for more details." >&5 | |
2768 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2769 | See \`config.log' for more details." >&2;} | |
33f5f8b9 | 2770 | { (exit 1); exit 1; }; } |
b1e77ec1 | 2771 | fi |
b1e77ec1 | 2772 | |
33f5f8b9 | 2773 | rm -f conftest$ac_cv_exeext |
2774 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2775 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
b1e77ec1 | 2776 | |
33f5f8b9 | 2777 | rm -f conftest.$ac_ext |
2778 | EXEEXT=$ac_cv_exeext | |
2779 | ac_exeext=$EXEEXT | |
2780 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2781 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2782 | if test "${ac_cv_objext+set}" = set; then | |
2783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
090089c4 | 2784 | else |
33f5f8b9 | 2785 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 2786 | /* confdefs.h. */ |
2787 | _ACEOF | |
2788 | cat confdefs.h >>conftest.$ac_ext | |
2789 | cat >>conftest.$ac_ext <<_ACEOF | |
2790 | /* end confdefs.h. */ | |
33f5f8b9 | 2791 | |
33f5f8b9 | 2792 | int |
2793 | main () | |
2794 | { | |
2795 | ||
2796 | ; | |
2797 | return 0; | |
2798 | } | |
2799 | _ACEOF | |
2800 | rm -f conftest.o conftest.obj | |
2801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2802 | (eval $ac_compile) 2>&5 | |
2803 | ac_status=$? | |
2804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2805 | (exit $ac_status); }; then | |
2806 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2807 | case $ac_file in | |
ad21602a | 2808 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
33f5f8b9 | 2809 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2810 | break;; | |
2811 | esac | |
2812 | done | |
090089c4 | 2813 | else |
33f5f8b9 | 2814 | echo "$as_me: failed program was:" >&5 |
ad21602a | 2815 | sed 's/^/| /' conftest.$ac_ext >&5 |
2816 | ||
2817 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2818 | See \`config.log' for more details." >&5 | |
2819 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2820 | See \`config.log' for more details." >&2;} | |
33f5f8b9 | 2821 | { (exit 1); exit 1; }; } |
090089c4 | 2822 | fi |
33f5f8b9 | 2823 | |
2824 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
090089c4 | 2825 | fi |
33f5f8b9 | 2826 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2827 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2828 | OBJEXT=$ac_cv_objext | |
2829 | ac_objext=$OBJEXT | |
2830 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2831 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2832 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2834 | else | |
2835 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 2836 | /* confdefs.h. */ |
2837 | _ACEOF | |
2838 | cat confdefs.h >>conftest.$ac_ext | |
2839 | cat >>conftest.$ac_ext <<_ACEOF | |
2840 | /* end confdefs.h. */ | |
090089c4 | 2841 | |
33f5f8b9 | 2842 | int |
2843 | main () | |
2844 | { | |
2845 | #ifndef __GNUC__ | |
2846 | choke me | |
2847 | #endif | |
b7db09a3 | 2848 | |
33f5f8b9 | 2849 | ; |
2850 | return 0; | |
2851 | } | |
2852 | _ACEOF | |
2853 | rm -f conftest.$ac_objext | |
2854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 2855 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 2856 | ac_status=$? |
af3004ff | 2857 | grep -v '^ *+' conftest.er1 >conftest.err |
2858 | rm -f conftest.er1 | |
2859 | cat conftest.err >&5 | |
33f5f8b9 | 2860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2861 | (exit $ac_status); } && | |
6263d81f | 2862 | { ac_try='test -z "$ac_c_werror_flag" |
2863 | || test ! -s conftest.err' | |
af3004ff | 2864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2865 | (eval $ac_try) 2>&5 | |
2866 | ac_status=$? | |
2867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2868 | (exit $ac_status); }; } && | |
2869 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 2870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2871 | (eval $ac_try) 2>&5 | |
2872 | ac_status=$? | |
2873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2874 | (exit $ac_status); }; }; then | |
2875 | ac_compiler_gnu=yes | |
2876 | else | |
2877 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 2878 | sed 's/^/| /' conftest.$ac_ext >&5 |
2879 | ||
33f5f8b9 | 2880 | ac_compiler_gnu=no |
2881 | fi | |
af3004ff | 2882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 2883 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2884 | ||
2885 | fi | |
2886 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2887 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2888 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2889 | ac_test_CFLAGS=${CFLAGS+set} | |
2890 | ac_save_CFLAGS=$CFLAGS | |
2891 | CFLAGS="-g" | |
2892 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2893 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2894 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2896 | else | |
2897 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 2898 | /* confdefs.h. */ |
2899 | _ACEOF | |
2900 | cat confdefs.h >>conftest.$ac_ext | |
2901 | cat >>conftest.$ac_ext <<_ACEOF | |
2902 | /* end confdefs.h. */ | |
b65c7b0d | 2903 | |
33f5f8b9 | 2904 | int |
2905 | main () | |
2906 | { | |
2907 | ||
2908 | ; | |
2909 | return 0; | |
2910 | } | |
2911 | _ACEOF | |
2912 | rm -f conftest.$ac_objext | |
2913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 2914 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 2915 | ac_status=$? |
af3004ff | 2916 | grep -v '^ *+' conftest.er1 >conftest.err |
2917 | rm -f conftest.er1 | |
2918 | cat conftest.err >&5 | |
33f5f8b9 | 2919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2920 | (exit $ac_status); } && | |
6263d81f | 2921 | { ac_try='test -z "$ac_c_werror_flag" |
2922 | || test ! -s conftest.err' | |
af3004ff | 2923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2924 | (eval $ac_try) 2>&5 | |
2925 | ac_status=$? | |
2926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2927 | (exit $ac_status); }; } && | |
2928 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 2929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2930 | (eval $ac_try) 2>&5 | |
2931 | ac_status=$? | |
2932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2933 | (exit $ac_status); }; }; then | |
133b6d90 | 2934 | ac_cv_prog_cc_g=yes |
090089c4 | 2935 | else |
33f5f8b9 | 2936 | echo "$as_me: failed program was:" >&5 |
ad21602a | 2937 | sed 's/^/| /' conftest.$ac_ext >&5 |
2938 | ||
33f5f8b9 | 2939 | ac_cv_prog_cc_g=no |
090089c4 | 2940 | fi |
af3004ff | 2941 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
090089c4 | 2942 | fi |
33f5f8b9 | 2943 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2944 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
b7db09a3 | 2945 | if test "$ac_test_CFLAGS" = set; then |
33f5f8b9 | 2946 | CFLAGS=$ac_save_CFLAGS |
b7db09a3 | 2947 | elif test $ac_cv_prog_cc_g = yes; then |
2948 | if test "$GCC" = yes; then | |
b1e77ec1 | 2949 | CFLAGS="-g -O2" |
2950 | else | |
b7db09a3 | 2951 | CFLAGS="-g" |
090089c4 | 2952 | fi |
2953 | else | |
b7db09a3 | 2954 | if test "$GCC" = yes; then |
2955 | CFLAGS="-O2" | |
2956 | else | |
2957 | CFLAGS= | |
2958 | fi | |
090089c4 | 2959 | fi |
ad21602a | 2960 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2961 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2962 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2964 | else | |
2965 | ac_cv_prog_cc_stdc=no | |
2966 | ac_save_CC=$CC | |
33f5f8b9 | 2967 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 2968 | /* confdefs.h. */ |
658d5a21 | 2969 | _ACEOF |
ad21602a | 2970 | cat confdefs.h >>conftest.$ac_ext |
2971 | cat >>conftest.$ac_ext <<_ACEOF | |
2972 | /* end confdefs.h. */ | |
2973 | #include <stdarg.h> | |
2974 | #include <stdio.h> | |
2975 | #include <sys/types.h> | |
2976 | #include <sys/stat.h> | |
2977 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2978 | struct buf { int x; }; | |
2979 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2980 | static char *e (p, i) | |
2981 | char **p; | |
2982 | int i; | |
2983 | { | |
2984 | return p[i]; | |
2985 | } | |
2986 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2987 | { | |
2988 | char *s; | |
2989 | va_list v; | |
2990 | va_start (v,p); | |
2991 | s = g (p, va_arg (v,int)); | |
2992 | va_end (v); | |
2993 | return s; | |
2994 | } | |
af3004ff | 2995 | |
2996 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2997 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2998 | These don't provoke an error unfortunately, instead are silently treated | |
2999 | as 'x'. The following induces an error, until -std1 is added to get | |
3000 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3001 | array size at least. It's necessary to write '\x00'==0 to get something | |
3002 | that's true only with -std1. */ | |
3003 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3004 | ||
ad21602a | 3005 | int test (int i, double x); |
3006 | struct s1 {int (*f) (int a);}; | |
3007 | struct s2 {int (*f) (double a);}; | |
3008 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3009 | int argc; | |
3010 | char **argv; | |
3011 | int | |
3012 | main () | |
3013 | { | |
3014 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3015 | ; | |
3016 | return 0; | |
3017 | } | |
3018 | _ACEOF | |
3019 | # Don't try gcc -ansi; that turns off useful extensions and | |
3020 | # breaks some systems' header files. | |
3021 | # AIX -qlanglvl=ansi | |
3022 | # Ultrix and OSF/1 -std1 | |
3023 | # HP-UX 10.20 and later -Ae | |
3024 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3025 | # SVR4 -Xc -D__EXTENSIONS__ | |
3026 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3027 | do | |
3028 | CC="$ac_save_CC $ac_arg" | |
3029 | rm -f conftest.$ac_objext | |
658d5a21 | 3030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
af3004ff | 3031 | (eval $ac_compile) 2>conftest.er1 |
658d5a21 | 3032 | ac_status=$? |
af3004ff | 3033 | grep -v '^ *+' conftest.er1 >conftest.err |
3034 | rm -f conftest.er1 | |
3035 | cat conftest.err >&5 | |
658d5a21 | 3036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3037 | (exit $ac_status); } && | |
6263d81f | 3038 | { ac_try='test -z "$ac_c_werror_flag" |
3039 | || test ! -s conftest.err' | |
af3004ff | 3040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3041 | (eval $ac_try) 2>&5 | |
3042 | ac_status=$? | |
3043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3044 | (exit $ac_status); }; } && | |
3045 | { ac_try='test -s conftest.$ac_objext' | |
658d5a21 | 3046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3047 | (eval $ac_try) 2>&5 | |
3048 | ac_status=$? | |
3049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3050 | (exit $ac_status); }; }; then | |
ad21602a | 3051 | ac_cv_prog_cc_stdc=$ac_arg |
3052 | break | |
3053 | else | |
3054 | echo "$as_me: failed program was:" >&5 | |
3055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3056 | ||
3057 | fi | |
af3004ff | 3058 | rm -f conftest.err conftest.$ac_objext |
ad21602a | 3059 | done |
3060 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3061 | CC=$ac_save_CC | |
3062 | ||
3063 | fi | |
3064 | ||
3065 | case "x$ac_cv_prog_cc_stdc" in | |
3066 | x|xno) | |
3067 | echo "$as_me:$LINENO: result: none needed" >&5 | |
3068 | echo "${ECHO_T}none needed" >&6 ;; | |
3069 | *) | |
3070 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
3071 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
3072 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3073 | esac | |
3074 | ||
3075 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
3076 | # in C++ we need to declare it. In case someone uses the same compiler | |
3077 | # for both compiling C and C++ we need to have the C++ compiler decide | |
3078 | # the declaration of exit, since it's the most demanding environment. | |
3079 | cat >conftest.$ac_ext <<_ACEOF | |
3080 | #ifndef __cplusplus | |
3081 | choke me | |
8b036616 | 3082 | #endif |
ad21602a | 3083 | _ACEOF |
3084 | rm -f conftest.$ac_objext | |
3085 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 3086 | (eval $ac_compile) 2>conftest.er1 |
ad21602a | 3087 | ac_status=$? |
af3004ff | 3088 | grep -v '^ *+' conftest.er1 >conftest.err |
3089 | rm -f conftest.er1 | |
3090 | cat conftest.err >&5 | |
ad21602a | 3091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3092 | (exit $ac_status); } && | |
6263d81f | 3093 | { ac_try='test -z "$ac_c_werror_flag" |
3094 | || test ! -s conftest.err' | |
af3004ff | 3095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3096 | (eval $ac_try) 2>&5 | |
3097 | ac_status=$? | |
3098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3099 | (exit $ac_status); }; } && | |
3100 | { ac_try='test -s conftest.$ac_objext' | |
ad21602a | 3101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3102 | (eval $ac_try) 2>&5 | |
3103 | ac_status=$? | |
3104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3105 | (exit $ac_status); }; }; then | |
3106 | for ac_declaration in \ | |
af3004ff | 3107 | '' \ |
ad21602a | 3108 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
3109 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3110 | 'extern "C" void exit (int) throw ();' \ | |
3111 | 'extern "C" void exit (int);' \ | |
3112 | 'void exit (int);' | |
3113 | do | |
3114 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 3115 | /* confdefs.h. */ |
3116 | _ACEOF | |
3117 | cat confdefs.h >>conftest.$ac_ext | |
3118 | cat >>conftest.$ac_ext <<_ACEOF | |
3119 | /* end confdefs.h. */ | |
a33e1d91 | 3120 | $ac_declaration |
af3004ff | 3121 | #include <stdlib.h> |
dd0004a0 | 3122 | int |
3123 | main () | |
2f44bd34 | 3124 | { |
3125 | exit (42); | |
3126 | ; | |
3127 | return 0; | |
3128 | } | |
3129 | _ACEOF | |
3130 | rm -f conftest.$ac_objext | |
3131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 3132 | (eval $ac_compile) 2>conftest.er1 |
2f44bd34 | 3133 | ac_status=$? |
af3004ff | 3134 | grep -v '^ *+' conftest.er1 >conftest.err |
3135 | rm -f conftest.er1 | |
3136 | cat conftest.err >&5 | |
2f44bd34 | 3137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3138 | (exit $ac_status); } && | |
6263d81f | 3139 | { ac_try='test -z "$ac_c_werror_flag" |
3140 | || test ! -s conftest.err' | |
af3004ff | 3141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3142 | (eval $ac_try) 2>&5 | |
3143 | ac_status=$? | |
3144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3145 | (exit $ac_status); }; } && | |
3146 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 3147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3148 | (eval $ac_try) 2>&5 | |
3149 | ac_status=$? | |
3150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3151 | (exit $ac_status); }; }; then | |
3152 | : | |
3153 | else | |
3154 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 3155 | sed 's/^/| /' conftest.$ac_ext >&5 |
3156 | ||
33f5f8b9 | 3157 | continue |
3158 | fi | |
af3004ff | 3159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 3160 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 3161 | /* confdefs.h. */ |
3162 | _ACEOF | |
3163 | cat confdefs.h >>conftest.$ac_ext | |
3164 | cat >>conftest.$ac_ext <<_ACEOF | |
3165 | /* end confdefs.h. */ | |
33f5f8b9 | 3166 | $ac_declaration |
33f5f8b9 | 3167 | int |
3168 | main () | |
3169 | { | |
3170 | exit (42); | |
3171 | ; | |
3172 | return 0; | |
3173 | } | |
3174 | _ACEOF | |
3175 | rm -f conftest.$ac_objext | |
3176 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 3177 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 3178 | ac_status=$? |
af3004ff | 3179 | grep -v '^ *+' conftest.er1 >conftest.err |
3180 | rm -f conftest.er1 | |
3181 | cat conftest.err >&5 | |
33f5f8b9 | 3182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3183 | (exit $ac_status); } && | |
6263d81f | 3184 | { ac_try='test -z "$ac_c_werror_flag" |
3185 | || test ! -s conftest.err' | |
af3004ff | 3186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3187 | (eval $ac_try) 2>&5 | |
3188 | ac_status=$? | |
3189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3190 | (exit $ac_status); }; } && | |
3191 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 3192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3193 | (eval $ac_try) 2>&5 | |
3194 | ac_status=$? | |
3195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3196 | (exit $ac_status); }; }; then | |
3197 | break | |
3198 | else | |
3199 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 3200 | sed 's/^/| /' conftest.$ac_ext >&5 |
3201 | ||
33f5f8b9 | 3202 | fi |
af3004ff | 3203 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 3204 | done |
3205 | rm -f conftest* | |
3206 | if test -n "$ac_declaration"; then | |
3207 | echo '#ifdef __cplusplus' >>confdefs.h | |
3208 | echo $ac_declaration >>confdefs.h | |
3209 | echo '#endif' >>confdefs.h | |
3210 | fi | |
3211 | ||
3212 | else | |
3213 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 3214 | sed 's/^/| /' conftest.$ac_ext >&5 |
3215 | ||
33f5f8b9 | 3216 | fi |
af3004ff | 3217 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 3218 | ac_ext=c |
3219 | ac_cpp='$CPP $CPPFLAGS' | |
3220 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3221 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3222 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ad21602a | 3223 | DEPDIR="${am__leading_dot}deps" |
3224 | ||
3225 | ac_config_commands="$ac_config_commands depfiles" | |
090089c4 | 3226 | |
3227 | ||
a2794549 | 3228 | am_make=${MAKE-make} |
3229 | cat > confinc << 'END' | |
07d1f987 | 3230 | am__doit: |
a2794549 | 3231 | @echo done |
07d1f987 | 3232 | .PHONY: am__doit |
a2794549 | 3233 | END |
3234 | # If we don't find an include directive, just comment out the code. | |
33f5f8b9 | 3235 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3236 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
ad21602a | 3237 | am__include="#" |
a2794549 | 3238 | am__quote= |
3239 | _am_result=none | |
3240 | # First try GNU make style include. | |
3241 | echo "include confinc" > confmf | |
3242 | # We grep out `Entering directory' and `Leaving directory' | |
3243 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
3244 | # In particular we don't look at `^make:' because GNU make might | |
3245 | # be invoked under some other name (usually "gmake"), in which | |
3246 | # case it prints its new name instead of `make'. | |
ad21602a | 3247 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
a2794549 | 3248 | am__include=include |
3249 | am__quote= | |
3250 | _am_result=GNU | |
3251 | fi | |
3252 | # Now try BSD make style include. | |
3253 | if test "$am__include" = "#"; then | |
3254 | echo '.include "confinc"' > confmf | |
3255 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
3256 | am__include=.include | |
ad21602a | 3257 | am__quote="\"" |
a2794549 | 3258 | _am_result=BSD |
3259 | fi | |
3260 | fi | |
3261 | ||
3262 | ||
332dafa2 | 3263 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
3264 | echo "${ECHO_T}$_am_result" >&6 | |
3265 | rm -f confinc confmf | |
3266 | ||
ad21602a | 3267 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
3268 | if test "${enable_dependency_tracking+set}" = set; then | |
3269 | enableval="$enable_dependency_tracking" | |
3270 | ||
3271 | fi; | |
3272 | if test "x$enable_dependency_tracking" != xno; then | |
3273 | am_depcomp="$ac_aux_dir/depcomp" | |
3274 | AMDEPBACKSLASH='\' | |
3275 | fi | |
3276 | ||
3277 | ||
3278 | if test "x$enable_dependency_tracking" != xno; then | |
3279 | AMDEP_TRUE= | |
3280 | AMDEP_FALSE='#' | |
3281 | else | |
3282 | AMDEP_TRUE='#' | |
3283 | AMDEP_FALSE= | |
3284 | fi | |
3285 | ||
3286 | ||
3287 | ||
a2794549 | 3288 | |
3289 | depcc="$CC" am_compiler_list= | |
3290 | ||
33f5f8b9 | 3291 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3292 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3293 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a2794549 | 3295 | else |
3296 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3297 | # We make a subdir and do the tests there. Otherwise we can end up | |
3298 | # making bogus files that we don't know about and never remove. For | |
3299 | # instance it was reported that on HP-UX the gcc test will end up | |
3300 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3301 | # in D'. | |
3302 | mkdir conftest.dir | |
3303 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3304 | # using a relative directory. | |
3305 | cp "$am_depcomp" conftest.dir | |
3306 | cd conftest.dir | |
07d1f987 | 3307 | # We will build objects and dependencies in a subdirectory because |
3308 | # it helps to detect inapplicable dependency modes. For instance | |
3309 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3310 | # side effect of compilation, but ICC will put the dependencies in | |
3311 | # the current directory while Tru64 will put them in the object | |
3312 | # directory. | |
3313 | mkdir sub | |
a2794549 | 3314 | |
3315 | am_cv_CC_dependencies_compiler_type=none | |
3316 | if test "$am_compiler_list" = ""; then | |
3317 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3318 | fi | |
3319 | for depmode in $am_compiler_list; do | |
07d1f987 | 3320 | # Setup a source with many dependencies, because some compilers |
3321 | # like to wrap large dependency lists on column 80 (with \), and | |
3322 | # we should not choose a depcomp mode which is confused by this. | |
3323 | # | |
a2794549 | 3324 | # We need to recreate these files for each test, as the compiler may |
3325 | # overwrite some of them when testing with obscure command lines. | |
3326 | # This happens at least with the AIX C compiler. | |
07d1f987 | 3327 | : > sub/conftest.c |
3328 | for i in 1 2 3 4 5 6; do | |
3329 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3330 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3331 | # Solaris 8's {/usr,}/bin/sh. | |
3332 | touch sub/conftst$i.h | |
3333 | done | |
3334 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
a2794549 | 3335 | |
3336 | case $depmode in | |
3337 | nosideeffect) | |
3338 | # after this tag, mechanisms are not by side-effect, so they'll | |
3339 | # only be used when explicitly requested | |
3340 | if test "x$enable_dependency_tracking" = xyes; then | |
3341 | continue | |
3342 | else | |
3343 | break | |
3344 | fi | |
3345 | ;; | |
3346 | none) break ;; | |
3347 | esac | |
3348 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3349 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3350 | # handle `-M -o', and we need to detect this. | |
3351 | if depmode=$depmode \ | |
07d1f987 | 3352 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3353 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3354 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
ad21602a | 3355 | >/dev/null 2>conftest.err && |
07d1f987 | 3356 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3357 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
a2794549 | 3358 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
ad21602a | 3359 | # icc doesn't choke on unknown options, it will just issue warnings |
07d1f987 | 3360 | # or remarks (even with -Werror). So we grep stderr for any message |
3361 | # that says an option was ignored or not supported. | |
3362 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3363 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3364 | # The diagnosis changed in icc 8.0: | |
3365 | # icc: Command line remark: option '-MP' not supported | |
3366 | if (grep 'ignoring option' conftest.err || | |
3367 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
ad21602a | 3368 | am_cv_CC_dependencies_compiler_type=$depmode |
3369 | break | |
3370 | fi | |
a2794549 | 3371 | fi |
3372 | done | |
3373 | ||
3374 | cd .. | |
3375 | rm -rf conftest.dir | |
3376 | else | |
3377 | am_cv_CC_dependencies_compiler_type=none | |
3378 | fi | |
3379 | ||
3380 | fi | |
33f5f8b9 | 3381 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3382 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
ad21602a | 3383 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3384 | ||
3385 | ||
3386 | ||
3387 | if | |
3388 | test "x$enable_dependency_tracking" != xno \ | |
3389 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3390 | am__fastdepCC_TRUE= | |
3391 | am__fastdepCC_FALSE='#' | |
3392 | else | |
3393 | am__fastdepCC_TRUE='#' | |
3394 | am__fastdepCC_FALSE= | |
3395 | fi | |
a2794549 | 3396 | |
3397 | ||
cec01b94 | 3398 | if test "x$CC" != xcc; then |
3399 | echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 | |
3400 | echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6 | |
3401 | else | |
3402 | echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 | |
3403 | echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6 | |
3404 | fi | |
3405 | set dummy $CC; ac_cc=`echo $2 | | |
3406 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
3407 | if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then | |
3408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3409 | else | |
3410 | cat >conftest.$ac_ext <<_ACEOF | |
3411 | /* confdefs.h. */ | |
3412 | _ACEOF | |
3413 | cat confdefs.h >>conftest.$ac_ext | |
3414 | cat >>conftest.$ac_ext <<_ACEOF | |
3415 | /* end confdefs.h. */ | |
3416 | ||
3417 | int | |
3418 | main () | |
3419 | { | |
3420 | ||
3421 | ; | |
3422 | return 0; | |
3423 | } | |
3424 | _ACEOF | |
3425 | # Make sure it works both with $CC and with simple cc. | |
3426 | # We do the test twice because some compilers refuse to overwrite an | |
3427 | # existing .o file with -o, though they will create one. | |
3428 | ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5' | |
3429 | if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3430 | (eval $ac_try) 2>&5 | |
3431 | ac_status=$? | |
3432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3433 | (exit $ac_status); } && | |
3434 | test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3435 | (eval $ac_try) 2>&5 | |
3436 | ac_status=$? | |
3437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3438 | (exit $ac_status); }; | |
3439 | then | |
3440 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
3441 | if test "x$CC" != xcc; then | |
3442 | # Test first that cc exists at all. | |
3443 | if { ac_try='cc -c conftest.$ac_ext >&5' | |
3444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3445 | (eval $ac_try) 2>&5 | |
3446 | ac_status=$? | |
3447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3448 | (exit $ac_status); }; }; then | |
3449 | ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5' | |
3450 | if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3451 | (eval $ac_try) 2>&5 | |
3452 | ac_status=$? | |
3453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3454 | (exit $ac_status); } && | |
3455 | test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3456 | (eval $ac_try) 2>&5 | |
3457 | ac_status=$? | |
3458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3459 | (exit $ac_status); }; | |
3460 | then | |
3461 | # cc works too. | |
3462 | : | |
3463 | else | |
3464 | # cc exists but doesn't like -o. | |
3465 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
3466 | fi | |
3467 | fi | |
3468 | fi | |
3469 | else | |
3470 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
3471 | fi | |
3472 | rm -f conftest* | |
3473 | ||
3474 | fi | |
3475 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then | |
3476 | echo "$as_me:$LINENO: result: yes" >&5 | |
3477 | echo "${ECHO_T}yes" >&6 | |
3478 | else | |
3479 | echo "$as_me:$LINENO: result: no" >&5 | |
3480 | echo "${ECHO_T}no" >&6 | |
3481 | ||
3482 | cat >>confdefs.h <<\_ACEOF | |
3483 | #define NO_MINUS_C_MINUS_O 1 | |
3484 | _ACEOF | |
3485 | ||
3486 | fi | |
3487 | ||
3488 | # FIXME: we rely on the cache variable name because | |
3489 | # there is no other way. | |
3490 | set dummy $CC | |
3491 | ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
3492 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then | |
3493 | # Losing compiler, so override with the script. | |
3494 | # FIXME: It is wrong to rewrite CC. | |
3495 | # But if we don't then we get into trouble of one sort or another. | |
3496 | # A longer-term fix would be to have automake use am__CC in this case, | |
3497 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3498 | CC="$am_aux_dir/compile $CC" | |
3499 | fi | |
3500 | ||
c4b0db82 | 3501 | ac_ext=c |
c4b0db82 | 3502 | ac_cpp='$CPP $CPPFLAGS' |
33f5f8b9 | 3503 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3504 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3505 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29b8d8d6 | 3506 | |
33f5f8b9 | 3507 | ac_ext=cc |
3508 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3509 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3510 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3511 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3512 | if test -n "$ac_tool_prefix"; then | |
3513 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
3514 | do | |
3515 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3516 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3517 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3518 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3519 | if test "${ac_cv_prog_CXX+set}" = set; then | |
3520 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29b8d8d6 | 3521 | else |
3522 | if test -n "$CXX"; then | |
3523 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3524 | else | |
33f5f8b9 | 3525 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3526 | for as_dir in $PATH | |
3527 | do | |
3528 | IFS=$as_save_IFS | |
3529 | test -z "$as_dir" && as_dir=. | |
3530 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3531 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3532 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
3533 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3534 | break 2 | |
3535 | fi | |
3536 | done | |
3537 | done | |
3538 | ||
29b8d8d6 | 3539 | fi |
3540 | fi | |
33f5f8b9 | 3541 | CXX=$ac_cv_prog_CXX |
29b8d8d6 | 3542 | if test -n "$CXX"; then |
33f5f8b9 | 3543 | echo "$as_me:$LINENO: result: $CXX" >&5 |
3544 | echo "${ECHO_T}$CXX" >&6 | |
29b8d8d6 | 3545 | else |
33f5f8b9 | 3546 | echo "$as_me:$LINENO: result: no" >&5 |
3547 | echo "${ECHO_T}no" >&6 | |
29b8d8d6 | 3548 | fi |
3549 | ||
33f5f8b9 | 3550 | test -n "$CXX" && break |
3551 | done | |
3552 | fi | |
3553 | if test -z "$CXX"; then | |
3554 | ac_ct_CXX=$CXX | |
3555 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
3556 | do | |
3557 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3558 | set dummy $ac_prog; ac_word=$2 | |
3559 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3560 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3561 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
3562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3563 | else | |
3564 | if test -n "$ac_ct_CXX"; then | |
3565 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3566 | else | |
3567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3568 | for as_dir in $PATH | |
3569 | do | |
3570 | IFS=$as_save_IFS | |
3571 | test -z "$as_dir" && as_dir=. | |
3572 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3573 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3574 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
3575 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3576 | break 2 | |
3577 | fi | |
3578 | done | |
29b8d8d6 | 3579 | done |
3f961930 | 3580 | |
33f5f8b9 | 3581 | fi |
3582 | fi | |
3583 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3584 | if test -n "$ac_ct_CXX"; then | |
3585 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
3586 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
3587 | else | |
3588 | echo "$as_me:$LINENO: result: no" >&5 | |
3589 | echo "${ECHO_T}no" >&6 | |
3590 | fi | |
3f961930 | 3591 | |
33f5f8b9 | 3592 | test -n "$ac_ct_CXX" && break |
3593 | done | |
3594 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
3595 | ||
3596 | CXX=$ac_ct_CXX | |
3597 | fi | |
3598 | ||
3599 | ||
3600 | # Provide some information about the compiler. | |
3601 | echo "$as_me:$LINENO:" \ | |
3602 | "checking for C++ compiler version" >&5 | |
3603 | ac_compiler=`set X $ac_compile; echo $2` | |
3604 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
3605 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
3606 | ac_status=$? | |
3607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3608 | (exit $ac_status); } | |
3609 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
3610 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3611 | ac_status=$? | |
3612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3613 | (exit $ac_status); } | |
3614 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3615 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3616 | ac_status=$? | |
3617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3618 | (exit $ac_status); } | |
3619 | ||
3620 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
3621 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
3622 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
3623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3624 | else | |
3625 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 3626 | /* confdefs.h. */ |
3627 | _ACEOF | |
3628 | cat confdefs.h >>conftest.$ac_ext | |
3629 | cat >>conftest.$ac_ext <<_ACEOF | |
3630 | /* end confdefs.h. */ | |
3f961930 | 3631 | |
33f5f8b9 | 3632 | int |
3633 | main () | |
3634 | { | |
3635 | #ifndef __GNUC__ | |
3636 | choke me | |
3637 | #endif | |
29b8d8d6 | 3638 | |
33f5f8b9 | 3639 | ; |
3640 | return 0; | |
3641 | } | |
3642 | _ACEOF | |
3643 | rm -f conftest.$ac_objext | |
3644 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 3645 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 3646 | ac_status=$? |
af3004ff | 3647 | grep -v '^ *+' conftest.er1 >conftest.err |
3648 | rm -f conftest.er1 | |
3649 | cat conftest.err >&5 | |
33f5f8b9 | 3650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3651 | (exit $ac_status); } && | |
6263d81f | 3652 | { ac_try='test -z "$ac_cxx_werror_flag" |
3653 | || test ! -s conftest.err' | |
af3004ff | 3654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3655 | (eval $ac_try) 2>&5 | |
3656 | ac_status=$? | |
3657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3658 | (exit $ac_status); }; } && | |
3659 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 3660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3661 | (eval $ac_try) 2>&5 | |
3662 | ac_status=$? | |
3663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3664 | (exit $ac_status); }; }; then | |
3665 | ac_compiler_gnu=yes | |
3666 | else | |
3667 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 3668 | sed 's/^/| /' conftest.$ac_ext >&5 |
3669 | ||
33f5f8b9 | 3670 | ac_compiler_gnu=no |
3671 | fi | |
af3004ff | 3672 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 3673 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
3674 | ||
3675 | fi | |
3676 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3677 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
3678 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
3679 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3680 | ac_save_CXXFLAGS=$CXXFLAGS | |
3681 | CXXFLAGS="-g" | |
3682 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
3683 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
3684 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
3685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3686 | else | |
3687 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 3688 | /* confdefs.h. */ |
3689 | _ACEOF | |
3690 | cat confdefs.h >>conftest.$ac_ext | |
3691 | cat >>conftest.$ac_ext <<_ACEOF | |
3692 | /* end confdefs.h. */ | |
29b8d8d6 | 3693 | |
33f5f8b9 | 3694 | int |
3695 | main () | |
3696 | { | |
3697 | ||
3698 | ; | |
3699 | return 0; | |
3700 | } | |
3701 | _ACEOF | |
3702 | rm -f conftest.$ac_objext | |
3703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 3704 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 3705 | ac_status=$? |
af3004ff | 3706 | grep -v '^ *+' conftest.er1 >conftest.err |
3707 | rm -f conftest.er1 | |
3708 | cat conftest.err >&5 | |
33f5f8b9 | 3709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3710 | (exit $ac_status); } && | |
6263d81f | 3711 | { ac_try='test -z "$ac_cxx_werror_flag" |
3712 | || test ! -s conftest.err' | |
af3004ff | 3713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3714 | (eval $ac_try) 2>&5 | |
3715 | ac_status=$? | |
3716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3717 | (exit $ac_status); }; } && | |
3718 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 3719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3720 | (eval $ac_try) 2>&5 | |
3721 | ac_status=$? | |
3722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3723 | (exit $ac_status); }; }; then | |
3724 | ac_cv_prog_cxx_g=yes | |
3f961930 | 3725 | else |
33f5f8b9 | 3726 | echo "$as_me: failed program was:" >&5 |
ad21602a | 3727 | sed 's/^/| /' conftest.$ac_ext >&5 |
3728 | ||
33f5f8b9 | 3729 | ac_cv_prog_cxx_g=no |
3f961930 | 3730 | fi |
af3004ff | 3731 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3f961930 | 3732 | fi |
33f5f8b9 | 3733 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
3734 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
29b8d8d6 | 3735 | if test "$ac_test_CXXFLAGS" = set; then |
33f5f8b9 | 3736 | CXXFLAGS=$ac_save_CXXFLAGS |
29b8d8d6 | 3737 | elif test $ac_cv_prog_cxx_g = yes; then |
3738 | if test "$GXX" = yes; then | |
3739 | CXXFLAGS="-g -O2" | |
3740 | else | |
3741 | CXXFLAGS="-g" | |
3742 | fi | |
3743 | else | |
3744 | if test "$GXX" = yes; then | |
3745 | CXXFLAGS="-O2" | |
3746 | else | |
3747 | CXXFLAGS= | |
3748 | fi | |
3749 | fi | |
33f5f8b9 | 3750 | for ac_declaration in \ |
af3004ff | 3751 | '' \ |
33f5f8b9 | 3752 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
3753 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3754 | 'extern "C" void exit (int) throw ();' \ | |
3755 | 'extern "C" void exit (int);' \ | |
3756 | 'void exit (int);' | |
3757 | do | |
3758 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 3759 | /* confdefs.h. */ |
3760 | _ACEOF | |
3761 | cat confdefs.h >>conftest.$ac_ext | |
3762 | cat >>conftest.$ac_ext <<_ACEOF | |
3763 | /* end confdefs.h. */ | |
a33e1d91 | 3764 | $ac_declaration |
af3004ff | 3765 | #include <stdlib.h> |
33f5f8b9 | 3766 | int |
3767 | main () | |
3768 | { | |
3769 | exit (42); | |
3770 | ; | |
3771 | return 0; | |
3772 | } | |
3773 | _ACEOF | |
3774 | rm -f conftest.$ac_objext | |
3775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 3776 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 3777 | ac_status=$? |
af3004ff | 3778 | grep -v '^ *+' conftest.er1 >conftest.err |
3779 | rm -f conftest.er1 | |
3780 | cat conftest.err >&5 | |
33f5f8b9 | 3781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3782 | (exit $ac_status); } && | |
6263d81f | 3783 | { ac_try='test -z "$ac_cxx_werror_flag" |
3784 | || test ! -s conftest.err' | |
af3004ff | 3785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3786 | (eval $ac_try) 2>&5 | |
3787 | ac_status=$? | |
3788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3789 | (exit $ac_status); }; } && | |
3790 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 3791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3792 | (eval $ac_try) 2>&5 | |
3793 | ac_status=$? | |
3794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3795 | (exit $ac_status); }; }; then | |
3796 | : | |
3797 | else | |
3798 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 3799 | sed 's/^/| /' conftest.$ac_ext >&5 |
3800 | ||
33f5f8b9 | 3801 | continue |
3802 | fi | |
af3004ff | 3803 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 3804 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 3805 | /* confdefs.h. */ |
3806 | _ACEOF | |
3807 | cat confdefs.h >>conftest.$ac_ext | |
3808 | cat >>conftest.$ac_ext <<_ACEOF | |
3809 | /* end confdefs.h. */ | |
33f5f8b9 | 3810 | $ac_declaration |
33f5f8b9 | 3811 | int |
3812 | main () | |
3813 | { | |
3814 | exit (42); | |
3815 | ; | |
3816 | return 0; | |
3817 | } | |
3818 | _ACEOF | |
3819 | rm -f conftest.$ac_objext | |
3820 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 3821 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 3822 | ac_status=$? |
af3004ff | 3823 | grep -v '^ *+' conftest.er1 >conftest.err |
3824 | rm -f conftest.er1 | |
3825 | cat conftest.err >&5 | |
33f5f8b9 | 3826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3827 | (exit $ac_status); } && | |
6263d81f | 3828 | { ac_try='test -z "$ac_cxx_werror_flag" |
3829 | || test ! -s conftest.err' | |
af3004ff | 3830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3831 | (eval $ac_try) 2>&5 | |
3832 | ac_status=$? | |
3833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3834 | (exit $ac_status); }; } && | |
3835 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 3836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3837 | (eval $ac_try) 2>&5 | |
3838 | ac_status=$? | |
3839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3840 | (exit $ac_status); }; }; then | |
3841 | break | |
3842 | else | |
3843 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 3844 | sed 's/^/| /' conftest.$ac_ext >&5 |
3845 | ||
33f5f8b9 | 3846 | fi |
af3004ff | 3847 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 3848 | done |
3849 | rm -f conftest* | |
3850 | if test -n "$ac_declaration"; then | |
3851 | echo '#ifdef __cplusplus' >>confdefs.h | |
3852 | echo $ac_declaration >>confdefs.h | |
3853 | echo '#endif' >>confdefs.h | |
3854 | fi | |
3855 | ||
3856 | ac_ext=c | |
3857 | ac_cpp='$CPP $CPPFLAGS' | |
3858 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3859 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3860 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b65c7b0d | 3861 | |
3862 | depcc="$CXX" am_compiler_list= | |
3863 | ||
33f5f8b9 | 3864 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3865 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3866 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
3867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b65c7b0d | 3868 | else |
29b8d8d6 | 3869 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3870 | # We make a subdir and do the tests there. Otherwise we can end up | |
3871 | # making bogus files that we don't know about and never remove. For | |
3872 | # instance it was reported that on HP-UX the gcc test will end up | |
3873 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3874 | # in D'. | |
3875 | mkdir conftest.dir | |
3876 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3877 | # using a relative directory. | |
3878 | cp "$am_depcomp" conftest.dir | |
3879 | cd conftest.dir | |
07d1f987 | 3880 | # We will build objects and dependencies in a subdirectory because |
3881 | # it helps to detect inapplicable dependency modes. For instance | |
3882 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3883 | # side effect of compilation, but ICC will put the dependencies in | |
3884 | # the current directory while Tru64 will put them in the object | |
3885 | # directory. | |
3886 | mkdir sub | |
29b8d8d6 | 3887 | |
3888 | am_cv_CXX_dependencies_compiler_type=none | |
3889 | if test "$am_compiler_list" = ""; then | |
3890 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3891 | fi | |
3892 | for depmode in $am_compiler_list; do | |
07d1f987 | 3893 | # Setup a source with many dependencies, because some compilers |
3894 | # like to wrap large dependency lists on column 80 (with \), and | |
3895 | # we should not choose a depcomp mode which is confused by this. | |
3896 | # | |
29b8d8d6 | 3897 | # We need to recreate these files for each test, as the compiler may |
3898 | # overwrite some of them when testing with obscure command lines. | |
3899 | # This happens at least with the AIX C compiler. | |
07d1f987 | 3900 | : > sub/conftest.c |
3901 | for i in 1 2 3 4 5 6; do | |
3902 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3903 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3904 | # Solaris 8's {/usr,}/bin/sh. | |
3905 | touch sub/conftst$i.h | |
3906 | done | |
3907 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
29b8d8d6 | 3908 | |
3909 | case $depmode in | |
3910 | nosideeffect) | |
3911 | # after this tag, mechanisms are not by side-effect, so they'll | |
3912 | # only be used when explicitly requested | |
3913 | if test "x$enable_dependency_tracking" = xyes; then | |
3914 | continue | |
3915 | else | |
3916 | break | |
3917 | fi | |
3918 | ;; | |
3919 | none) break ;; | |
3920 | esac | |
3921 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3922 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3923 | # handle `-M -o', and we need to detect this. | |
3924 | if depmode=$depmode \ | |
07d1f987 | 3925 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3926 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3927 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
ad21602a | 3928 | >/dev/null 2>conftest.err && |
07d1f987 | 3929 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3930 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
29b8d8d6 | 3931 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
ad21602a | 3932 | # icc doesn't choke on unknown options, it will just issue warnings |
07d1f987 | 3933 | # or remarks (even with -Werror). So we grep stderr for any message |
3934 | # that says an option was ignored or not supported. | |
3935 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3936 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3937 | # The diagnosis changed in icc 8.0: | |
3938 | # icc: Command line remark: option '-MP' not supported | |
3939 | if (grep 'ignoring option' conftest.err || | |
3940 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
ad21602a | 3941 | am_cv_CXX_dependencies_compiler_type=$depmode |
3942 | break | |
3943 | fi | |
29b8d8d6 | 3944 | fi |
3945 | done | |
3946 | ||
3947 | cd .. | |
3948 | rm -rf conftest.dir | |
3949 | else | |
3950 | am_cv_CXX_dependencies_compiler_type=none | |
3951 | fi | |
3952 | ||
3953 | fi | |
33f5f8b9 | 3954 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
3955 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 | |
ad21602a | 3956 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
3957 | ||
3958 | ||
3959 | ||
3960 | if | |
3961 | test "x$enable_dependency_tracking" != xno \ | |
3962 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
3963 | am__fastdepCXX_TRUE= | |
3964 | am__fastdepCXX_FALSE='#' | |
3965 | else | |
3966 | am__fastdepCXX_TRUE='#' | |
3967 | am__fastdepCXX_FALSE= | |
3968 | fi | |
29b8d8d6 | 3969 | |
3970 | ||
a2794549 | 3971 | # Make sure we can run config.sub. |
33f5f8b9 | 3972 | $ac_config_sub sun4 >/dev/null 2>&1 || |
3973 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
3974 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
3975 | { (exit 1); exit 1; }; } | |
3f961930 | 3976 | |
33f5f8b9 | 3977 | echo "$as_me:$LINENO: checking build system type" >&5 |
3978 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
3979 | if test "${ac_cv_build+set}" = set; then | |
3980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a2794549 | 3981 | else |
33f5f8b9 | 3982 | ac_cv_build_alias=$build_alias |
3983 | test -z "$ac_cv_build_alias" && | |
3984 | ac_cv_build_alias=`$ac_config_guess` | |
3985 | test -z "$ac_cv_build_alias" && | |
3986 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
3987 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
3988 | { (exit 1); exit 1; }; } | |
3989 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
3990 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
3991 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
3992 | { (exit 1); exit 1; }; } | |
a2794549 | 3993 | |
3f961930 | 3994 | fi |
33f5f8b9 | 3995 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3996 | echo "${ECHO_T}$ac_cv_build" >&6 | |
3997 | build=$ac_cv_build | |
3998 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3999 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
4000 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
a2794549 | 4001 | |
b65c7b0d | 4002 | |
33f5f8b9 | 4003 | echo "$as_me:$LINENO: checking host system type" >&5 |
4004 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
4005 | if test "${ac_cv_host+set}" = set; then | |
4006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3f961930 | 4007 | else |
33f5f8b9 | 4008 | ac_cv_host_alias=$host_alias |
4009 | test -z "$ac_cv_host_alias" && | |
4010 | ac_cv_host_alias=$ac_cv_build_alias | |
4011 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
4012 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
4013 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
4014 | { (exit 1); exit 1; }; } | |
4015 | ||
a2794549 | 4016 | fi |
33f5f8b9 | 4017 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
4018 | echo "${ECHO_T}$ac_cv_host" >&6 | |
4019 | host=$ac_cv_host | |
4020 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
4021 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
4022 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
a2794549 | 4023 | |
a2794549 | 4024 | |
a33e1d91 | 4025 | # Check whether --enable-shared or --disable-shared was given. |
4026 | if test "${enable_shared+set}" = set; then | |
4027 | enableval="$enable_shared" | |
4028 | p=${PACKAGE-default} | |
4029 | case $enableval in | |
4030 | yes) enable_shared=yes ;; | |
4031 | no) enable_shared=no ;; | |
4032 | *) | |
4033 | enable_shared=no | |
4034 | # Look at the argument we got. We use all the common list separators. | |
4035 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4036 | for pkg in $enableval; do | |
4037 | IFS="$lt_save_ifs" | |
4038 | if test "X$pkg" = "X$p"; then | |
4039 | enable_shared=yes | |
4040 | fi | |
4041 | done | |
4042 | IFS="$lt_save_ifs" | |
4043 | ;; | |
4044 | esac | |
4045 | else | |
07d1f987 | 4046 | enable_shared=no |
a33e1d91 | 4047 | fi; |
a2794549 | 4048 | |
07d1f987 | 4049 | |
a33e1d91 | 4050 | # Check whether --enable-static or --disable-static was given. |
4051 | if test "${enable_static+set}" = set; then | |
4052 | enableval="$enable_static" | |
4053 | p=${PACKAGE-default} | |
4054 | case $enableval in | |
4055 | yes) enable_static=yes ;; | |
4056 | no) enable_static=no ;; | |
4057 | *) | |
4058 | enable_static=no | |
4059 | # Look at the argument we got. We use all the common list separators. | |
4060 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4061 | for pkg in $enableval; do | |
4062 | IFS="$lt_save_ifs" | |
4063 | if test "X$pkg" = "X$p"; then | |
4064 | enable_static=yes | |
4065 | fi | |
4066 | done | |
4067 | IFS="$lt_save_ifs" | |
4068 | ;; | |
4069 | esac | |
4070 | else | |
4071 | enable_static=yes | |
4072 | fi; | |
a2794549 | 4073 | |
a33e1d91 | 4074 | # Check whether --enable-fast-install or --disable-fast-install was given. |
4075 | if test "${enable_fast_install+set}" = set; then | |
4076 | enableval="$enable_fast_install" | |
4077 | p=${PACKAGE-default} | |
4078 | case $enableval in | |
4079 | yes) enable_fast_install=yes ;; | |
4080 | no) enable_fast_install=no ;; | |
4081 | *) | |
4082 | enable_fast_install=no | |
4083 | # Look at the argument we got. We use all the common list separators. | |
4084 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4085 | for pkg in $enableval; do | |
4086 | IFS="$lt_save_ifs" | |
4087 | if test "X$pkg" = "X$p"; then | |
4088 | enable_fast_install=yes | |
4089 | fi | |
4090 | done | |
4091 | IFS="$lt_save_ifs" | |
4092 | ;; | |
4093 | esac | |
4094 | else | |
4095 | enable_fast_install=yes | |
4096 | fi; | |
a2794549 | 4097 | |
a33e1d91 | 4098 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
4099 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
4100 | if test "${lt_cv_path_SED+set}" = set; then | |
4101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4102 | else | |
4103 | # Loop through the user's path and test for sed and gsed. | |
4104 | # Then use that list of sed's as ones to test for truncation. | |
4105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4106 | for as_dir in $PATH | |
4107 | do | |
4108 | IFS=$as_save_IFS | |
4109 | test -z "$as_dir" && as_dir=. | |
4110 | for lt_ac_prog in sed gsed; do | |
4111 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4112 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
4113 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
4114 | fi | |
4115 | done | |
4116 | done | |
4117 | done | |
4118 | lt_ac_max=0 | |
4119 | lt_ac_count=0 | |
4120 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
4121 | # along with /bin/sed that truncates output. | |
4122 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
087278d6 | 4123 | test ! -f $lt_ac_sed && continue |
a33e1d91 | 4124 | cat /dev/null > conftest.in |
4125 | lt_ac_count=0 | |
4126 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
4127 | # Check for GNU sed and select it if it is found. | |
4128 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
4129 | lt_cv_path_SED=$lt_ac_sed | |
4130 | break | |
4131 | fi | |
4132 | while true; do | |
4133 | cat conftest.in conftest.in >conftest.tmp | |
4134 | mv conftest.tmp conftest.in | |
4135 | cp conftest.in conftest.nl | |
4136 | echo >>conftest.nl | |
4137 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
4138 | cmp -s conftest.out conftest.nl || break | |
4139 | # 10000 chars as input seems more than enough | |
4140 | test $lt_ac_count -gt 10 && break | |
4141 | lt_ac_count=`expr $lt_ac_count + 1` | |
4142 | if test $lt_ac_count -gt $lt_ac_max; then | |
4143 | lt_ac_max=$lt_ac_count | |
4144 | lt_cv_path_SED=$lt_ac_sed | |
4145 | fi | |
4146 | done | |
4147 | done | |
a2794549 | 4148 | |
a33e1d91 | 4149 | fi |
a2794549 | 4150 | |
631008fb | 4151 | SED=$lt_cv_path_SED |
a33e1d91 | 4152 | echo "$as_me:$LINENO: result: $SED" >&5 |
4153 | echo "${ECHO_T}$SED" >&6 | |
a2794549 | 4154 | |
a33e1d91 | 4155 | echo "$as_me:$LINENO: checking for egrep" >&5 |
4156 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4157 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a2794549 | 4159 | else |
a33e1d91 | 4160 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
4161 | then ac_cv_prog_egrep='grep -E' | |
4162 | else ac_cv_prog_egrep='egrep' | |
4163 | fi | |
a2794549 | 4164 | fi |
a33e1d91 | 4165 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
4166 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4167 | EGREP=$ac_cv_prog_egrep | |
a2794549 | 4168 | |
eee822a0 | 4169 | |
a2794549 | 4170 | |
a33e1d91 | 4171 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
4172 | if test "${with_gnu_ld+set}" = set; then | |
4173 | withval="$with_gnu_ld" | |
4174 | test "$withval" = no || with_gnu_ld=yes | |
a2794549 | 4175 | else |
a33e1d91 | 4176 | with_gnu_ld=no |
4177 | fi; | |
4178 | ac_prog=ld | |
4179 | if test "$GCC" = yes; then | |
4180 | # Check if gcc -print-prog-name=ld gives a path. | |
4181 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
4182 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
4183 | case $host in | |
4184 | *-*-mingw*) | |
4185 | # gcc leaves a trailing carriage return which upsets mingw | |
4186 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4187 | *) | |
4188 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4189 | esac | |
4190 | case $ac_prog in | |
4191 | # Accept absolute paths. | |
4192 | [\\/]* | ?:[\\/]*) | |
4193 | re_direlt='/[^/][^/]*/\.\./' | |
4194 | # Canonicalize the pathname of ld | |
4195 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
4196 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
4197 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
4198 | done | |
4199 | test -z "$LD" && LD="$ac_prog" | |
4200 | ;; | |
4201 | "") | |
4202 | # If it fails, then pretend we aren't using GCC. | |
4203 | ac_prog=ld | |
4204 | ;; | |
4205 | *) | |
4206 | # If it is relative, then search for the first ld in PATH. | |
4207 | with_gnu_ld=unknown | |
4208 | ;; | |
4209 | esac | |
4210 | elif test "$with_gnu_ld" = yes; then | |
4211 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
4212 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
4213 | else | |
4214 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
4215 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
a2794549 | 4216 | fi |
a33e1d91 | 4217 | if test "${lt_cv_path_LD+set}" = set; then |
4218 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4219 | else | |
4220 | if test -z "$LD"; then | |
4221 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4222 | for ac_dir in $PATH; do | |
4223 | IFS="$lt_save_ifs" | |
4224 | test -z "$ac_dir" && ac_dir=. | |
4225 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4226 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4227 | # Check to see if the program is GNU ld. I'd rather use --version, | |
693f5c2e | 4228 | # but apparently some variants of GNU ld only accept -v. |
a33e1d91 | 4229 | # Break only if it was the GNU/non-GNU ld that we prefer. |
4230 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4231 | *GNU* | *'with BFD'*) | |
4232 | test "$with_gnu_ld" != no && break | |
a2794549 | 4233 | ;; |
a33e1d91 | 4234 | *) |
4235 | test "$with_gnu_ld" != yes && break | |
4236 | ;; | |
4237 | esac | |
4238 | fi | |
4239 | done | |
4240 | IFS="$lt_save_ifs" | |
a2794549 | 4241 | else |
a33e1d91 | 4242 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
4243 | fi | |
4244 | fi | |
4245 | ||
4246 | LD="$lt_cv_path_LD" | |
4247 | if test -n "$LD"; then | |
4248 | echo "$as_me:$LINENO: result: $LD" >&5 | |
4249 | echo "${ECHO_T}$LD" >&6 | |
4250 | else | |
4251 | echo "$as_me:$LINENO: result: no" >&5 | |
4252 | echo "${ECHO_T}no" >&6 | |
4253 | fi | |
4254 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
4255 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
4256 | { (exit 1); exit 1; }; } | |
4257 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
4258 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
4259 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
4260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4261 | else | |
693f5c2e | 4262 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
a33e1d91 | 4263 | case `$LD -v 2>&1 </dev/null` in |
4264 | *GNU* | *'with BFD'*) | |
4265 | lt_cv_prog_gnu_ld=yes | |
4266 | ;; | |
4267 | *) | |
4268 | lt_cv_prog_gnu_ld=no | |
4269 | ;; | |
4270 | esac | |
4271 | fi | |
4272 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
4273 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
4274 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
4275 | ||
4276 | ||
4277 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
4278 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
4279 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
4280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4281 | else | |
4282 | lt_cv_ld_reload_flag='-r' | |
4283 | fi | |
4284 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
4285 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
4286 | reload_flag=$lt_cv_ld_reload_flag | |
4287 | case $reload_flag in | |
4288 | "" | " "*) ;; | |
4289 | *) reload_flag=" $reload_flag" ;; | |
4290 | esac | |
4291 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
631008fb | 4292 | case $host_os in |
4293 | darwin*) | |
4294 | if test "$GCC" = yes; then | |
62567204 | 4295 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
631008fb | 4296 | else |
4297 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4298 | fi | |
4299 | ;; | |
4300 | esac | |
a33e1d91 | 4301 | |
4302 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
4303 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
4304 | if test "${lt_cv_path_NM+set}" = set; then | |
4305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4306 | else | |
4307 | if test -n "$NM"; then | |
4308 | # Let the user override the test. | |
4309 | lt_cv_path_NM="$NM" | |
4310 | else | |
62567204 | 4311 | lt_nm_to_check="${ac_tool_prefix}nm" |
4312 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4313 | lt_nm_to_check="$lt_nm_to_check nm" | |
4314 | fi | |
4315 | for lt_tmp_nm in $lt_nm_to_check; do | |
4316 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4317 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4318 | IFS="$lt_save_ifs" | |
4319 | test -z "$ac_dir" && ac_dir=. | |
4320 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4321 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4322 | # Check to see if the nm accepts a BSD-compat flag. | |
4323 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4324 | # nm: unknown option "B" ignored | |
4325 | # Tru64's nm complains that /dev/null is an invalid object file | |
4326 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4327 | */dev/null* | *'Invalid file or object type'*) | |
4328 | lt_cv_path_NM="$tmp_nm -B" | |
a33e1d91 | 4329 | break |
4330 | ;; | |
4331 | *) | |
62567204 | 4332 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4333 | */dev/null*) | |
4334 | lt_cv_path_NM="$tmp_nm -p" | |
4335 | break | |
4336 | ;; | |
4337 | *) | |
4338 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4339 | continue # so that we can try to find one that supports BSD flags | |
4340 | ;; | |
4341 | esac | |
a33e1d91 | 4342 | ;; |
4343 | esac | |
62567204 | 4344 | fi |
4345 | done | |
4346 | IFS="$lt_save_ifs" | |
a33e1d91 | 4347 | done |
a33e1d91 | 4348 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
4349 | fi | |
4350 | fi | |
4351 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
4352 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
4353 | NM="$lt_cv_path_NM" | |
4354 | ||
4355 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
4356 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
4357 | LN_S=$as_ln_s | |
4358 | if test "$LN_S" = "ln -s"; then | |
4359 | echo "$as_me:$LINENO: result: yes" >&5 | |
4360 | echo "${ECHO_T}yes" >&6 | |
4361 | else | |
4362 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
4363 | echo "${ECHO_T}no, using $LN_S" >&6 | |
4364 | fi | |
4365 | ||
4366 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | |
4367 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 | |
4368 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
4369 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4370 | else | |
4371 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4372 | lt_cv_file_magic_test_file= | |
4373 | lt_cv_deplibs_check_method='unknown' | |
4374 | # Need to set the preceding variable on all platforms that support | |
4375 | # interlibrary dependencies. | |
4376 | # 'none' -- dependencies not supported. | |
4377 | # `unknown' -- same as none, but documents that we really don't know. | |
4378 | # 'pass_all' -- all dependencies passed with no checks. | |
4379 | # 'test_compile' -- check by making test program. | |
4380 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4381 | # which responds to the $file_magic_cmd with a given extended regex. | |
4382 | # If you have `file' or equivalent on your system and you're not sure | |
4383 | # whether `pass_all' will *always* work, you probably want this one. | |
4384 | ||
4385 | case $host_os in | |
4386 | aix4* | aix5*) | |
4387 | lt_cv_deplibs_check_method=pass_all | |
4388 | ;; | |
4389 | ||
4390 | beos*) | |
4391 | lt_cv_deplibs_check_method=pass_all | |
4392 | ;; | |
4393 | ||
631008fb | 4394 | bsdi[45]*) |
a33e1d91 | 4395 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
4396 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4397 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4398 | ;; | |
4399 | ||
4400 | cygwin*) | |
4401 | # func_win32_libid is a shell function defined in ltmain.sh | |
4402 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4403 | lt_cv_file_magic_cmd='func_win32_libid' | |
4404 | ;; | |
4405 | ||
4406 | mingw* | pw32*) | |
4407 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
4408 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. | |
4409 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4410 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4411 | ;; | |
4412 | ||
4413 | darwin* | rhapsody*) | |
4414 | lt_cv_deplibs_check_method=pass_all | |
4415 | ;; | |
4416 | ||
087278d6 | 4417 | freebsd* | kfreebsd*-gnu | dragonfly*) |
a33e1d91 | 4418 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4419 | case $host_cpu in | |
4420 | i*86 ) | |
4421 | # Not sure whether the presence of OpenBSD here was a mistake. | |
4422 | # Let's accept both of them until this is cleared up. | |
087278d6 | 4423 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
a33e1d91 | 4424 | lt_cv_file_magic_cmd=/usr/bin/file |
4425 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4426 | ;; | |
4427 | esac | |
4428 | else | |
4429 | lt_cv_deplibs_check_method=pass_all | |
4430 | fi | |
4431 | ;; | |
4432 | ||
4433 | gnu*) | |
4434 | lt_cv_deplibs_check_method=pass_all | |
4435 | ;; | |
4436 | ||
4437 | hpux10.20* | hpux11*) | |
4438 | lt_cv_file_magic_cmd=/usr/bin/file | |
693f5c2e | 4439 | case $host_cpu in |
a33e1d91 | 4440 | ia64*) |
4441 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
4442 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4443 | ;; | |
4444 | hppa*64*) | |
4445 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | |
4446 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
4447 | ;; | |
4448 | *) | |
4449 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
4450 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4451 | ;; | |
4452 | esac | |
4453 | ;; | |
4454 | ||
62567204 | 4455 | interix3*) |
4456 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4457 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
4458 | ;; | |
4459 | ||
a33e1d91 | 4460 | irix5* | irix6* | nonstopux*) |
4461 | case $LD in | |
4462 | *-32|*"-32 ") libmagic=32-bit;; | |
4463 | *-n32|*"-n32 ") libmagic=N32;; | |
4464 | *-64|*"-64 ") libmagic=64-bit;; | |
4465 | *) libmagic=never-match;; | |
4466 | esac | |
4467 | lt_cv_deplibs_check_method=pass_all | |
4468 | ;; | |
4469 | ||
4470 | # This must be Linux ELF. | |
4471 | linux*) | |
a33e1d91 | 4472 | lt_cv_deplibs_check_method=pass_all |
4473 | ;; | |
4474 | ||
6263d81f | 4475 | netbsd*) |
a33e1d91 | 4476 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4477 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
4478 | else | |
4479 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
4480 | fi | |
4481 | ;; | |
4482 | ||
4483 | newos6*) | |
4484 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4485 | lt_cv_file_magic_cmd=/usr/bin/file | |
4486 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4487 | ;; | |
4488 | ||
4489 | nto-qnx*) | |
4490 | lt_cv_deplibs_check_method=unknown | |
4491 | ;; | |
4492 | ||
4493 | openbsd*) | |
4494 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
631008fb | 4495 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
a33e1d91 | 4496 | else |
631008fb | 4497 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
a33e1d91 | 4498 | fi |
4499 | ;; | |
4500 | ||
4501 | osf3* | osf4* | osf5*) | |
4502 | lt_cv_deplibs_check_method=pass_all | |
4503 | ;; | |
4504 | ||
a33e1d91 | 4505 | solaris*) |
4506 | lt_cv_deplibs_check_method=pass_all | |
4507 | ;; | |
4508 | ||
62567204 | 4509 | sysv4 | sysv4.3*) |
a33e1d91 | 4510 | case $host_vendor in |
4511 | motorola) | |
4512 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' | |
4513 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4514 | ;; | |
4515 | ncr) | |
4516 | lt_cv_deplibs_check_method=pass_all | |
4517 | ;; | |
4518 | sequent) | |
4519 | lt_cv_file_magic_cmd='/bin/file' | |
4520 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
4521 | ;; | |
4522 | sni) | |
4523 | lt_cv_file_magic_cmd='/bin/file' | |
4524 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
4525 | lt_cv_file_magic_test_file=/lib/libc.so | |
4526 | ;; | |
4527 | siemens) | |
4528 | lt_cv_deplibs_check_method=pass_all | |
4529 | ;; | |
62567204 | 4530 | pc) |
4531 | lt_cv_deplibs_check_method=pass_all | |
4532 | ;; | |
a33e1d91 | 4533 | esac |
4534 | ;; | |
4535 | ||
62567204 | 4536 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
a33e1d91 | 4537 | lt_cv_deplibs_check_method=pass_all |
4538 | ;; | |
4539 | esac | |
4540 | ||
4541 | fi | |
4542 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
4543 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
4544 | file_magic_cmd=$lt_cv_file_magic_cmd | |
4545 | deplibs_check_method=$lt_cv_deplibs_check_method | |
4546 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
4547 | ||
4548 | ||
4549 | ||
4550 | ||
4551 | # If no C compiler was specified, use CC. | |
4552 | LTCC=${LTCC-"$CC"} | |
4553 | ||
62567204 | 4554 | # If no C compiler flags were specified, use CFLAGS. |
4555 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
4556 | ||
a33e1d91 | 4557 | # Allow CC to be a program name with arguments. |
4558 | compiler=$CC | |
4559 | ||
4560 | ||
4561 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
4562 | if test "${enable_libtool_lock+set}" = set; then | |
4563 | enableval="$enable_libtool_lock" | |
4564 | ||
4565 | fi; | |
4566 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
4567 | ||
4568 | # Some flags need to be propagated to the compiler or linker for good | |
4569 | # libtool support. | |
4570 | case $host in | |
4571 | ia64-*-hpux*) | |
4572 | # Find out which ABI we are using. | |
4573 | echo 'int i;' > conftest.$ac_ext | |
4574 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4575 | (eval $ac_compile) 2>&5 | |
4576 | ac_status=$? | |
4577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4578 | (exit $ac_status); }; then | |
4579 | case `/usr/bin/file conftest.$ac_objext` in | |
4580 | *ELF-32*) | |
4581 | HPUX_IA64_MODE="32" | |
4582 | ;; | |
4583 | *ELF-64*) | |
4584 | HPUX_IA64_MODE="64" | |
4585 | ;; | |
4586 | esac | |
4587 | fi | |
4588 | rm -rf conftest* | |
4589 | ;; | |
4590 | *-*-irix6*) | |
4591 | # Find out which ABI we are using. | |
00b2804c | 4592 | echo '#line 4592 "configure"' > conftest.$ac_ext |
a33e1d91 | 4593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4594 | (eval $ac_compile) 2>&5 | |
4595 | ac_status=$? | |
4596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4597 | (exit $ac_status); }; then | |
4598 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
4599 | case `/usr/bin/file conftest.$ac_objext` in | |
4600 | *32-bit*) | |
4601 | LD="${LD-ld} -melf32bsmip" | |
4602 | ;; | |
4603 | *N32*) | |
4604 | LD="${LD-ld} -melf32bmipn32" | |
4605 | ;; | |
4606 | *64-bit*) | |
4607 | LD="${LD-ld} -melf64bmip" | |
4608 | ;; | |
4609 | esac | |
4610 | else | |
4611 | case `/usr/bin/file conftest.$ac_objext` in | |
4612 | *32-bit*) | |
4613 | LD="${LD-ld} -32" | |
4614 | ;; | |
4615 | *N32*) | |
4616 | LD="${LD-ld} -n32" | |
4617 | ;; | |
4618 | *64-bit*) | |
4619 | LD="${LD-ld} -64" | |
4620 | ;; | |
4621 | esac | |
4622 | fi | |
4623 | fi | |
4624 | rm -rf conftest* | |
4625 | ;; | |
4626 | ||
4627 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | |
4628 | # Find out which ABI we are using. | |
4629 | echo 'int i;' > conftest.$ac_ext | |
4630 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4631 | (eval $ac_compile) 2>&5 | |
4632 | ac_status=$? | |
4633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4634 | (exit $ac_status); }; then | |
693f5c2e | 4635 | case `/usr/bin/file conftest.o` in |
a33e1d91 | 4636 | *32-bit*) |
4637 | case $host in | |
4638 | x86_64-*linux*) | |
4639 | LD="${LD-ld} -m elf_i386" | |
4640 | ;; | |
4641 | ppc64-*linux*|powerpc64-*linux*) | |
4642 | LD="${LD-ld} -m elf32ppclinux" | |
4643 | ;; | |
4644 | s390x-*linux*) | |
4645 | LD="${LD-ld} -m elf_s390" | |
4646 | ;; | |
4647 | sparc64-*linux*) | |
4648 | LD="${LD-ld} -m elf32_sparc" | |
4649 | ;; | |
4650 | esac | |
4651 | ;; | |
4652 | *64-bit*) | |
4653 | case $host in | |
4654 | x86_64-*linux*) | |
4655 | LD="${LD-ld} -m elf_x86_64" | |
4656 | ;; | |
4657 | ppc*-*linux*|powerpc*-*linux*) | |
4658 | LD="${LD-ld} -m elf64ppc" | |
4659 | ;; | |
4660 | s390*-*linux*) | |
4661 | LD="${LD-ld} -m elf64_s390" | |
4662 | ;; | |
4663 | sparc*-*linux*) | |
4664 | LD="${LD-ld} -m elf64_sparc" | |
4665 | ;; | |
4666 | esac | |
4667 | ;; | |
4668 | esac | |
4669 | fi | |
4670 | rm -rf conftest* | |
4671 | ;; | |
4672 | ||
4673 | *-*-sco3.2v5*) | |
4674 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
4675 | SAVE_CFLAGS="$CFLAGS" | |
4676 | CFLAGS="$CFLAGS -belf" | |
4677 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
4678 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4679 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4681 | else | |
4682 | ac_ext=c | |
4683 | ac_cpp='$CPP $CPPFLAGS' | |
4684 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4685 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4686 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4687 | ||
4688 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 4689 | /* confdefs.h. */ |
4690 | _ACEOF | |
4691 | cat confdefs.h >>conftest.$ac_ext | |
4692 | cat >>conftest.$ac_ext <<_ACEOF | |
4693 | /* end confdefs.h. */ | |
4694 | ||
4695 | int | |
4696 | main () | |
4697 | { | |
4698 | ||
4699 | ; | |
4700 | return 0; | |
4701 | } | |
4702 | _ACEOF | |
4703 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4704 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 4705 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 4706 | ac_status=$? |
af3004ff | 4707 | grep -v '^ *+' conftest.er1 >conftest.err |
4708 | rm -f conftest.er1 | |
4709 | cat conftest.err >&5 | |
a33e1d91 | 4710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4711 | (exit $ac_status); } && | |
6263d81f | 4712 | { ac_try='test -z "$ac_c_werror_flag" |
4713 | || test ! -s conftest.err' | |
af3004ff | 4714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4715 | (eval $ac_try) 2>&5 | |
4716 | ac_status=$? | |
4717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4718 | (exit $ac_status); }; } && | |
4719 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 4720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4721 | (eval $ac_try) 2>&5 | |
4722 | ac_status=$? | |
4723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4724 | (exit $ac_status); }; }; then | |
4725 | lt_cv_cc_needs_belf=yes | |
4726 | else | |
4727 | echo "$as_me: failed program was:" >&5 | |
4728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4729 | ||
4730 | lt_cv_cc_needs_belf=no | |
4731 | fi | |
af3004ff | 4732 | rm -f conftest.err conftest.$ac_objext \ |
4733 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 4734 | ac_ext=c |
4735 | ac_cpp='$CPP $CPPFLAGS' | |
4736 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4737 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4738 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4739 | ||
4740 | fi | |
4741 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
4742 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
4743 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
4744 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4745 | CFLAGS="$SAVE_CFLAGS" | |
4746 | fi | |
4747 | ;; | |
62567204 | 4748 | sparc*-*solaris*) |
4749 | # Find out which ABI we are using. | |
4750 | echo 'int i;' > conftest.$ac_ext | |
4751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4752 | (eval $ac_compile) 2>&5 | |
4753 | ac_status=$? | |
4754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4755 | (exit $ac_status); }; then | |
4756 | case `/usr/bin/file conftest.o` in | |
4757 | *64-bit*) | |
4758 | case $lt_cv_prog_gnu_ld in | |
4759 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
4760 | *) LD="${LD-ld} -64" ;; | |
4761 | esac | |
4762 | ;; | |
4763 | esac | |
4764 | fi | |
4765 | rm -rf conftest* | |
4766 | ;; | |
4767 | ||
a33e1d91 | 4768 | |
4769 | esac | |
4770 | ||
4771 | need_locks="$enable_libtool_lock" | |
4772 | ||
4773 | ||
4774 | ac_ext=c | |
4775 | ac_cpp='$CPP $CPPFLAGS' | |
4776 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4777 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4778 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4779 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
4780 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
4781 | # On Suns, sometimes $CPP names a directory. | |
4782 | if test -n "$CPP" && test -d "$CPP"; then | |
4783 | CPP= | |
4784 | fi | |
4785 | if test -z "$CPP"; then | |
4786 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4788 | else | |
4789 | # Double quotes because CPP needs to be expanded | |
4790 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4791 | do | |
4792 | ac_preproc_ok=false | |
4793 | for ac_c_preproc_warn_flag in '' yes | |
4794 | do | |
4795 | # Use a header file that comes with gcc, so configuring glibc | |
4796 | # with a fresh cross-compiler works. | |
4797 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4798 | # <limits.h> exists even on freestanding compilers. | |
4799 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4800 | # not just through cpp. "Syntax error" is here to catch this case. | |
4801 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 4802 | /* confdefs.h. */ |
4803 | _ACEOF | |
4804 | cat confdefs.h >>conftest.$ac_ext | |
4805 | cat >>conftest.$ac_ext <<_ACEOF | |
4806 | /* end confdefs.h. */ | |
4807 | #ifdef __STDC__ | |
4808 | # include <limits.h> | |
4809 | #else | |
4810 | # include <assert.h> | |
4811 | #endif | |
af3004ff | 4812 | Syntax error |
a33e1d91 | 4813 | _ACEOF |
4814 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4815 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4816 | ac_status=$? | |
4817 | grep -v '^ *+' conftest.er1 >conftest.err | |
4818 | rm -f conftest.er1 | |
4819 | cat conftest.err >&5 | |
4820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4821 | (exit $ac_status); } >/dev/null; then | |
4822 | if test -s conftest.err; then | |
4823 | ac_cpp_err=$ac_c_preproc_warn_flag | |
af3004ff | 4824 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a33e1d91 | 4825 | else |
4826 | ac_cpp_err= | |
4827 | fi | |
4828 | else | |
4829 | ac_cpp_err=yes | |
4830 | fi | |
4831 | if test -z "$ac_cpp_err"; then | |
4832 | : | |
4833 | else | |
4834 | echo "$as_me: failed program was:" >&5 | |
4835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4836 | ||
4837 | # Broken: fails on valid input. | |
4838 | continue | |
4839 | fi | |
4840 | rm -f conftest.err conftest.$ac_ext | |
4841 | ||
4842 | # OK, works on sane cases. Now check whether non-existent headers | |
4843 | # can be detected and how. | |
4844 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 4845 | /* confdefs.h. */ |
4846 | _ACEOF | |
4847 | cat confdefs.h >>conftest.$ac_ext | |
4848 | cat >>conftest.$ac_ext <<_ACEOF | |
4849 | /* end confdefs.h. */ | |
4850 | #include <ac_nonexistent.h> | |
4851 | _ACEOF | |
4852 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4853 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4854 | ac_status=$? | |
4855 | grep -v '^ *+' conftest.er1 >conftest.err | |
4856 | rm -f conftest.er1 | |
4857 | cat conftest.err >&5 | |
4858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4859 | (exit $ac_status); } >/dev/null; then | |
4860 | if test -s conftest.err; then | |
4861 | ac_cpp_err=$ac_c_preproc_warn_flag | |
af3004ff | 4862 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a33e1d91 | 4863 | else |
4864 | ac_cpp_err= | |
4865 | fi | |
4866 | else | |
4867 | ac_cpp_err=yes | |
4868 | fi | |
4869 | if test -z "$ac_cpp_err"; then | |
4870 | # Broken: success on invalid input. | |
4871 | continue | |
4872 | else | |
4873 | echo "$as_me: failed program was:" >&5 | |
4874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4875 | ||
4876 | # Passes both tests. | |
4877 | ac_preproc_ok=: | |
4878 | break | |
4879 | fi | |
4880 | rm -f conftest.err conftest.$ac_ext | |
4881 | ||
4882 | done | |
4883 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4884 | rm -f conftest.err conftest.$ac_ext | |
4885 | if $ac_preproc_ok; then | |
4886 | break | |
4887 | fi | |
4888 | ||
4889 | done | |
4890 | ac_cv_prog_CPP=$CPP | |
4891 | ||
4892 | fi | |
4893 | CPP=$ac_cv_prog_CPP | |
4894 | else | |
4895 | ac_cv_prog_CPP=$CPP | |
4896 | fi | |
4897 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
4898 | echo "${ECHO_T}$CPP" >&6 | |
4899 | ac_preproc_ok=false | |
4900 | for ac_c_preproc_warn_flag in '' yes | |
4901 | do | |
4902 | # Use a header file that comes with gcc, so configuring glibc | |
4903 | # with a fresh cross-compiler works. | |
4904 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4905 | # <limits.h> exists even on freestanding compilers. | |
4906 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4907 | # not just through cpp. "Syntax error" is here to catch this case. | |
4908 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 4909 | /* confdefs.h. */ |
4910 | _ACEOF | |
4911 | cat confdefs.h >>conftest.$ac_ext | |
4912 | cat >>conftest.$ac_ext <<_ACEOF | |
4913 | /* end confdefs.h. */ | |
4914 | #ifdef __STDC__ | |
4915 | # include <limits.h> | |
4916 | #else | |
4917 | # include <assert.h> | |
4918 | #endif | |
af3004ff | 4919 | Syntax error |
a33e1d91 | 4920 | _ACEOF |
4921 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4922 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4923 | ac_status=$? | |
4924 | grep -v '^ *+' conftest.er1 >conftest.err | |
4925 | rm -f conftest.er1 | |
4926 | cat conftest.err >&5 | |
4927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4928 | (exit $ac_status); } >/dev/null; then | |
4929 | if test -s conftest.err; then | |
4930 | ac_cpp_err=$ac_c_preproc_warn_flag | |
af3004ff | 4931 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a33e1d91 | 4932 | else |
4933 | ac_cpp_err= | |
4934 | fi | |
4935 | else | |
4936 | ac_cpp_err=yes | |
4937 | fi | |
4938 | if test -z "$ac_cpp_err"; then | |
4939 | : | |
4940 | else | |
4941 | echo "$as_me: failed program was:" >&5 | |
4942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4943 | ||
4944 | # Broken: fails on valid input. | |
4945 | continue | |
4946 | fi | |
4947 | rm -f conftest.err conftest.$ac_ext | |
4948 | ||
4949 | # OK, works on sane cases. Now check whether non-existent headers | |
4950 | # can be detected and how. | |
4951 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 4952 | /* confdefs.h. */ |
4953 | _ACEOF | |
4954 | cat confdefs.h >>conftest.$ac_ext | |
4955 | cat >>conftest.$ac_ext <<_ACEOF | |
4956 | /* end confdefs.h. */ | |
4957 | #include <ac_nonexistent.h> | |
4958 | _ACEOF | |
4959 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4960 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4961 | ac_status=$? | |
4962 | grep -v '^ *+' conftest.er1 >conftest.err | |
4963 | rm -f conftest.er1 | |
4964 | cat conftest.err >&5 | |
4965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4966 | (exit $ac_status); } >/dev/null; then | |
4967 | if test -s conftest.err; then | |
4968 | ac_cpp_err=$ac_c_preproc_warn_flag | |
af3004ff | 4969 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a33e1d91 | 4970 | else |
4971 | ac_cpp_err= | |
4972 | fi | |
4973 | else | |
4974 | ac_cpp_err=yes | |
4975 | fi | |
4976 | if test -z "$ac_cpp_err"; then | |
4977 | # Broken: success on invalid input. | |
4978 | continue | |
4979 | else | |
4980 | echo "$as_me: failed program was:" >&5 | |
4981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4982 | ||
4983 | # Passes both tests. | |
4984 | ac_preproc_ok=: | |
4985 | break | |
4986 | fi | |
4987 | rm -f conftest.err conftest.$ac_ext | |
4988 | ||
4989 | done | |
4990 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4991 | rm -f conftest.err conftest.$ac_ext | |
4992 | if $ac_preproc_ok; then | |
4993 | : | |
4994 | else | |
4995 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4996 | See \`config.log' for more details." >&5 | |
4997 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4998 | See \`config.log' for more details." >&2;} | |
4999 | { (exit 1); exit 1; }; } | |
5000 | fi | |
5001 | ||
5002 | ac_ext=c | |
5003 | ac_cpp='$CPP $CPPFLAGS' | |
5004 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5005 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5006 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5007 | ||
5008 | ||
5009 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
5010 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5011 | if test "${ac_cv_header_stdc+set}" = set; then | |
5012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5013 | else | |
5014 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 5015 | /* confdefs.h. */ |
5016 | _ACEOF | |
5017 | cat confdefs.h >>conftest.$ac_ext | |
5018 | cat >>conftest.$ac_ext <<_ACEOF | |
5019 | /* end confdefs.h. */ | |
5020 | #include <stdlib.h> | |
5021 | #include <stdarg.h> | |
5022 | #include <string.h> | |
5023 | #include <float.h> | |
5024 | ||
5025 | int | |
5026 | main () | |
5027 | { | |
5028 | ||
5029 | ; | |
5030 | return 0; | |
5031 | } | |
5032 | _ACEOF | |
5033 | rm -f conftest.$ac_objext | |
5034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 5035 | (eval $ac_compile) 2>conftest.er1 |
a33e1d91 | 5036 | ac_status=$? |
af3004ff | 5037 | grep -v '^ *+' conftest.er1 >conftest.err |
5038 | rm -f conftest.er1 | |
5039 | cat conftest.err >&5 | |
a33e1d91 | 5040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5041 | (exit $ac_status); } && | |
6263d81f | 5042 | { ac_try='test -z "$ac_c_werror_flag" |
5043 | || test ! -s conftest.err' | |
af3004ff | 5044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5045 | (eval $ac_try) 2>&5 | |
5046 | ac_status=$? | |
5047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5048 | (exit $ac_status); }; } && | |
5049 | { ac_try='test -s conftest.$ac_objext' | |
a33e1d91 | 5050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5051 | (eval $ac_try) 2>&5 | |
5052 | ac_status=$? | |
5053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5054 | (exit $ac_status); }; }; then | |
5055 | ac_cv_header_stdc=yes | |
5056 | else | |
5057 | echo "$as_me: failed program was:" >&5 | |
5058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5059 | ||
5060 | ac_cv_header_stdc=no | |
5061 | fi | |
af3004ff | 5062 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a33e1d91 | 5063 | |
5064 | if test $ac_cv_header_stdc = yes; then | |
5065 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5066 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 5067 | /* confdefs.h. */ |
5068 | _ACEOF | |
5069 | cat confdefs.h >>conftest.$ac_ext | |
5070 | cat >>conftest.$ac_ext <<_ACEOF | |
5071 | /* end confdefs.h. */ | |
5072 | #include <string.h> | |
5073 | ||
5074 | _ACEOF | |
5075 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5076 | $EGREP "memchr" >/dev/null 2>&1; then | |
5077 | : | |
5078 | else | |
5079 | ac_cv_header_stdc=no | |
5080 | fi | |
5081 | rm -f conftest* | |
5082 | ||
5083 | fi | |
5084 | ||
5085 | if test $ac_cv_header_stdc = yes; then | |
5086 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5087 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 5088 | /* confdefs.h. */ |
5089 | _ACEOF | |
5090 | cat confdefs.h >>conftest.$ac_ext | |
5091 | cat >>conftest.$ac_ext <<_ACEOF | |
5092 | /* end confdefs.h. */ | |
5093 | #include <stdlib.h> | |
5094 | ||
5095 | _ACEOF | |
5096 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5097 | $EGREP "free" >/dev/null 2>&1; then | |
5098 | : | |
5099 | else | |
5100 | ac_cv_header_stdc=no | |
5101 | fi | |
5102 | rm -f conftest* | |
5103 | ||
5104 | fi | |
5105 | ||
5106 | if test $ac_cv_header_stdc = yes; then | |
5107 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5108 | if test "$cross_compiling" = yes; then | |
5109 | : | |
5110 | else | |
5111 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 5112 | /* confdefs.h. */ |
5113 | _ACEOF | |
5114 | cat confdefs.h >>conftest.$ac_ext | |
5115 | cat >>conftest.$ac_ext <<_ACEOF | |
5116 | /* end confdefs.h. */ | |
5117 | #include <ctype.h> | |
5118 | #if ((' ' & 0x0FF) == 0x020) | |
5119 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5120 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5121 | #else | |
5122 | # define ISLOWER(c) \ | |
af3004ff | 5123 | (('a' <= (c) && (c) <= 'i') \ |
5124 | || ('j' <= (c) && (c) <= 'r') \ | |
5125 | || ('s' <= (c) && (c) <= 'z')) | |
a33e1d91 | 5126 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
5127 | #endif | |
5128 | ||
5129 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5130 | int | |
5131 | main () | |
5132 | { | |
5133 | int i; | |
5134 | for (i = 0; i < 256; i++) | |
5135 | if (XOR (islower (i), ISLOWER (i)) | |
af3004ff | 5136 | || toupper (i) != TOUPPER (i)) |
a33e1d91 | 5137 | exit(2); |
5138 | exit (0); | |
5139 | } | |
5140 | _ACEOF | |
5141 | rm -f conftest$ac_exeext | |
5142 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5143 | (eval $ac_link) 2>&5 | |
5144 | ac_status=$? | |
5145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5146 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5148 | (eval $ac_try) 2>&5 | |
5149 | ac_status=$? | |
5150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5151 | (exit $ac_status); }; }; then | |
5152 | : | |
5153 | else | |
5154 | echo "$as_me: program exited with status $ac_status" >&5 | |
5155 | echo "$as_me: failed program was:" >&5 | |
5156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5157 | ||
5158 | ( exit $ac_status ) | |
5159 | ac_cv_header_stdc=no | |
5160 | fi | |
af3004ff | 5161 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a33e1d91 | 5162 | fi |
5163 | fi | |
5164 | fi | |
5165 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5166 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
5167 | if test $ac_cv_header_stdc = yes; then | |
5168 | ||
5169 | cat >>confdefs.h <<\_ACEOF | |
5170 | #define STDC_HEADERS 1 | |
5171 | _ACEOF | |
5172 | ||
5173 | fi | |
5174 | ||
5175 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5176 | ||
5177 | ||
5178 | ||
5179 | ||
5180 | ||
5181 | ||
5182 | ||
5183 | ||
5184 | ||
5185 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
af3004ff | 5186 | inttypes.h stdint.h unistd.h |
a33e1d91 | 5187 | do |
5188 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5189 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5190 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5191 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5193 | else | |
5194 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 5195 | /* confdefs.h. */ |
5196 | _ACEOF | |
5197 | cat confdefs.h >>conftest.$ac_ext | |
5198 | cat >>conftest.$ac_ext <<_ACEOF | |
5199 | /* end confdefs.h. */ | |
5200 | $ac_includes_default | |
5201 | ||
5202 | #include <$ac_header> | |
5203 | _ACEOF | |
5204 | rm -f conftest.$ac_objext | |
5205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 5206 | (eval $ac_compile) 2>conftest.er1 |
a33e1d91 | 5207 | ac_status=$? |
af3004ff | 5208 | grep -v '^ *+' conftest.er1 >conftest.err |
5209 | rm -f conftest.er1 | |
5210 | cat conftest.err >&5 | |
a33e1d91 | 5211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5212 | (exit $ac_status); } && | |
6263d81f | 5213 | { ac_try='test -z "$ac_c_werror_flag" |
5214 | || test ! -s conftest.err' | |
af3004ff | 5215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5216 | (eval $ac_try) 2>&5 | |
5217 | ac_status=$? | |
5218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5219 | (exit $ac_status); }; } && | |
5220 | { ac_try='test -s conftest.$ac_objext' | |
a33e1d91 | 5221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5222 | (eval $ac_try) 2>&5 | |
5223 | ac_status=$? | |
5224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5225 | (exit $ac_status); }; }; then | |
5226 | eval "$as_ac_Header=yes" | |
5227 | else | |
5228 | echo "$as_me: failed program was:" >&5 | |
5229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5230 | ||
5231 | eval "$as_ac_Header=no" | |
5232 | fi | |
af3004ff | 5233 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a33e1d91 | 5234 | fi |
5235 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5236 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5237 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5238 | cat >>confdefs.h <<_ACEOF | |
5239 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5240 | _ACEOF | |
5241 | ||
5242 | fi | |
5243 | ||
5244 | done | |
5245 | ||
5246 | ||
5247 | ||
5248 | for ac_header in dlfcn.h | |
5249 | do | |
5250 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5251 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5252 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5253 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5254 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5256 | fi | |
5257 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5258 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5259 | else | |
5260 | # Is the header compilable? | |
5261 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5262 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5263 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 5264 | /* confdefs.h. */ |
5265 | _ACEOF | |
5266 | cat confdefs.h >>conftest.$ac_ext | |
5267 | cat >>conftest.$ac_ext <<_ACEOF | |
5268 | /* end confdefs.h. */ | |
5269 | $ac_includes_default | |
5270 | #include <$ac_header> | |
5271 | _ACEOF | |
5272 | rm -f conftest.$ac_objext | |
5273 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 5274 | (eval $ac_compile) 2>conftest.er1 |
a33e1d91 | 5275 | ac_status=$? |
af3004ff | 5276 | grep -v '^ *+' conftest.er1 >conftest.err |
5277 | rm -f conftest.er1 | |
5278 | cat conftest.err >&5 | |
a33e1d91 | 5279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5280 | (exit $ac_status); } && | |
6263d81f | 5281 | { ac_try='test -z "$ac_c_werror_flag" |
5282 | || test ! -s conftest.err' | |
af3004ff | 5283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5284 | (eval $ac_try) 2>&5 | |
5285 | ac_status=$? | |
5286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5287 | (exit $ac_status); }; } && | |
5288 | { ac_try='test -s conftest.$ac_objext' | |
a33e1d91 | 5289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5290 | (eval $ac_try) 2>&5 | |
5291 | ac_status=$? | |
5292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5293 | (exit $ac_status); }; }; then | |
5294 | ac_header_compiler=yes | |
5295 | else | |
5296 | echo "$as_me: failed program was:" >&5 | |
5297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5298 | ||
5299 | ac_header_compiler=no | |
5300 | fi | |
af3004ff | 5301 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a33e1d91 | 5302 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5303 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5304 | ||
5305 | # Is the header present? | |
5306 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5307 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5308 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 5309 | /* confdefs.h. */ |
5310 | _ACEOF | |
5311 | cat confdefs.h >>conftest.$ac_ext | |
5312 | cat >>conftest.$ac_ext <<_ACEOF | |
5313 | /* end confdefs.h. */ | |
5314 | #include <$ac_header> | |
5315 | _ACEOF | |
5316 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5317 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5318 | ac_status=$? | |
5319 | grep -v '^ *+' conftest.er1 >conftest.err | |
5320 | rm -f conftest.er1 | |
5321 | cat conftest.err >&5 | |
5322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5323 | (exit $ac_status); } >/dev/null; then | |
5324 | if test -s conftest.err; then | |
5325 | ac_cpp_err=$ac_c_preproc_warn_flag | |
af3004ff | 5326 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a33e1d91 | 5327 | else |
5328 | ac_cpp_err= | |
5329 | fi | |
5330 | else | |
5331 | ac_cpp_err=yes | |
5332 | fi | |
5333 | if test -z "$ac_cpp_err"; then | |
5334 | ac_header_preproc=yes | |
5335 | else | |
5336 | echo "$as_me: failed program was:" >&5 | |
5337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5338 | ||
5339 | ac_header_preproc=no | |
5340 | fi | |
5341 | rm -f conftest.err conftest.$ac_ext | |
5342 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5343 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5344 | ||
5345 | # So? What about this header? | |
af3004ff | 5346 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5347 | yes:no: ) | |
a33e1d91 | 5348 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5349 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
af3004ff | 5350 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5351 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5352 | ac_header_preproc=yes | |
a33e1d91 | 5353 | ;; |
af3004ff | 5354 | no:yes:* ) |
a33e1d91 | 5355 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5356 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
af3004ff | 5357 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5358 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5359 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5360 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5361 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5362 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a33e1d91 | 5363 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5364 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
af3004ff | 5365 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5366 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a33e1d91 | 5367 | ( |
5368 | cat <<\_ASBOX | |
6e4fdb42 | 5369 | ## ----------------------------------------------- ## |
5370 | ## Report this to http://www.squid-cache.org/bugs/ ## | |
5371 | ## ----------------------------------------------- ## | |
a33e1d91 | 5372 | _ASBOX |
5373 | ) | | |
5374 | sed "s/^/$as_me: WARNING: /" >&2 | |
5375 | ;; | |
5376 | esac | |
5377 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5378 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5379 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5381 | else | |
af3004ff | 5382 | eval "$as_ac_Header=\$ac_header_preproc" |
a33e1d91 | 5383 | fi |
5384 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5385 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5386 | ||
5387 | fi | |
5388 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5389 | cat >>confdefs.h <<_ACEOF | |
5390 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5391 | _ACEOF | |
5392 | ||
5393 | fi | |
5394 | ||
5395 | done | |
5396 | ||
631008fb | 5397 | |
5398 | ||
5399 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
5400 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
5401 | (test "X$CXX" != "Xg++"))) ; then | |
5402 | ac_ext=cc | |
a33e1d91 | 5403 | ac_cpp='$CXXCPP $CPPFLAGS' |
5404 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5405 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5406 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5407 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
5408 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
5409 | if test -z "$CXXCPP"; then | |
5410 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
5411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5412 | else | |
5413 | # Double quotes because CXXCPP needs to be expanded | |
5414 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
5415 | do | |
5416 | ac_preproc_ok=false | |
5417 | for ac_cxx_preproc_warn_flag in '' yes | |
5418 | do | |
5419 | # Use a header file that comes with gcc, so configuring glibc | |
5420 | # with a fresh cross-compiler works. | |
5421 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5422 | # <limits.h> exists even on freestanding compilers. | |
5423 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5424 | # not just through cpp. "Syntax error" is here to catch this case. | |
5425 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 5426 | /* confdefs.h. */ |
5427 | _ACEOF | |
5428 | cat confdefs.h >>conftest.$ac_ext | |
5429 | cat >>conftest.$ac_ext <<_ACEOF | |
5430 | /* end confdefs.h. */ | |
5431 | #ifdef __STDC__ | |
5432 | # include <limits.h> | |
5433 | #else | |
5434 | # include <assert.h> | |
5435 | #endif | |
af3004ff | 5436 | Syntax error |
a33e1d91 | 5437 | _ACEOF |
5438 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5439 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5440 | ac_status=$? | |
5441 | grep -v '^ *+' conftest.er1 >conftest.err | |
5442 | rm -f conftest.er1 | |
5443 | cat conftest.err >&5 | |
5444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5445 | (exit $ac_status); } >/dev/null; then | |
5446 | if test -s conftest.err; then | |
5447 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
af3004ff | 5448 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a33e1d91 | 5449 | else |
5450 | ac_cpp_err= | |
5451 | fi | |
5452 | else | |
5453 | ac_cpp_err=yes | |
5454 | fi | |
5455 | if test -z "$ac_cpp_err"; then | |
5456 | : | |
5457 | else | |
5458 | echo "$as_me: failed program was:" >&5 | |
5459 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5460 | ||
5461 | # Broken: fails on valid input. | |
5462 | continue | |
5463 | fi | |
5464 | rm -f conftest.err conftest.$ac_ext | |
5465 | ||
5466 | # OK, works on sane cases. Now check whether non-existent headers | |
5467 | # can be detected and how. | |
5468 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 5469 | /* confdefs.h. */ |
5470 | _ACEOF | |
5471 | cat confdefs.h >>conftest.$ac_ext | |
5472 | cat >>conftest.$ac_ext <<_ACEOF | |
5473 | /* end confdefs.h. */ | |
5474 | #include <ac_nonexistent.h> | |
5475 | _ACEOF | |
5476 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5477 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5478 | ac_status=$? | |
5479 | grep -v '^ *+' conftest.er1 >conftest.err | |
5480 | rm -f conftest.er1 | |
5481 | cat conftest.err >&5 | |
5482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5483 | (exit $ac_status); } >/dev/null; then | |
5484 | if test -s conftest.err; then | |
5485 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
af3004ff | 5486 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a33e1d91 | 5487 | else |
5488 | ac_cpp_err= | |
5489 | fi | |
5490 | else | |
5491 | ac_cpp_err=yes | |
5492 | fi | |
5493 | if test -z "$ac_cpp_err"; then | |
5494 | # Broken: success on invalid input. | |
5495 | continue | |
5496 | else | |
5497 | echo "$as_me: failed program was:" >&5 | |
5498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5499 | ||
5500 | # Passes both tests. | |
5501 | ac_preproc_ok=: | |
5502 | break | |
5503 | fi | |
5504 | rm -f conftest.err conftest.$ac_ext | |
5505 | ||
5506 | done | |
5507 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5508 | rm -f conftest.err conftest.$ac_ext | |
5509 | if $ac_preproc_ok; then | |
5510 | break | |
5511 | fi | |
5512 | ||
5513 | done | |
5514 | ac_cv_prog_CXXCPP=$CXXCPP | |
5515 | ||
5516 | fi | |
5517 | CXXCPP=$ac_cv_prog_CXXCPP | |
5518 | else | |
5519 | ac_cv_prog_CXXCPP=$CXXCPP | |
5520 | fi | |
5521 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
5522 | echo "${ECHO_T}$CXXCPP" >&6 | |
5523 | ac_preproc_ok=false | |
5524 | for ac_cxx_preproc_warn_flag in '' yes | |
5525 | do | |
5526 | # Use a header file that comes with gcc, so configuring glibc | |
5527 | # with a fresh cross-compiler works. | |
5528 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5529 | # <limits.h> exists even on freestanding compilers. | |
5530 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5531 | # not just through cpp. "Syntax error" is here to catch this case. | |
5532 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 5533 | /* confdefs.h. */ |
5534 | _ACEOF | |
5535 | cat confdefs.h >>conftest.$ac_ext | |
5536 | cat >>conftest.$ac_ext <<_ACEOF | |
5537 | /* end confdefs.h. */ | |
5538 | #ifdef __STDC__ | |
5539 | # include <limits.h> | |
5540 | #else | |
5541 | # include <assert.h> | |
5542 | #endif | |
af3004ff | 5543 | Syntax error |
a33e1d91 | 5544 | _ACEOF |
5545 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5546 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5547 | ac_status=$? | |
5548 | grep -v '^ *+' conftest.er1 >conftest.err | |
5549 | rm -f conftest.er1 | |
5550 | cat conftest.err >&5 | |
5551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5552 | (exit $ac_status); } >/dev/null; then | |
5553 | if test -s conftest.err; then | |
5554 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
af3004ff | 5555 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a33e1d91 | 5556 | else |
5557 | ac_cpp_err= | |
5558 | fi | |
5559 | else | |
5560 | ac_cpp_err=yes | |
5561 | fi | |
5562 | if test -z "$ac_cpp_err"; then | |
5563 | : | |
5564 | else | |
5565 | echo "$as_me: failed program was:" >&5 | |
5566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5567 | ||
5568 | # Broken: fails on valid input. | |
5569 | continue | |
5570 | fi | |
5571 | rm -f conftest.err conftest.$ac_ext | |
5572 | ||
5573 | # OK, works on sane cases. Now check whether non-existent headers | |
5574 | # can be detected and how. | |
5575 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 5576 | /* confdefs.h. */ |
5577 | _ACEOF | |
5578 | cat confdefs.h >>conftest.$ac_ext | |
5579 | cat >>conftest.$ac_ext <<_ACEOF | |
5580 | /* end confdefs.h. */ | |
5581 | #include <ac_nonexistent.h> | |
5582 | _ACEOF | |
5583 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5584 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5585 | ac_status=$? | |
5586 | grep -v '^ *+' conftest.er1 >conftest.err | |
5587 | rm -f conftest.er1 | |
5588 | cat conftest.err >&5 | |
5589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5590 | (exit $ac_status); } >/dev/null; then | |
5591 | if test -s conftest.err; then | |
5592 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
af3004ff | 5593 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
a33e1d91 | 5594 | else |
5595 | ac_cpp_err= | |
5596 | fi | |
5597 | else | |
5598 | ac_cpp_err=yes | |
5599 | fi | |
5600 | if test -z "$ac_cpp_err"; then | |
5601 | # Broken: success on invalid input. | |
5602 | continue | |
5603 | else | |
5604 | echo "$as_me: failed program was:" >&5 | |
5605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5606 | ||
5607 | # Passes both tests. | |
5608 | ac_preproc_ok=: | |
5609 | break | |
5610 | fi | |
5611 | rm -f conftest.err conftest.$ac_ext | |
5612 | ||
5613 | done | |
5614 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5615 | rm -f conftest.err conftest.$ac_ext | |
5616 | if $ac_preproc_ok; then | |
5617 | : | |
5618 | else | |
5619 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
5620 | See \`config.log' for more details." >&5 | |
5621 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
5622 | See \`config.log' for more details." >&2;} | |
5623 | { (exit 1); exit 1; }; } | |
5624 | fi | |
5625 | ||
5626 | ac_ext=cc | |
5627 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5628 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5629 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5630 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5631 | ||
631008fb | 5632 | fi |
5633 | ||
a33e1d91 | 5634 | |
5635 | ac_ext=f | |
5636 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
5637 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5638 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
5639 | if test -n "$ac_tool_prefix"; then | |
af3004ff | 5640 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
a33e1d91 | 5641 | do |
5642 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5643 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5644 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5645 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5646 | if test "${ac_cv_prog_F77+set}" = set; then | |
5647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5648 | else | |
5649 | if test -n "$F77"; then | |
5650 | ac_cv_prog_F77="$F77" # Let the user override the test. | |
5651 | else | |
5652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5653 | for as_dir in $PATH | |
5654 | do | |
5655 | IFS=$as_save_IFS | |
5656 | test -z "$as_dir" && as_dir=. | |
5657 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5658 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5659 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | |
5660 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5661 | break 2 | |
5662 | fi | |
5663 | done | |
5664 | done | |
5665 | ||
5666 | fi | |
5667 | fi | |
5668 | F77=$ac_cv_prog_F77 | |
5669 | if test -n "$F77"; then | |
5670 | echo "$as_me:$LINENO: result: $F77" >&5 | |
5671 | echo "${ECHO_T}$F77" >&6 | |
5672 | else | |
5673 | echo "$as_me:$LINENO: result: no" >&5 | |
5674 | echo "${ECHO_T}no" >&6 | |
5675 | fi | |
5676 | ||
5677 | test -n "$F77" && break | |
5678 | done | |
5679 | fi | |
5680 | if test -z "$F77"; then | |
5681 | ac_ct_F77=$F77 | |
af3004ff | 5682 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran |
a33e1d91 | 5683 | do |
5684 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5685 | set dummy $ac_prog; ac_word=$2 | |
5686 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5687 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5688 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | |
5689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5690 | else | |
5691 | if test -n "$ac_ct_F77"; then | |
5692 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | |
5693 | else | |
5694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5695 | for as_dir in $PATH | |
5696 | do | |
5697 | IFS=$as_save_IFS | |
5698 | test -z "$as_dir" && as_dir=. | |
5699 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5700 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5701 | ac_cv_prog_ac_ct_F77="$ac_prog" | |
5702 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5703 | break 2 | |
5704 | fi | |
5705 | done | |
5706 | done | |
5707 | ||
5708 | fi | |
5709 | fi | |
5710 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | |
5711 | if test -n "$ac_ct_F77"; then | |
5712 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | |
5713 | echo "${ECHO_T}$ac_ct_F77" >&6 | |
5714 | else | |
5715 | echo "$as_me:$LINENO: result: no" >&5 | |
5716 | echo "${ECHO_T}no" >&6 | |
5717 | fi | |
5718 | ||
5719 | test -n "$ac_ct_F77" && break | |
5720 | done | |
5721 | ||
5722 | F77=$ac_ct_F77 | |
5723 | fi | |
5724 | ||
5725 | ||
5726 | # Provide some information about the compiler. | |
00b2804c | 5727 | echo "$as_me:5727:" \ |
a33e1d91 | 5728 | "checking for Fortran 77 compiler version" >&5 |
5729 | ac_compiler=`set X $ac_compile; echo $2` | |
5730 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
5731 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
5732 | ac_status=$? | |
5733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5734 | (exit $ac_status); } | |
5735 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
5736 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
5737 | ac_status=$? | |
5738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5739 | (exit $ac_status); } | |
5740 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
5741 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
5742 | ac_status=$? | |
5743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5744 | (exit $ac_status); } | |
af3004ff | 5745 | rm -f a.out |
a33e1d91 | 5746 | |
5747 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
af3004ff | 5748 | # input file. (Note that this only needs to work for GNU compilers.) |
a33e1d91 | 5749 | ac_save_ext=$ac_ext |
5750 | ac_ext=F | |
5751 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | |
5752 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 | |
5753 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then | |
5754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5755 | else | |
5756 | cat >conftest.$ac_ext <<_ACEOF | |
5757 | program main | |
5758 | #ifndef __GNUC__ | |
5759 | choke me | |
5760 | #endif | |
5761 | ||
5762 | end | |
5763 | _ACEOF | |
5764 | rm -f conftest.$ac_objext | |
5765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 5766 | (eval $ac_compile) 2>conftest.er1 |
a33e1d91 | 5767 | ac_status=$? |
af3004ff | 5768 | grep -v '^ *+' conftest.er1 >conftest.err |
5769 | rm -f conftest.er1 | |
5770 | cat conftest.err >&5 | |
a33e1d91 | 5771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5772 | (exit $ac_status); } && | |
6263d81f | 5773 | { ac_try='test -z "$ac_f77_werror_flag" |
5774 | || test ! -s conftest.err' | |
af3004ff | 5775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5776 | (eval $ac_try) 2>&5 | |
5777 | ac_status=$? | |
5778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5779 | (exit $ac_status); }; } && | |
5780 | { ac_try='test -s conftest.$ac_objext' | |
a33e1d91 | 5781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5782 | (eval $ac_try) 2>&5 | |
5783 | ac_status=$? | |
5784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5785 | (exit $ac_status); }; }; then | |
5786 | ac_compiler_gnu=yes | |
5787 | else | |
5788 | echo "$as_me: failed program was:" >&5 | |
5789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5790 | ||
5791 | ac_compiler_gnu=no | |
5792 | fi | |
af3004ff | 5793 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a33e1d91 | 5794 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
5795 | ||
5796 | fi | |
5797 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | |
5798 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 | |
5799 | ac_ext=$ac_save_ext | |
a33e1d91 | 5800 | ac_test_FFLAGS=${FFLAGS+set} |
5801 | ac_save_FFLAGS=$FFLAGS | |
5802 | FFLAGS= | |
5803 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | |
5804 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 | |
5805 | if test "${ac_cv_prog_f77_g+set}" = set; then | |
5806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5807 | else | |
5808 | FFLAGS=-g | |
5809 | cat >conftest.$ac_ext <<_ACEOF | |
5810 | program main | |
5811 | ||
5812 | end | |
5813 | _ACEOF | |
5814 | rm -f conftest.$ac_objext | |
5815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 5816 | (eval $ac_compile) 2>conftest.er1 |
a33e1d91 | 5817 | ac_status=$? |
af3004ff | 5818 | grep -v '^ *+' conftest.er1 >conftest.err |
5819 | rm -f conftest.er1 | |
5820 | cat conftest.err >&5 | |
a33e1d91 | 5821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5822 | (exit $ac_status); } && | |
6263d81f | 5823 | { ac_try='test -z "$ac_f77_werror_flag" |
5824 | || test ! -s conftest.err' | |
af3004ff | 5825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5826 | (eval $ac_try) 2>&5 | |
5827 | ac_status=$? | |
5828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5829 | (exit $ac_status); }; } && | |
5830 | { ac_try='test -s conftest.$ac_objext' | |
a33e1d91 | 5831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5832 | (eval $ac_try) 2>&5 | |
5833 | ac_status=$? | |
5834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5835 | (exit $ac_status); }; }; then | |
5836 | ac_cv_prog_f77_g=yes | |
5837 | else | |
5838 | echo "$as_me: failed program was:" >&5 | |
5839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5840 | ||
5841 | ac_cv_prog_f77_g=no | |
5842 | fi | |
af3004ff | 5843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a33e1d91 | 5844 | |
5845 | fi | |
5846 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | |
5847 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 | |
5848 | if test "$ac_test_FFLAGS" = set; then | |
5849 | FFLAGS=$ac_save_FFLAGS | |
5850 | elif test $ac_cv_prog_f77_g = yes; then | |
af3004ff | 5851 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
a33e1d91 | 5852 | FFLAGS="-g -O2" |
5853 | else | |
5854 | FFLAGS="-g" | |
5855 | fi | |
5856 | else | |
af3004ff | 5857 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
a33e1d91 | 5858 | FFLAGS="-O2" |
5859 | else | |
5860 | FFLAGS= | |
5861 | fi | |
5862 | fi | |
af3004ff | 5863 | |
5864 | G77=`test $ac_compiler_gnu = yes && echo yes` | |
a33e1d91 | 5865 | ac_ext=c |
5866 | ac_cpp='$CPP $CPPFLAGS' | |
5867 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5868 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5869 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5870 | ||
5871 | ||
5872 | ||
5873 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
5874 | ||
5875 | # find the maximum length of command line arguments | |
5876 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
5877 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
5878 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
5879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5880 | else | |
5881 | i=0 | |
5882 | teststring="ABCD" | |
5883 | ||
5884 | case $build_os in | |
5885 | msdosdjgpp*) | |
5886 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5887 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5888 | # during glob expansion). Even if it were fixed, the result of this | |
5889 | # check would be larger than it should be. | |
5890 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5891 | ;; | |
5892 | ||
5893 | gnu*) | |
5894 | # Under GNU Hurd, this test is not required because there is | |
5895 | # no limit to the length of command line arguments. | |
5896 | # Libtool will interpret -1 as no limit whatsoever | |
5897 | lt_cv_sys_max_cmd_len=-1; | |
5898 | ;; | |
5899 | ||
5900 | cygwin* | mingw*) | |
5901 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5902 | # about 5 minutes as the teststring grows exponentially. | |
5903 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5904 | # you end up with a "frozen" computer, even though with patience | |
5905 | # the test eventually succeeds (with a max line length of 256k). | |
5906 | # Instead, let's just punt: use the minimum linelength reported by | |
5907 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5908 | lt_cv_sys_max_cmd_len=8192; | |
5909 | ;; | |
5910 | ||
5911 | amigaos*) | |
5912 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5913 | # So we just punt and use a minimum line length of 8192. | |
5914 | lt_cv_sys_max_cmd_len=8192; | |
5915 | ;; | |
5916 | ||
087278d6 | 5917 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
631008fb | 5918 | # This has been around since 386BSD, at least. Likely further. |
5919 | if test -x /sbin/sysctl; then | |
5920 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5921 | elif test -x /usr/sbin/sysctl; then | |
5922 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5923 | else | |
693f5c2e | 5924 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
631008fb | 5925 | fi |
5926 | # And add a safety zone | |
5927 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
087278d6 | 5928 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
631008fb | 5929 | ;; |
62567204 | 5930 | |
5931 | interix*) | |
5932 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5933 | lt_cv_sys_max_cmd_len=196608 | |
5934 | ;; | |
5935 | ||
087278d6 | 5936 | osf*) |
5937 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5938 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5939 | # nice to cause kernel panics so lets avoid the loop below. | |
5940 | # First set a reasonable default. | |
5941 | lt_cv_sys_max_cmd_len=16384 | |
5942 | # | |
5943 | if test -x /sbin/sysconfig; then | |
5944 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5945 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5946 | esac | |
5947 | fi | |
5948 | ;; | |
62567204 | 5949 | sco3.2v5*) |
5950 | lt_cv_sys_max_cmd_len=102400 | |
5951 | ;; | |
5952 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5953 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5954 | if test -n "$kargmax"; then | |
5955 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5956 | else | |
5957 | lt_cv_sys_max_cmd_len=32768 | |
5958 | fi | |
5959 | ;; | |
087278d6 | 5960 | *) |
a33e1d91 | 5961 | # If test is not a shell built-in, we'll probably end up computing a |
5962 | # maximum length that is only half of the actual maximum length, but | |
5963 | # we can't tell. | |
631008fb | 5964 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
5965 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ | |
a33e1d91 | 5966 | = "XX$teststring") >/dev/null 2>&1 && |
5967 | new_result=`expr "X$teststring" : ".*" 2>&1` && | |
5968 | lt_cv_sys_max_cmd_len=$new_result && | |
5969 | test $i != 17 # 1/2 MB should be enough | |
5970 | do | |
5971 | i=`expr $i + 1` | |
5972 | teststring=$teststring$teststring | |
5973 | done | |
5974 | teststring= | |
5975 | # Add a significant safety factor because C++ compilers can tack on massive | |
5976 | # amounts of additional arguments before passing them to the linker. | |
5977 | # It appears as though 1/2 is a usable value. | |
5978 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5979 | ;; | |
5980 | esac | |
5981 | ||
5982 | fi | |
5983 | ||
5984 | if test -n $lt_cv_sys_max_cmd_len ; then | |
5985 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
5986 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
5987 | else | |
5988 | echo "$as_me:$LINENO: result: none" >&5 | |
5989 | echo "${ECHO_T}none" >&6 | |
5990 | fi | |
5991 | ||
5992 | ||
5993 | ||
5994 | ||
5995 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
5996 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
5997 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
5998 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
5999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6000 | else | |
6001 | ||
6002 | # These are sane defaults that work on at least a few old systems. | |
6003 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6004 | ||
6005 | # Character class describing NM global symbol codes. | |
6006 | symcode='[BCDEGRST]' | |
6007 | ||
6008 | # Regexp to match symbols that can be accessed directly from C. | |
6009 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6010 | ||
a33e1d91 | 6011 | # Transform an extracted symbol line into a proper C declaration |
6012 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | |
6013 | ||
6014 | # Transform an extracted symbol line into symbol name and symbol address | |
6015 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
6016 | ||
6017 | # Define system-specific variables. | |
6018 | case $host_os in | |
6019 | aix*) | |
6020 | symcode='[BCDT]' | |
6021 | ;; | |
6022 | cygwin* | mingw* | pw32*) | |
6023 | symcode='[ABCDGISTW]' | |
6024 | ;; | |
6025 | hpux*) # Its linker distinguishes data from code symbols | |
6026 | if test "$host_cpu" = ia64; then | |
6027 | symcode='[ABCDEGRST]' | |
6028 | fi | |
6029 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6030 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
6031 | ;; | |
631008fb | 6032 | linux*) |
6033 | if test "$host_cpu" = ia64; then | |
6034 | symcode='[ABCDGIRSTW]' | |
6035 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6036 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | |
6037 | fi | |
6038 | ;; | |
a33e1d91 | 6039 | irix* | nonstopux*) |
6040 | symcode='[BCDEGRST]' | |
6041 | ;; | |
6042 | osf*) | |
6043 | symcode='[BCDEGQRST]' | |
6044 | ;; | |
62567204 | 6045 | solaris*) |
a33e1d91 | 6046 | symcode='[BDRT]' |
6047 | ;; | |
62567204 | 6048 | sco3.2v5*) |
6049 | symcode='[DT]' | |
6050 | ;; | |
6051 | sysv4.2uw2*) | |
6052 | symcode='[DT]' | |
6053 | ;; | |
6054 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6055 | symcode='[ABDT]' | |
6056 | ;; | |
a33e1d91 | 6057 | sysv4) |
6058 | symcode='[DFNSTU]' | |
6059 | ;; | |
6060 | esac | |
6061 | ||
6062 | # Handle CRLF in mingw tool chain | |
6063 | opt_cr= | |
6064 | case $build_os in | |
6065 | mingw*) | |
6066 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6067 | ;; | |
6068 | esac | |
6069 | ||
6070 | # If we're using GNU nm, then use its standard symbol codes. | |
6071 | case `$NM -V 2>&1` in | |
6072 | *GNU* | *'with BFD'*) | |
6073 | symcode='[ABCDGIRSTW]' ;; | |
6074 | esac | |
6075 | ||
6076 | # Try without a prefix undercore, then with it. | |
6077 | for ac_symprfx in "" "_"; do | |
6078 | ||
087278d6 | 6079 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6080 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6081 | ||
a33e1d91 | 6082 | # Write the raw and C identifiers. |
087278d6 | 6083 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
a33e1d91 | 6084 | |
6085 | # Check to see that the pipe works correctly. | |
6086 | pipe_works=no | |
6087 | ||
6088 | rm -f conftest* | |
6089 | cat > conftest.$ac_ext <<EOF | |
6090 | #ifdef __cplusplus | |
6091 | extern "C" { | |
6092 | #endif | |
6093 | char nm_test_var; | |
6094 | void nm_test_func(){} | |
6095 | #ifdef __cplusplus | |
6096 | } | |
6097 | #endif | |
6098 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6099 | EOF | |
6100 | ||
6101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6102 | (eval $ac_compile) 2>&5 | |
6103 | ac_status=$? | |
6104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6105 | (exit $ac_status); }; then | |
6106 | # Now try to grab the symbols. | |
6107 | nlist=conftest.nm | |
6108 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
6109 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
6110 | ac_status=$? | |
6111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6112 | (exit $ac_status); } && test -s "$nlist"; then | |
6113 | # Try sorting and uniquifying the output. | |
6114 | if sort "$nlist" | uniq > "$nlist"T; then | |
6115 | mv -f "$nlist"T "$nlist" | |
6116 | else | |
6117 | rm -f "$nlist"T | |
6118 | fi | |
6119 | ||
6120 | # Make sure that we snagged all the symbols we need. | |
6121 | if grep ' nm_test_var$' "$nlist" >/dev/null; then | |
6122 | if grep ' nm_test_func$' "$nlist" >/dev/null; then | |
6123 | cat <<EOF > conftest.$ac_ext | |
6124 | #ifdef __cplusplus | |
6125 | extern "C" { | |
6126 | #endif | |
6127 | ||
6128 | EOF | |
6129 | # Now generate the symbol file. | |
6130 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | |
6131 | ||
6132 | cat <<EOF >> conftest.$ac_ext | |
6133 | #if defined (__STDC__) && __STDC__ | |
6134 | # define lt_ptr_t void * | |
6135 | #else | |
6136 | # define lt_ptr_t char * | |
6137 | # define const | |
6138 | #endif | |
6139 | ||
6140 | /* The mapping between symbol names and symbols. */ | |
6141 | const struct { | |
6142 | const char *name; | |
6143 | lt_ptr_t address; | |
6144 | } | |
6145 | lt_preloaded_symbols[] = | |
6146 | { | |
6147 | EOF | |
6148 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | |
6149 | cat <<\EOF >> conftest.$ac_ext | |
6150 | {0, (lt_ptr_t) 0} | |
6151 | }; | |
6152 | ||
6153 | #ifdef __cplusplus | |
6154 | } | |
6155 | #endif | |
6156 | EOF | |
6157 | # Now try linking the two files. | |
6158 | mv conftest.$ac_objext conftstm.$ac_objext | |
6159 | lt_save_LIBS="$LIBS" | |
6160 | lt_save_CFLAGS="$CFLAGS" | |
6161 | LIBS="conftstm.$ac_objext" | |
6162 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6163 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6164 | (eval $ac_link) 2>&5 | |
6165 | ac_status=$? | |
6166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6167 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
6168 | pipe_works=yes | |
6169 | fi | |
6170 | LIBS="$lt_save_LIBS" | |
6171 | CFLAGS="$lt_save_CFLAGS" | |
6172 | else | |
6173 | echo "cannot find nm_test_func in $nlist" >&5 | |
6174 | fi | |
6175 | else | |
6176 | echo "cannot find nm_test_var in $nlist" >&5 | |
6177 | fi | |
6178 | else | |
6179 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6180 | fi | |
6181 | else | |
6182 | echo "$progname: failed program was:" >&5 | |
6183 | cat conftest.$ac_ext >&5 | |
6184 | fi | |
6185 | rm -f conftest* conftst* | |
6186 | ||
6187 | # Do not use the global_symbol_pipe unless it works. | |
6188 | if test "$pipe_works" = yes; then | |
6189 | break | |
6190 | else | |
6191 | lt_cv_sys_global_symbol_pipe= | |
6192 | fi | |
6193 | done | |
6194 | ||
6195 | fi | |
6196 | ||
6197 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6198 | lt_cv_sys_global_symbol_to_cdecl= | |
6199 | fi | |
6200 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6201 | echo "$as_me:$LINENO: result: failed" >&5 | |
6202 | echo "${ECHO_T}failed" >&6 | |
6203 | else | |
6204 | echo "$as_me:$LINENO: result: ok" >&5 | |
6205 | echo "${ECHO_T}ok" >&6 | |
6206 | fi | |
6207 | ||
6208 | echo "$as_me:$LINENO: checking for objdir" >&5 | |
6209 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
6210 | if test "${lt_cv_objdir+set}" = set; then | |
6211 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6212 | else | |
6213 | rm -f .libs 2>/dev/null | |
6214 | mkdir .libs 2>/dev/null | |
6215 | if test -d .libs; then | |
6216 | lt_cv_objdir=.libs | |
6217 | else | |
6218 | # MS-DOS does not allow filenames that begin with a dot. | |
6219 | lt_cv_objdir=_libs | |
6220 | fi | |
6221 | rmdir .libs 2>/dev/null | |
6222 | fi | |
6223 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
6224 | echo "${ECHO_T}$lt_cv_objdir" >&6 | |
6225 | objdir=$lt_cv_objdir | |
6226 | ||
6227 | ||
6228 | ||
6229 | ||
6230 | ||
6231 | case $host_os in | |
6232 | aix3*) | |
6233 | # AIX sometimes has problems with the GCC collect2 program. For some | |
6234 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6235 | # vanish in a puff of smoke. | |
6236 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
6237 | COLLECT_NAMES= | |
6238 | export COLLECT_NAMES | |
6239 | fi | |
6240 | ;; | |
6241 | esac | |
6242 | ||
6243 | # Sed substitution that helps us do robust quoting. It backslashifies | |
6244 | # metacharacters that are still active within double-quoted strings. | |
087278d6 | 6245 | Xsed='sed -e 1s/^X//' |
a33e1d91 | 6246 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
6247 | ||
6248 | # Same as above, but do not quote variable references. | |
6249 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | |
6250 | ||
6251 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6252 | # double_quote_subst'ed string. | |
6253 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6254 | ||
6255 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6256 | no_glob_subst='s/\*/\\\*/g' | |
6257 | ||
6258 | # Constants: | |
6259 | rm="rm -f" | |
6260 | ||
6261 | # Global variables: | |
6262 | default_ofile=libtool | |
6263 | can_build_shared=yes | |
6264 | ||
693f5c2e | 6265 | # All known linkers require a `.a' archive for static linking (except MSVC, |
a33e1d91 | 6266 | # which needs '.lib'). |
6267 | libext=a | |
6268 | ltmain="$ac_aux_dir/ltmain.sh" | |
6269 | ofile="$default_ofile" | |
6270 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
6271 | ||
6272 | if test -n "$ac_tool_prefix"; then | |
6273 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6274 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6275 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6276 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6277 | if test "${ac_cv_prog_AR+set}" = set; then | |
6278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6279 | else | |
6280 | if test -n "$AR"; then | |
6281 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6282 | else | |
6283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6284 | for as_dir in $PATH | |
6285 | do | |
6286 | IFS=$as_save_IFS | |
6287 | test -z "$as_dir" && as_dir=. | |
6288 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6289 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6290 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
6291 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6292 | break 2 | |
6293 | fi | |
6294 | done | |
6295 | done | |
6296 | ||
6297 | fi | |
6298 | fi | |
6299 | AR=$ac_cv_prog_AR | |
6300 | if test -n "$AR"; then | |
6301 | echo "$as_me:$LINENO: result: $AR" >&5 | |
6302 | echo "${ECHO_T}$AR" >&6 | |
6303 | else | |
6304 | echo "$as_me:$LINENO: result: no" >&5 | |
6305 | echo "${ECHO_T}no" >&6 | |
6306 | fi | |
6307 | ||
6308 | fi | |
6309 | if test -z "$ac_cv_prog_AR"; then | |
6310 | ac_ct_AR=$AR | |
6311 | # Extract the first word of "ar", so it can be a program name with args. | |
6312 | set dummy ar; ac_word=$2 | |
6313 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6314 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6315 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
6316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6317 | else | |
6318 | if test -n "$ac_ct_AR"; then | |
6319 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6320 | else | |
6321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6322 | for as_dir in $PATH | |
6323 | do | |
6324 | IFS=$as_save_IFS | |
6325 | test -z "$as_dir" && as_dir=. | |
6326 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6327 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6328 | ac_cv_prog_ac_ct_AR="ar" | |
6329 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6330 | break 2 | |
6331 | fi | |
6332 | done | |
6333 | done | |
6334 | ||
6335 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" | |
6336 | fi | |
6337 | fi | |
6338 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6339 | if test -n "$ac_ct_AR"; then | |
6340 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
6341 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
6342 | else | |
6343 | echo "$as_me:$LINENO: result: no" >&5 | |
6344 | echo "${ECHO_T}no" >&6 | |
6345 | fi | |
6346 | ||
6347 | AR=$ac_ct_AR | |
6348 | else | |
6349 | AR="$ac_cv_prog_AR" | |
6350 | fi | |
6351 | ||
6352 | if test -n "$ac_tool_prefix"; then | |
6353 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6354 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6355 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6356 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6357 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
6358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6359 | else | |
6360 | if test -n "$RANLIB"; then | |
6361 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6362 | else | |
6363 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6364 | for as_dir in $PATH | |
6365 | do | |
6366 | IFS=$as_save_IFS | |
6367 | test -z "$as_dir" && as_dir=. | |
6368 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6369 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6370 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6371 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6372 | break 2 | |
6373 | fi | |
6374 | done | |
6375 | done | |
6376 | ||
6377 | fi | |
6378 | fi | |
6379 | RANLIB=$ac_cv_prog_RANLIB | |
6380 | if test -n "$RANLIB"; then | |
6381 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
6382 | echo "${ECHO_T}$RANLIB" >&6 | |
6383 | else | |
6384 | echo "$as_me:$LINENO: result: no" >&5 | |
6385 | echo "${ECHO_T}no" >&6 | |
6386 | fi | |
6387 | ||
6388 | fi | |
6389 | if test -z "$ac_cv_prog_RANLIB"; then | |
6390 | ac_ct_RANLIB=$RANLIB | |
6391 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6392 | set dummy ranlib; ac_word=$2 | |
6393 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6394 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6395 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
6396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6397 | else | |
6398 | if test -n "$ac_ct_RANLIB"; then | |
6399 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6400 | else | |
6401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6402 | for as_dir in $PATH | |
6403 | do | |
6404 | IFS=$as_save_IFS | |
6405 | test -z "$as_dir" && as_dir=. | |
6406 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6407 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6408 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6409 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6410 | break 2 | |
6411 | fi | |
6412 | done | |
6413 | done | |
6414 | ||
6415 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
6416 | fi | |
6417 | fi | |
6418 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6419 | if test -n "$ac_ct_RANLIB"; then | |
6420 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
6421 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
6422 | else | |
6423 | echo "$as_me:$LINENO: result: no" >&5 | |
6424 | echo "${ECHO_T}no" >&6 | |
6425 | fi | |
6426 | ||
6427 | RANLIB=$ac_ct_RANLIB | |
6428 | else | |
6429 | RANLIB="$ac_cv_prog_RANLIB" | |
6430 | fi | |
6431 | ||
6432 | if test -n "$ac_tool_prefix"; then | |
6433 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6434 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6435 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6436 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6437 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
6438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6439 | else | |
6440 | if test -n "$STRIP"; then | |
6441 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6442 | else | |
6443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6444 | for as_dir in $PATH | |
6445 | do | |
6446 | IFS=$as_save_IFS | |
6447 | test -z "$as_dir" && as_dir=. | |
6448 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6449 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6450 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6451 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6452 | break 2 | |
6453 | fi | |
6454 | done | |
6455 | done | |
6456 | ||
6457 | fi | |
6458 | fi | |
6459 | STRIP=$ac_cv_prog_STRIP | |
6460 | if test -n "$STRIP"; then | |
6461 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
6462 | echo "${ECHO_T}$STRIP" >&6 | |
6463 | else | |
6464 | echo "$as_me:$LINENO: result: no" >&5 | |
6465 | echo "${ECHO_T}no" >&6 | |
6466 | fi | |
6467 | ||
6468 | fi | |
6469 | if test -z "$ac_cv_prog_STRIP"; then | |
6470 | ac_ct_STRIP=$STRIP | |
6471 | # Extract the first word of "strip", so it can be a program name with args. | |
6472 | set dummy strip; ac_word=$2 | |
6473 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6474 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6475 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
6476 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6477 | else | |
6478 | if test -n "$ac_ct_STRIP"; then | |
6479 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6480 | else | |
6481 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6482 | for as_dir in $PATH | |
6483 | do | |
6484 | IFS=$as_save_IFS | |
6485 | test -z "$as_dir" && as_dir=. | |
6486 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6487 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6488 | ac_cv_prog_ac_ct_STRIP="strip" | |
6489 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6490 | break 2 | |
6491 | fi | |
6492 | done | |
6493 | done | |
6494 | ||
6495 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
6496 | fi | |
6497 | fi | |
6498 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6499 | if test -n "$ac_ct_STRIP"; then | |
6500 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
6501 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
6502 | else | |
6503 | echo "$as_me:$LINENO: result: no" >&5 | |
6504 | echo "${ECHO_T}no" >&6 | |
6505 | fi | |
6506 | ||
6507 | STRIP=$ac_ct_STRIP | |
6508 | else | |
6509 | STRIP="$ac_cv_prog_STRIP" | |
6510 | fi | |
6511 | ||
6512 | ||
6513 | old_CC="$CC" | |
6514 | old_CFLAGS="$CFLAGS" | |
6515 | ||
6516 | # Set sane defaults for various variables | |
6517 | test -z "$AR" && AR=ar | |
6518 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
6519 | test -z "$AS" && AS=as | |
6520 | test -z "$CC" && CC=cc | |
6521 | test -z "$LTCC" && LTCC=$CC | |
62567204 | 6522 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
a33e1d91 | 6523 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6524 | test -z "$LD" && LD=ld | |
6525 | test -z "$LN_S" && LN_S="ln -s" | |
6526 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6527 | test -z "$NM" && NM=nm | |
6528 | test -z "$SED" && SED=sed | |
6529 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6530 | test -z "$RANLIB" && RANLIB=: | |
6531 | test -z "$STRIP" && STRIP=: | |
6532 | test -z "$ac_objext" && ac_objext=o | |
6533 | ||
6534 | # Determine commands to create old-style static archives. | |
6535 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
6536 | old_postinstall_cmds='chmod 644 $oldlib' | |
6537 | old_postuninstall_cmds= | |
6538 | ||
6539 | if test -n "$RANLIB"; then | |
6540 | case $host_os in | |
6541 | openbsd*) | |
62567204 | 6542 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
a33e1d91 | 6543 | ;; |
6544 | *) | |
62567204 | 6545 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
a33e1d91 | 6546 | ;; |
6547 | esac | |
6548 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6549 | fi | |
6550 | ||
087278d6 | 6551 | for cc_temp in $compiler""; do |
6552 | case $cc_temp in | |
6553 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6554 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6555 | \-*) ;; | |
6556 | *) break;; | |
6557 | esac | |
6558 | done | |
6559 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6560 | ||
631008fb | 6561 | |
a33e1d91 | 6562 | # Only perform the check for file, if the check method requires it |
6563 | case $deplibs_check_method in | |
6564 | file_magic*) | |
6565 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6566 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
6567 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
6568 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6570 | else | |
6571 | case $MAGIC_CMD in | |
6572 | [\\/*] | ?:[\\/]*) | |
6573 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6574 | ;; | |
6575 | *) | |
6576 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6577 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6578 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6579 | for ac_dir in $ac_dummy; do | |
6580 | IFS="$lt_save_ifs" | |
6581 | test -z "$ac_dir" && ac_dir=. | |
6582 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
6583 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6584 | if test -n "$file_magic_test_file"; then | |
6585 | case $deplibs_check_method in | |
6586 | "file_magic "*) | |
693f5c2e | 6587 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
a33e1d91 | 6588 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6589 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6590 | $EGREP "$file_magic_regex" > /dev/null; then | |
6591 | : | |
6592 | else | |
6593 | cat <<EOF 1>&2 | |
6594 | ||
6595 | *** Warning: the command libtool uses to detect shared libraries, | |
6596 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6597 | *** The result is that libtool may fail to recognize shared libraries | |
6598 | *** as such. This will affect the creation of libtool libraries that | |
6599 | *** depend on shared libraries, but programs linked with such libtool | |
6600 | *** libraries will work regardless of this problem. Nevertheless, you | |
6601 | *** may want to report the problem to your system manager and/or to | |
6602 | *** bug-libtool@gnu.org | |
6603 | ||
6604 | EOF | |
6605 | fi ;; | |
6606 | esac | |
6607 | fi | |
6608 | break | |
6609 | fi | |
6610 | done | |
6611 | IFS="$lt_save_ifs" | |
6612 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6613 | ;; | |
6614 | esac | |
6615 | fi | |
6616 | ||
6617 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6618 | if test -n "$MAGIC_CMD"; then | |
6619 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6620 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6621 | else | |
6622 | echo "$as_me:$LINENO: result: no" >&5 | |
6623 | echo "${ECHO_T}no" >&6 | |
6624 | fi | |
6625 | ||
6626 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
6627 | if test -n "$ac_tool_prefix"; then | |
6628 | echo "$as_me:$LINENO: checking for file" >&5 | |
6629 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
6630 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6632 | else | |
6633 | case $MAGIC_CMD in | |
6634 | [\\/*] | ?:[\\/]*) | |
6635 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6636 | ;; | |
6637 | *) | |
6638 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6639 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6640 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6641 | for ac_dir in $ac_dummy; do | |
6642 | IFS="$lt_save_ifs" | |
6643 | test -z "$ac_dir" && ac_dir=. | |
6644 | if test -f $ac_dir/file; then | |
6645 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6646 | if test -n "$file_magic_test_file"; then | |
6647 | case $deplibs_check_method in | |
6648 | "file_magic "*) | |
693f5c2e | 6649 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
a33e1d91 | 6650 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6651 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6652 | $EGREP "$file_magic_regex" > /dev/null; then | |
6653 | : | |
6654 | else | |
6655 | cat <<EOF 1>&2 | |
6656 | ||
6657 | *** Warning: the command libtool uses to detect shared libraries, | |
6658 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6659 | *** The result is that libtool may fail to recognize shared libraries | |
6660 | *** as such. This will affect the creation of libtool libraries that | |
6661 | *** depend on shared libraries, but programs linked with such libtool | |
6662 | *** libraries will work regardless of this problem. Nevertheless, you | |
6663 | *** may want to report the problem to your system manager and/or to | |
6664 | *** bug-libtool@gnu.org | |
6665 | ||
6666 | EOF | |
6667 | fi ;; | |
6668 | esac | |
6669 | fi | |
6670 | break | |
6671 | fi | |
6672 | done | |
6673 | IFS="$lt_save_ifs" | |
6674 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6675 | ;; | |
6676 | esac | |
6677 | fi | |
6678 | ||
6679 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6680 | if test -n "$MAGIC_CMD"; then | |
6681 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6682 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6683 | else | |
6684 | echo "$as_me:$LINENO: result: no" >&5 | |
6685 | echo "${ECHO_T}no" >&6 | |
6686 | fi | |
6687 | ||
6688 | else | |
6689 | MAGIC_CMD=: | |
6690 | fi | |
6691 | fi | |
6692 | ||
6693 | fi | |
6694 | ;; | |
6695 | esac | |
6696 | ||
6697 | enable_dlopen=no | |
6698 | enable_win32_dll=no | |
6699 | ||
6700 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
6701 | if test "${enable_libtool_lock+set}" = set; then | |
6702 | enableval="$enable_libtool_lock" | |
6703 | ||
6704 | fi; | |
6705 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6706 | ||
6707 | ||
6708 | # Check whether --with-pic or --without-pic was given. | |
6709 | if test "${with_pic+set}" = set; then | |
6710 | withval="$with_pic" | |
6711 | pic_mode="$withval" | |
6712 | else | |
6713 | pic_mode=default | |
6714 | fi; | |
6715 | test -z "$pic_mode" && pic_mode=default | |
6716 | ||
6717 | # Use C for the default configuration in the libtool script | |
6718 | tagname= | |
6719 | lt_save_CC="$CC" | |
6720 | ac_ext=c | |
6721 | ac_cpp='$CPP $CPPFLAGS' | |
6722 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6723 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6724 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6725 | ||
6726 | ||
6727 | # Source file extension for C test sources. | |
6728 | ac_ext=c | |
6729 | ||
6730 | # Object file extension for compiled C test sources. | |
6731 | objext=o | |
6732 | objext=$objext | |
6733 | ||
6734 | # Code to be used in simple compile tests | |
6735 | lt_simple_compile_test_code="int some_variable = 0;\n" | |
6736 | ||
6737 | # Code to be used in simple link tests | |
6738 | lt_simple_link_test_code='int main(){return(0);}\n' | |
6739 | ||
6740 | ||
6741 | # If no C compiler was specified, use CC. | |
6742 | LTCC=${LTCC-"$CC"} | |
6743 | ||
62567204 | 6744 | # If no C compiler flags were specified, use CFLAGS. |
6745 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6746 | ||
a33e1d91 | 6747 | # Allow CC to be a program name with arguments. |
6748 | compiler=$CC | |
6749 | ||
6750 | ||
087278d6 | 6751 | # save warnings/boilerplate of simple test code |
6752 | ac_outfile=conftest.$ac_objext | |
6753 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
62567204 | 6754 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
087278d6 | 6755 | _lt_compiler_boilerplate=`cat conftest.err` |
6756 | $rm conftest* | |
6757 | ||
6758 | ac_outfile=conftest.$ac_objext | |
6759 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
62567204 | 6760 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
087278d6 | 6761 | _lt_linker_boilerplate=`cat conftest.err` |
6762 | $rm conftest* | |
6763 | ||
6764 | ||
a33e1d91 | 6765 | |
6766 | lt_prog_compiler_no_builtin_flag= | |
6767 | ||
6768 | if test "$GCC" = yes; then | |
6769 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
6770 | ||
6771 | ||
6772 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
6773 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
6774 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
6775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6776 | else | |
6777 | lt_cv_prog_compiler_rtti_exceptions=no | |
6778 | ac_outfile=conftest.$ac_objext | |
6779 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6780 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
6781 | # Insert the option either (1) after the last *FLAGS variable, or | |
6782 | # (2) before a word containing "conftest.", or (3) at the end. | |
6783 | # Note that $ac_compile itself does not contain backslashes and begins | |
6784 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6785 | # The option is referenced via a variable to avoid confusing sed. | |
6786 | lt_compile=`echo "$ac_compile" | $SED \ | |
693f5c2e | 6787 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a33e1d91 | 6788 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
6789 | -e 's:$: $lt_compiler_flag:'` | |
00b2804c | 6790 | (eval echo "\"\$as_me:6790: $lt_compile\"" >&5) |
a33e1d91 | 6791 | (eval "$lt_compile" 2>conftest.err) |
6792 | ac_status=$? | |
6793 | cat conftest.err >&5 | |
00b2804c | 6794 | echo "$as_me:6794: \$? = $ac_status" >&5 |
a33e1d91 | 6795 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6796 | # The compiler can only warn and ignore the option if not recognized | |
087278d6 | 6797 | # So say no if there are warnings other than the usual output. |
62567204 | 6798 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
6799 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6800 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
a33e1d91 | 6801 | lt_cv_prog_compiler_rtti_exceptions=yes |
6802 | fi | |
6803 | fi | |
6804 | $rm conftest* | |
6805 | ||
6806 | fi | |
6807 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
6808 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
6809 | ||
6810 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
6811 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
6812 | else | |
6813 | : | |
6814 | fi | |
6815 | ||
6816 | fi | |
6817 | ||
6818 | lt_prog_compiler_wl= | |
6819 | lt_prog_compiler_pic= | |
6820 | lt_prog_compiler_static= | |
6821 | ||
6822 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
6823 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
6824 | ||
6825 | if test "$GCC" = yes; then | |
6826 | lt_prog_compiler_wl='-Wl,' | |
6827 | lt_prog_compiler_static='-static' | |
6828 | ||
6829 | case $host_os in | |
6830 | aix*) | |
6831 | # All AIX code is PIC. | |
6832 | if test "$host_cpu" = ia64; then | |
6833 | # AIX 5 now supports IA64 processor | |
6834 | lt_prog_compiler_static='-Bstatic' | |
6835 | fi | |
6836 | ;; | |
6837 | ||
6838 | amigaos*) | |
6839 | # FIXME: we need at least 68020 code to build shared libraries, but | |
6840 | # adding the `-m68020' flag to GCC prevents building anything better, | |
6841 | # like `-m68040'. | |
6842 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
6843 | ;; | |
6844 | ||
6845 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
6846 | # PIC is the default for these OSes. | |
6847 | ;; | |
6848 | ||
6849 | mingw* | pw32* | os2*) | |
6850 | # This hack is so that the source file can tell whether it is being | |
6851 | # built for inclusion in a dll (and should export symbols for example). | |
6852 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6853 | ;; | |
6854 | ||
6855 | darwin* | rhapsody*) | |
6856 | # PIC is the default on this platform | |
6857 | # Common symbols not allowed in MH_DYLIB files | |
6858 | lt_prog_compiler_pic='-fno-common' | |
6859 | ;; | |
6860 | ||
62567204 | 6861 | interix3*) |
6862 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
6863 | # Instead, we relocate shared libraries at runtime. | |
6864 | ;; | |
6865 | ||
a33e1d91 | 6866 | msdosdjgpp*) |
6867 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
6868 | # on systems that don't support them. | |
6869 | lt_prog_compiler_can_build_shared=no | |
6870 | enable_shared=no | |
6871 | ;; | |
6872 | ||
6873 | sysv4*MP*) | |
6874 | if test -d /usr/nec; then | |
6875 | lt_prog_compiler_pic=-Kconform_pic | |
6876 | fi | |
6877 | ;; | |
6878 | ||
6879 | hpux*) | |
6880 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6881 | # not for PA HP-UX. | |
693f5c2e | 6882 | case $host_cpu in |
a33e1d91 | 6883 | hppa*64*|ia64*) |
6884 | # +Z the default | |
6885 | ;; | |
6886 | *) | |
6887 | lt_prog_compiler_pic='-fPIC' | |
6888 | ;; | |
6889 | esac | |
6890 | ;; | |
6891 | ||
6892 | *) | |
6893 | lt_prog_compiler_pic='-fPIC' | |
6894 | ;; | |
6895 | esac | |
6896 | else | |
6897 | # PORTME Check for flag to pass linker flags through the system compiler. | |
6898 | case $host_os in | |
6899 | aix*) | |
6900 | lt_prog_compiler_wl='-Wl,' | |
6901 | if test "$host_cpu" = ia64; then | |
6902 | # AIX 5 now supports IA64 processor | |
6903 | lt_prog_compiler_static='-Bstatic' | |
6904 | else | |
6905 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
6906 | fi | |
6907 | ;; | |
631008fb | 6908 | darwin*) |
6909 | # PIC is the default on this platform | |
6910 | # Common symbols not allowed in MH_DYLIB files | |
087278d6 | 6911 | case $cc_basename in |
631008fb | 6912 | xlc*) |
6913 | lt_prog_compiler_pic='-qnocommon' | |
6914 | lt_prog_compiler_wl='-Wl,' | |
6915 | ;; | |
6916 | esac | |
6917 | ;; | |
a33e1d91 | 6918 | |
6919 | mingw* | pw32* | os2*) | |
6920 | # This hack is so that the source file can tell whether it is being | |
6921 | # built for inclusion in a dll (and should export symbols for example). | |
6922 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6923 | ;; | |
6924 | ||
6925 | hpux9* | hpux10* | hpux11*) | |
6926 | lt_prog_compiler_wl='-Wl,' | |
6927 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6928 | # not for PA HP-UX. | |
693f5c2e | 6929 | case $host_cpu in |
a33e1d91 | 6930 | hppa*64*|ia64*) |
6931 | # +Z the default | |
6932 | ;; | |
6933 | *) | |
6934 | lt_prog_compiler_pic='+Z' | |
6935 | ;; | |
6936 | esac | |
6937 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
6938 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
6939 | ;; | |
6940 | ||
6941 | irix5* | irix6* | nonstopux*) | |
6942 | lt_prog_compiler_wl='-Wl,' | |
6943 | # PIC (with -KPIC) is the default. | |
6944 | lt_prog_compiler_static='-non_shared' | |
6945 | ;; | |
6946 | ||
6947 | newsos6) | |
6948 | lt_prog_compiler_pic='-KPIC' | |
6949 | lt_prog_compiler_static='-Bstatic' | |
6950 | ;; | |
6951 | ||
6952 | linux*) | |
087278d6 | 6953 | case $cc_basename in |
a33e1d91 | 6954 | icc* | ecc*) |
6955 | lt_prog_compiler_wl='-Wl,' | |
6956 | lt_prog_compiler_pic='-KPIC' | |
6957 | lt_prog_compiler_static='-static' | |
6958 | ;; | |
693f5c2e | 6959 | pgcc* | pgf77* | pgf90* | pgf95*) |
087278d6 | 6960 | # Portland Group compilers (*not* the Pentium gcc compiler, |
6961 | # which looks to be a dead project) | |
6962 | lt_prog_compiler_wl='-Wl,' | |
6963 | lt_prog_compiler_pic='-fpic' | |
693f5c2e | 6964 | lt_prog_compiler_static='-Bstatic' |
087278d6 | 6965 | ;; |
a33e1d91 | 6966 | ccc*) |
6967 | lt_prog_compiler_wl='-Wl,' | |
6968 | # All Alpha code is PIC. | |
6969 | lt_prog_compiler_static='-non_shared' | |
6970 | ;; | |
6971 | esac | |
6972 | ;; | |
6973 | ||
6974 | osf3* | osf4* | osf5*) | |
6975 | lt_prog_compiler_wl='-Wl,' | |
6976 | # All OSF/1 code is PIC. | |
6977 | lt_prog_compiler_static='-non_shared' | |
6978 | ;; | |
6979 | ||
a33e1d91 | 6980 | solaris*) |
a33e1d91 | 6981 | lt_prog_compiler_pic='-KPIC' |
6982 | lt_prog_compiler_static='-Bstatic' | |
087278d6 | 6983 | case $cc_basename in |
6984 | f77* | f90* | f95*) | |
6985 | lt_prog_compiler_wl='-Qoption ld ';; | |
6986 | *) | |
6987 | lt_prog_compiler_wl='-Wl,';; | |
6988 | esac | |
a33e1d91 | 6989 | ;; |
6990 | ||
6991 | sunos4*) | |
6992 | lt_prog_compiler_wl='-Qoption ld ' | |
6993 | lt_prog_compiler_pic='-PIC' | |
6994 | lt_prog_compiler_static='-Bstatic' | |
6995 | ;; | |
6996 | ||
62567204 | 6997 | sysv4 | sysv4.2uw2* | sysv4.3*) |
a33e1d91 | 6998 | lt_prog_compiler_wl='-Wl,' |
6999 | lt_prog_compiler_pic='-KPIC' | |
7000 | lt_prog_compiler_static='-Bstatic' | |
7001 | ;; | |
7002 | ||
7003 | sysv4*MP*) | |
7004 | if test -d /usr/nec ;then | |
7005 | lt_prog_compiler_pic='-Kconform_pic' | |
7006 | lt_prog_compiler_static='-Bstatic' | |
7007 | fi | |
7008 | ;; | |
7009 | ||
62567204 | 7010 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
7011 | lt_prog_compiler_wl='-Wl,' | |
7012 | lt_prog_compiler_pic='-KPIC' | |
7013 | lt_prog_compiler_static='-Bstatic' | |
7014 | ;; | |
7015 | ||
087278d6 | 7016 | unicos*) |
7017 | lt_prog_compiler_wl='-Wl,' | |
7018 | lt_prog_compiler_can_build_shared=no | |
7019 | ;; | |
7020 | ||
a33e1d91 | 7021 | uts4*) |
7022 | lt_prog_compiler_pic='-pic' | |
7023 | lt_prog_compiler_static='-Bstatic' | |
7024 | ;; | |
7025 | ||
7026 | *) | |
7027 | lt_prog_compiler_can_build_shared=no | |
7028 | ;; | |
7029 | esac | |
7030 | fi | |
7031 | ||
7032 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
7033 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
7034 | ||
7035 | # | |
7036 | # Check to make sure the PIC flag actually works. | |
7037 | # | |
7038 | if test -n "$lt_prog_compiler_pic"; then | |
7039 | ||
7040 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7041 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
7042 | if test "${lt_prog_compiler_pic_works+set}" = set; then | |
7043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7044 | else | |
7045 | lt_prog_compiler_pic_works=no | |
7046 | ac_outfile=conftest.$ac_objext | |
7047 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7048 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7049 | # Insert the option either (1) after the last *FLAGS variable, or | |
7050 | # (2) before a word containing "conftest.", or (3) at the end. | |
7051 | # Note that $ac_compile itself does not contain backslashes and begins | |
7052 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7053 | # The option is referenced via a variable to avoid confusing sed. | |
7054 | lt_compile=`echo "$ac_compile" | $SED \ | |
693f5c2e | 7055 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a33e1d91 | 7056 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7057 | -e 's:$: $lt_compiler_flag:'` | |
00b2804c | 7058 | (eval echo "\"\$as_me:7058: $lt_compile\"" >&5) |
a33e1d91 | 7059 | (eval "$lt_compile" 2>conftest.err) |
7060 | ac_status=$? | |
7061 | cat conftest.err >&5 | |
00b2804c | 7062 | echo "$as_me:7062: \$? = $ac_status" >&5 |
a33e1d91 | 7063 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7064 | # The compiler can only warn and ignore the option if not recognized | |
087278d6 | 7065 | # So say no if there are warnings other than the usual output. |
62567204 | 7066 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7067 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7068 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
a33e1d91 | 7069 | lt_prog_compiler_pic_works=yes |
7070 | fi | |
7071 | fi | |
7072 | $rm conftest* | |
7073 | ||
7074 | fi | |
7075 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
7076 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | |
7077 | ||
7078 | if test x"$lt_prog_compiler_pic_works" = xyes; then | |
7079 | case $lt_prog_compiler_pic in | |
7080 | "" | " "*) ;; | |
7081 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7082 | esac | |
7083 | else | |
7084 | lt_prog_compiler_pic= | |
7085 | lt_prog_compiler_can_build_shared=no | |
7086 | fi | |
7087 | ||
7088 | fi | |
693f5c2e | 7089 | case $host_os in |
a33e1d91 | 7090 | # For platforms which do not support PIC, -DPIC is meaningless: |
7091 | *djgpp*) | |
7092 | lt_prog_compiler_pic= | |
7093 | ;; | |
7094 | *) | |
7095 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7096 | ;; | |
7097 | esac | |
7098 | ||
62567204 | 7099 | # |
7100 | # Check to make sure the static flag actually works. | |
7101 | # | |
7102 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7103 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7104 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
7105 | if test "${lt_prog_compiler_static_works+set}" = set; then | |
7106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7107 | else | |
7108 | lt_prog_compiler_static_works=no | |
7109 | save_LDFLAGS="$LDFLAGS" | |
7110 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7111 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
7112 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7113 | # The linker can only warn and ignore the option if not recognized | |
7114 | # So say no if there are warnings | |
7115 | if test -s conftest.err; then | |
7116 | # Append any errors to the config.log. | |
7117 | cat conftest.err 1>&5 | |
7118 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7119 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7120 | if diff conftest.exp conftest.er2 >/dev/null; then | |
7121 | lt_prog_compiler_static_works=yes | |
7122 | fi | |
7123 | else | |
7124 | lt_prog_compiler_static_works=yes | |
7125 | fi | |
7126 | fi | |
7127 | $rm conftest* | |
7128 | LDFLAGS="$save_LDFLAGS" | |
7129 | ||
7130 | fi | |
7131 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
7132 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | |
7133 | ||
7134 | if test x"$lt_prog_compiler_static_works" = xyes; then | |
7135 | : | |
7136 | else | |
7137 | lt_prog_compiler_static= | |
7138 | fi | |
7139 | ||
7140 | ||
a33e1d91 | 7141 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7142 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
7143 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7145 | else | |
7146 | lt_cv_prog_compiler_c_o=no | |
7147 | $rm -r conftest 2>/dev/null | |
7148 | mkdir conftest | |
7149 | cd conftest | |
7150 | mkdir out | |
7151 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7152 | ||
7153 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7154 | # Insert the option either (1) after the last *FLAGS variable, or | |
7155 | # (2) before a word containing "conftest.", or (3) at the end. | |
7156 | # Note that $ac_compile itself does not contain backslashes and begins | |
7157 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7158 | lt_compile=`echo "$ac_compile" | $SED \ | |
693f5c2e | 7159 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a33e1d91 | 7160 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7161 | -e 's:$: $lt_compiler_flag:'` | |
00b2804c | 7162 | (eval echo "\"\$as_me:7162: $lt_compile\"" >&5) |
a33e1d91 | 7163 | (eval "$lt_compile" 2>out/conftest.err) |
7164 | ac_status=$? | |
7165 | cat out/conftest.err >&5 | |
00b2804c | 7166 | echo "$as_me:7166: \$? = $ac_status" >&5 |
a33e1d91 | 7167 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7168 | then | |
7169 | # The compiler can only warn and ignore the option if not recognized | |
7170 | # So say no if there are warnings | |
62567204 | 7171 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
7172 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7173 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
a33e1d91 | 7174 | lt_cv_prog_compiler_c_o=yes |
7175 | fi | |
7176 | fi | |
693f5c2e | 7177 | chmod u+w . 2>&5 |
a33e1d91 | 7178 | $rm conftest* |
7179 | # SGI C++ compiler will create directory out/ii_files/ for | |
7180 | # template instantiation | |
7181 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
7182 | $rm out/* && rmdir out | |
7183 | cd .. | |
7184 | rmdir conftest | |
7185 | $rm conftest* | |
7186 | ||
7187 | fi | |
7188 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7189 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
7190 | ||
7191 | ||
7192 | hard_links="nottested" | |
7193 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7194 | # do not overwrite the value of need_locks provided by the user | |
7195 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
7196 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
7197 | hard_links=yes | |
7198 | $rm conftest* | |
7199 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7200 | touch conftest.a | |
7201 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7202 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7203 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
7204 | echo "${ECHO_T}$hard_links" >&6 | |
7205 | if test "$hard_links" = no; then | |
7206 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7207 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7208 | need_locks=warn | |
7209 | fi | |
7210 | else | |
7211 | need_locks=no | |
7212 | fi | |
7213 | ||
7214 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
7215 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
7216 | ||
7217 | runpath_var= | |
7218 | allow_undefined_flag= | |
7219 | enable_shared_with_static_runtimes=no | |
7220 | archive_cmds= | |
7221 | archive_expsym_cmds= | |
7222 | old_archive_From_new_cmds= | |
7223 | old_archive_from_expsyms_cmds= | |
7224 | export_dynamic_flag_spec= | |
7225 | whole_archive_flag_spec= | |
7226 | thread_safe_flag_spec= | |
7227 | hardcode_libdir_flag_spec= | |
7228 | hardcode_libdir_flag_spec_ld= | |
7229 | hardcode_libdir_separator= | |
7230 | hardcode_direct=no | |
7231 | hardcode_minus_L=no | |
7232 | hardcode_shlibpath_var=unsupported | |
7233 | link_all_deplibs=unknown | |
7234 | hardcode_automatic=no | |
7235 | module_cmds= | |
7236 | module_expsym_cmds= | |
7237 | always_export_symbols=no | |
7238 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7239 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7240 | # included in the symbol list | |
7241 | include_expsyms= | |
7242 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7243 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7244 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7245 | # as well as any symbol that contains `d'. | |
7246 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
7247 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7248 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7249 | # the symbol is explicitly referenced. Since portable code cannot | |
7250 | # rely on this symbol name, it's probably fine to never include it in | |
7251 | # preloaded symbol tables. | |
7252 | extract_expsyms_cmds= | |
087278d6 | 7253 | # Just being paranoid about ensuring that cc_basename is set. |
7254 | for cc_temp in $compiler""; do | |
7255 | case $cc_temp in | |
7256 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7257 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7258 | \-*) ;; | |
7259 | *) break;; | |
7260 | esac | |
7261 | done | |
7262 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
a33e1d91 | 7263 | |
7264 | case $host_os in | |
7265 | cygwin* | mingw* | pw32*) | |
7266 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7267 | # When not using gcc, we currently assume that we are using | |
7268 | # Microsoft Visual C++. | |
7269 | if test "$GCC" != yes; then | |
7270 | with_gnu_ld=no | |
7271 | fi | |
7272 | ;; | |
62567204 | 7273 | interix*) |
7274 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7275 | with_gnu_ld=yes | |
7276 | ;; | |
a33e1d91 | 7277 | openbsd*) |
7278 | with_gnu_ld=no | |
7279 | ;; | |
7280 | esac | |
7281 | ||
7282 | ld_shlibs=yes | |
7283 | if test "$with_gnu_ld" = yes; then | |
7284 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
7285 | wlarc='${wl}' | |
7286 | ||
087278d6 | 7287 | # Set some defaults for GNU ld with shared library support. These |
7288 | # are reset later if shared libraries are not supported. Putting them | |
7289 | # here allows them to be overridden if necessary. | |
7290 | runpath_var=LD_RUN_PATH | |
7291 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | |
7292 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
7293 | # ancient GNU ld didn't support --whole-archive et. al. | |
7294 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
7295 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7296 | else | |
7297 | whole_archive_flag_spec= | |
7298 | fi | |
7299 | supports_anon_versioning=no | |
7300 | case `$LD -v 2>/dev/null` in | |
7301 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7302 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7303 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7304 | *\ 2.11.*) ;; # other 2.11 versions | |
7305 | *) supports_anon_versioning=yes ;; | |
7306 | esac | |
7307 | ||
a33e1d91 | 7308 | # See if GNU ld supports shared libraries. |
7309 | case $host_os in | |
7310 | aix3* | aix4* | aix5*) | |
7311 | # On AIX/PPC, the GNU linker is very broken | |
7312 | if test "$host_cpu" != ia64; then | |
7313 | ld_shlibs=no | |
7314 | cat <<EOF 1>&2 | |
7315 | ||
7316 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
7317 | *** to be unable to reliably create shared libraries on AIX. | |
7318 | *** Therefore, libtool is disabling shared libraries support. If you | |
7319 | *** really care for shared libraries, you may want to modify your PATH | |
7320 | *** so that a non-GNU linker is found, and then restart. | |
7321 | ||
7322 | EOF | |
7323 | fi | |
7324 | ;; | |
7325 | ||
7326 | amigaos*) | |
7327 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
7328 | hardcode_libdir_flag_spec='-L$libdir' | |
7329 | hardcode_minus_L=yes | |
7330 | ||
7331 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
7332 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
7333 | # to version 4, is to share data among multiple programs linked | |
7334 | # with the same dynamic library. Since this doesn't match the | |
7335 | # behavior of shared libraries on other platforms, we can't use | |
7336 | # them. | |
7337 | ld_shlibs=no | |
7338 | ;; | |
7339 | ||
7340 | beos*) | |
7341 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
7342 | allow_undefined_flag=unsupported | |
7343 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7344 | # support --undefined. This deserves some investigation. FIXME | |
7345 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7346 | else | |
7347 | ld_shlibs=no | |
7348 | fi | |
7349 | ;; | |
7350 | ||
7351 | cygwin* | mingw* | pw32*) | |
7352 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7353 | # as there is no search path for DLLs. | |
7354 | hardcode_libdir_flag_spec='-L$libdir' | |
7355 | allow_undefined_flag=unsupported | |
7356 | always_export_symbols=no | |
7357 | enable_shared_with_static_runtimes=yes | |
087278d6 | 7358 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
a33e1d91 | 7359 | |
7360 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
62567204 | 7361 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
a33e1d91 | 7362 | # If the export-symbols file already is a .def file (1st line |
7363 | # is EXPORTS), use it as is; otherwise, prepend... | |
7364 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7365 | cp $export_symbols $output_objdir/$soname.def; | |
7366 | else | |
7367 | echo EXPORTS > $output_objdir/$soname.def; | |
7368 | cat $export_symbols >> $output_objdir/$soname.def; | |
7369 | fi~ | |
62567204 | 7370 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
a33e1d91 | 7371 | else |
7372 | ld_shlibs=no | |
7373 | fi | |
7374 | ;; | |
7375 | ||
62567204 | 7376 | interix3*) |
7377 | hardcode_direct=no | |
7378 | hardcode_shlibpath_var=no | |
7379 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7380 | export_dynamic_flag_spec='${wl}-E' | |
7381 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7382 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7383 | # default) and relocated if they conflict, which is a slow very memory | |
7384 | # consuming and fragmenting process. To avoid this, we pick a random, | |
7385 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7386 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7387 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7388 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7389 | ;; | |
7390 | ||
087278d6 | 7391 | linux*) |
7392 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
7393 | tmp_addflag= | |
7394 | case $cc_basename,$host_cpu in | |
7395 | pgcc*) # Portland Group C compiler | |
693f5c2e | 7396 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
087278d6 | 7397 | tmp_addflag=' $pic_flag' |
7398 | ;; | |
693f5c2e | 7399 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
7400 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
087278d6 | 7401 | tmp_addflag=' $pic_flag -Mnomain' ;; |
7402 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7403 | tmp_addflag=' -i_dynamic' ;; | |
7404 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7405 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7406 | ifc* | ifort*) # Intel Fortran compiler | |
7407 | tmp_addflag=' -nofor_main' ;; | |
7408 | esac | |
7409 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7410 | ||
7411 | if test $supports_anon_versioning = yes; then | |
7412 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | |
7413 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7414 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7415 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7416 | fi | |
7417 | else | |
7418 | ld_shlibs=no | |
7419 | fi | |
7420 | ;; | |
7421 | ||
6263d81f | 7422 | netbsd*) |
a33e1d91 | 7423 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7424 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
7425 | wlarc= | |
7426 | else | |
7427 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7428 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7429 | fi | |
7430 | ;; | |
7431 | ||
62567204 | 7432 | solaris*) |
a33e1d91 | 7433 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7434 | ld_shlibs=no | |
7435 | cat <<EOF 1>&2 | |
7436 | ||
7437 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
7438 | *** create shared libraries on Solaris systems. Therefore, libtool | |
7439 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7440 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
7441 | *** your PATH or compiler configuration so that the native linker is | |
7442 | *** used, and then restart. | |
7443 | ||
7444 | EOF | |
7445 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
7446 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7447 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7448 | else | |
7449 | ld_shlibs=no | |
7450 | fi | |
7451 | ;; | |
7452 | ||
62567204 | 7453 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
7454 | case `$LD -v 2>&1` in | |
7455 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7456 | ld_shlibs=no | |
7457 | cat <<_LT_EOF 1>&2 | |
7458 | ||
7459 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
7460 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
7461 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7462 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
7463 | *** your PATH or compiler configuration so that the native linker is | |
7464 | *** used, and then restart. | |
7465 | ||
7466 | _LT_EOF | |
7467 | ;; | |
7468 | *) | |
7469 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
7470 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
7471 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
7472 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
7473 | else | |
7474 | ld_shlibs=no | |
7475 | fi | |
7476 | ;; | |
7477 | esac | |
7478 | ;; | |
7479 | ||
a33e1d91 | 7480 | sunos4*) |
7481 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7482 | wlarc= | |
7483 | hardcode_direct=yes | |
7484 | hardcode_shlibpath_var=no | |
7485 | ;; | |
7486 | ||
a33e1d91 | 7487 | *) |
7488 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
7489 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7490 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7491 | else | |
7492 | ld_shlibs=no | |
7493 | fi | |
7494 | ;; | |
7495 | esac | |
7496 | ||
087278d6 | 7497 | if test "$ld_shlibs" = no; then |
7498 | runpath_var= | |
7499 | hardcode_libdir_flag_spec= | |
7500 | export_dynamic_flag_spec= | |
7501 | whole_archive_flag_spec= | |
a33e1d91 | 7502 | fi |
7503 | else | |
7504 | # PORTME fill in a description of your system's linker (not GNU ld) | |
7505 | case $host_os in | |
7506 | aix3*) | |
7507 | allow_undefined_flag=unsupported | |
7508 | always_export_symbols=yes | |
7509 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
7510 | # Note: this linker hardcodes the directories in LIBPATH if there | |
7511 | # are no directories specified by -L. | |
7512 | hardcode_minus_L=yes | |
62567204 | 7513 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
a33e1d91 | 7514 | # Neither direct hardcoding nor static linking is supported with a |
7515 | # broken collect2. | |
7516 | hardcode_direct=unsupported | |
7517 | fi | |
7518 | ;; | |
7519 | ||
7520 | aix4* | aix5*) | |
7521 | if test "$host_cpu" = ia64; then | |
7522 | # On IA64, the linker does run time linking by default, so we don't | |
7523 | # have to do anything special. | |
7524 | aix_use_runtimelinking=no | |
7525 | exp_sym_flag='-Bexport' | |
7526 | no_entry_flag="" | |
7527 | else | |
7528 | # If we're using GNU nm, then we don't want the "-C" option. | |
7529 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
7530 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
7531 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
7532 | else | |
7533 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
7534 | fi | |
7535 | aix_use_runtimelinking=no | |
7536 | ||
7537 | # Test if we are trying to use run time linking or normal | |
7538 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
7539 | # need to do runtime linking. | |
7540 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
7541 | for ld_flag in $LDFLAGS; do | |
7542 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
7543 | aix_use_runtimelinking=yes | |
7544 | break | |
7545 | fi | |
7546 | done | |
62567204 | 7547 | ;; |
a33e1d91 | 7548 | esac |
7549 | ||
7550 | exp_sym_flag='-bexport' | |
7551 | no_entry_flag='-bnoentry' | |
7552 | fi | |
7553 | ||
7554 | # When large executables or shared objects are built, AIX ld can | |
7555 | # have problems creating the table of contents. If linking a library | |
7556 | # or program results in "error TOC overflow" add -mminimal-toc to | |
7557 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
7558 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
7559 | ||
7560 | archive_cmds='' | |
7561 | hardcode_direct=yes | |
7562 | hardcode_libdir_separator=':' | |
7563 | link_all_deplibs=yes | |
7564 | ||
7565 | if test "$GCC" = yes; then | |
087278d6 | 7566 | case $host_os in aix4.[012]|aix4.[012].*) |
a33e1d91 | 7567 | # We only want to do this on AIX 4.2 and lower, the check |
7568 | # below for broken collect2 doesn't work under 4.3+ | |
7569 | collect2name=`${CC} -print-prog-name=collect2` | |
7570 | if test -f "$collect2name" && \ | |
7571 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
7572 | then | |
7573 | # We have reworked collect2 | |
7574 | hardcode_direct=yes | |
7575 | else | |
7576 | # We have old collect2 | |
7577 | hardcode_direct=unsupported | |
7578 | # It fails to find uninstalled libraries when the uninstalled | |
7579 | # path is not listed in the libpath. Setting hardcode_minus_L | |
7580 | # to unsupported forces relinking | |
7581 | hardcode_minus_L=yes | |
7582 | hardcode_libdir_flag_spec='-L$libdir' | |
7583 | hardcode_libdir_separator= | |
7584 | fi | |
62567204 | 7585 | ;; |
a33e1d91 | 7586 | esac |
7587 | shared_flag='-shared' | |
087278d6 | 7588 | if test "$aix_use_runtimelinking" = yes; then |
7589 | shared_flag="$shared_flag "'${wl}-G' | |
7590 | fi | |
a33e1d91 | 7591 | else |
7592 | # not using gcc | |
7593 | if test "$host_cpu" = ia64; then | |
7594 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
7595 | # chokes on -Wl,-G. The following line is correct: | |
7596 | shared_flag='-G' | |
7597 | else | |
62567204 | 7598 | if test "$aix_use_runtimelinking" = yes; then |
a33e1d91 | 7599 | shared_flag='${wl}-G' |
7600 | else | |
7601 | shared_flag='${wl}-bM:SRE' | |
62567204 | 7602 | fi |
a33e1d91 | 7603 | fi |
7604 | fi | |
7605 | ||
7606 | # It seems that -bexpall does not export symbols beginning with | |
7607 | # underscore (_), so it is better to generate a list of symbols to export. | |
7608 | always_export_symbols=yes | |
7609 | if test "$aix_use_runtimelinking" = yes; then | |
7610 | # Warning - without using the other runtime loading flags (-brtl), | |
7611 | # -berok will link without error, but may produce a broken library. | |
7612 | allow_undefined_flag='-berok' | |
7613 | # Determine the default libpath from the value encoded in an empty executable. | |
7614 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 7615 | /* confdefs.h. */ |
7616 | _ACEOF | |
7617 | cat confdefs.h >>conftest.$ac_ext | |
7618 | cat >>conftest.$ac_ext <<_ACEOF | |
7619 | /* end confdefs.h. */ | |
7620 | ||
7621 | int | |
7622 | main () | |
7623 | { | |
7624 | ||
7625 | ; | |
7626 | return 0; | |
7627 | } | |
7628 | _ACEOF | |
7629 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7630 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 7631 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 7632 | ac_status=$? |
af3004ff | 7633 | grep -v '^ *+' conftest.er1 >conftest.err |
7634 | rm -f conftest.er1 | |
7635 | cat conftest.err >&5 | |
a33e1d91 | 7636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7637 | (exit $ac_status); } && | |
6263d81f | 7638 | { ac_try='test -z "$ac_c_werror_flag" |
7639 | || test ! -s conftest.err' | |
af3004ff | 7640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7641 | (eval $ac_try) 2>&5 | |
7642 | ac_status=$? | |
7643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7644 | (exit $ac_status); }; } && | |
7645 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 7646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7647 | (eval $ac_try) 2>&5 | |
7648 | ac_status=$? | |
7649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7650 | (exit $ac_status); }; }; then | |
7651 | ||
7652 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
7653 | }'` | |
7654 | # Check for a 64-bit object if we didn't find anything. | |
7655 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
7656 | }'`; fi | |
7657 | else | |
7658 | echo "$as_me: failed program was:" >&5 | |
7659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7660 | ||
7661 | fi | |
af3004ff | 7662 | rm -f conftest.err conftest.$ac_objext \ |
7663 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 7664 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7665 | ||
7666 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
62567204 | 7667 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
a33e1d91 | 7668 | else |
7669 | if test "$host_cpu" = ia64; then | |
7670 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
7671 | allow_undefined_flag="-z nodefs" | |
62567204 | 7672 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
a33e1d91 | 7673 | else |
7674 | # Determine the default libpath from the value encoded in an empty executable. | |
7675 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 7676 | /* confdefs.h. */ |
7677 | _ACEOF | |
7678 | cat confdefs.h >>conftest.$ac_ext | |
7679 | cat >>conftest.$ac_ext <<_ACEOF | |
7680 | /* end confdefs.h. */ | |
7681 | ||
7682 | int | |
7683 | main () | |
7684 | { | |
7685 | ||
7686 | ; | |
7687 | return 0; | |
7688 | } | |
7689 | _ACEOF | |
7690 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7691 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 7692 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 7693 | ac_status=$? |
af3004ff | 7694 | grep -v '^ *+' conftest.er1 >conftest.err |
7695 | rm -f conftest.er1 | |
7696 | cat conftest.err >&5 | |
a33e1d91 | 7697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7698 | (exit $ac_status); } && | |
6263d81f | 7699 | { ac_try='test -z "$ac_c_werror_flag" |
7700 | || test ! -s conftest.err' | |
af3004ff | 7701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7702 | (eval $ac_try) 2>&5 | |
7703 | ac_status=$? | |
7704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7705 | (exit $ac_status); }; } && | |
7706 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 7707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7708 | (eval $ac_try) 2>&5 | |
7709 | ac_status=$? | |
7710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7711 | (exit $ac_status); }; }; then | |
7712 | ||
7713 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
7714 | }'` | |
7715 | # Check for a 64-bit object if we didn't find anything. | |
7716 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
7717 | }'`; fi | |
7718 | else | |
7719 | echo "$as_me: failed program was:" >&5 | |
7720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7721 | ||
7722 | fi | |
af3004ff | 7723 | rm -f conftest.err conftest.$ac_objext \ |
7724 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 7725 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
7726 | ||
7727 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7728 | # Warning - without using the other run time loading flags, | |
7729 | # -berok will link without error, but may produce a broken library. | |
7730 | no_undefined_flag=' ${wl}-bernotok' | |
7731 | allow_undefined_flag=' ${wl}-berok' | |
a33e1d91 | 7732 | # Exported symbols can be pulled into shared objects from archives |
62567204 | 7733 | whole_archive_flag_spec='$convenience' |
a33e1d91 | 7734 | archive_cmds_need_lc=yes |
693f5c2e | 7735 | # This is similar to how AIX traditionally builds its shared libraries. |
62567204 | 7736 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
a33e1d91 | 7737 | fi |
7738 | fi | |
7739 | ;; | |
7740 | ||
7741 | amigaos*) | |
7742 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
7743 | hardcode_libdir_flag_spec='-L$libdir' | |
7744 | hardcode_minus_L=yes | |
7745 | # see comment about different semantics on the GNU ld section | |
7746 | ld_shlibs=no | |
7747 | ;; | |
7748 | ||
631008fb | 7749 | bsdi[45]*) |
a33e1d91 | 7750 | export_dynamic_flag_spec=-rdynamic |
7751 | ;; | |
7752 | ||
7753 | cygwin* | mingw* | pw32*) | |
7754 | # When not using gcc, we currently assume that we are using | |
7755 | # Microsoft Visual C++. | |
7756 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
7757 | # no search path for DLLs. | |
7758 | hardcode_libdir_flag_spec=' ' | |
7759 | allow_undefined_flag=unsupported | |
7760 | # Tell ltmain to make .lib files, not .a files. | |
7761 | libext=lib | |
7762 | # Tell ltmain to make .dll files, not .so files. | |
7763 | shrext_cmds=".dll" | |
7764 | # FIXME: Setting linknames here is a bad hack. | |
7765 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
7766 | # The linker will automatically build a .lib file if we build a DLL. | |
7767 | old_archive_From_new_cmds='true' | |
7768 | # FIXME: Should let the user specify the lib program. | |
7769 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
7770 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
7771 | enable_shared_with_static_runtimes=yes | |
7772 | ;; | |
7773 | ||
7774 | darwin* | rhapsody*) | |
693f5c2e | 7775 | case $host_os in |
631008fb | 7776 | rhapsody* | darwin1.[012]) |
7777 | allow_undefined_flag='${wl}-undefined ${wl}suppress' | |
7778 | ;; | |
7779 | *) # Darwin 1.3 on | |
7780 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
7781 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
7782 | else | |
7783 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
7784 | 10.[012]) | |
7785 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
7786 | ;; | |
7787 | 10.*) | |
7788 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | |
7789 | ;; | |
7790 | esac | |
7791 | fi | |
7792 | ;; | |
a33e1d91 | 7793 | esac |
631008fb | 7794 | archive_cmds_need_lc=no |
a33e1d91 | 7795 | hardcode_direct=no |
7796 | hardcode_automatic=yes | |
7797 | hardcode_shlibpath_var=unsupported | |
631008fb | 7798 | whole_archive_flag_spec='' |
a33e1d91 | 7799 | link_all_deplibs=yes |
631008fb | 7800 | if test "$GCC" = yes ; then |
7801 | output_verbose_link_cmd='echo' | |
7802 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
7803 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
693f5c2e | 7804 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
631008fb | 7805 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
7806 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
a33e1d91 | 7807 | else |
087278d6 | 7808 | case $cc_basename in |
631008fb | 7809 | xlc*) |
7810 | output_verbose_link_cmd='echo' | |
7811 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
7812 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
693f5c2e | 7813 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
631008fb | 7814 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
7815 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7816 | ;; | |
7817 | *) | |
7818 | ld_shlibs=no | |
7819 | ;; | |
7820 | esac | |
a33e1d91 | 7821 | fi |
7822 | ;; | |
7823 | ||
7824 | dgux*) | |
7825 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7826 | hardcode_libdir_flag_spec='-L$libdir' | |
7827 | hardcode_shlibpath_var=no | |
7828 | ;; | |
7829 | ||
7830 | freebsd1*) | |
7831 | ld_shlibs=no | |
7832 | ;; | |
7833 | ||
7834 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
7835 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
7836 | # does not break anything, and helps significantly (at the cost of a little | |
7837 | # extra space). | |
7838 | freebsd2.2*) | |
7839 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
7840 | hardcode_libdir_flag_spec='-R$libdir' | |
7841 | hardcode_direct=yes | |
7842 | hardcode_shlibpath_var=no | |
7843 | ;; | |
7844 | ||
7845 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
7846 | freebsd2*) | |
7847 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7848 | hardcode_direct=yes | |
7849 | hardcode_minus_L=yes | |
7850 | hardcode_shlibpath_var=no | |
7851 | ;; | |
7852 | ||
7853 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
6263d81f | 7854 | freebsd* | kfreebsd*-gnu | dragonfly*) |
25b6a907 | 7855 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
7856 | hardcode_libdir_flag_spec='-R$libdir' | |
7857 | hardcode_direct=yes | |
7858 | hardcode_shlibpath_var=no | |
25b6a907 | 7859 | ;; |
7860 | ||
a33e1d91 | 7861 | hpux9*) |
7862 | if test "$GCC" = yes; then | |
7863 | archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
7864 | else | |
7865 | archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
7866 | fi | |
7867 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7868 | hardcode_libdir_separator=: | |
7869 | hardcode_direct=yes | |
7870 | ||
7871 | # hardcode_minus_L: Not really in the search PATH, | |
7872 | # but as the default location of the library. | |
7873 | hardcode_minus_L=yes | |
7874 | export_dynamic_flag_spec='${wl}-E' | |
7875 | ;; | |
7876 | ||
62567204 | 7877 | hpux10*) |
7878 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
7879 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
7880 | else | |
7881 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
7882 | fi | |
7883 | if test "$with_gnu_ld" = no; then | |
7884 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
7885 | hardcode_libdir_separator=: | |
7886 | ||
7887 | hardcode_direct=yes | |
7888 | export_dynamic_flag_spec='${wl}-E' | |
7889 | ||
7890 | # hardcode_minus_L: Not really in the search PATH, | |
7891 | # but as the default location of the library. | |
7892 | hardcode_minus_L=yes | |
7893 | fi | |
7894 | ;; | |
7895 | ||
7896 | hpux11*) | |
a33e1d91 | 7897 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
693f5c2e | 7898 | case $host_cpu in |
62567204 | 7899 | hppa*64*) |
a33e1d91 | 7900 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
7901 | ;; | |
62567204 | 7902 | ia64*) |
7903 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
7904 | ;; | |
a33e1d91 | 7905 | *) |
7906 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
7907 | ;; | |
7908 | esac | |
7909 | else | |
693f5c2e | 7910 | case $host_cpu in |
62567204 | 7911 | hppa*64*) |
7912 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7913 | ;; | |
7914 | ia64*) | |
7915 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
a33e1d91 | 7916 | ;; |
7917 | *) | |
62567204 | 7918 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
a33e1d91 | 7919 | ;; |
7920 | esac | |
7921 | fi | |
7922 | if test "$with_gnu_ld" = no; then | |
62567204 | 7923 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
7924 | hardcode_libdir_separator=: | |
7925 | ||
693f5c2e | 7926 | case $host_cpu in |
62567204 | 7927 | hppa*64*|ia64*) |
a33e1d91 | 7928 | hardcode_libdir_flag_spec_ld='+b $libdir' |
a33e1d91 | 7929 | hardcode_direct=no |
7930 | hardcode_shlibpath_var=no | |
a33e1d91 | 7931 | ;; |
7932 | *) | |
a33e1d91 | 7933 | hardcode_direct=yes |
7934 | export_dynamic_flag_spec='${wl}-E' | |
7935 | ||
7936 | # hardcode_minus_L: Not really in the search PATH, | |
7937 | # but as the default location of the library. | |
7938 | hardcode_minus_L=yes | |
7939 | ;; | |
7940 | esac | |
7941 | fi | |
7942 | ;; | |
7943 | ||
7944 | irix5* | irix6* | nonstopux*) | |
7945 | if test "$GCC" = yes; then | |
7946 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
7947 | else | |
7948 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
7949 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
7950 | fi | |
7951 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7952 | hardcode_libdir_separator=: | |
7953 | link_all_deplibs=yes | |
7954 | ;; | |
7955 | ||
6263d81f | 7956 | netbsd*) |
a33e1d91 | 7957 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7958 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
7959 | else | |
7960 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
7961 | fi | |
7962 | hardcode_libdir_flag_spec='-R$libdir' | |
7963 | hardcode_direct=yes | |
7964 | hardcode_shlibpath_var=no | |
7965 | ;; | |
7966 | ||
7967 | newsos6) | |
7968 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
7969 | hardcode_direct=yes | |
7970 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7971 | hardcode_libdir_separator=: | |
7972 | hardcode_shlibpath_var=no | |
7973 | ;; | |
7974 | ||
7975 | openbsd*) | |
7976 | hardcode_direct=yes | |
7977 | hardcode_shlibpath_var=no | |
7978 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7979 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
631008fb | 7980 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
a33e1d91 | 7981 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7982 | export_dynamic_flag_spec='${wl}-E' | |
7983 | else | |
7984 | case $host_os in | |
7985 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
7986 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7987 | hardcode_libdir_flag_spec='-R$libdir' | |
7988 | ;; | |
7989 | *) | |
7990 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
7991 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7992 | ;; | |
7993 | esac | |
7994 | fi | |
7995 | ;; | |
7996 | ||
7997 | os2*) | |
7998 | hardcode_libdir_flag_spec='-L$libdir' | |
7999 | hardcode_minus_L=yes | |
8000 | allow_undefined_flag=unsupported | |
8001 | archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
8002 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8003 | ;; | |
8004 | ||
8005 | osf3*) | |
8006 | if test "$GCC" = yes; then | |
8007 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8008 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8009 | else | |
8010 | allow_undefined_flag=' -expect_unresolved \*' | |
8011 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
8012 | fi | |
8013 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8014 | hardcode_libdir_separator=: | |
8015 | ;; | |
8016 | ||
8017 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
8018 | if test "$GCC" = yes; then | |
8019 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8020 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8021 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8022 | else | |
8023 | allow_undefined_flag=' -expect_unresolved \*' | |
8024 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
8025 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
087278d6 | 8026 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
a33e1d91 | 8027 | |
8028 | # Both c and cxx compiler support -rpath directly | |
8029 | hardcode_libdir_flag_spec='-rpath $libdir' | |
8030 | fi | |
8031 | hardcode_libdir_separator=: | |
8032 | ;; | |
8033 | ||
a33e1d91 | 8034 | solaris*) |
8035 | no_undefined_flag=' -z text' | |
8036 | if test "$GCC" = yes; then | |
087278d6 | 8037 | wlarc='${wl}' |
a33e1d91 | 8038 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8039 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
8040 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
8041 | else | |
087278d6 | 8042 | wlarc='' |
a33e1d91 | 8043 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8044 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
8045 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
8046 | fi | |
8047 | hardcode_libdir_flag_spec='-R$libdir' | |
8048 | hardcode_shlibpath_var=no | |
8049 | case $host_os in | |
8050 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
087278d6 | 8051 | *) |
8052 | # The compiler driver will combine linker options so we | |
8053 | # cannot just pass the convience library names through | |
8054 | # without $wl, iff we do not link with $LD. | |
8055 | # Luckily, gcc supports the same syntax we need for Sun Studio. | |
8056 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8057 | case $wlarc in | |
8058 | '') | |
8059 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | |
8060 | *) | |
8061 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
8062 | esac ;; | |
a33e1d91 | 8063 | esac |
8064 | link_all_deplibs=yes | |
8065 | ;; | |
8066 | ||
8067 | sunos4*) | |
8068 | if test "x$host_vendor" = xsequent; then | |
8069 | # Use $CC to link under sequent, because it throws in some extra .o | |
8070 | # files that make .init and .fini sections work. | |
8071 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8072 | else | |
8073 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8074 | fi | |
8075 | hardcode_libdir_flag_spec='-L$libdir' | |
8076 | hardcode_direct=yes | |
8077 | hardcode_minus_L=yes | |
8078 | hardcode_shlibpath_var=no | |
8079 | ;; | |
8080 | ||
8081 | sysv4) | |
8082 | case $host_vendor in | |
8083 | sni) | |
8084 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8085 | hardcode_direct=yes # is this really true??? | |
8086 | ;; | |
8087 | siemens) | |
8088 | ## LD is ld it makes a PLAMLIB | |
8089 | ## CC just makes a GrossModule. | |
8090 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8091 | reload_cmds='$CC -r -o $output$reload_objs' | |
8092 | hardcode_direct=no | |
8093 | ;; | |
8094 | motorola) | |
8095 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8096 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8097 | ;; | |
8098 | esac | |
8099 | runpath_var='LD_RUN_PATH' | |
8100 | hardcode_shlibpath_var=no | |
8101 | ;; | |
8102 | ||
8103 | sysv4.3*) | |
8104 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8105 | hardcode_shlibpath_var=no | |
8106 | export_dynamic_flag_spec='-Bexport' | |
8107 | ;; | |
8108 | ||
8109 | sysv4*MP*) | |
8110 | if test -d /usr/nec; then | |
8111 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8112 | hardcode_shlibpath_var=no | |
8113 | runpath_var=LD_RUN_PATH | |
8114 | hardcode_runpath_var=yes | |
8115 | ld_shlibs=yes | |
8116 | fi | |
8117 | ;; | |
8118 | ||
62567204 | 8119 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
8120 | no_undefined_flag='${wl}-z,text' | |
8121 | archive_cmds_need_lc=no | |
a33e1d91 | 8122 | hardcode_shlibpath_var=no |
62567204 | 8123 | runpath_var='LD_RUN_PATH' |
a33e1d91 | 8124 | |
a33e1d91 | 8125 | if test "$GCC" = yes; then |
62567204 | 8126 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8127 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a33e1d91 | 8128 | else |
62567204 | 8129 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8130 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a33e1d91 | 8131 | fi |
a33e1d91 | 8132 | ;; |
8133 | ||
62567204 | 8134 | sysv5* | sco3.2v5* | sco5v6*) |
8135 | # Note: We can NOT use -z defs as we might desire, because we do not | |
8136 | # link with -lc, and that would cause any symbols used from libc to | |
8137 | # always be unresolved, which means just about no library would | |
8138 | # ever link correctly. If we're not using GNU ld we use -z text | |
8139 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8140 | # as -z defs. | |
8141 | no_undefined_flag='${wl}-z,text' | |
8142 | allow_undefined_flag='${wl}-z,nodefs' | |
8143 | archive_cmds_need_lc=no | |
a33e1d91 | 8144 | hardcode_shlibpath_var=no |
62567204 | 8145 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
8146 | hardcode_libdir_separator=':' | |
8147 | link_all_deplibs=yes | |
8148 | export_dynamic_flag_spec='${wl}-Bexport' | |
a33e1d91 | 8149 | runpath_var='LD_RUN_PATH' |
62567204 | 8150 | |
8151 | if test "$GCC" = yes; then | |
8152 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8153 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8154 | else | |
8155 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8156 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8157 | fi | |
a33e1d91 | 8158 | ;; |
8159 | ||
8160 | uts4*) | |
8161 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8162 | hardcode_libdir_flag_spec='-L$libdir' | |
8163 | hardcode_shlibpath_var=no | |
8164 | ;; | |
8165 | ||
8166 | *) | |
8167 | ld_shlibs=no | |
8168 | ;; | |
8169 | esac | |
8170 | fi | |
8171 | ||
8172 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
8173 | echo "${ECHO_T}$ld_shlibs" >&6 | |
8174 | test "$ld_shlibs" = no && can_build_shared=no | |
8175 | ||
a33e1d91 | 8176 | # |
8177 | # Do we need to explicitly link libc? | |
8178 | # | |
8179 | case "x$archive_cmds_need_lc" in | |
8180 | x|xyes) | |
8181 | # Assume -lc should be added | |
8182 | archive_cmds_need_lc=yes | |
8183 | ||
8184 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8185 | case $archive_cmds in | |
8186 | *'~'*) | |
8187 | # FIXME: we may have to deal with multi-command sequences. | |
8188 | ;; | |
8189 | '$CC '*) | |
8190 | # Test whether the compiler implicitly links with -lc since on some | |
8191 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8192 | # to ld, don't add -lc before -lgcc. | |
8193 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
8194 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
8195 | $rm conftest* | |
8196 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8197 | ||
8198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8199 | (eval $ac_compile) 2>&5 | |
8200 | ac_status=$? | |
8201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8202 | (exit $ac_status); } 2>conftest.err; then | |
8203 | soname=conftest | |
8204 | lib=conftest | |
8205 | libobjs=conftest.$ac_objext | |
8206 | deplibs= | |
8207 | wl=$lt_prog_compiler_wl | |
62567204 | 8208 | pic_flag=$lt_prog_compiler_pic |
a33e1d91 | 8209 | compiler_flags=-v |
8210 | linker_flags=-v | |
8211 | verstring= | |
8212 | output_objdir=. | |
8213 | libname=conftest | |
8214 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
8215 | allow_undefined_flag= | |
8216 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
8217 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8218 | ac_status=$? | |
8219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8220 | (exit $ac_status); } | |
8221 | then | |
8222 | archive_cmds_need_lc=no | |
8223 | else | |
8224 | archive_cmds_need_lc=yes | |
8225 | fi | |
8226 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
8227 | else | |
8228 | cat conftest.err 1>&5 | |
8229 | fi | |
8230 | $rm conftest* | |
8231 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
8232 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | |
8233 | ;; | |
8234 | esac | |
8235 | fi | |
8236 | ;; | |
8237 | esac | |
8238 | ||
8239 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
8240 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
8241 | library_names_spec= | |
8242 | libname_spec='lib$name' | |
8243 | soname_spec= | |
8244 | shrext_cmds=".so" | |
8245 | postinstall_cmds= | |
8246 | postuninstall_cmds= | |
8247 | finish_cmds= | |
8248 | finish_eval= | |
8249 | shlibpath_var= | |
8250 | shlibpath_overrides_runpath=unknown | |
8251 | version_type=none | |
8252 | dynamic_linker="$host_os ld.so" | |
8253 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
8254 | if test "$GCC" = yes; then | |
8255 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8256 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
8257 | # if the path contains ";" then we assume it to be the separator | |
8258 | # otherwise default to the standard path separator (i.e. ":") - it is | |
8259 | # assumed that no part of a normal pathname contains ";" but that should | |
8260 | # okay in the real world where ";" in dirpaths is itself problematic. | |
8261 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8262 | else | |
8263 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8264 | fi | |
8265 | else | |
8266 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
8267 | fi | |
8268 | need_lib_prefix=unknown | |
8269 | hardcode_into_libs=no | |
8270 | ||
8271 | # when you set need_version to no, make sure it does not cause -set_version | |
8272 | # flags to be left without arguments | |
8273 | need_version=unknown | |
8274 | ||
8275 | case $host_os in | |
8276 | aix3*) | |
8277 | version_type=linux | |
8278 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
8279 | shlibpath_var=LIBPATH | |
8280 | ||
8281 | # AIX 3 has no versioning support, so we append a major version to the name. | |
8282 | soname_spec='${libname}${release}${shared_ext}$major' | |
8283 | ;; | |
8284 | ||
8285 | aix4* | aix5*) | |
8286 | version_type=linux | |
8287 | need_lib_prefix=no | |
8288 | need_version=no | |
8289 | hardcode_into_libs=yes | |
8290 | if test "$host_cpu" = ia64; then | |
8291 | # AIX 5 supports IA64 | |
8292 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
8293 | shlibpath_var=LD_LIBRARY_PATH | |
8294 | else | |
8295 | # With GCC up to 2.95.x, collect2 would create an import file | |
8296 | # for dependence libraries. The import file would start with | |
8297 | # the line `#! .'. This would cause the generated library to | |
8298 | # depend on `.', always an invalid library. This was fixed in | |
8299 | # development snapshots of GCC prior to 3.0. | |
8300 | case $host_os in | |
8301 | aix4 | aix4.[01] | aix4.[01].*) | |
8302 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
8303 | echo ' yes ' | |
8304 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
8305 | : | |
8306 | else | |
8307 | can_build_shared=no | |
8308 | fi | |
8309 | ;; | |
8310 | esac | |
8311 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
8312 | # soname into executable. Probably we can add versioning support to | |
8313 | # collect2, so additional links can be useful in future. | |
8314 | if test "$aix_use_runtimelinking" = yes; then | |
8315 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
8316 | # instead of lib<name>.a to let people know that these are not | |
8317 | # typical AIX shared libraries. | |
8318 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8319 | else | |
8320 | # We preserve .a as extension for shared libraries through AIX4.2 | |
8321 | # and later when we are not doing run time linking. | |
8322 | library_names_spec='${libname}${release}.a $libname.a' | |
8323 | soname_spec='${libname}${release}${shared_ext}$major' | |
8324 | fi | |
8325 | shlibpath_var=LIBPATH | |
8326 | fi | |
8327 | ;; | |
8328 | ||
8329 | amigaos*) | |
8330 | library_names_spec='$libname.ixlibrary $libname.a' | |
8331 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
8332 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
8333 | ;; | |
8334 | ||
8335 | beos*) | |
8336 | library_names_spec='${libname}${shared_ext}' | |
8337 | dynamic_linker="$host_os ld.so" | |
8338 | shlibpath_var=LIBRARY_PATH | |
8339 | ;; | |
8340 | ||
631008fb | 8341 | bsdi[45]*) |
a33e1d91 | 8342 | version_type=linux |
8343 | need_version=no | |
8344 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8345 | soname_spec='${libname}${release}${shared_ext}$major' | |
8346 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
8347 | shlibpath_var=LD_LIBRARY_PATH | |
8348 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
8349 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
8350 | # the default ld.so.conf also contains /usr/contrib/lib and | |
8351 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
8352 | # libtool to hard-code these into programs | |
8353 | ;; | |
8354 | ||
8355 | cygwin* | mingw* | pw32*) | |
8356 | version_type=windows | |
8357 | shrext_cmds=".dll" | |
8358 | need_version=no | |
8359 | need_lib_prefix=no | |
8360 | ||
8361 | case $GCC,$host_os in | |
8362 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
8363 | library_names_spec='$libname.dll.a' | |
8364 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
8365 | postinstall_cmds='base_file=`basename \${file}`~ | |
8366 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
8367 | dldir=$destdir/`dirname \$dlpath`~ | |
8368 | test -d \$dldir || mkdir -p \$dldir~ | |
693f5c2e | 8369 | $install_prog $dir/$dlname \$dldir/$dlname~ |
8370 | chmod a+x \$dldir/$dlname' | |
a33e1d91 | 8371 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
8372 | dlpath=$dir/\$dldll~ | |
8373 | $rm \$dlpath' | |
8374 | shlibpath_overrides_runpath=yes | |
8375 | ||
8376 | case $host_os in | |
8377 | cygwin*) | |
8378 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
8379 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8380 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
8381 | ;; | |
8382 | mingw*) | |
8383 | # MinGW DLLs use traditional 'lib' prefix | |
8384 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8385 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8386 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
8387 | # It is most probably a Windows format PATH printed by | |
8388 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
8389 | # path with ; separators, and with drive letters. We can handle the | |
8390 | # drive letters (cygwin fileutils understands them), so leave them, | |
8391 | # especially as we might pass files found there to a mingw objdump, | |
8392 | # which wouldn't understand a cygwinified path. Ahh. | |
8393 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8394 | else | |
8395 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8396 | fi | |
8397 | ;; | |
8398 | pw32*) | |
8399 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
087278d6 | 8400 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
a33e1d91 | 8401 | ;; |
8402 | esac | |
8403 | ;; | |
8404 | ||
8405 | *) | |
8406 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
8407 | ;; | |
8408 | esac | |
8409 | dynamic_linker='Win32 ld.exe' | |
8410 | # FIXME: first we should search . and the directory the executable is in | |
8411 | shlibpath_var=PATH | |
8412 | ;; | |
8413 | ||
8414 | darwin* | rhapsody*) | |
8415 | dynamic_linker="$host_os dyld" | |
8416 | version_type=darwin | |
8417 | need_lib_prefix=no | |
8418 | need_version=no | |
8419 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
8420 | soname_spec='${libname}${release}${major}$shared_ext' | |
8421 | shlibpath_overrides_runpath=yes | |
8422 | shlibpath_var=DYLD_LIBRARY_PATH | |
693f5c2e | 8423 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
a33e1d91 | 8424 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
8425 | if test "$GCC" = yes; then | |
8426 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | |
8427 | else | |
8428 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
8429 | fi | |
8430 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
8431 | ;; | |
8432 | ||
8433 | dgux*) | |
8434 | version_type=linux | |
8435 | need_lib_prefix=no | |
8436 | need_version=no | |
8437 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
8438 | soname_spec='${libname}${release}${shared_ext}$major' | |
8439 | shlibpath_var=LD_LIBRARY_PATH | |
8440 | ;; | |
8441 | ||
8442 | freebsd1*) | |
8443 | dynamic_linker=no | |
8444 | ;; | |
8445 | ||
8446 | kfreebsd*-gnu) | |
8447 | version_type=linux | |
8448 | need_lib_prefix=no | |
8449 | need_version=no | |
8450 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8451 | soname_spec='${libname}${release}${shared_ext}$major' | |
8452 | shlibpath_var=LD_LIBRARY_PATH | |
8453 | shlibpath_overrides_runpath=no | |
8454 | hardcode_into_libs=yes | |
8455 | dynamic_linker='GNU ld.so' | |
8456 | ;; | |
8457 | ||
087278d6 | 8458 | freebsd* | dragonfly*) |
8459 | # DragonFly does not have aout. When/if they implement a new | |
8460 | # versioning mechanism, adjust this. | |
693f5c2e | 8461 | if test -x /usr/bin/objformat; then |
8462 | objformat=`/usr/bin/objformat` | |
8463 | else | |
8464 | case $host_os in | |
8465 | freebsd[123]*) objformat=aout ;; | |
8466 | *) objformat=elf ;; | |
8467 | esac | |
8468 | fi | |
a33e1d91 | 8469 | version_type=freebsd-$objformat |
8470 | case $version_type in | |
8471 | freebsd-elf*) | |
8472 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8473 | need_version=no | |
8474 | need_lib_prefix=no | |
8475 | ;; | |
8476 | freebsd-*) | |
8477 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
8478 | need_version=yes | |
8479 | ;; | |
8480 | esac | |
8481 | shlibpath_var=LD_LIBRARY_PATH | |
8482 | case $host_os in | |
8483 | freebsd2*) | |
8484 | shlibpath_overrides_runpath=yes | |
8485 | ;; | |
087278d6 | 8486 | freebsd3.[01]* | freebsdelf3.[01]*) |
a33e1d91 | 8487 | shlibpath_overrides_runpath=yes |
8488 | hardcode_into_libs=yes | |
8489 | ;; | |
62567204 | 8490 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
8491 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
a33e1d91 | 8492 | shlibpath_overrides_runpath=no |
8493 | hardcode_into_libs=yes | |
8494 | ;; | |
62567204 | 8495 | freebsd*) # from 4.6 on |
8496 | shlibpath_overrides_runpath=yes | |
8497 | hardcode_into_libs=yes | |
8498 | ;; | |
a33e1d91 | 8499 | esac |
8500 | ;; | |
8501 | ||
8502 | gnu*) | |
8503 | version_type=linux | |
8504 | need_lib_prefix=no | |
8505 | need_version=no | |
8506 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
8507 | soname_spec='${libname}${release}${shared_ext}$major' | |
8508 | shlibpath_var=LD_LIBRARY_PATH | |
8509 | hardcode_into_libs=yes | |
8510 | ;; | |
8511 | ||
8512 | hpux9* | hpux10* | hpux11*) | |
8513 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
8514 | # link against other versions. | |
8515 | version_type=sunos | |
8516 | need_lib_prefix=no | |
8517 | need_version=no | |
693f5c2e | 8518 | case $host_cpu in |
a33e1d91 | 8519 | ia64*) |
8520 | shrext_cmds='.so' | |
8521 | hardcode_into_libs=yes | |
8522 | dynamic_linker="$host_os dld.so" | |
8523 | shlibpath_var=LD_LIBRARY_PATH | |
8524 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8525 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8526 | soname_spec='${libname}${release}${shared_ext}$major' | |
8527 | if test "X$HPUX_IA64_MODE" = X32; then | |
8528 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
8529 | else | |
8530 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
8531 | fi | |
8532 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8533 | ;; | |
8534 | hppa*64*) | |
8535 | shrext_cmds='.sl' | |
8536 | hardcode_into_libs=yes | |
8537 | dynamic_linker="$host_os dld.sl" | |
8538 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
8539 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
8540 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8541 | soname_spec='${libname}${release}${shared_ext}$major' | |
8542 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
8543 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
8544 | ;; | |
8545 | *) | |
8546 | shrext_cmds='.sl' | |
8547 | dynamic_linker="$host_os dld.sl" | |
8548 | shlibpath_var=SHLIB_PATH | |
8549 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
8550 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8551 | soname_spec='${libname}${release}${shared_ext}$major' | |
8552 | ;; | |
8553 | esac | |
8554 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
8555 | postinstall_cmds='chmod 555 $lib' | |
8556 | ;; | |
8557 | ||
62567204 | 8558 | interix3*) |
8559 | version_type=linux | |
8560 | need_lib_prefix=no | |
8561 | need_version=no | |
8562 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8563 | soname_spec='${libname}${release}${shared_ext}$major' | |
8564 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
8565 | shlibpath_var=LD_LIBRARY_PATH | |
8566 | shlibpath_overrides_runpath=no | |
8567 | hardcode_into_libs=yes | |
8568 | ;; | |
8569 | ||
a33e1d91 | 8570 | irix5* | irix6* | nonstopux*) |
8571 | case $host_os in | |
8572 | nonstopux*) version_type=nonstopux ;; | |
8573 | *) | |
8574 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
8575 | version_type=linux | |
8576 | else | |
8577 | version_type=irix | |
8578 | fi ;; | |
8579 | esac | |
8580 | need_lib_prefix=no | |
8581 | need_version=no | |
8582 | soname_spec='${libname}${release}${shared_ext}$major' | |
8583 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8584 | case $host_os in | |
8585 | irix5* | nonstopux*) | |
8586 | libsuff= shlibsuff= | |
8587 | ;; | |
8588 | *) | |
8589 | case $LD in # libtool.m4 will add one of these switches to LD | |
8590 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
8591 | libsuff= shlibsuff= libmagic=32-bit;; | |
8592 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
8593 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
8594 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
8595 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
8596 | *) libsuff= shlibsuff= libmagic=never-match;; | |
8597 | esac | |
8598 | ;; | |
8599 | esac | |
8600 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
8601 | shlibpath_overrides_runpath=no | |
8602 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
8603 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
8604 | hardcode_into_libs=yes | |
8605 | ;; | |
8606 | ||
8607 | # No shared lib support for Linux oldld, aout, or coff. | |
8608 | linux*oldld* | linux*aout* | linux*coff*) | |
8609 | dynamic_linker=no | |
8610 | ;; | |
8611 | ||
8612 | # This must be Linux ELF. | |
8613 | linux*) | |
8614 | version_type=linux | |
8615 | need_lib_prefix=no | |
8616 | need_version=no | |
8617 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8618 | soname_spec='${libname}${release}${shared_ext}$major' | |
8619 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
8620 | shlibpath_var=LD_LIBRARY_PATH | |
8621 | shlibpath_overrides_runpath=no | |
8622 | # This implies no fast_install, which is unacceptable. | |
8623 | # Some rework will be needed to allow for fast_install | |
8624 | # before this can be enabled. | |
8625 | hardcode_into_libs=yes | |
8626 | ||
8627 | # Append ld.so.conf contents to the search path | |
8628 | if test -f /etc/ld.so.conf; then | |
087278d6 | 8629 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
a33e1d91 | 8630 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
8631 | fi | |
8632 | ||
8633 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
8634 | # powerpc, because MkLinux only supported shared libraries with the | |
8635 | # GNU dynamic linker. Since this was broken with cross compilers, | |
8636 | # most powerpc-linux boxes support dynamic linking these days and | |
8637 | # people can always --disable-shared, the test was removed, and we | |
8638 | # assume the GNU/Linux dynamic linker is in use. | |
8639 | dynamic_linker='GNU/Linux ld.so' | |
8640 | ;; | |
8641 | ||
8642 | knetbsd*-gnu) | |
8643 | version_type=linux | |
8644 | need_lib_prefix=no | |
8645 | need_version=no | |
8646 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8647 | soname_spec='${libname}${release}${shared_ext}$major' | |
8648 | shlibpath_var=LD_LIBRARY_PATH | |
8649 | shlibpath_overrides_runpath=no | |
8650 | hardcode_into_libs=yes | |
8651 | dynamic_linker='GNU ld.so' | |
8652 | ;; | |
8653 | ||
8654 | netbsd*) | |
8655 | version_type=sunos | |
8656 | need_lib_prefix=no | |
8657 | need_version=no | |
8658 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
8659 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
8660 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
8661 | dynamic_linker='NetBSD (a.out) ld.so' | |
8662 | else | |
8663 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
8664 | soname_spec='${libname}${release}${shared_ext}$major' | |
8665 | dynamic_linker='NetBSD ld.elf_so' | |
8666 | fi | |
8667 | shlibpath_var=LD_LIBRARY_PATH | |
8668 | shlibpath_overrides_runpath=yes | |
8669 | hardcode_into_libs=yes | |
8670 | ;; | |
8671 | ||
8672 | newsos6) | |
8673 | version_type=linux | |
8674 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8675 | shlibpath_var=LD_LIBRARY_PATH | |
8676 | shlibpath_overrides_runpath=yes | |
8677 | ;; | |
8678 | ||
8679 | nto-qnx*) | |
8680 | version_type=linux | |
8681 | need_lib_prefix=no | |
8682 | need_version=no | |
8683 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8684 | soname_spec='${libname}${release}${shared_ext}$major' | |
8685 | shlibpath_var=LD_LIBRARY_PATH | |
8686 | shlibpath_overrides_runpath=yes | |
8687 | ;; | |
8688 | ||
8689 | openbsd*) | |
8690 | version_type=sunos | |
62567204 | 8691 | sys_lib_dlsearch_path_spec="/usr/lib" |
a33e1d91 | 8692 | need_lib_prefix=no |
087278d6 | 8693 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
8694 | case $host_os in | |
8695 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
8696 | *) need_version=no ;; | |
8697 | esac | |
a33e1d91 | 8698 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
8699 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
8700 | shlibpath_var=LD_LIBRARY_PATH | |
8701 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8702 | case $host_os in | |
8703 | openbsd2.[89] | openbsd2.[89].*) | |
8704 | shlibpath_overrides_runpath=no | |
8705 | ;; | |
8706 | *) | |
8707 | shlibpath_overrides_runpath=yes | |
8708 | ;; | |
8709 | esac | |
8710 | else | |
8711 | shlibpath_overrides_runpath=yes | |
8712 | fi | |
8713 | ;; | |
8714 | ||
8715 | os2*) | |
8716 | libname_spec='$name' | |
8717 | shrext_cmds=".dll" | |
8718 | need_lib_prefix=no | |
8719 | library_names_spec='$libname${shared_ext} $libname.a' | |
8720 | dynamic_linker='OS/2 ld.exe' | |
8721 | shlibpath_var=LIBPATH | |
8722 | ;; | |
8723 | ||
8724 | osf3* | osf4* | osf5*) | |
8725 | version_type=osf | |
8726 | need_lib_prefix=no | |
8727 | need_version=no | |
8728 | soname_spec='${libname}${release}${shared_ext}$major' | |
8729 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8730 | shlibpath_var=LD_LIBRARY_PATH | |
8731 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
8732 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
8733 | ;; | |
8734 | ||
a33e1d91 | 8735 | solaris*) |
8736 | version_type=linux | |
8737 | need_lib_prefix=no | |
8738 | need_version=no | |
8739 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8740 | soname_spec='${libname}${release}${shared_ext}$major' | |
8741 | shlibpath_var=LD_LIBRARY_PATH | |
8742 | shlibpath_overrides_runpath=yes | |
8743 | hardcode_into_libs=yes | |
8744 | # ldd complains unless libraries are executable | |
8745 | postinstall_cmds='chmod +x $lib' | |
8746 | ;; | |
8747 | ||
8748 | sunos4*) | |
8749 | version_type=sunos | |
8750 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
8751 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
8752 | shlibpath_var=LD_LIBRARY_PATH | |
8753 | shlibpath_overrides_runpath=yes | |
8754 | if test "$with_gnu_ld" = yes; then | |
8755 | need_lib_prefix=no | |
8756 | fi | |
8757 | need_version=yes | |
8758 | ;; | |
8759 | ||
62567204 | 8760 | sysv4 | sysv4.3*) |
a33e1d91 | 8761 | version_type=linux |
8762 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8763 | soname_spec='${libname}${release}${shared_ext}$major' | |
8764 | shlibpath_var=LD_LIBRARY_PATH | |
8765 | case $host_vendor in | |
8766 | sni) | |
8767 | shlibpath_overrides_runpath=no | |
8768 | need_lib_prefix=no | |
8769 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8770 | runpath_var=LD_RUN_PATH | |
8771 | ;; | |
8772 | siemens) | |
8773 | need_lib_prefix=no | |
8774 | ;; | |
8775 | motorola) | |
8776 | need_lib_prefix=no | |
8777 | need_version=no | |
8778 | shlibpath_overrides_runpath=no | |
8779 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
8780 | ;; | |
8781 | esac | |
8782 | ;; | |
8783 | ||
8784 | sysv4*MP*) | |
8785 | if test -d /usr/nec ;then | |
8786 | version_type=linux | |
8787 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
8788 | soname_spec='$libname${shared_ext}.$major' | |
8789 | shlibpath_var=LD_LIBRARY_PATH | |
8790 | fi | |
8791 | ;; | |
8792 | ||
62567204 | 8793 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
8794 | version_type=freebsd-elf | |
8795 | need_lib_prefix=no | |
8796 | need_version=no | |
8797 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8798 | soname_spec='${libname}${release}${shared_ext}$major' | |
8799 | shlibpath_var=LD_LIBRARY_PATH | |
8800 | hardcode_into_libs=yes | |
8801 | if test "$with_gnu_ld" = yes; then | |
8802 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
8803 | shlibpath_overrides_runpath=no | |
8804 | else | |
8805 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
8806 | shlibpath_overrides_runpath=yes | |
8807 | case $host_os in | |
8808 | sco3.2v5*) | |
8809 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
8810 | ;; | |
8811 | esac | |
8812 | fi | |
8813 | sys_lib_dlsearch_path_spec='/usr/lib' | |
8814 | ;; | |
8815 | ||
8816 | uts4*) | |
8817 | version_type=linux | |
a33e1d91 | 8818 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8819 | soname_spec='${libname}${release}${shared_ext}$major' | |
8820 | shlibpath_var=LD_LIBRARY_PATH | |
8821 | ;; | |
8822 | ||
8823 | *) | |
8824 | dynamic_linker=no | |
8825 | ;; | |
8826 | esac | |
8827 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
8828 | echo "${ECHO_T}$dynamic_linker" >&6 | |
8829 | test "$dynamic_linker" = no && can_build_shared=no | |
8830 | ||
62567204 | 8831 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
8832 | if test "$GCC" = yes; then | |
8833 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
8834 | fi | |
8835 | ||
a33e1d91 | 8836 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
8837 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
8838 | hardcode_action= | |
8839 | if test -n "$hardcode_libdir_flag_spec" || \ | |
631008fb | 8840 | test -n "$runpath_var" || \ |
8841 | test "X$hardcode_automatic" = "Xyes" ; then | |
a33e1d91 | 8842 | |
8843 | # We can hardcode non-existant directories. | |
8844 | if test "$hardcode_direct" != no && | |
8845 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
8846 | # have to relink, otherwise we might link with an installed library | |
8847 | # when we should be linking with a yet-to-be-installed one | |
8848 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | |
8849 | test "$hardcode_minus_L" != no; then | |
8850 | # Linking always hardcodes the temporary library directory. | |
8851 | hardcode_action=relink | |
8852 | else | |
8853 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
8854 | hardcode_action=immediate | |
8855 | fi | |
8856 | else | |
8857 | # We cannot hardcode anything, or else we can only hardcode existing | |
8858 | # directories. | |
8859 | hardcode_action=unsupported | |
8860 | fi | |
8861 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
8862 | echo "${ECHO_T}$hardcode_action" >&6 | |
8863 | ||
8864 | if test "$hardcode_action" = relink; then | |
8865 | # Fast installation is not supported | |
8866 | enable_fast_install=no | |
8867 | elif test "$shlibpath_overrides_runpath" = yes || | |
8868 | test "$enable_shared" = no; then | |
8869 | # Fast installation is not necessary | |
8870 | enable_fast_install=needless | |
8871 | fi | |
8872 | ||
8873 | striplib= | |
8874 | old_striplib= | |
8875 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
8876 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
8877 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
8878 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
8879 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
8880 | echo "$as_me:$LINENO: result: yes" >&5 | |
8881 | echo "${ECHO_T}yes" >&6 | |
8882 | else | |
8883 | # FIXME - insert some real tests, host_os isn't really good enough | |
8884 | case $host_os in | |
8885 | darwin*) | |
8886 | if test -n "$STRIP" ; then | |
8887 | striplib="$STRIP -x" | |
8888 | echo "$as_me:$LINENO: result: yes" >&5 | |
8889 | echo "${ECHO_T}yes" >&6 | |
8890 | else | |
8891 | echo "$as_me:$LINENO: result: no" >&5 | |
8892 | echo "${ECHO_T}no" >&6 | |
8893 | fi | |
8894 | ;; | |
8895 | *) | |
8896 | echo "$as_me:$LINENO: result: no" >&5 | |
8897 | echo "${ECHO_T}no" >&6 | |
8898 | ;; | |
8899 | esac | |
8900 | fi | |
8901 | ||
8902 | if test "x$enable_dlopen" != xyes; then | |
8903 | enable_dlopen=unknown | |
8904 | enable_dlopen_self=unknown | |
8905 | enable_dlopen_self_static=unknown | |
8906 | else | |
8907 | lt_cv_dlopen=no | |
8908 | lt_cv_dlopen_libs= | |
8909 | ||
8910 | case $host_os in | |
8911 | beos*) | |
8912 | lt_cv_dlopen="load_add_on" | |
8913 | lt_cv_dlopen_libs= | |
8914 | lt_cv_dlopen_self=yes | |
8915 | ;; | |
8916 | ||
8917 | mingw* | pw32*) | |
8918 | lt_cv_dlopen="LoadLibrary" | |
8919 | lt_cv_dlopen_libs= | |
8920 | ;; | |
8921 | ||
8922 | cygwin*) | |
8923 | lt_cv_dlopen="dlopen" | |
8924 | lt_cv_dlopen_libs= | |
8925 | ;; | |
8926 | ||
8927 | darwin*) | |
8928 | # if libdl is installed we need to link against it | |
8929 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
8930 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
8931 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
8932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8933 | else | |
8934 | ac_check_lib_save_LIBS=$LIBS | |
8935 | LIBS="-ldl $LIBS" | |
8936 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 8937 | /* confdefs.h. */ |
8938 | _ACEOF | |
8939 | cat confdefs.h >>conftest.$ac_ext | |
8940 | cat >>conftest.$ac_ext <<_ACEOF | |
8941 | /* end confdefs.h. */ | |
8942 | ||
8943 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8944 | #ifdef __cplusplus | |
8945 | extern "C" | |
8946 | #endif | |
8947 | /* We use char because int might match the return type of a gcc2 | |
8948 | builtin and then its argument prototype would still apply. */ | |
8949 | char dlopen (); | |
8950 | int | |
8951 | main () | |
8952 | { | |
8953 | dlopen (); | |
8954 | ; | |
8955 | return 0; | |
8956 | } | |
8957 | _ACEOF | |
8958 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8959 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 8960 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 8961 | ac_status=$? |
af3004ff | 8962 | grep -v '^ *+' conftest.er1 >conftest.err |
8963 | rm -f conftest.er1 | |
8964 | cat conftest.err >&5 | |
a33e1d91 | 8965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8966 | (exit $ac_status); } && | |
6263d81f | 8967 | { ac_try='test -z "$ac_c_werror_flag" |
8968 | || test ! -s conftest.err' | |
af3004ff | 8969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8970 | (eval $ac_try) 2>&5 | |
8971 | ac_status=$? | |
8972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8973 | (exit $ac_status); }; } && | |
8974 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 8975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8976 | (eval $ac_try) 2>&5 | |
8977 | ac_status=$? | |
8978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8979 | (exit $ac_status); }; }; then | |
8980 | ac_cv_lib_dl_dlopen=yes | |
8981 | else | |
8982 | echo "$as_me: failed program was:" >&5 | |
8983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8984 | ||
8985 | ac_cv_lib_dl_dlopen=no | |
8986 | fi | |
af3004ff | 8987 | rm -f conftest.err conftest.$ac_objext \ |
8988 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 8989 | LIBS=$ac_check_lib_save_LIBS |
8990 | fi | |
8991 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
8992 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
8993 | if test $ac_cv_lib_dl_dlopen = yes; then | |
8994 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
8995 | else | |
8996 | ||
8997 | lt_cv_dlopen="dyld" | |
8998 | lt_cv_dlopen_libs= | |
8999 | lt_cv_dlopen_self=yes | |
9000 | ||
9001 | fi | |
9002 | ||
9003 | ;; | |
9004 | ||
9005 | *) | |
9006 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
9007 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
9008 | if test "${ac_cv_func_shl_load+set}" = set; then | |
9009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9010 | else | |
9011 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 9012 | /* confdefs.h. */ |
9013 | _ACEOF | |
9014 | cat confdefs.h >>conftest.$ac_ext | |
9015 | cat >>conftest.$ac_ext <<_ACEOF | |
9016 | /* end confdefs.h. */ | |
af3004ff | 9017 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
9018 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9019 | #define shl_load innocuous_shl_load | |
9020 | ||
a33e1d91 | 9021 | /* System header to define __stub macros and hopefully few prototypes, |
9022 | which can conflict with char shl_load (); below. | |
9023 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9024 | <limits.h> exists even on freestanding compilers. */ | |
af3004ff | 9025 | |
a33e1d91 | 9026 | #ifdef __STDC__ |
9027 | # include <limits.h> | |
9028 | #else | |
9029 | # include <assert.h> | |
9030 | #endif | |
af3004ff | 9031 | |
9032 | #undef shl_load | |
9033 | ||
a33e1d91 | 9034 | /* Override any gcc2 internal prototype to avoid an error. */ |
9035 | #ifdef __cplusplus | |
9036 | extern "C" | |
9037 | { | |
9038 | #endif | |
9039 | /* We use char because int might match the return type of a gcc2 | |
9040 | builtin and then its argument prototype would still apply. */ | |
9041 | char shl_load (); | |
9042 | /* The GNU C library defines this for functions which it implements | |
9043 | to always fail with ENOSYS. Some functions are actually named | |
9044 | something starting with __ and the normal name is an alias. */ | |
9045 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
9046 | choke me | |
9047 | #else | |
9048 | char (*f) () = shl_load; | |
9049 | #endif | |
9050 | #ifdef __cplusplus | |
9051 | } | |
9052 | #endif | |
9053 | ||
9054 | int | |
9055 | main () | |
9056 | { | |
9057 | return f != shl_load; | |
9058 | ; | |
9059 | return 0; | |
9060 | } | |
9061 | _ACEOF | |
9062 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9063 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 9064 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 9065 | ac_status=$? |
af3004ff | 9066 | grep -v '^ *+' conftest.er1 >conftest.err |
9067 | rm -f conftest.er1 | |
9068 | cat conftest.err >&5 | |
a33e1d91 | 9069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9070 | (exit $ac_status); } && | |
6263d81f | 9071 | { ac_try='test -z "$ac_c_werror_flag" |
9072 | || test ! -s conftest.err' | |
af3004ff | 9073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9074 | (eval $ac_try) 2>&5 | |
9075 | ac_status=$? | |
9076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9077 | (exit $ac_status); }; } && | |
9078 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 9079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9080 | (eval $ac_try) 2>&5 | |
9081 | ac_status=$? | |
9082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9083 | (exit $ac_status); }; }; then | |
9084 | ac_cv_func_shl_load=yes | |
9085 | else | |
9086 | echo "$as_me: failed program was:" >&5 | |
9087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9088 | ||
9089 | ac_cv_func_shl_load=no | |
9090 | fi | |
af3004ff | 9091 | rm -f conftest.err conftest.$ac_objext \ |
9092 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 9093 | fi |
9094 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
9095 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
9096 | if test $ac_cv_func_shl_load = yes; then | |
9097 | lt_cv_dlopen="shl_load" | |
9098 | else | |
9099 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
9100 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
9101 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
9102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9103 | else | |
9104 | ac_check_lib_save_LIBS=$LIBS | |
9105 | LIBS="-ldld $LIBS" | |
9106 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 9107 | /* confdefs.h. */ |
9108 | _ACEOF | |
9109 | cat confdefs.h >>conftest.$ac_ext | |
9110 | cat >>conftest.$ac_ext <<_ACEOF | |
9111 | /* end confdefs.h. */ | |
9112 | ||
9113 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9114 | #ifdef __cplusplus | |
9115 | extern "C" | |
9116 | #endif | |
9117 | /* We use char because int might match the return type of a gcc2 | |
9118 | builtin and then its argument prototype would still apply. */ | |
9119 | char shl_load (); | |
9120 | int | |
9121 | main () | |
9122 | { | |
9123 | shl_load (); | |
9124 | ; | |
9125 | return 0; | |
9126 | } | |
9127 | _ACEOF | |
9128 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9129 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 9130 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 9131 | ac_status=$? |
af3004ff | 9132 | grep -v '^ *+' conftest.er1 >conftest.err |
9133 | rm -f conftest.er1 | |
9134 | cat conftest.err >&5 | |
a33e1d91 | 9135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9136 | (exit $ac_status); } && | |
6263d81f | 9137 | { ac_try='test -z "$ac_c_werror_flag" |
9138 | || test ! -s conftest.err' | |
af3004ff | 9139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9140 | (eval $ac_try) 2>&5 | |
9141 | ac_status=$? | |
9142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9143 | (exit $ac_status); }; } && | |
9144 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 9145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9146 | (eval $ac_try) 2>&5 | |
9147 | ac_status=$? | |
9148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9149 | (exit $ac_status); }; }; then | |
9150 | ac_cv_lib_dld_shl_load=yes | |
9151 | else | |
9152 | echo "$as_me: failed program was:" >&5 | |
9153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9154 | ||
9155 | ac_cv_lib_dld_shl_load=no | |
9156 | fi | |
af3004ff | 9157 | rm -f conftest.err conftest.$ac_objext \ |
9158 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 9159 | LIBS=$ac_check_lib_save_LIBS |
9160 | fi | |
9161 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
9162 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
9163 | if test $ac_cv_lib_dld_shl_load = yes; then | |
9164 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
9165 | else | |
9166 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
9167 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
9168 | if test "${ac_cv_func_dlopen+set}" = set; then | |
9169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9170 | else | |
9171 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 9172 | /* confdefs.h. */ |
9173 | _ACEOF | |
9174 | cat confdefs.h >>conftest.$ac_ext | |
9175 | cat >>conftest.$ac_ext <<_ACEOF | |
9176 | /* end confdefs.h. */ | |
af3004ff | 9177 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
9178 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9179 | #define dlopen innocuous_dlopen | |
9180 | ||
a33e1d91 | 9181 | /* System header to define __stub macros and hopefully few prototypes, |
9182 | which can conflict with char dlopen (); below. | |
9183 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9184 | <limits.h> exists even on freestanding compilers. */ | |
af3004ff | 9185 | |
a33e1d91 | 9186 | #ifdef __STDC__ |
9187 | # include <limits.h> | |
9188 | #else | |
9189 | # include <assert.h> | |
9190 | #endif | |
af3004ff | 9191 | |
9192 | #undef dlopen | |
9193 | ||
a33e1d91 | 9194 | /* Override any gcc2 internal prototype to avoid an error. */ |
9195 | #ifdef __cplusplus | |
9196 | extern "C" | |
9197 | { | |
9198 | #endif | |
9199 | /* We use char because int might match the return type of a gcc2 | |
9200 | builtin and then its argument prototype would still apply. */ | |
9201 | char dlopen (); | |
9202 | /* The GNU C library defines this for functions which it implements | |
9203 | to always fail with ENOSYS. Some functions are actually named | |
9204 | something starting with __ and the normal name is an alias. */ | |
9205 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
9206 | choke me | |
9207 | #else | |
9208 | char (*f) () = dlopen; | |
9209 | #endif | |
9210 | #ifdef __cplusplus | |
9211 | } | |
9212 | #endif | |
9213 | ||
9214 | int | |
9215 | main () | |
9216 | { | |
9217 | return f != dlopen; | |
9218 | ; | |
9219 | return 0; | |
9220 | } | |
9221 | _ACEOF | |
9222 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9223 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 9224 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 9225 | ac_status=$? |
af3004ff | 9226 | grep -v '^ *+' conftest.er1 >conftest.err |
9227 | rm -f conftest.er1 | |
9228 | cat conftest.err >&5 | |
a33e1d91 | 9229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9230 | (exit $ac_status); } && | |
6263d81f | 9231 | { ac_try='test -z "$ac_c_werror_flag" |
9232 | || test ! -s conftest.err' | |
af3004ff | 9233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9234 | (eval $ac_try) 2>&5 | |
9235 | ac_status=$? | |
9236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9237 | (exit $ac_status); }; } && | |
9238 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 9239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9240 | (eval $ac_try) 2>&5 | |
9241 | ac_status=$? | |
9242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9243 | (exit $ac_status); }; }; then | |
9244 | ac_cv_func_dlopen=yes | |
9245 | else | |
9246 | echo "$as_me: failed program was:" >&5 | |
9247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9248 | ||
9249 | ac_cv_func_dlopen=no | |
9250 | fi | |
af3004ff | 9251 | rm -f conftest.err conftest.$ac_objext \ |
9252 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 9253 | fi |
9254 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
9255 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
9256 | if test $ac_cv_func_dlopen = yes; then | |
9257 | lt_cv_dlopen="dlopen" | |
9258 | else | |
9259 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
9260 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
9261 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
9262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9263 | else | |
9264 | ac_check_lib_save_LIBS=$LIBS | |
9265 | LIBS="-ldl $LIBS" | |
9266 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 9267 | /* confdefs.h. */ |
9268 | _ACEOF | |
9269 | cat confdefs.h >>conftest.$ac_ext | |
9270 | cat >>conftest.$ac_ext <<_ACEOF | |
9271 | /* end confdefs.h. */ | |
9272 | ||
9273 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9274 | #ifdef __cplusplus | |
9275 | extern "C" | |
9276 | #endif | |
9277 | /* We use char because int might match the return type of a gcc2 | |
9278 | builtin and then its argument prototype would still apply. */ | |
9279 | char dlopen (); | |
9280 | int | |
9281 | main () | |
9282 | { | |
9283 | dlopen (); | |
9284 | ; | |
9285 | return 0; | |
9286 | } | |
9287 | _ACEOF | |
9288 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 9290 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 9291 | ac_status=$? |
af3004ff | 9292 | grep -v '^ *+' conftest.er1 >conftest.err |
9293 | rm -f conftest.er1 | |
9294 | cat conftest.err >&5 | |
a33e1d91 | 9295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9296 | (exit $ac_status); } && | |
6263d81f | 9297 | { ac_try='test -z "$ac_c_werror_flag" |
9298 | || test ! -s conftest.err' | |
af3004ff | 9299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9300 | (eval $ac_try) 2>&5 | |
9301 | ac_status=$? | |
9302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9303 | (exit $ac_status); }; } && | |
9304 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 9305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9306 | (eval $ac_try) 2>&5 | |
9307 | ac_status=$? | |
9308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9309 | (exit $ac_status); }; }; then | |
9310 | ac_cv_lib_dl_dlopen=yes | |
9311 | else | |
9312 | echo "$as_me: failed program was:" >&5 | |
9313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9314 | ||
9315 | ac_cv_lib_dl_dlopen=no | |
9316 | fi | |
af3004ff | 9317 | rm -f conftest.err conftest.$ac_objext \ |
9318 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 9319 | LIBS=$ac_check_lib_save_LIBS |
9320 | fi | |
9321 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
9322 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
9323 | if test $ac_cv_lib_dl_dlopen = yes; then | |
9324 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9325 | else | |
9326 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
9327 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
9328 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
9329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9330 | else | |
9331 | ac_check_lib_save_LIBS=$LIBS | |
9332 | LIBS="-lsvld $LIBS" | |
9333 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 9334 | /* confdefs.h. */ |
9335 | _ACEOF | |
9336 | cat confdefs.h >>conftest.$ac_ext | |
9337 | cat >>conftest.$ac_ext <<_ACEOF | |
9338 | /* end confdefs.h. */ | |
9339 | ||
9340 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9341 | #ifdef __cplusplus | |
9342 | extern "C" | |
9343 | #endif | |
9344 | /* We use char because int might match the return type of a gcc2 | |
9345 | builtin and then its argument prototype would still apply. */ | |
9346 | char dlopen (); | |
9347 | int | |
9348 | main () | |
9349 | { | |
9350 | dlopen (); | |
9351 | ; | |
9352 | return 0; | |
9353 | } | |
9354 | _ACEOF | |
9355 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9356 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 9357 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 9358 | ac_status=$? |
af3004ff | 9359 | grep -v '^ *+' conftest.er1 >conftest.err |
9360 | rm -f conftest.er1 | |
9361 | cat conftest.err >&5 | |
a33e1d91 | 9362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9363 | (exit $ac_status); } && | |
6263d81f | 9364 | { ac_try='test -z "$ac_c_werror_flag" |
9365 | || test ! -s conftest.err' | |
af3004ff | 9366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9367 | (eval $ac_try) 2>&5 | |
9368 | ac_status=$? | |
9369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9370 | (exit $ac_status); }; } && | |
9371 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 9372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9373 | (eval $ac_try) 2>&5 | |
9374 | ac_status=$? | |
9375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9376 | (exit $ac_status); }; }; then | |
9377 | ac_cv_lib_svld_dlopen=yes | |
9378 | else | |
9379 | echo "$as_me: failed program was:" >&5 | |
9380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9381 | ||
9382 | ac_cv_lib_svld_dlopen=no | |
9383 | fi | |
af3004ff | 9384 | rm -f conftest.err conftest.$ac_objext \ |
9385 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 9386 | LIBS=$ac_check_lib_save_LIBS |
9387 | fi | |
9388 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
9389 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
9390 | if test $ac_cv_lib_svld_dlopen = yes; then | |
9391 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
9392 | else | |
9393 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
9394 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
9395 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
9396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9397 | else | |
9398 | ac_check_lib_save_LIBS=$LIBS | |
9399 | LIBS="-ldld $LIBS" | |
9400 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 9401 | /* confdefs.h. */ |
9402 | _ACEOF | |
9403 | cat confdefs.h >>conftest.$ac_ext | |
9404 | cat >>conftest.$ac_ext <<_ACEOF | |
9405 | /* end confdefs.h. */ | |
9406 | ||
9407 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9408 | #ifdef __cplusplus | |
9409 | extern "C" | |
9410 | #endif | |
9411 | /* We use char because int might match the return type of a gcc2 | |
9412 | builtin and then its argument prototype would still apply. */ | |
9413 | char dld_link (); | |
9414 | int | |
9415 | main () | |
9416 | { | |
9417 | dld_link (); | |
9418 | ; | |
9419 | return 0; | |
9420 | } | |
9421 | _ACEOF | |
9422 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9423 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 9424 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 9425 | ac_status=$? |
af3004ff | 9426 | grep -v '^ *+' conftest.er1 >conftest.err |
9427 | rm -f conftest.er1 | |
9428 | cat conftest.err >&5 | |
a33e1d91 | 9429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9430 | (exit $ac_status); } && | |
6263d81f | 9431 | { ac_try='test -z "$ac_c_werror_flag" |
9432 | || test ! -s conftest.err' | |
af3004ff | 9433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9434 | (eval $ac_try) 2>&5 | |
9435 | ac_status=$? | |
9436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9437 | (exit $ac_status); }; } && | |
9438 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 9439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9440 | (eval $ac_try) 2>&5 | |
9441 | ac_status=$? | |
9442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9443 | (exit $ac_status); }; }; then | |
9444 | ac_cv_lib_dld_dld_link=yes | |
9445 | else | |
9446 | echo "$as_me: failed program was:" >&5 | |
9447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9448 | ||
9449 | ac_cv_lib_dld_dld_link=no | |
9450 | fi | |
af3004ff | 9451 | rm -f conftest.err conftest.$ac_objext \ |
9452 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 9453 | LIBS=$ac_check_lib_save_LIBS |
9454 | fi | |
9455 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
9456 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
9457 | if test $ac_cv_lib_dld_dld_link = yes; then | |
9458 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
9459 | fi | |
9460 | ||
9461 | ||
9462 | fi | |
9463 | ||
9464 | ||
9465 | fi | |
9466 | ||
9467 | ||
9468 | fi | |
9469 | ||
9470 | ||
9471 | fi | |
9472 | ||
9473 | ||
9474 | fi | |
9475 | ||
9476 | ;; | |
9477 | esac | |
9478 | ||
9479 | if test "x$lt_cv_dlopen" != xno; then | |
9480 | enable_dlopen=yes | |
9481 | else | |
9482 | enable_dlopen=no | |
9483 | fi | |
9484 | ||
9485 | case $lt_cv_dlopen in | |
9486 | dlopen) | |
9487 | save_CPPFLAGS="$CPPFLAGS" | |
9488 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
9489 | ||
9490 | save_LDFLAGS="$LDFLAGS" | |
62567204 | 9491 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
a33e1d91 | 9492 | |
9493 | save_LIBS="$LIBS" | |
9494 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
9495 | ||
9496 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
9497 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
9498 | if test "${lt_cv_dlopen_self+set}" = set; then | |
9499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9500 | else | |
9501 | if test "$cross_compiling" = yes; then : | |
9502 | lt_cv_dlopen_self=cross | |
9503 | else | |
9504 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9505 | lt_status=$lt_dlunknown | |
9506 | cat > conftest.$ac_ext <<EOF | |
00b2804c | 9507 | #line 9507 "configure" |
a33e1d91 | 9508 | #include "confdefs.h" |
9509 | ||
9510 | #if HAVE_DLFCN_H | |
9511 | #include <dlfcn.h> | |
9512 | #endif | |
9513 | ||
9514 | #include <stdio.h> | |
9515 | ||
9516 | #ifdef RTLD_GLOBAL | |
9517 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9518 | #else | |
9519 | # ifdef DL_GLOBAL | |
9520 | # define LT_DLGLOBAL DL_GLOBAL | |
9521 | # else | |
9522 | # define LT_DLGLOBAL 0 | |
9523 | # endif | |
9524 | #endif | |
9525 | ||
9526 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9527 | find out it does not work in some platform. */ | |
9528 | #ifndef LT_DLLAZY_OR_NOW | |
9529 | # ifdef RTLD_LAZY | |
9530 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9531 | # else | |
9532 | # ifdef DL_LAZY | |
9533 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9534 | # else | |
9535 | # ifdef RTLD_NOW | |
9536 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9537 | # else | |
9538 | # ifdef DL_NOW | |
9539 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9540 | # else | |
9541 | # define LT_DLLAZY_OR_NOW 0 | |
9542 | # endif | |
9543 | # endif | |
9544 | # endif | |
9545 | # endif | |
9546 | #endif | |
9547 | ||
9548 | #ifdef __cplusplus | |
9549 | extern "C" void exit (int); | |
9550 | #endif | |
9551 | ||
9552 | void fnord() { int i=42;} | |
9553 | int main () | |
9554 | { | |
9555 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9556 | int status = $lt_dlunknown; | |
9557 | ||
9558 | if (self) | |
9559 | { | |
9560 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9561 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9562 | /* dlclose (self); */ | |
9563 | } | |
62567204 | 9564 | else |
9565 | puts (dlerror ()); | |
a33e1d91 | 9566 | |
9567 | exit (status); | |
9568 | } | |
9569 | EOF | |
9570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9571 | (eval $ac_link) 2>&5 | |
9572 | ac_status=$? | |
9573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9574 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
693f5c2e | 9575 | (./conftest; exit; ) >&5 2>/dev/null |
a33e1d91 | 9576 | lt_status=$? |
9577 | case x$lt_status in | |
9578 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
9579 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
62567204 | 9580 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
a33e1d91 | 9581 | esac |
9582 | else : | |
9583 | # compilation failed | |
9584 | lt_cv_dlopen_self=no | |
9585 | fi | |
9586 | fi | |
9587 | rm -fr conftest* | |
9588 | ||
9589 | ||
9590 | fi | |
9591 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
9592 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
9593 | ||
9594 | if test "x$lt_cv_dlopen_self" = xyes; then | |
62567204 | 9595 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
a33e1d91 | 9596 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
9597 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
9598 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
9599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9600 | else | |
9601 | if test "$cross_compiling" = yes; then : | |
9602 | lt_cv_dlopen_self_static=cross | |
9603 | else | |
9604 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
9605 | lt_status=$lt_dlunknown | |
9606 | cat > conftest.$ac_ext <<EOF | |
00b2804c | 9607 | #line 9607 "configure" |
a33e1d91 | 9608 | #include "confdefs.h" |
9609 | ||
9610 | #if HAVE_DLFCN_H | |
9611 | #include <dlfcn.h> | |
9612 | #endif | |
9613 | ||
9614 | #include <stdio.h> | |
9615 | ||
9616 | #ifdef RTLD_GLOBAL | |
9617 | # define LT_DLGLOBAL RTLD_GLOBAL | |
9618 | #else | |
9619 | # ifdef DL_GLOBAL | |
9620 | # define LT_DLGLOBAL DL_GLOBAL | |
9621 | # else | |
9622 | # define LT_DLGLOBAL 0 | |
9623 | # endif | |
9624 | #endif | |
9625 | ||
9626 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
9627 | find out it does not work in some platform. */ | |
9628 | #ifndef LT_DLLAZY_OR_NOW | |
9629 | # ifdef RTLD_LAZY | |
9630 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
9631 | # else | |
9632 | # ifdef DL_LAZY | |
9633 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
9634 | # else | |
9635 | # ifdef RTLD_NOW | |
9636 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
9637 | # else | |
9638 | # ifdef DL_NOW | |
9639 | # define LT_DLLAZY_OR_NOW DL_NOW | |
9640 | # else | |
9641 | # define LT_DLLAZY_OR_NOW 0 | |
9642 | # endif | |
9643 | # endif | |
9644 | # endif | |
9645 | # endif | |
9646 | #endif | |
9647 | ||
9648 | #ifdef __cplusplus | |
9649 | extern "C" void exit (int); | |
9650 | #endif | |
9651 | ||
9652 | void fnord() { int i=42;} | |
9653 | int main () | |
9654 | { | |
9655 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
9656 | int status = $lt_dlunknown; | |
9657 | ||
9658 | if (self) | |
9659 | { | |
9660 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
9661 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
9662 | /* dlclose (self); */ | |
9663 | } | |
62567204 | 9664 | else |
9665 | puts (dlerror ()); | |
a33e1d91 | 9666 | |
9667 | exit (status); | |
9668 | } | |
9669 | EOF | |
9670 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9671 | (eval $ac_link) 2>&5 | |
9672 | ac_status=$? | |
9673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9674 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
693f5c2e | 9675 | (./conftest; exit; ) >&5 2>/dev/null |
a33e1d91 | 9676 | lt_status=$? |
9677 | case x$lt_status in | |
9678 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
9679 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
62567204 | 9680 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
a33e1d91 | 9681 | esac |
9682 | else : | |
9683 | # compilation failed | |
9684 | lt_cv_dlopen_self_static=no | |
9685 | fi | |
9686 | fi | |
9687 | rm -fr conftest* | |
9688 | ||
9689 | ||
9690 | fi | |
9691 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
9692 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
9693 | fi | |
9694 | ||
9695 | CPPFLAGS="$save_CPPFLAGS" | |
9696 | LDFLAGS="$save_LDFLAGS" | |
9697 | LIBS="$save_LIBS" | |
9698 | ;; | |
9699 | esac | |
9700 | ||
9701 | case $lt_cv_dlopen_self in | |
9702 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
9703 | *) enable_dlopen_self=unknown ;; | |
9704 | esac | |
9705 | ||
9706 | case $lt_cv_dlopen_self_static in | |
9707 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
9708 | *) enable_dlopen_self_static=unknown ;; | |
9709 | esac | |
9710 | fi | |
9711 | ||
9712 | ||
62567204 | 9713 | # Report which library types will actually be built |
a33e1d91 | 9714 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
9715 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
9716 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
9717 | echo "${ECHO_T}$can_build_shared" >&6 | |
9718 | ||
9719 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
9720 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
9721 | test "$can_build_shared" = "no" && enable_shared=no | |
9722 | ||
9723 | # On AIX, shared libraries and static libraries use the same namespace, and | |
9724 | # are all built from PIC. | |
693f5c2e | 9725 | case $host_os in |
a33e1d91 | 9726 | aix3*) |
9727 | test "$enable_shared" = yes && enable_static=no | |
9728 | if test -n "$RANLIB"; then | |
9729 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
9730 | postinstall_cmds='$RANLIB $lib' | |
9731 | fi | |
9732 | ;; | |
9733 | ||
9734 | aix4* | aix5*) | |
9735 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
9736 | test "$enable_shared" = yes && enable_static=no | |
9737 | fi | |
9738 | ;; | |
9739 | esac | |
9740 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
9741 | echo "${ECHO_T}$enable_shared" >&6 | |
9742 | ||
9743 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
9744 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
9745 | # Make sure either enable_shared or enable_static is yes. | |
9746 | test "$enable_shared" = yes || enable_static=yes | |
9747 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
9748 | echo "${ECHO_T}$enable_static" >&6 | |
9749 | ||
9750 | # The else clause should only fire when bootstrapping the | |
9751 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
9752 | # with your package, and you will get complaints that there are | |
9753 | # no rules to generate ltmain.sh. | |
9754 | if test -f "$ltmain"; then | |
9755 | # See if we are running on zsh, and set the options which allow our commands through | |
9756 | # without removal of \ escapes. | |
9757 | if test -n "${ZSH_VERSION+set}" ; then | |
9758 | setopt NO_GLOB_SUBST | |
9759 | fi | |
9760 | # Now quote all the things that may contain metacharacters while being | |
9761 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
9762 | # variables and quote the copies for generation of the libtool script. | |
62567204 | 9763 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
a33e1d91 | 9764 | SED SHELL STRIP \ |
9765 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
9766 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
9767 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
9768 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
9769 | lt_cv_sys_global_symbol_to_c_name_address \ | |
9770 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
9771 | old_postinstall_cmds old_postuninstall_cmds \ | |
9772 | compiler \ | |
9773 | CC \ | |
9774 | LD \ | |
9775 | lt_prog_compiler_wl \ | |
9776 | lt_prog_compiler_pic \ | |
9777 | lt_prog_compiler_static \ | |
9778 | lt_prog_compiler_no_builtin_flag \ | |
9779 | export_dynamic_flag_spec \ | |
9780 | thread_safe_flag_spec \ | |
9781 | whole_archive_flag_spec \ | |
9782 | enable_shared_with_static_runtimes \ | |
9783 | old_archive_cmds \ | |
9784 | old_archive_from_new_cmds \ | |
9785 | predep_objects \ | |
9786 | postdep_objects \ | |
9787 | predeps \ | |
9788 | postdeps \ | |
9789 | compiler_lib_search_path \ | |
9790 | archive_cmds \ | |
9791 | archive_expsym_cmds \ | |
9792 | postinstall_cmds \ | |
9793 | postuninstall_cmds \ | |
9794 | old_archive_from_expsyms_cmds \ | |
9795 | allow_undefined_flag \ | |
9796 | no_undefined_flag \ | |
9797 | export_symbols_cmds \ | |
9798 | hardcode_libdir_flag_spec \ | |
9799 | hardcode_libdir_flag_spec_ld \ | |
9800 | hardcode_libdir_separator \ | |
9801 | hardcode_automatic \ | |
9802 | module_cmds \ | |
9803 | module_expsym_cmds \ | |
9804 | lt_cv_prog_compiler_c_o \ | |
9805 | exclude_expsyms \ | |
9806 | include_expsyms; do | |
9807 | ||
9808 | case $var in | |
9809 | old_archive_cmds | \ | |
9810 | old_archive_from_new_cmds | \ | |
9811 | archive_cmds | \ | |
9812 | archive_expsym_cmds | \ | |
9813 | module_cmds | \ | |
9814 | module_expsym_cmds | \ | |
9815 | old_archive_from_expsyms_cmds | \ | |
9816 | export_symbols_cmds | \ | |
9817 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
9818 | postinstall_cmds | postuninstall_cmds | \ | |
9819 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
9820 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
9821 | # Double-quote double-evaled strings. | |
9822 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
9823 | ;; | |
9824 | *) | |
9825 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
9826 | ;; | |
9827 | esac | |
9828 | done | |
9829 | ||
9830 | case $lt_echo in | |
9831 | *'\$0 --fallback-echo"') | |
9832 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
9833 | ;; | |
9834 | esac | |
9835 | ||
9836 | cfgfile="${ofile}T" | |
9837 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | |
9838 | $rm -f "$cfgfile" | |
9839 | { echo "$as_me:$LINENO: creating $ofile" >&5 | |
9840 | echo "$as_me: creating $ofile" >&6;} | |
9841 | ||
9842 | cat <<__EOF__ >> "$cfgfile" | |
9843 | #! $SHELL | |
9844 | ||
9845 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
9846 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | |
9847 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
9848 | # | |
9849 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | |
9850 | # Free Software Foundation, Inc. | |
9851 | # | |
9852 | # This file is part of GNU Libtool: | |
9853 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
9854 | # | |
9855 | # This program is free software; you can redistribute it and/or modify | |
9856 | # it under the terms of the GNU General Public License as published by | |
9857 | # the Free Software Foundation; either version 2 of the License, or | |
9858 | # (at your option) any later version. | |
9859 | # | |
9860 | # This program is distributed in the hope that it will be useful, but | |
9861 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
9862 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
9863 | # General Public License for more details. | |
9864 | # | |
9865 | # You should have received a copy of the GNU General Public License | |
9866 | # along with this program; if not, write to the Free Software | |
087278d6 | 9867 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
a33e1d91 | 9868 | # |
9869 | # As a special exception to the GNU General Public License, if you | |
9870 | # distribute this file as part of a program that contains a | |
9871 | # configuration script generated by Autoconf, you may include it under | |
9872 | # the same distribution terms that you use for the rest of that program. | |
9873 | ||
9874 | # A sed program that does not truncate output. | |
9875 | SED=$lt_SED | |
9876 | ||
9877 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
087278d6 | 9878 | Xsed="$SED -e 1s/^X//" |
a33e1d91 | 9879 | |
9880 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
9881 | # if CDPATH is set. | |
631008fb | 9882 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
a33e1d91 | 9883 | |
9884 | # The names of the tagged configurations supported by this script. | |
9885 | available_tags= | |
9886 | ||
9887 | # ### BEGIN LIBTOOL CONFIG | |
9888 | ||
9889 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
9890 | ||
9891 | # Shell to use when invoking shell scripts. | |
9892 | SHELL=$lt_SHELL | |
9893 | ||
9894 | # Whether or not to build shared libraries. | |
9895 | build_libtool_libs=$enable_shared | |
9896 | ||
9897 | # Whether or not to build static libraries. | |
9898 | build_old_libs=$enable_static | |
9899 | ||
9900 | # Whether or not to add -lc for building shared libraries. | |
9901 | build_libtool_need_lc=$archive_cmds_need_lc | |
9902 | ||
9903 | # Whether or not to disallow shared libs when runtime libs are static | |
9904 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
9905 | ||
9906 | # Whether or not to optimize for fast installation. | |
9907 | fast_install=$enable_fast_install | |
9908 | ||
9909 | # The host system. | |
9910 | host_alias=$host_alias | |
9911 | host=$host | |
087278d6 | 9912 | host_os=$host_os |
9913 | ||
9914 | # The build system. | |
9915 | build_alias=$build_alias | |
9916 | build=$build | |
9917 | build_os=$build_os | |
a33e1d91 | 9918 | |
9919 | # An echo program that does not interpret backslashes. | |
9920 | echo=$lt_echo | |
9921 | ||
9922 | # The archiver. | |
9923 | AR=$lt_AR | |
9924 | AR_FLAGS=$lt_AR_FLAGS | |
9925 | ||
9926 | # A C compiler. | |
9927 | LTCC=$lt_LTCC | |
9928 | ||
62567204 | 9929 | # LTCC compiler flags. |
9930 | LTCFLAGS=$lt_LTCFLAGS | |
9931 | ||
a33e1d91 | 9932 | # A language-specific compiler. |
9933 | CC=$lt_compiler | |
9934 | ||
9935 | # Is the compiler the GNU C compiler? | |
9936 | with_gcc=$GCC | |
9937 | ||
9938 | # An ERE matcher. | |
9939 | EGREP=$lt_EGREP | |
9940 | ||
9941 | # The linker used to build libraries. | |
9942 | LD=$lt_LD | |
9943 | ||
9944 | # Whether we need hard or soft links. | |
9945 | LN_S=$lt_LN_S | |
9946 | ||
9947 | # A BSD-compatible nm program. | |
9948 | NM=$lt_NM | |
9949 | ||
9950 | # A symbol stripping program | |
9951 | STRIP=$lt_STRIP | |
9952 | ||
9953 | # Used to examine libraries when file_magic_cmd begins "file" | |
9954 | MAGIC_CMD=$MAGIC_CMD | |
9955 | ||
9956 | # Used on cygwin: DLL creation program. | |
9957 | DLLTOOL="$DLLTOOL" | |
9958 | ||
9959 | # Used on cygwin: object dumper. | |
9960 | OBJDUMP="$OBJDUMP" | |
9961 | ||
9962 | # Used on cygwin: assembler. | |
9963 | AS="$AS" | |
9964 | ||
9965 | # The name of the directory that contains temporary libtool files. | |
9966 | objdir=$objdir | |
9967 | ||
9968 | # How to create reloadable object files. | |
9969 | reload_flag=$lt_reload_flag | |
9970 | reload_cmds=$lt_reload_cmds | |
9971 | ||
9972 | # How to pass a linker flag through the compiler. | |
9973 | wl=$lt_lt_prog_compiler_wl | |
9974 | ||
9975 | # Object file suffix (normally "o"). | |
9976 | objext="$ac_objext" | |
9977 | ||
9978 | # Old archive suffix (normally "a"). | |
9979 | libext="$libext" | |
9980 | ||
9981 | # Shared library suffix (normally ".so"). | |
9982 | shrext_cmds='$shrext_cmds' | |
9983 | ||
9984 | # Executable file suffix (normally ""). | |
9985 | exeext="$exeext" | |
9986 | ||
9987 | # Additional compiler flags for building library objects. | |
9988 | pic_flag=$lt_lt_prog_compiler_pic | |
9989 | pic_mode=$pic_mode | |
9990 | ||
9991 | # What is the maximum length of a command? | |
9992 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
9993 | ||
9994 | # Does compiler simultaneously support -c and -o options? | |
9995 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
9996 | ||
087278d6 | 9997 | # Must we lock files when doing compilation? |
a33e1d91 | 9998 | need_locks=$lt_need_locks |
9999 | ||
10000 | # Do we need the lib prefix for modules? | |
10001 | need_lib_prefix=$need_lib_prefix | |
10002 | ||
10003 | # Do we need a version for libraries? | |
10004 | need_version=$need_version | |
10005 | ||
10006 | # Whether dlopen is supported. | |
10007 | dlopen_support=$enable_dlopen | |
10008 | ||
10009 | # Whether dlopen of programs is supported. | |
10010 | dlopen_self=$enable_dlopen_self | |
10011 | ||
10012 | # Whether dlopen of statically linked programs is supported. | |
10013 | dlopen_self_static=$enable_dlopen_self_static | |
10014 | ||
10015 | # Compiler flag to prevent dynamic linking. | |
10016 | link_static_flag=$lt_lt_prog_compiler_static | |
10017 | ||
10018 | # Compiler flag to turn off builtin functions. | |
10019 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
10020 | ||
10021 | # Compiler flag to allow reflexive dlopens. | |
10022 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
10023 | ||
10024 | # Compiler flag to generate shared objects directly from archives. | |
10025 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
10026 | ||
10027 | # Compiler flag to generate thread-safe objects. | |
10028 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | |
10029 | ||
10030 | # Library versioning type. | |
10031 | version_type=$version_type | |
10032 | ||
10033 | # Format of library name prefix. | |
10034 | libname_spec=$lt_libname_spec | |
10035 | ||
10036 | # List of archive names. First name is the real one, the rest are links. | |
10037 | # The last name is the one that the linker finds with -lNAME. | |
10038 | library_names_spec=$lt_library_names_spec | |
10039 | ||
10040 | # The coded name of the library, if different from the real name. | |
10041 | soname_spec=$lt_soname_spec | |
10042 | ||
10043 | # Commands used to build and install an old-style archive. | |
10044 | RANLIB=$lt_RANLIB | |
10045 | old_archive_cmds=$lt_old_archive_cmds | |
10046 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
10047 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
10048 | ||
10049 | # Create an old-style archive from a shared archive. | |
10050 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
10051 | ||
10052 | # Create a temporary old-style archive to link instead of a shared archive. | |
10053 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
10054 | ||
10055 | # Commands used to build and install a shared archive. | |
10056 | archive_cmds=$lt_archive_cmds | |
10057 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
10058 | postinstall_cmds=$lt_postinstall_cmds | |
10059 | postuninstall_cmds=$lt_postuninstall_cmds | |
10060 | ||
10061 | # Commands used to build a loadable module (assumed same as above if empty) | |
10062 | module_cmds=$lt_module_cmds | |
10063 | module_expsym_cmds=$lt_module_expsym_cmds | |
10064 | ||
10065 | # Commands to strip libraries. | |
10066 | old_striplib=$lt_old_striplib | |
10067 | striplib=$lt_striplib | |
10068 | ||
10069 | # Dependencies to place before the objects being linked to create a | |
10070 | # shared library. | |
10071 | predep_objects=$lt_predep_objects | |
10072 | ||
10073 | # Dependencies to place after the objects being linked to create a | |
10074 | # shared library. | |
10075 | postdep_objects=$lt_postdep_objects | |
10076 | ||
10077 | # Dependencies to place before the objects being linked to create a | |
10078 | # shared library. | |
10079 | predeps=$lt_predeps | |
10080 | ||
10081 | # Dependencies to place after the objects being linked to create a | |
10082 | # shared library. | |
10083 | postdeps=$lt_postdeps | |
10084 | ||
10085 | # The library search path used internally by the compiler when linking | |
10086 | # a shared library. | |
10087 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
10088 | ||
10089 | # Method to check whether dependent libraries are shared objects. | |
10090 | deplibs_check_method=$lt_deplibs_check_method | |
10091 | ||
10092 | # Command to use when deplibs_check_method == file_magic. | |
10093 | file_magic_cmd=$lt_file_magic_cmd | |
10094 | ||
10095 | # Flag that allows shared libraries with undefined symbols to be built. | |
10096 | allow_undefined_flag=$lt_allow_undefined_flag | |
10097 | ||
10098 | # Flag that forces no undefined symbols. | |
10099 | no_undefined_flag=$lt_no_undefined_flag | |
10100 | ||
10101 | # Commands used to finish a libtool library installation in a directory. | |
10102 | finish_cmds=$lt_finish_cmds | |
10103 | ||
10104 | # Same as above, but a single script fragment to be evaled but not shown. | |
10105 | finish_eval=$lt_finish_eval | |
10106 | ||
10107 | # Take the output of nm and produce a listing of raw symbols and C names. | |
10108 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
10109 | ||
10110 | # Transform the output of nm in a proper C declaration | |
10111 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
10112 | ||
10113 | # Transform the output of nm in a C name address pair | |
10114 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
10115 | ||
10116 | # This is the shared library runtime path variable. | |
10117 | runpath_var=$runpath_var | |
10118 | ||
10119 | # This is the shared library path variable. | |
10120 | shlibpath_var=$shlibpath_var | |
10121 | ||
10122 | # Is shlibpath searched before the hard-coded library search path? | |
10123 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
10124 | ||
10125 | # How to hardcode a shared library path into an executable. | |
10126 | hardcode_action=$hardcode_action | |
10127 | ||
10128 | # Whether we should hardcode library paths into libraries. | |
10129 | hardcode_into_libs=$hardcode_into_libs | |
10130 | ||
10131 | # Flag to hardcode \$libdir into a binary during linking. | |
10132 | # This must work even if \$libdir does not exist. | |
10133 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
10134 | ||
10135 | # If ld is used when linking, flag to hardcode \$libdir into | |
10136 | # a binary during linking. This must work even if \$libdir does | |
10137 | # not exist. | |
10138 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
10139 | ||
10140 | # Whether we need a single -rpath flag with a separated argument. | |
10141 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
10142 | ||
10143 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
10144 | # resulting binary. | |
10145 | hardcode_direct=$hardcode_direct | |
10146 | ||
10147 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
10148 | # resulting binary. | |
10149 | hardcode_minus_L=$hardcode_minus_L | |
10150 | ||
10151 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
10152 | # the resulting binary. | |
10153 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
10154 | ||
10155 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
10156 | # and all subsequent libraries and executables linked against it. | |
10157 | hardcode_automatic=$hardcode_automatic | |
10158 | ||
10159 | # Variables whose values should be saved in libtool wrapper scripts and | |
10160 | # restored at relink time. | |
10161 | variables_saved_for_relink="$variables_saved_for_relink" | |
10162 | ||
10163 | # Whether libtool must link a program against all its dependency libraries. | |
10164 | link_all_deplibs=$link_all_deplibs | |
10165 | ||
10166 | # Compile-time system search path for libraries | |
10167 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
10168 | ||
10169 | # Run-time system search path for libraries | |
10170 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
10171 | ||
10172 | # Fix the shell variable \$srcfile for the compiler. | |
10173 | fix_srcfile_path="$fix_srcfile_path" | |
10174 | ||
10175 | # Set to yes if exported symbols are required. | |
10176 | always_export_symbols=$always_export_symbols | |
10177 | ||
10178 | # The commands to list exported symbols. | |
10179 | export_symbols_cmds=$lt_export_symbols_cmds | |
10180 | ||
10181 | # The commands to extract the exported symbol list from a shared archive. | |
10182 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
10183 | ||
10184 | # Symbols that should not be listed in the preloaded symbols. | |
10185 | exclude_expsyms=$lt_exclude_expsyms | |
10186 | ||
10187 | # Symbols that must always be exported. | |
10188 | include_expsyms=$lt_include_expsyms | |
10189 | ||
10190 | # ### END LIBTOOL CONFIG | |
10191 | ||
10192 | __EOF__ | |
10193 | ||
10194 | ||
10195 | case $host_os in | |
10196 | aix3*) | |
10197 | cat <<\EOF >> "$cfgfile" | |
10198 | ||
10199 | # AIX sometimes has problems with the GCC collect2 program. For some | |
10200 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
10201 | # vanish in a puff of smoke. | |
10202 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
10203 | COLLECT_NAMES= | |
10204 | export COLLECT_NAMES | |
10205 | fi | |
10206 | EOF | |
10207 | ;; | |
10208 | esac | |
10209 | ||
10210 | # We use sed instead of cat because bash on DJGPP gets confused if | |
10211 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
10212 | # text mode, it properly converts lines to CR/LF. This bash problem | |
10213 | # is reportedly fixed, but why not run on old versions too? | |
10214 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | |
10215 | ||
10216 | mv -f "$cfgfile" "$ofile" || \ | |
10217 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
10218 | chmod +x "$ofile" | |
10219 | ||
10220 | else | |
10221 | # If there is no Makefile yet, we rely on a make rule to execute | |
10222 | # `config.status --recheck' to rerun these tests and create the | |
10223 | # libtool script then. | |
10224 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
10225 | if test -f "$ltmain_in"; then | |
10226 | test -f Makefile && make "$ltmain" | |
10227 | fi | |
10228 | fi | |
10229 | ||
10230 | ||
10231 | ac_ext=c | |
10232 | ac_cpp='$CPP $CPPFLAGS' | |
10233 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10234 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10235 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10236 | ||
10237 | CC="$lt_save_CC" | |
10238 | ||
10239 | ||
10240 | # Check whether --with-tags or --without-tags was given. | |
10241 | if test "${with_tags+set}" = set; then | |
10242 | withval="$with_tags" | |
10243 | tagnames="$withval" | |
10244 | fi; | |
10245 | ||
10246 | if test -f "$ltmain" && test -n "$tagnames"; then | |
10247 | if test ! -f "${ofile}"; then | |
10248 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | |
10249 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | |
10250 | fi | |
10251 | ||
10252 | if test -z "$LTCC"; then | |
10253 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | |
10254 | if test -z "$LTCC"; then | |
10255 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | |
10256 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | |
10257 | else | |
10258 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | |
10259 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | |
10260 | fi | |
10261 | fi | |
62567204 | 10262 | if test -z "$LTCFLAGS"; then |
10263 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | |
10264 | fi | |
a33e1d91 | 10265 | |
10266 | # Extract list of available tagged configurations in $ofile. | |
10267 | # Note that this assumes the entire list is on one line. | |
10268 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | |
10269 | ||
10270 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
10271 | for tagname in $tagnames; do | |
10272 | IFS="$lt_save_ifs" | |
10273 | # Check whether tagname contains only valid characters | |
10274 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | |
10275 | "") ;; | |
10276 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | |
10277 | echo "$as_me: error: invalid tag name: $tagname" >&2;} | |
10278 | { (exit 1); exit 1; }; } | |
10279 | ;; | |
10280 | esac | |
10281 | ||
10282 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | |
10283 | then | |
10284 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | |
10285 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | |
10286 | { (exit 1); exit 1; }; } | |
10287 | fi | |
10288 | ||
10289 | # Update the list of available tags. | |
10290 | if test -n "$tagname"; then | |
10291 | echo appending configuration tag \"$tagname\" to $ofile | |
10292 | ||
10293 | case $tagname in | |
10294 | CXX) | |
631008fb | 10295 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
10296 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
10297 | (test "X$CXX" != "Xg++"))) ; then | |
a33e1d91 | 10298 | ac_ext=cc |
10299 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10300 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10301 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10302 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10303 | ||
10304 | ||
10305 | ||
10306 | ||
10307 | archive_cmds_need_lc_CXX=no | |
10308 | allow_undefined_flag_CXX= | |
10309 | always_export_symbols_CXX=no | |
10310 | archive_expsym_cmds_CXX= | |
10311 | export_dynamic_flag_spec_CXX= | |
10312 | hardcode_direct_CXX=no | |
10313 | hardcode_libdir_flag_spec_CXX= | |
10314 | hardcode_libdir_flag_spec_ld_CXX= | |
10315 | hardcode_libdir_separator_CXX= | |
10316 | hardcode_minus_L_CXX=no | |
62567204 | 10317 | hardcode_shlibpath_var_CXX=unsupported |
a33e1d91 | 10318 | hardcode_automatic_CXX=no |
10319 | module_cmds_CXX= | |
10320 | module_expsym_cmds_CXX= | |
10321 | link_all_deplibs_CXX=unknown | |
10322 | old_archive_cmds_CXX=$old_archive_cmds | |
10323 | no_undefined_flag_CXX= | |
10324 | whole_archive_flag_spec_CXX= | |
10325 | enable_shared_with_static_runtimes_CXX=no | |
10326 | ||
10327 | # Dependencies to place before and after the object being linked: | |
10328 | predep_objects_CXX= | |
10329 | postdep_objects_CXX= | |
10330 | predeps_CXX= | |
10331 | postdeps_CXX= | |
10332 | compiler_lib_search_path_CXX= | |
10333 | ||
10334 | # Source file extension for C++ test sources. | |
693f5c2e | 10335 | ac_ext=cpp |
a33e1d91 | 10336 | |
10337 | # Object file extension for compiled C++ test sources. | |
10338 | objext=o | |
10339 | objext_CXX=$objext | |
10340 | ||
10341 | # Code to be used in simple compile tests | |
10342 | lt_simple_compile_test_code="int some_variable = 0;\n" | |
10343 | ||
10344 | # Code to be used in simple link tests | |
62567204 | 10345 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
a33e1d91 | 10346 | |
10347 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
10348 | ||
10349 | # If no C compiler was specified, use CC. | |
10350 | LTCC=${LTCC-"$CC"} | |
10351 | ||
62567204 | 10352 | # If no C compiler flags were specified, use CFLAGS. |
10353 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
10354 | ||
a33e1d91 | 10355 | # Allow CC to be a program name with arguments. |
10356 | compiler=$CC | |
10357 | ||
10358 | ||
087278d6 | 10359 | # save warnings/boilerplate of simple test code |
10360 | ac_outfile=conftest.$ac_objext | |
10361 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
62567204 | 10362 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
087278d6 | 10363 | _lt_compiler_boilerplate=`cat conftest.err` |
10364 | $rm conftest* | |
10365 | ||
10366 | ac_outfile=conftest.$ac_objext | |
10367 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
62567204 | 10368 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
087278d6 | 10369 | _lt_linker_boilerplate=`cat conftest.err` |
10370 | $rm conftest* | |
10371 | ||
10372 | ||
a33e1d91 | 10373 | # Allow CC to be a program name with arguments. |
10374 | lt_save_CC=$CC | |
10375 | lt_save_LD=$LD | |
10376 | lt_save_GCC=$GCC | |
10377 | GCC=$GXX | |
10378 | lt_save_with_gnu_ld=$with_gnu_ld | |
10379 | lt_save_path_LD=$lt_cv_path_LD | |
10380 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
10381 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
10382 | else | |
62567204 | 10383 | $as_unset lt_cv_prog_gnu_ld |
a33e1d91 | 10384 | fi |
10385 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
10386 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
10387 | else | |
62567204 | 10388 | $as_unset lt_cv_path_LD |
a33e1d91 | 10389 | fi |
10390 | test -z "${LDCXX+set}" || LD=$LDCXX | |
10391 | CC=${CXX-"c++"} | |
10392 | compiler=$CC | |
10393 | compiler_CXX=$CC | |
087278d6 | 10394 | for cc_temp in $compiler""; do |
10395 | case $cc_temp in | |
10396 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
10397 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
10398 | \-*) ;; | |
10399 | *) break;; | |
10400 | esac | |
10401 | done | |
10402 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
10403 | ||
a33e1d91 | 10404 | |
10405 | # We don't want -fno-exception wen compiling C++ code, so set the | |
10406 | # no_builtin_flag separately | |
10407 | if test "$GXX" = yes; then | |
10408 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
10409 | else | |
10410 | lt_prog_compiler_no_builtin_flag_CXX= | |
10411 | fi | |
10412 | ||
10413 | if test "$GXX" = yes; then | |
10414 | # Set up default GNU C++ configuration | |
10415 | ||
10416 | ||
10417 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
10418 | if test "${with_gnu_ld+set}" = set; then | |
10419 | withval="$with_gnu_ld" | |
10420 | test "$withval" = no || with_gnu_ld=yes | |
10421 | else | |
10422 | with_gnu_ld=no | |
10423 | fi; | |
10424 | ac_prog=ld | |
10425 | if test "$GCC" = yes; then | |
10426 | # Check if gcc -print-prog-name=ld gives a path. | |
10427 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
10428 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
10429 | case $host in | |
10430 | *-*-mingw*) | |
10431 | # gcc leaves a trailing carriage return which upsets mingw | |
10432 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
10433 | *) | |
10434 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
10435 | esac | |
10436 | case $ac_prog in | |
10437 | # Accept absolute paths. | |
10438 | [\\/]* | ?:[\\/]*) | |
10439 | re_direlt='/[^/][^/]*/\.\./' | |
10440 | # Canonicalize the pathname of ld | |
10441 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
10442 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
10443 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
10444 | done | |
10445 | test -z "$LD" && LD="$ac_prog" | |
10446 | ;; | |
10447 | "") | |
10448 | # If it fails, then pretend we aren't using GCC. | |
10449 | ac_prog=ld | |
10450 | ;; | |
10451 | *) | |
10452 | # If it is relative, then search for the first ld in PATH. | |
10453 | with_gnu_ld=unknown | |
10454 | ;; | |
10455 | esac | |
10456 | elif test "$with_gnu_ld" = yes; then | |
10457 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
10458 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
10459 | else | |
10460 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
10461 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
10462 | fi | |
10463 | if test "${lt_cv_path_LD+set}" = set; then | |
10464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10465 | else | |
10466 | if test -z "$LD"; then | |
10467 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
10468 | for ac_dir in $PATH; do | |
10469 | IFS="$lt_save_ifs" | |
10470 | test -z "$ac_dir" && ac_dir=. | |
10471 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
10472 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
10473 | # Check to see if the program is GNU ld. I'd rather use --version, | |
693f5c2e | 10474 | # but apparently some variants of GNU ld only accept -v. |
a33e1d91 | 10475 | # Break only if it was the GNU/non-GNU ld that we prefer. |
10476 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
10477 | *GNU* | *'with BFD'*) | |
10478 | test "$with_gnu_ld" != no && break | |
10479 | ;; | |
10480 | *) | |
10481 | test "$with_gnu_ld" != yes && break | |
10482 | ;; | |
10483 | esac | |
10484 | fi | |
10485 | done | |
10486 | IFS="$lt_save_ifs" | |
10487 | else | |
10488 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
10489 | fi | |
10490 | fi | |
10491 | ||
10492 | LD="$lt_cv_path_LD" | |
10493 | if test -n "$LD"; then | |
10494 | echo "$as_me:$LINENO: result: $LD" >&5 | |
10495 | echo "${ECHO_T}$LD" >&6 | |
10496 | else | |
10497 | echo "$as_me:$LINENO: result: no" >&5 | |
10498 | echo "${ECHO_T}no" >&6 | |
10499 | fi | |
10500 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
10501 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
10502 | { (exit 1); exit 1; }; } | |
10503 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
10504 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
10505 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
10506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10507 | else | |
693f5c2e | 10508 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
a33e1d91 | 10509 | case `$LD -v 2>&1 </dev/null` in |
10510 | *GNU* | *'with BFD'*) | |
10511 | lt_cv_prog_gnu_ld=yes | |
10512 | ;; | |
10513 | *) | |
10514 | lt_cv_prog_gnu_ld=no | |
10515 | ;; | |
10516 | esac | |
10517 | fi | |
10518 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
10519 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
10520 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
10521 | ||
10522 | ||
10523 | ||
10524 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
10525 | # archiving commands below assume that GNU ld is being used. | |
10526 | if test "$with_gnu_ld" = yes; then | |
10527 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10528 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
10529 | ||
10530 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
10531 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
10532 | ||
10533 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
10534 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
10535 | # investigate it a little bit more. (MM) | |
10536 | wlarc='${wl}' | |
10537 | ||
10538 | # ancient GNU ld didn't support --whole-archive et. al. | |
10539 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | |
10540 | grep 'no-whole-archive' > /dev/null; then | |
10541 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
10542 | else | |
10543 | whole_archive_flag_spec_CXX= | |
10544 | fi | |
10545 | else | |
10546 | with_gnu_ld=no | |
10547 | wlarc= | |
10548 | ||
10549 | # A generic and very simple default shared library creation | |
10550 | # command for GNU C++ for the case where it uses the native | |
10551 | # linker, instead of GNU ld. If possible, this setting should | |
10552 | # overridden to take advantage of the native linker features on | |
10553 | # the platform it is being used on. | |
10554 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
10555 | fi | |
10556 | ||
10557 | # Commands to make compiler produce verbose output that lists | |
10558 | # what "hidden" libraries, object files and flags are used when | |
10559 | # linking a shared library. | |
10560 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
10561 | ||
10562 | else | |
10563 | GXX=no | |
10564 | with_gnu_ld=no | |
10565 | wlarc= | |
10566 | fi | |
10567 | ||
10568 | # PORTME: fill in a description of your system's C++ link characteristics | |
10569 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
10570 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
10571 | ld_shlibs_CXX=yes | |
10572 | case $host_os in | |
10573 | aix3*) | |
10574 | # FIXME: insert proper C++ library support | |
10575 | ld_shlibs_CXX=no | |
10576 | ;; | |
10577 | aix4* | aix5*) | |
10578 | if test "$host_cpu" = ia64; then | |
10579 | # On IA64, the linker does run time linking by default, so we don't | |
10580 | # have to do anything special. | |
10581 | aix_use_runtimelinking=no | |
10582 | exp_sym_flag='-Bexport' | |
10583 | no_entry_flag="" | |
10584 | else | |
10585 | aix_use_runtimelinking=no | |
10586 | ||
10587 | # Test if we are trying to use run time linking or normal | |
10588 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
10589 | # need to do runtime linking. | |
10590 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
10591 | for ld_flag in $LDFLAGS; do | |
10592 | case $ld_flag in | |
10593 | *-brtl*) | |
10594 | aix_use_runtimelinking=yes | |
10595 | break | |
10596 | ;; | |
10597 | esac | |
10598 | done | |
62567204 | 10599 | ;; |
a33e1d91 | 10600 | esac |
10601 | ||
10602 | exp_sym_flag='-bexport' | |
10603 | no_entry_flag='-bnoentry' | |
10604 | fi | |
10605 | ||
10606 | # When large executables or shared objects are built, AIX ld can | |
10607 | # have problems creating the table of contents. If linking a library | |
10608 | # or program results in "error TOC overflow" add -mminimal-toc to | |
10609 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
10610 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
10611 | ||
10612 | archive_cmds_CXX='' | |
10613 | hardcode_direct_CXX=yes | |
10614 | hardcode_libdir_separator_CXX=':' | |
10615 | link_all_deplibs_CXX=yes | |
10616 | ||
10617 | if test "$GXX" = yes; then | |
087278d6 | 10618 | case $host_os in aix4.[012]|aix4.[012].*) |
a33e1d91 | 10619 | # We only want to do this on AIX 4.2 and lower, the check |
10620 | # below for broken collect2 doesn't work under 4.3+ | |
10621 | collect2name=`${CC} -print-prog-name=collect2` | |
10622 | if test -f "$collect2name" && \ | |
10623 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
10624 | then | |
10625 | # We have reworked collect2 | |
10626 | hardcode_direct_CXX=yes | |
10627 | else | |
10628 | # We have old collect2 | |
10629 | hardcode_direct_CXX=unsupported | |
10630 | # It fails to find uninstalled libraries when the uninstalled | |
10631 | # path is not listed in the libpath. Setting hardcode_minus_L | |
10632 | # to unsupported forces relinking | |
10633 | hardcode_minus_L_CXX=yes | |
10634 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
10635 | hardcode_libdir_separator_CXX= | |
10636 | fi | |
62567204 | 10637 | ;; |
a33e1d91 | 10638 | esac |
10639 | shared_flag='-shared' | |
087278d6 | 10640 | if test "$aix_use_runtimelinking" = yes; then |
10641 | shared_flag="$shared_flag "'${wl}-G' | |
10642 | fi | |
a33e1d91 | 10643 | else |
10644 | # not using gcc | |
10645 | if test "$host_cpu" = ia64; then | |
10646 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
10647 | # chokes on -Wl,-G. The following line is correct: | |
10648 | shared_flag='-G' | |
10649 | else | |
10650 | if test "$aix_use_runtimelinking" = yes; then | |
10651 | shared_flag='${wl}-G' | |
10652 | else | |
10653 | shared_flag='${wl}-bM:SRE' | |
10654 | fi | |
10655 | fi | |
10656 | fi | |
10657 | ||
10658 | # It seems that -bexpall does not export symbols beginning with | |
10659 | # underscore (_), so it is better to generate a list of symbols to export. | |
10660 | always_export_symbols_CXX=yes | |
10661 | if test "$aix_use_runtimelinking" = yes; then | |
10662 | # Warning - without using the other runtime loading flags (-brtl), | |
10663 | # -berok will link without error, but may produce a broken library. | |
10664 | allow_undefined_flag_CXX='-berok' | |
10665 | # Determine the default libpath from the value encoded in an empty executable. | |
10666 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 10667 | /* confdefs.h. */ |
10668 | _ACEOF | |
10669 | cat confdefs.h >>conftest.$ac_ext | |
10670 | cat >>conftest.$ac_ext <<_ACEOF | |
10671 | /* end confdefs.h. */ | |
10672 | ||
10673 | int | |
10674 | main () | |
10675 | { | |
10676 | ||
10677 | ; | |
10678 | return 0; | |
10679 | } | |
10680 | _ACEOF | |
10681 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10682 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 10683 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 10684 | ac_status=$? |
af3004ff | 10685 | grep -v '^ *+' conftest.er1 >conftest.err |
10686 | rm -f conftest.er1 | |
10687 | cat conftest.err >&5 | |
a33e1d91 | 10688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10689 | (exit $ac_status); } && | |
6263d81f | 10690 | { ac_try='test -z "$ac_cxx_werror_flag" |
10691 | || test ! -s conftest.err' | |
af3004ff | 10692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10693 | (eval $ac_try) 2>&5 | |
10694 | ac_status=$? | |
10695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10696 | (exit $ac_status); }; } && | |
10697 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 10698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10699 | (eval $ac_try) 2>&5 | |
10700 | ac_status=$? | |
10701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10702 | (exit $ac_status); }; }; then | |
10703 | ||
10704 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
10705 | }'` | |
10706 | # Check for a 64-bit object if we didn't find anything. | |
10707 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
10708 | }'`; fi | |
10709 | else | |
10710 | echo "$as_me: failed program was:" >&5 | |
10711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10712 | ||
10713 | fi | |
af3004ff | 10714 | rm -f conftest.err conftest.$ac_objext \ |
10715 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 10716 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10717 | ||
10718 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10719 | ||
62567204 | 10720 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
a33e1d91 | 10721 | else |
10722 | if test "$host_cpu" = ia64; then | |
10723 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
10724 | allow_undefined_flag_CXX="-z nodefs" | |
62567204 | 10725 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
a33e1d91 | 10726 | else |
10727 | # Determine the default libpath from the value encoded in an empty executable. | |
10728 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 10729 | /* confdefs.h. */ |
10730 | _ACEOF | |
10731 | cat confdefs.h >>conftest.$ac_ext | |
10732 | cat >>conftest.$ac_ext <<_ACEOF | |
10733 | /* end confdefs.h. */ | |
10734 | ||
10735 | int | |
10736 | main () | |
10737 | { | |
10738 | ||
10739 | ; | |
10740 | return 0; | |
10741 | } | |
10742 | _ACEOF | |
10743 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10744 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 10745 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 10746 | ac_status=$? |
af3004ff | 10747 | grep -v '^ *+' conftest.er1 >conftest.err |
10748 | rm -f conftest.er1 | |
10749 | cat conftest.err >&5 | |
a33e1d91 | 10750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10751 | (exit $ac_status); } && | |
6263d81f | 10752 | { ac_try='test -z "$ac_cxx_werror_flag" |
10753 | || test ! -s conftest.err' | |
af3004ff | 10754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10755 | (eval $ac_try) 2>&5 | |
10756 | ac_status=$? | |
10757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10758 | (exit $ac_status); }; } && | |
10759 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 10760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10761 | (eval $ac_try) 2>&5 | |
10762 | ac_status=$? | |
10763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10764 | (exit $ac_status); }; }; then | |
10765 | ||
10766 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
10767 | }'` | |
10768 | # Check for a 64-bit object if we didn't find anything. | |
10769 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
10770 | }'`; fi | |
10771 | else | |
10772 | echo "$as_me: failed program was:" >&5 | |
10773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10774 | ||
10775 | fi | |
af3004ff | 10776 | rm -f conftest.err conftest.$ac_objext \ |
10777 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 10778 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
10779 | ||
10780 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10781 | # Warning - without using the other run time loading flags, | |
10782 | # -berok will link without error, but may produce a broken library. | |
10783 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
10784 | allow_undefined_flag_CXX=' ${wl}-berok' | |
a33e1d91 | 10785 | # Exported symbols can be pulled into shared objects from archives |
62567204 | 10786 | whole_archive_flag_spec_CXX='$convenience' |
a33e1d91 | 10787 | archive_cmds_need_lc_CXX=yes |
693f5c2e | 10788 | # This is similar to how AIX traditionally builds its shared libraries. |
62567204 | 10789 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
a33e1d91 | 10790 | fi |
10791 | fi | |
10792 | ;; | |
62567204 | 10793 | |
10794 | beos*) | |
10795 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
10796 | allow_undefined_flag_CXX=unsupported | |
10797 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
10798 | # support --undefined. This deserves some investigation. FIXME | |
10799 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
10800 | else | |
10801 | ld_shlibs_CXX=no | |
10802 | fi | |
10803 | ;; | |
10804 | ||
a33e1d91 | 10805 | chorus*) |
10806 | case $cc_basename in | |
10807 | *) | |
10808 | # FIXME: insert proper C++ library support | |
10809 | ld_shlibs_CXX=no | |
10810 | ;; | |
10811 | esac | |
10812 | ;; | |
10813 | ||
a33e1d91 | 10814 | cygwin* | mingw* | pw32*) |
10815 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
10816 | # as there is no search path for DLLs. | |
10817 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
10818 | allow_undefined_flag_CXX=unsupported | |
10819 | always_export_symbols_CXX=no | |
10820 | enable_shared_with_static_runtimes_CXX=yes | |
10821 | ||
10822 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
62567204 | 10823 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
a33e1d91 | 10824 | # If the export-symbols file already is a .def file (1st line |
10825 | # is EXPORTS), use it as is; otherwise, prepend... | |
10826 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
10827 | cp $export_symbols $output_objdir/$soname.def; | |
10828 | else | |
10829 | echo EXPORTS > $output_objdir/$soname.def; | |
10830 | cat $export_symbols >> $output_objdir/$soname.def; | |
10831 | fi~ | |
62567204 | 10832 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
a33e1d91 | 10833 | else |
10834 | ld_shlibs_CXX=no | |
10835 | fi | |
10836 | ;; | |
631008fb | 10837 | darwin* | rhapsody*) |
693f5c2e | 10838 | case $host_os in |
631008fb | 10839 | rhapsody* | darwin1.[012]) |
10840 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' | |
10841 | ;; | |
10842 | *) # Darwin 1.3 on | |
10843 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
10844 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
10845 | else | |
10846 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
10847 | 10.[012]) | |
10848 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
10849 | ;; | |
10850 | 10.*) | |
10851 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' | |
10852 | ;; | |
10853 | esac | |
10854 | fi | |
10855 | ;; | |
10856 | esac | |
10857 | archive_cmds_need_lc_CXX=no | |
10858 | hardcode_direct_CXX=no | |
10859 | hardcode_automatic_CXX=yes | |
10860 | hardcode_shlibpath_var_CXX=unsupported | |
10861 | whole_archive_flag_spec_CXX='' | |
10862 | link_all_deplibs_CXX=yes | |
a33e1d91 | 10863 | |
631008fb | 10864 | if test "$GXX" = yes ; then |
10865 | lt_int_apple_cc_single_mod=no | |
10866 | output_verbose_link_cmd='echo' | |
10867 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | |
10868 | lt_int_apple_cc_single_mod=yes | |
10869 | fi | |
10870 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
10871 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
a33e1d91 | 10872 | else |
631008fb | 10873 | archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
10874 | fi | |
10875 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
693f5c2e | 10876 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
631008fb | 10877 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
10878 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
10879 | else | |
10880 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
10881 | fi | |
10882 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
10883 | else | |
087278d6 | 10884 | case $cc_basename in |
631008fb | 10885 | xlc*) |
10886 | output_verbose_link_cmd='echo' | |
10887 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
10888 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
693f5c2e | 10889 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
631008fb | 10890 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
10891 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
10892 | ;; | |
10893 | *) | |
10894 | ld_shlibs_CXX=no | |
10895 | ;; | |
10896 | esac | |
a33e1d91 | 10897 | fi |
631008fb | 10898 | ;; |
a33e1d91 | 10899 | |
10900 | dgux*) | |
10901 | case $cc_basename in | |
087278d6 | 10902 | ec++*) |
a33e1d91 | 10903 | # FIXME: insert proper C++ library support |
10904 | ld_shlibs_CXX=no | |
10905 | ;; | |
087278d6 | 10906 | ghcx*) |
a33e1d91 | 10907 | # Green Hills C++ Compiler |
10908 | # FIXME: insert proper C++ library support | |
10909 | ld_shlibs_CXX=no | |
10910 | ;; | |
10911 | *) | |
10912 | # FIXME: insert proper C++ library support | |
10913 | ld_shlibs_CXX=no | |
10914 | ;; | |
10915 | esac | |
10916 | ;; | |
087278d6 | 10917 | freebsd[12]*) |
a33e1d91 | 10918 | # C++ shared libraries reported to be fairly broken before switch to ELF |
10919 | ld_shlibs_CXX=no | |
10920 | ;; | |
10921 | freebsd-elf*) | |
10922 | archive_cmds_need_lc_CXX=no | |
10923 | ;; | |
087278d6 | 10924 | freebsd* | kfreebsd*-gnu | dragonfly*) |
a33e1d91 | 10925 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
10926 | # conventions | |
10927 | ld_shlibs_CXX=yes | |
10928 | ;; | |
10929 | gnu*) | |
10930 | ;; | |
10931 | hpux9*) | |
10932 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
10933 | hardcode_libdir_separator_CXX=: | |
10934 | export_dynamic_flag_spec_CXX='${wl}-E' | |
10935 | hardcode_direct_CXX=yes | |
10936 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
10937 | # but as the default | |
10938 | # location of the library. | |
10939 | ||
10940 | case $cc_basename in | |
087278d6 | 10941 | CC*) |
a33e1d91 | 10942 | # FIXME: insert proper C++ library support |
10943 | ld_shlibs_CXX=no | |
10944 | ;; | |
087278d6 | 10945 | aCC*) |
a33e1d91 | 10946 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
10947 | # Commands to make compiler produce verbose output that lists | |
10948 | # what "hidden" libraries, object files and flags are used when | |
10949 | # linking a shared library. | |
10950 | # | |
10951 | # There doesn't appear to be a way to prevent this compiler from | |
10952 | # explicitly linking system object files so we need to strip them | |
10953 | # from the output so that they don't get included in the library | |
10954 | # dependencies. | |
087278d6 | 10955 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
a33e1d91 | 10956 | ;; |
10957 | *) | |
10958 | if test "$GXX" = yes; then | |
10959 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
10960 | else | |
10961 | # FIXME: insert proper C++ library support | |
10962 | ld_shlibs_CXX=no | |
10963 | fi | |
10964 | ;; | |
10965 | esac | |
10966 | ;; | |
10967 | hpux10*|hpux11*) | |
10968 | if test $with_gnu_ld = no; then | |
62567204 | 10969 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
10970 | hardcode_libdir_separator_CXX=: | |
10971 | ||
693f5c2e | 10972 | case $host_cpu in |
62567204 | 10973 | hppa*64*|ia64*) |
a33e1d91 | 10974 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
a33e1d91 | 10975 | ;; |
10976 | *) | |
a33e1d91 | 10977 | export_dynamic_flag_spec_CXX='${wl}-E' |
10978 | ;; | |
10979 | esac | |
10980 | fi | |
693f5c2e | 10981 | case $host_cpu in |
62567204 | 10982 | hppa*64*|ia64*) |
a33e1d91 | 10983 | hardcode_direct_CXX=no |
10984 | hardcode_shlibpath_var_CXX=no | |
a33e1d91 | 10985 | ;; |
10986 | *) | |
10987 | hardcode_direct_CXX=yes | |
10988 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
10989 | # but as the default | |
10990 | # location of the library. | |
10991 | ;; | |
10992 | esac | |
10993 | ||
10994 | case $cc_basename in | |
087278d6 | 10995 | CC*) |
a33e1d91 | 10996 | # FIXME: insert proper C++ library support |
10997 | ld_shlibs_CXX=no | |
10998 | ;; | |
087278d6 | 10999 | aCC*) |
693f5c2e | 11000 | case $host_cpu in |
62567204 | 11001 | hppa*64*) |
11002 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11003 | ;; | |
11004 | ia64*) | |
11005 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
a33e1d91 | 11006 | ;; |
11007 | *) | |
11008 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11009 | ;; | |
11010 | esac | |
11011 | # Commands to make compiler produce verbose output that lists | |
11012 | # what "hidden" libraries, object files and flags are used when | |
11013 | # linking a shared library. | |
11014 | # | |
11015 | # There doesn't appear to be a way to prevent this compiler from | |
11016 | # explicitly linking system object files so we need to strip them | |
11017 | # from the output so that they don't get included in the library | |
11018 | # dependencies. | |
11019 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
11020 | ;; | |
11021 | *) | |
11022 | if test "$GXX" = yes; then | |
11023 | if test $with_gnu_ld = no; then | |
693f5c2e | 11024 | case $host_cpu in |
62567204 | 11025 | hppa*64*) |
11026 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11027 | ;; | |
11028 | ia64*) | |
11029 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
a33e1d91 | 11030 | ;; |
11031 | *) | |
11032 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
11033 | ;; | |
11034 | esac | |
11035 | fi | |
11036 | else | |
11037 | # FIXME: insert proper C++ library support | |
11038 | ld_shlibs_CXX=no | |
11039 | fi | |
11040 | ;; | |
11041 | esac | |
11042 | ;; | |
62567204 | 11043 | interix3*) |
11044 | hardcode_direct_CXX=no | |
11045 | hardcode_shlibpath_var_CXX=no | |
11046 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11047 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11048 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
11049 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
11050 | # default) and relocated if they conflict, which is a slow very memory | |
11051 | # consuming and fragmenting process. To avoid this, we pick a random, | |
11052 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
11053 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
11054 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
11055 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
11056 | ;; | |
a33e1d91 | 11057 | irix5* | irix6*) |
11058 | case $cc_basename in | |
087278d6 | 11059 | CC*) |
a33e1d91 | 11060 | # SGI C++ |
087278d6 | 11061 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
a33e1d91 | 11062 | |
11063 | # Archives containing C++ object files must be created using | |
11064 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
11065 | # necessary to make sure instantiated templates are included | |
11066 | # in the archive. | |
11067 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
11068 | ;; | |
11069 | *) | |
11070 | if test "$GXX" = yes; then | |
11071 | if test "$with_gnu_ld" = no; then | |
087278d6 | 11072 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
a33e1d91 | 11073 | else |
11074 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' | |
11075 | fi | |
11076 | fi | |
11077 | link_all_deplibs_CXX=yes | |
11078 | ;; | |
11079 | esac | |
11080 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11081 | hardcode_libdir_separator_CXX=: | |
11082 | ;; | |
11083 | linux*) | |
11084 | case $cc_basename in | |
087278d6 | 11085 | KCC*) |
a33e1d91 | 11086 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11087 | ||
11088 | # KCC will only create a shared library if the output file | |
11089 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11090 | # to its proper name (with version) after linking. | |
11091 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
11092 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
11093 | # Commands to make compiler produce verbose output that lists | |
11094 | # what "hidden" libraries, object files and flags are used when | |
11095 | # linking a shared library. | |
11096 | # | |
11097 | # There doesn't appear to be a way to prevent this compiler from | |
11098 | # explicitly linking system object files so we need to strip them | |
11099 | # from the output so that they don't get included in the library | |
11100 | # dependencies. | |
11101 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
11102 | ||
11103 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | |
11104 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11105 | ||
11106 | # Archives containing C++ object files must be created using | |
11107 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
11108 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
11109 | ;; | |
087278d6 | 11110 | icpc*) |
a33e1d91 | 11111 | # Intel C++ |
11112 | with_gnu_ld=yes | |
631008fb | 11113 | # version 8.0 and above of icpc choke on multiply defined symbols |
11114 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
11115 | # earlier do not add the objects themselves. | |
11116 | case `$CC -V 2>&1` in | |
11117 | *"Version 7."*) | |
11118 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11119 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
11120 | ;; | |
11121 | *) # Version 8.0 or newer | |
087278d6 | 11122 | tmp_idyn= |
11123 | case $host_cpu in | |
11124 | ia64*) tmp_idyn=' -i_dynamic';; | |
11125 | esac | |
11126 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11127 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
631008fb | 11128 | ;; |
11129 | esac | |
a33e1d91 | 11130 | archive_cmds_need_lc_CXX=no |
11131 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11132 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
11133 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
11134 | ;; | |
087278d6 | 11135 | pgCC*) |
11136 | # Portland Group C++ compiler | |
11137 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
11138 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
11139 | ||
11140 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
11141 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
693f5c2e | 11142 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
087278d6 | 11143 | ;; |
11144 | cxx*) | |
a33e1d91 | 11145 | # Compaq C++ |
11146 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
11147 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | |
11148 | ||
11149 | runpath_var=LD_RUN_PATH | |
11150 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
11151 | hardcode_libdir_separator_CXX=: | |
11152 | ||
11153 | # Commands to make compiler produce verbose output that lists | |
11154 | # what "hidden" libraries, object files and flags are used when | |
11155 | # linking a shared library. | |
11156 | # | |
11157 | # There doesn't appear to be a way to prevent this compiler from | |
11158 | # explicitly linking system object files so we need to strip them | |
11159 | # from the output so that they don't get included in the library | |
11160 | # dependencies. | |
11161 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
11162 | ;; | |
11163 | esac | |
11164 | ;; | |
11165 | lynxos*) | |
11166 | # FIXME: insert proper C++ library support | |
11167 | ld_shlibs_CXX=no | |
11168 | ;; | |
11169 | m88k*) | |
11170 | # FIXME: insert proper C++ library support | |
11171 | ld_shlibs_CXX=no | |
11172 | ;; | |
11173 | mvs*) | |
11174 | case $cc_basename in | |
087278d6 | 11175 | cxx*) |
a33e1d91 | 11176 | # FIXME: insert proper C++ library support |
11177 | ld_shlibs_CXX=no | |
11178 | ;; | |
11179 | *) | |
11180 | # FIXME: insert proper C++ library support | |
11181 | ld_shlibs_CXX=no | |
11182 | ;; | |
11183 | esac | |
11184 | ;; | |
6263d81f | 11185 | netbsd*) |
a33e1d91 | 11186 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
11187 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
11188 | wlarc= | |
11189 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
11190 | hardcode_direct_CXX=yes | |
11191 | hardcode_shlibpath_var_CXX=no | |
11192 | fi | |
11193 | # Workaround some broken pre-1.5 toolchains | |
11194 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
11195 | ;; | |
631008fb | 11196 | openbsd2*) |
11197 | # C++ shared libraries are fairly broken | |
11198 | ld_shlibs_CXX=no | |
11199 | ;; | |
11200 | openbsd*) | |
11201 | hardcode_direct_CXX=yes | |
11202 | hardcode_shlibpath_var_CXX=no | |
11203 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
11204 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11205 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11206 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
11207 | export_dynamic_flag_spec_CXX='${wl}-E' | |
11208 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
11209 | fi | |
11210 | output_verbose_link_cmd='echo' | |
11211 | ;; | |
a33e1d91 | 11212 | osf3*) |
11213 | case $cc_basename in | |
087278d6 | 11214 | KCC*) |
a33e1d91 | 11215 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11216 | ||
11217 | # KCC will only create a shared library if the output file | |
11218 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11219 | # to its proper name (with version) after linking. | |
11220 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
11221 | ||
11222 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11223 | hardcode_libdir_separator_CXX=: | |
11224 | ||
11225 | # Archives containing C++ object files must be created using | |
11226 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
11227 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
11228 | ||
11229 | ;; | |
087278d6 | 11230 | RCC*) |
a33e1d91 | 11231 | # Rational C++ 2.4.1 |
11232 | # FIXME: insert proper C++ library support | |
11233 | ld_shlibs_CXX=no | |
11234 | ;; | |
087278d6 | 11235 | cxx*) |
a33e1d91 | 11236 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
087278d6 | 11237 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
a33e1d91 | 11238 | |
11239 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11240 | hardcode_libdir_separator_CXX=: | |
11241 | ||
11242 | # Commands to make compiler produce verbose output that lists | |
11243 | # what "hidden" libraries, object files and flags are used when | |
11244 | # linking a shared library. | |
11245 | # | |
11246 | # There doesn't appear to be a way to prevent this compiler from | |
11247 | # explicitly linking system object files so we need to strip them | |
11248 | # from the output so that they don't get included in the library | |
11249 | # dependencies. | |
11250 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
11251 | ;; | |
11252 | *) | |
11253 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11254 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
087278d6 | 11255 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
a33e1d91 | 11256 | |
11257 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11258 | hardcode_libdir_separator_CXX=: | |
11259 | ||
11260 | # Commands to make compiler produce verbose output that lists | |
11261 | # what "hidden" libraries, object files and flags are used when | |
11262 | # linking a shared library. | |
11263 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
11264 | ||
11265 | else | |
11266 | # FIXME: insert proper C++ library support | |
11267 | ld_shlibs_CXX=no | |
11268 | fi | |
11269 | ;; | |
11270 | esac | |
11271 | ;; | |
11272 | osf4* | osf5*) | |
11273 | case $cc_basename in | |
087278d6 | 11274 | KCC*) |
a33e1d91 | 11275 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11276 | ||
11277 | # KCC will only create a shared library if the output file | |
11278 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
11279 | # to its proper name (with version) after linking. | |
11280 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
11281 | ||
11282 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
11283 | hardcode_libdir_separator_CXX=: | |
11284 | ||
11285 | # Archives containing C++ object files must be created using | |
11286 | # the KAI C++ compiler. | |
11287 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | |
11288 | ;; | |
087278d6 | 11289 | RCC*) |
a33e1d91 | 11290 | # Rational C++ 2.4.1 |
11291 | # FIXME: insert proper C++ library support | |
11292 | ld_shlibs_CXX=no | |
11293 | ;; | |
087278d6 | 11294 | cxx*) |
a33e1d91 | 11295 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
087278d6 | 11296 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
a33e1d91 | 11297 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
11298 | echo "-hidden">> $lib.exp~ | |
087278d6 | 11299 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ |
a33e1d91 | 11300 | $rm $lib.exp' |
11301 | ||
11302 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
11303 | hardcode_libdir_separator_CXX=: | |
11304 | ||
11305 | # Commands to make compiler produce verbose output that lists | |
11306 | # what "hidden" libraries, object files and flags are used when | |
11307 | # linking a shared library. | |
11308 | # | |
11309 | # There doesn't appear to be a way to prevent this compiler from | |
11310 | # explicitly linking system object files so we need to strip them | |
11311 | # from the output so that they don't get included in the library | |
11312 | # dependencies. | |
11313 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | |
11314 | ;; | |
11315 | *) | |
11316 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11317 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
087278d6 | 11318 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
a33e1d91 | 11319 | |
11320 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
11321 | hardcode_libdir_separator_CXX=: | |
11322 | ||
11323 | # Commands to make compiler produce verbose output that lists | |
11324 | # what "hidden" libraries, object files and flags are used when | |
11325 | # linking a shared library. | |
11326 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
11327 | ||
11328 | else | |
11329 | # FIXME: insert proper C++ library support | |
11330 | ld_shlibs_CXX=no | |
11331 | fi | |
11332 | ;; | |
11333 | esac | |
11334 | ;; | |
11335 | psos*) | |
11336 | # FIXME: insert proper C++ library support | |
11337 | ld_shlibs_CXX=no | |
11338 | ;; | |
a33e1d91 | 11339 | sunos4*) |
11340 | case $cc_basename in | |
087278d6 | 11341 | CC*) |
a33e1d91 | 11342 | # Sun C++ 4.x |
11343 | # FIXME: insert proper C++ library support | |
11344 | ld_shlibs_CXX=no | |
11345 | ;; | |
087278d6 | 11346 | lcc*) |
a33e1d91 | 11347 | # Lucid |
11348 | # FIXME: insert proper C++ library support | |
11349 | ld_shlibs_CXX=no | |
11350 | ;; | |
11351 | *) | |
11352 | # FIXME: insert proper C++ library support | |
11353 | ld_shlibs_CXX=no | |
11354 | ;; | |
11355 | esac | |
11356 | ;; | |
11357 | solaris*) | |
11358 | case $cc_basename in | |
087278d6 | 11359 | CC*) |
a33e1d91 | 11360 | # Sun C++ 4.2, 5.x and Centerline C++ |
693f5c2e | 11361 | archive_cmds_need_lc_CXX=yes |
a33e1d91 | 11362 | no_undefined_flag_CXX=' -zdefs' |
693f5c2e | 11363 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
a33e1d91 | 11364 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
693f5c2e | 11365 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
a33e1d91 | 11366 | |
11367 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
11368 | hardcode_shlibpath_var_CXX=no | |
11369 | case $host_os in | |
087278d6 | 11370 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
a33e1d91 | 11371 | *) |
11372 | # The C++ compiler is used as linker so we must use $wl | |
11373 | # flag to pass the commands to the underlying system | |
087278d6 | 11374 | # linker. We must also pass each convience library through |
11375 | # to the system linker between allextract/defaultextract. | |
11376 | # The C++ compiler will combine linker options so we | |
11377 | # cannot just pass the convience library names through | |
11378 | # without $wl. | |
a33e1d91 | 11379 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
087278d6 | 11380 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
a33e1d91 | 11381 | ;; |
11382 | esac | |
11383 | link_all_deplibs_CXX=yes | |
11384 | ||
693f5c2e | 11385 | output_verbose_link_cmd='echo' |
a33e1d91 | 11386 | |
11387 | # Archives containing C++ object files must be created using | |
11388 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
11389 | # necessary to make sure instantiated templates are included | |
11390 | # in the archive. | |
11391 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
11392 | ;; | |
087278d6 | 11393 | gcx*) |
a33e1d91 | 11394 | # Green Hills C++ Compiler |
11395 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11396 | ||
11397 | # The C++ compiler must be used to create the archive. | |
11398 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
11399 | ;; | |
11400 | *) | |
11401 | # GNU C++ compiler with Solaris linker | |
11402 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
11403 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
11404 | if $CC --version | grep -v '^2\.7' > /dev/null; then | |
11405 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11406 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
11407 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
11408 | ||
11409 | # Commands to make compiler produce verbose output that lists | |
11410 | # what "hidden" libraries, object files and flags are used when | |
11411 | # linking a shared library. | |
11412 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
11413 | else | |
11414 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
11415 | # platform. | |
11416 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
11417 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
11418 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
11419 | ||
11420 | # Commands to make compiler produce verbose output that lists | |
11421 | # what "hidden" libraries, object files and flags are used when | |
11422 | # linking a shared library. | |
11423 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
11424 | fi | |
11425 | ||
11426 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
11427 | fi | |
11428 | ;; | |
11429 | esac | |
11430 | ;; | |
62567204 | 11431 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11432 | no_undefined_flag_CXX='${wl}-z,text' | |
11433 | archive_cmds_need_lc_CXX=no | |
11434 | hardcode_shlibpath_var_CXX=no | |
11435 | runpath_var='LD_RUN_PATH' | |
11436 | ||
11437 | case $cc_basename in | |
11438 | CC*) | |
11439 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11440 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11441 | ;; | |
11442 | *) | |
11443 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11444 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11445 | ;; | |
11446 | esac | |
11447 | ;; | |
11448 | sysv5* | sco3.2v5* | sco5v6*) | |
11449 | # Note: We can NOT use -z defs as we might desire, because we do not | |
11450 | # link with -lc, and that would cause any symbols used from libc to | |
11451 | # always be unresolved, which means just about no library would | |
11452 | # ever link correctly. If we're not using GNU ld we use -z text | |
11453 | # though, which does catch some bad symbols but isn't as heavy-handed | |
11454 | # as -z defs. | |
11455 | # For security reasons, it is highly recommended that you always | |
11456 | # use absolute paths for naming shared libraries, and exclude the | |
11457 | # DT_RUNPATH tag from executables and libraries. But doing so | |
11458 | # requires that you compile everything twice, which is a pain. | |
11459 | # So that behaviour is only enabled if SCOABSPATH is set to a | |
11460 | # non-empty value in the environment. Most likely only useful for | |
11461 | # creating official distributions of packages. | |
11462 | # This is a hack until libtool officially supports absolute path | |
11463 | # names for shared libraries. | |
11464 | no_undefined_flag_CXX='${wl}-z,text' | |
11465 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
a33e1d91 | 11466 | archive_cmds_need_lc_CXX=no |
62567204 | 11467 | hardcode_shlibpath_var_CXX=no |
11468 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
11469 | hardcode_libdir_separator_CXX=':' | |
11470 | link_all_deplibs_CXX=yes | |
11471 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
11472 | runpath_var='LD_RUN_PATH' | |
11473 | ||
11474 | case $cc_basename in | |
11475 | CC*) | |
11476 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11477 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11478 | ;; | |
11479 | *) | |
11480 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11481 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
11482 | ;; | |
11483 | esac | |
a33e1d91 | 11484 | ;; |
11485 | tandem*) | |
11486 | case $cc_basename in | |
087278d6 | 11487 | NCC*) |
a33e1d91 | 11488 | # NonStop-UX NCC 3.20 |
11489 | # FIXME: insert proper C++ library support | |
11490 | ld_shlibs_CXX=no | |
11491 | ;; | |
11492 | *) | |
11493 | # FIXME: insert proper C++ library support | |
11494 | ld_shlibs_CXX=no | |
11495 | ;; | |
11496 | esac | |
11497 | ;; | |
11498 | vxworks*) | |
11499 | # FIXME: insert proper C++ library support | |
11500 | ld_shlibs_CXX=no | |
11501 | ;; | |
11502 | *) | |
11503 | # FIXME: insert proper C++ library support | |
11504 | ld_shlibs_CXX=no | |
11505 | ;; | |
11506 | esac | |
11507 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
11508 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
11509 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
11510 | ||
11511 | GCC_CXX="$GXX" | |
11512 | LD_CXX="$LD" | |
11513 | ||
11514 | ||
11515 | cat > conftest.$ac_ext <<EOF | |
11516 | class Foo | |
11517 | { | |
11518 | public: | |
11519 | Foo (void) { a = 0; } | |
11520 | private: | |
11521 | int a; | |
11522 | }; | |
11523 | EOF | |
11524 | ||
11525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11526 | (eval $ac_compile) 2>&5 | |
11527 | ac_status=$? | |
11528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11529 | (exit $ac_status); }; then | |
11530 | # Parse the compiler output and extract the necessary | |
11531 | # objects, libraries and library flags. | |
11532 | ||
11533 | # Sentinel used to keep track of whether or not we are before | |
11534 | # the conftest object file. | |
11535 | pre_test_object_deps_done=no | |
11536 | ||
11537 | # The `*' in the case matches for architectures that use `case' in | |
11538 | # $output_verbose_cmd can trigger glob expansion during the loop | |
11539 | # eval without this substitution. | |
693f5c2e | 11540 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
a33e1d91 | 11541 | |
11542 | for p in `eval $output_verbose_link_cmd`; do | |
11543 | case $p in | |
11544 | ||
11545 | -L* | -R* | -l*) | |
11546 | # Some compilers place space between "-{L,R}" and the path. | |
11547 | # Remove the space. | |
11548 | if test $p = "-L" \ | |
11549 | || test $p = "-R"; then | |
11550 | prev=$p | |
11551 | continue | |
11552 | else | |
11553 | prev= | |
11554 | fi | |
11555 | ||
11556 | if test "$pre_test_object_deps_done" = no; then | |
11557 | case $p in | |
11558 | -L* | -R*) | |
11559 | # Internal compiler library paths should come after those | |
11560 | # provided the user. The postdeps already come after the | |
11561 | # user supplied libs so there is no need to process them. | |
11562 | if test -z "$compiler_lib_search_path_CXX"; then | |
11563 | compiler_lib_search_path_CXX="${prev}${p}" | |
11564 | else | |
11565 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
11566 | fi | |
11567 | ;; | |
11568 | # The "-l" case would never come before the object being | |
11569 | # linked, so don't bother handling this case. | |
11570 | esac | |
11571 | else | |
11572 | if test -z "$postdeps_CXX"; then | |
11573 | postdeps_CXX="${prev}${p}" | |
11574 | else | |
11575 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
11576 | fi | |
11577 | fi | |
11578 | ;; | |
11579 | ||
11580 | *.$objext) | |
11581 | # This assumes that the test object file only shows up | |
11582 | # once in the compiler output. | |
11583 | if test "$p" = "conftest.$objext"; then | |
11584 | pre_test_object_deps_done=yes | |
11585 | continue | |
11586 | fi | |
11587 | ||
11588 | if test "$pre_test_object_deps_done" = no; then | |
11589 | if test -z "$predep_objects_CXX"; then | |
11590 | predep_objects_CXX="$p" | |
11591 | else | |
11592 | predep_objects_CXX="$predep_objects_CXX $p" | |
11593 | fi | |
11594 | else | |
11595 | if test -z "$postdep_objects_CXX"; then | |
11596 | postdep_objects_CXX="$p" | |
11597 | else | |
11598 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
11599 | fi | |
11600 | fi | |
11601 | ;; | |
11602 | ||
11603 | *) ;; # Ignore the rest. | |
11604 | ||
11605 | esac | |
11606 | done | |
11607 | ||
11608 | # Clean up. | |
11609 | rm -f a.out a.exe | |
11610 | else | |
11611 | echo "libtool.m4: error: problem compiling CXX test program" | |
11612 | fi | |
11613 | ||
11614 | $rm -f confest.$objext | |
11615 | ||
693f5c2e | 11616 | # PORTME: override above test on systems where it is broken |
11617 | case $host_os in | |
62567204 | 11618 | interix3*) |
11619 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
11620 | # hack all around it, let's just trust "g++" to DTRT. | |
11621 | predep_objects_CXX= | |
11622 | postdep_objects_CXX= | |
11623 | postdeps_CXX= | |
11624 | ;; | |
11625 | ||
693f5c2e | 11626 | solaris*) |
11627 | case $cc_basename in | |
11628 | CC*) | |
11629 | # Adding this requires a known-good setup of shared libraries for | |
11630 | # Sun compiler versions before 5.6, else PIC objects from an old | |
11631 | # archive will be linked into the output, leading to subtle bugs. | |
11632 | postdeps_CXX='-lCstd -lCrun' | |
11633 | ;; | |
11634 | esac | |
62567204 | 11635 | ;; |
693f5c2e | 11636 | esac |
11637 | ||
11638 | ||
a33e1d91 | 11639 | case " $postdeps_CXX " in |
11640 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
11641 | esac | |
11642 | ||
11643 | lt_prog_compiler_wl_CXX= | |
11644 | lt_prog_compiler_pic_CXX= | |
11645 | lt_prog_compiler_static_CXX= | |
11646 | ||
11647 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
11648 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
11649 | ||
11650 | # C++ specific cases for pic, static, wl, etc. | |
11651 | if test "$GXX" = yes; then | |
11652 | lt_prog_compiler_wl_CXX='-Wl,' | |
11653 | lt_prog_compiler_static_CXX='-static' | |
11654 | ||
11655 | case $host_os in | |
11656 | aix*) | |
11657 | # All AIX code is PIC. | |
11658 | if test "$host_cpu" = ia64; then | |
11659 | # AIX 5 now supports IA64 processor | |
11660 | lt_prog_compiler_static_CXX='-Bstatic' | |
11661 | fi | |
11662 | ;; | |
11663 | amigaos*) | |
11664 | # FIXME: we need at least 68020 code to build shared libraries, but | |
11665 | # adding the `-m68020' flag to GCC prevents building anything better, | |
11666 | # like `-m68040'. | |
11667 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
11668 | ;; | |
11669 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
11670 | # PIC is the default for these OSes. | |
11671 | ;; | |
11672 | mingw* | os2* | pw32*) | |
11673 | # This hack is so that the source file can tell whether it is being | |
11674 | # built for inclusion in a dll (and should export symbols for example). | |
11675 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
11676 | ;; | |
11677 | darwin* | rhapsody*) | |
11678 | # PIC is the default on this platform | |
11679 | # Common symbols not allowed in MH_DYLIB files | |
11680 | lt_prog_compiler_pic_CXX='-fno-common' | |
11681 | ;; | |
11682 | *djgpp*) | |
11683 | # DJGPP does not support shared libraries at all | |
11684 | lt_prog_compiler_pic_CXX= | |
11685 | ;; | |
62567204 | 11686 | interix3*) |
11687 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
11688 | # Instead, we relocate shared libraries at runtime. | |
11689 | ;; | |
a33e1d91 | 11690 | sysv4*MP*) |
11691 | if test -d /usr/nec; then | |
11692 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
11693 | fi | |
11694 | ;; | |
11695 | hpux*) | |
11696 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
11697 | # not for PA HP-UX. | |
693f5c2e | 11698 | case $host_cpu in |
a33e1d91 | 11699 | hppa*64*|ia64*) |
11700 | ;; | |
11701 | *) | |
11702 | lt_prog_compiler_pic_CXX='-fPIC' | |
11703 | ;; | |
11704 | esac | |
11705 | ;; | |
11706 | *) | |
11707 | lt_prog_compiler_pic_CXX='-fPIC' | |
11708 | ;; | |
11709 | esac | |
11710 | else | |
11711 | case $host_os in | |
11712 | aix4* | aix5*) | |
11713 | # All AIX code is PIC. | |
11714 | if test "$host_cpu" = ia64; then | |
11715 | # AIX 5 now supports IA64 processor | |
11716 | lt_prog_compiler_static_CXX='-Bstatic' | |
11717 | else | |
11718 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
11719 | fi | |
11720 | ;; | |
11721 | chorus*) | |
11722 | case $cc_basename in | |
087278d6 | 11723 | cxch68*) |
a33e1d91 | 11724 | # Green Hills C++ Compiler |
11725 | # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | |
11726 | ;; | |
11727 | esac | |
11728 | ;; | |
631008fb | 11729 | darwin*) |
11730 | # PIC is the default on this platform | |
11731 | # Common symbols not allowed in MH_DYLIB files | |
087278d6 | 11732 | case $cc_basename in |
631008fb | 11733 | xlc*) |
11734 | lt_prog_compiler_pic_CXX='-qnocommon' | |
11735 | lt_prog_compiler_wl_CXX='-Wl,' | |
11736 | ;; | |
11737 | esac | |
11738 | ;; | |
a33e1d91 | 11739 | dgux*) |
11740 | case $cc_basename in | |
087278d6 | 11741 | ec++*) |
a33e1d91 | 11742 | lt_prog_compiler_pic_CXX='-KPIC' |
11743 | ;; | |
087278d6 | 11744 | ghcx*) |
a33e1d91 | 11745 | # Green Hills C++ Compiler |
11746 | lt_prog_compiler_pic_CXX='-pic' | |
11747 | ;; | |
11748 | *) | |
11749 | ;; | |
11750 | esac | |
11751 | ;; | |
087278d6 | 11752 | freebsd* | kfreebsd*-gnu | dragonfly*) |
a33e1d91 | 11753 | # FreeBSD uses GNU C++ |
11754 | ;; | |
11755 | hpux9* | hpux10* | hpux11*) | |
11756 | case $cc_basename in | |
087278d6 | 11757 | CC*) |
a33e1d91 | 11758 | lt_prog_compiler_wl_CXX='-Wl,' |
62567204 | 11759 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
a33e1d91 | 11760 | if test "$host_cpu" != ia64; then |
11761 | lt_prog_compiler_pic_CXX='+Z' | |
11762 | fi | |
11763 | ;; | |
087278d6 | 11764 | aCC*) |
a33e1d91 | 11765 | lt_prog_compiler_wl_CXX='-Wl,' |
62567204 | 11766 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
693f5c2e | 11767 | case $host_cpu in |
a33e1d91 | 11768 | hppa*64*|ia64*) |
11769 | # +Z the default | |
11770 | ;; | |
11771 | *) | |
11772 | lt_prog_compiler_pic_CXX='+Z' | |
11773 | ;; | |
11774 | esac | |
11775 | ;; | |
11776 | *) | |
11777 | ;; | |
11778 | esac | |
11779 | ;; | |
62567204 | 11780 | interix*) |
11781 | # This is c89, which is MS Visual C++ (no shared libs) | |
11782 | # Anyone wants to do a port? | |
11783 | ;; | |
a33e1d91 | 11784 | irix5* | irix6* | nonstopux*) |
11785 | case $cc_basename in | |
087278d6 | 11786 | CC*) |
a33e1d91 | 11787 | lt_prog_compiler_wl_CXX='-Wl,' |
11788 | lt_prog_compiler_static_CXX='-non_shared' | |
11789 | # CC pic flag -KPIC is the default. | |
11790 | ;; | |
11791 | *) | |
11792 | ;; | |
11793 | esac | |
11794 | ;; | |
11795 | linux*) | |
11796 | case $cc_basename in | |
087278d6 | 11797 | KCC*) |
a33e1d91 | 11798 | # KAI C++ Compiler |
11799 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
11800 | lt_prog_compiler_pic_CXX='-fPIC' | |
11801 | ;; | |
087278d6 | 11802 | icpc* | ecpc*) |
a33e1d91 | 11803 | # Intel C++ |
11804 | lt_prog_compiler_wl_CXX='-Wl,' | |
11805 | lt_prog_compiler_pic_CXX='-KPIC' | |
11806 | lt_prog_compiler_static_CXX='-static' | |
11807 | ;; | |
087278d6 | 11808 | pgCC*) |
11809 | # Portland Group C++ compiler. | |
11810 | lt_prog_compiler_wl_CXX='-Wl,' | |
11811 | lt_prog_compiler_pic_CXX='-fpic' | |
693f5c2e | 11812 | lt_prog_compiler_static_CXX='-Bstatic' |
087278d6 | 11813 | ;; |
11814 | cxx*) | |
a33e1d91 | 11815 | # Compaq C++ |
11816 | # Make sure the PIC flag is empty. It appears that all Alpha | |
11817 | # Linux and Compaq Tru64 Unix objects are PIC. | |
11818 | lt_prog_compiler_pic_CXX= | |
11819 | lt_prog_compiler_static_CXX='-non_shared' | |
11820 | ;; | |
11821 | *) | |
11822 | ;; | |
11823 | esac | |
11824 | ;; | |
11825 | lynxos*) | |
11826 | ;; | |
11827 | m88k*) | |
11828 | ;; | |
11829 | mvs*) | |
11830 | case $cc_basename in | |
087278d6 | 11831 | cxx*) |
a33e1d91 | 11832 | lt_prog_compiler_pic_CXX='-W c,exportall' |
11833 | ;; | |
11834 | *) | |
11835 | ;; | |
11836 | esac | |
11837 | ;; | |
6263d81f | 11838 | netbsd*) |
a33e1d91 | 11839 | ;; |
11840 | osf3* | osf4* | osf5*) | |
11841 | case $cc_basename in | |
087278d6 | 11842 | KCC*) |
a33e1d91 | 11843 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
11844 | ;; | |
087278d6 | 11845 | RCC*) |
a33e1d91 | 11846 | # Rational C++ 2.4.1 |
11847 | lt_prog_compiler_pic_CXX='-pic' | |
11848 | ;; | |
087278d6 | 11849 | cxx*) |
a33e1d91 | 11850 | # Digital/Compaq C++ |
11851 | lt_prog_compiler_wl_CXX='-Wl,' | |
11852 | # Make sure the PIC flag is empty. It appears that all Alpha | |
11853 | # Linux and Compaq Tru64 Unix objects are PIC. | |
11854 | lt_prog_compiler_pic_CXX= | |
11855 | lt_prog_compiler_static_CXX='-non_shared' | |
11856 | ;; | |
11857 | *) | |
11858 | ;; | |
11859 | esac | |
11860 | ;; | |
11861 | psos*) | |
11862 | ;; | |
a33e1d91 | 11863 | solaris*) |
11864 | case $cc_basename in | |
087278d6 | 11865 | CC*) |
a33e1d91 | 11866 | # Sun C++ 4.2, 5.x and Centerline C++ |
11867 | lt_prog_compiler_pic_CXX='-KPIC' | |
11868 | lt_prog_compiler_static_CXX='-Bstatic' | |
11869 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
11870 | ;; | |
087278d6 | 11871 | gcx*) |
a33e1d91 | 11872 | # Green Hills C++ Compiler |
11873 | lt_prog_compiler_pic_CXX='-PIC' | |
11874 | ;; | |
11875 | *) | |
11876 | ;; | |
11877 | esac | |
11878 | ;; | |
11879 | sunos4*) | |
11880 | case $cc_basename in | |
087278d6 | 11881 | CC*) |
a33e1d91 | 11882 | # Sun C++ 4.x |
11883 | lt_prog_compiler_pic_CXX='-pic' | |
11884 | lt_prog_compiler_static_CXX='-Bstatic' | |
11885 | ;; | |
087278d6 | 11886 | lcc*) |
a33e1d91 | 11887 | # Lucid |
11888 | lt_prog_compiler_pic_CXX='-pic' | |
11889 | ;; | |
11890 | *) | |
11891 | ;; | |
11892 | esac | |
11893 | ;; | |
11894 | tandem*) | |
11895 | case $cc_basename in | |
087278d6 | 11896 | NCC*) |
a33e1d91 | 11897 | # NonStop-UX NCC 3.20 |
11898 | lt_prog_compiler_pic_CXX='-KPIC' | |
11899 | ;; | |
11900 | *) | |
11901 | ;; | |
11902 | esac | |
11903 | ;; | |
62567204 | 11904 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
11905 | case $cc_basename in | |
11906 | CC*) | |
11907 | lt_prog_compiler_wl_CXX='-Wl,' | |
11908 | lt_prog_compiler_pic_CXX='-KPIC' | |
11909 | lt_prog_compiler_static_CXX='-Bstatic' | |
11910 | ;; | |
11911 | esac | |
a33e1d91 | 11912 | ;; |
11913 | vxworks*) | |
11914 | ;; | |
11915 | *) | |
11916 | lt_prog_compiler_can_build_shared_CXX=no | |
11917 | ;; | |
11918 | esac | |
11919 | fi | |
11920 | ||
11921 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | |
11922 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | |
11923 | ||
11924 | # | |
11925 | # Check to make sure the PIC flag actually works. | |
11926 | # | |
11927 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
11928 | ||
11929 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
11930 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 | |
11931 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | |
11932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11933 | else | |
11934 | lt_prog_compiler_pic_works_CXX=no | |
11935 | ac_outfile=conftest.$ac_objext | |
11936 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
11937 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
11938 | # Insert the option either (1) after the last *FLAGS variable, or | |
11939 | # (2) before a word containing "conftest.", or (3) at the end. | |
11940 | # Note that $ac_compile itself does not contain backslashes and begins | |
11941 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
11942 | # The option is referenced via a variable to avoid confusing sed. | |
11943 | lt_compile=`echo "$ac_compile" | $SED \ | |
693f5c2e | 11944 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a33e1d91 | 11945 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
11946 | -e 's:$: $lt_compiler_flag:'` | |
00b2804c | 11947 | (eval echo "\"\$as_me:11947: $lt_compile\"" >&5) |
a33e1d91 | 11948 | (eval "$lt_compile" 2>conftest.err) |
11949 | ac_status=$? | |
11950 | cat conftest.err >&5 | |
00b2804c | 11951 | echo "$as_me:11951: \$? = $ac_status" >&5 |
a33e1d91 | 11952 | if (exit $ac_status) && test -s "$ac_outfile"; then |
11953 | # The compiler can only warn and ignore the option if not recognized | |
087278d6 | 11954 | # So say no if there are warnings other than the usual output. |
62567204 | 11955 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
11956 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
11957 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
a33e1d91 | 11958 | lt_prog_compiler_pic_works_CXX=yes |
11959 | fi | |
11960 | fi | |
11961 | $rm conftest* | |
11962 | ||
11963 | fi | |
11964 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | |
11965 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 | |
11966 | ||
11967 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | |
11968 | case $lt_prog_compiler_pic_CXX in | |
11969 | "" | " "*) ;; | |
11970 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
11971 | esac | |
11972 | else | |
11973 | lt_prog_compiler_pic_CXX= | |
11974 | lt_prog_compiler_can_build_shared_CXX=no | |
11975 | fi | |
11976 | ||
11977 | fi | |
693f5c2e | 11978 | case $host_os in |
a33e1d91 | 11979 | # For platforms which do not support PIC, -DPIC is meaningless: |
11980 | *djgpp*) | |
11981 | lt_prog_compiler_pic_CXX= | |
11982 | ;; | |
11983 | *) | |
11984 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
11985 | ;; | |
11986 | esac | |
11987 | ||
62567204 | 11988 | # |
11989 | # Check to make sure the static flag actually works. | |
11990 | # | |
11991 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
11992 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
11993 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
11994 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then | |
11995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11996 | else | |
11997 | lt_prog_compiler_static_works_CXX=no | |
11998 | save_LDFLAGS="$LDFLAGS" | |
11999 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
12000 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
12001 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
12002 | # The linker can only warn and ignore the option if not recognized | |
12003 | # So say no if there are warnings | |
12004 | if test -s conftest.err; then | |
12005 | # Append any errors to the config.log. | |
12006 | cat conftest.err 1>&5 | |
12007 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
12008 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
12009 | if diff conftest.exp conftest.er2 >/dev/null; then | |
12010 | lt_prog_compiler_static_works_CXX=yes | |
12011 | fi | |
12012 | else | |
12013 | lt_prog_compiler_static_works_CXX=yes | |
12014 | fi | |
12015 | fi | |
12016 | $rm conftest* | |
12017 | LDFLAGS="$save_LDFLAGS" | |
12018 | ||
12019 | fi | |
12020 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 | |
12021 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6 | |
12022 | ||
12023 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then | |
12024 | : | |
12025 | else | |
12026 | lt_prog_compiler_static_CXX= | |
12027 | fi | |
12028 | ||
12029 | ||
a33e1d91 | 12030 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12031 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
12032 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
12033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12034 | else | |
12035 | lt_cv_prog_compiler_c_o_CXX=no | |
12036 | $rm -r conftest 2>/dev/null | |
12037 | mkdir conftest | |
12038 | cd conftest | |
12039 | mkdir out | |
12040 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12041 | ||
12042 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
12043 | # Insert the option either (1) after the last *FLAGS variable, or | |
12044 | # (2) before a word containing "conftest.", or (3) at the end. | |
12045 | # Note that $ac_compile itself does not contain backslashes and begins | |
12046 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
12047 | lt_compile=`echo "$ac_compile" | $SED \ | |
693f5c2e | 12048 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a33e1d91 | 12049 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12050 | -e 's:$: $lt_compiler_flag:'` | |
00b2804c | 12051 | (eval echo "\"\$as_me:12051: $lt_compile\"" >&5) |
a33e1d91 | 12052 | (eval "$lt_compile" 2>out/conftest.err) |
12053 | ac_status=$? | |
12054 | cat out/conftest.err >&5 | |
00b2804c | 12055 | echo "$as_me:12055: \$? = $ac_status" >&5 |
a33e1d91 | 12056 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12057 | then | |
12058 | # The compiler can only warn and ignore the option if not recognized | |
12059 | # So say no if there are warnings | |
62567204 | 12060 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
12061 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
12062 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
a33e1d91 | 12063 | lt_cv_prog_compiler_c_o_CXX=yes |
12064 | fi | |
12065 | fi | |
693f5c2e | 12066 | chmod u+w . 2>&5 |
a33e1d91 | 12067 | $rm conftest* |
12068 | # SGI C++ compiler will create directory out/ii_files/ for | |
12069 | # template instantiation | |
12070 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
12071 | $rm out/* && rmdir out | |
12072 | cd .. | |
12073 | rmdir conftest | |
12074 | $rm conftest* | |
12075 | ||
12076 | fi | |
12077 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
12078 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | |
12079 | ||
12080 | ||
12081 | hard_links="nottested" | |
12082 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
12083 | # do not overwrite the value of need_locks provided by the user | |
12084 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
12085 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
12086 | hard_links=yes | |
12087 | $rm conftest* | |
12088 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12089 | touch conftest.a | |
12090 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
12091 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
12092 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
12093 | echo "${ECHO_T}$hard_links" >&6 | |
12094 | if test "$hard_links" = no; then | |
12095 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
12096 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
12097 | need_locks=warn | |
12098 | fi | |
12099 | else | |
12100 | need_locks=no | |
12101 | fi | |
12102 | ||
12103 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12104 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
12105 | ||
12106 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12107 | case $host_os in | |
12108 | aix4* | aix5*) | |
12109 | # If we're using GNU nm, then we don't want the "-C" option. | |
12110 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
12111 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
12112 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
12113 | else | |
12114 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
12115 | fi | |
12116 | ;; | |
12117 | pw32*) | |
12118 | export_symbols_cmds_CXX="$ltdll_cmds" | |
12119 | ;; | |
12120 | cygwin* | mingw*) | |
087278d6 | 12121 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
a33e1d91 | 12122 | ;; |
12123 | *) | |
12124 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
12125 | ;; | |
12126 | esac | |
12127 | ||
12128 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
12129 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | |
12130 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
12131 | ||
a33e1d91 | 12132 | # |
12133 | # Do we need to explicitly link libc? | |
12134 | # | |
12135 | case "x$archive_cmds_need_lc_CXX" in | |
12136 | x|xyes) | |
12137 | # Assume -lc should be added | |
12138 | archive_cmds_need_lc_CXX=yes | |
12139 | ||
12140 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
12141 | case $archive_cmds_CXX in | |
12142 | *'~'*) | |
12143 | # FIXME: we may have to deal with multi-command sequences. | |
12144 | ;; | |
12145 | '$CC '*) | |
12146 | # Test whether the compiler implicitly links with -lc since on some | |
12147 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
12148 | # to ld, don't add -lc before -lgcc. | |
12149 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
12150 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
12151 | $rm conftest* | |
12152 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
12153 | ||
12154 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12155 | (eval $ac_compile) 2>&5 | |
12156 | ac_status=$? | |
12157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12158 | (exit $ac_status); } 2>conftest.err; then | |
12159 | soname=conftest | |
12160 | lib=conftest | |
12161 | libobjs=conftest.$ac_objext | |
12162 | deplibs= | |
12163 | wl=$lt_prog_compiler_wl_CXX | |
62567204 | 12164 | pic_flag=$lt_prog_compiler_pic_CXX |
a33e1d91 | 12165 | compiler_flags=-v |
12166 | linker_flags=-v | |
12167 | verstring= | |
12168 | output_objdir=. | |
12169 | libname=conftest | |
12170 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
12171 | allow_undefined_flag_CXX= | |
12172 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
12173 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
12174 | ac_status=$? | |
12175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12176 | (exit $ac_status); } | |
12177 | then | |
12178 | archive_cmds_need_lc_CXX=no | |
12179 | else | |
12180 | archive_cmds_need_lc_CXX=yes | |
12181 | fi | |
12182 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
12183 | else | |
12184 | cat conftest.err 1>&5 | |
12185 | fi | |
12186 | $rm conftest* | |
12187 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | |
12188 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 | |
12189 | ;; | |
12190 | esac | |
12191 | fi | |
12192 | ;; | |
12193 | esac | |
12194 | ||
12195 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
12196 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
12197 | library_names_spec= | |
12198 | libname_spec='lib$name' | |
12199 | soname_spec= | |
12200 | shrext_cmds=".so" | |
12201 | postinstall_cmds= | |
12202 | postuninstall_cmds= | |
12203 | finish_cmds= | |
12204 | finish_eval= | |
12205 | shlibpath_var= | |
12206 | shlibpath_overrides_runpath=unknown | |
12207 | version_type=none | |
12208 | dynamic_linker="$host_os ld.so" | |
12209 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
12210 | if test "$GCC" = yes; then | |
12211 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
12212 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
12213 | # if the path contains ";" then we assume it to be the separator | |
12214 | # otherwise default to the standard path separator (i.e. ":") - it is | |
12215 | # assumed that no part of a normal pathname contains ";" but that should | |
12216 | # okay in the real world where ";" in dirpaths is itself problematic. | |
12217 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
12218 | else | |
12219 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
12220 | fi | |
12221 | else | |
12222 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
12223 | fi | |
12224 | need_lib_prefix=unknown | |
12225 | hardcode_into_libs=no | |
12226 | ||
12227 | # when you set need_version to no, make sure it does not cause -set_version | |
12228 | # flags to be left without arguments | |
12229 | need_version=unknown | |
12230 | ||
12231 | case $host_os in | |
12232 | aix3*) | |
12233 | version_type=linux | |
12234 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
12235 | shlibpath_var=LIBPATH | |
12236 | ||
12237 | # AIX 3 has no versioning support, so we append a major version to the name. | |
12238 | soname_spec='${libname}${release}${shared_ext}$major' | |
12239 | ;; | |
12240 | ||
12241 | aix4* | aix5*) | |
12242 | version_type=linux | |
12243 | need_lib_prefix=no | |
12244 | need_version=no | |
12245 | hardcode_into_libs=yes | |
12246 | if test "$host_cpu" = ia64; then | |
12247 | # AIX 5 supports IA64 | |
12248 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
12249 | shlibpath_var=LD_LIBRARY_PATH | |
12250 | else | |
12251 | # With GCC up to 2.95.x, collect2 would create an import file | |
12252 | # for dependence libraries. The import file would start with | |
12253 | # the line `#! .'. This would cause the generated library to | |
12254 | # depend on `.', always an invalid library. This was fixed in | |
12255 | # development snapshots of GCC prior to 3.0. | |
12256 | case $host_os in | |
12257 | aix4 | aix4.[01] | aix4.[01].*) | |
12258 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
12259 | echo ' yes ' | |
12260 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
12261 | : | |
12262 | else | |
12263 | can_build_shared=no | |
12264 | fi | |
12265 | ;; | |
12266 | esac | |
12267 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
12268 | # soname into executable. Probably we can add versioning support to | |
12269 | # collect2, so additional links can be useful in future. | |
12270 | if test "$aix_use_runtimelinking" = yes; then | |
12271 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
12272 | # instead of lib<name>.a to let people know that these are not | |
12273 | # typical AIX shared libraries. | |
12274 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12275 | else | |
12276 | # We preserve .a as extension for shared libraries through AIX4.2 | |
12277 | # and later when we are not doing run time linking. | |
12278 | library_names_spec='${libname}${release}.a $libname.a' | |
12279 | soname_spec='${libname}${release}${shared_ext}$major' | |
12280 | fi | |
12281 | shlibpath_var=LIBPATH | |
12282 | fi | |
12283 | ;; | |
12284 | ||
12285 | amigaos*) | |
12286 | library_names_spec='$libname.ixlibrary $libname.a' | |
12287 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
12288 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
12289 | ;; | |
12290 | ||
12291 | beos*) | |
12292 | library_names_spec='${libname}${shared_ext}' | |
12293 | dynamic_linker="$host_os ld.so" | |
12294 | shlibpath_var=LIBRARY_PATH | |
12295 | ;; | |
12296 | ||
631008fb | 12297 | bsdi[45]*) |
a33e1d91 | 12298 | version_type=linux |
12299 | need_version=no | |
12300 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12301 | soname_spec='${libname}${release}${shared_ext}$major' | |
12302 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
12303 | shlibpath_var=LD_LIBRARY_PATH | |
12304 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
12305 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
12306 | # the default ld.so.conf also contains /usr/contrib/lib and | |
12307 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
12308 | # libtool to hard-code these into programs | |
12309 | ;; | |
12310 | ||
12311 | cygwin* | mingw* | pw32*) | |
12312 | version_type=windows | |
12313 | shrext_cmds=".dll" | |
12314 | need_version=no | |
12315 | need_lib_prefix=no | |
12316 | ||
12317 | case $GCC,$host_os in | |
12318 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
12319 | library_names_spec='$libname.dll.a' | |
12320 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
12321 | postinstall_cmds='base_file=`basename \${file}`~ | |
12322 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
12323 | dldir=$destdir/`dirname \$dlpath`~ | |
12324 | test -d \$dldir || mkdir -p \$dldir~ | |
693f5c2e | 12325 | $install_prog $dir/$dlname \$dldir/$dlname~ |
12326 | chmod a+x \$dldir/$dlname' | |
a33e1d91 | 12327 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
12328 | dlpath=$dir/\$dldll~ | |
12329 | $rm \$dlpath' | |
12330 | shlibpath_overrides_runpath=yes | |
12331 | ||
12332 | case $host_os in | |
12333 | cygwin*) | |
12334 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
12335 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12336 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
12337 | ;; | |
12338 | mingw*) | |
12339 | # MinGW DLLs use traditional 'lib' prefix | |
12340 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
12341 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
12342 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
12343 | # It is most probably a Windows format PATH printed by | |
12344 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
12345 | # path with ; separators, and with drive letters. We can handle the | |
12346 | # drive letters (cygwin fileutils understands them), so leave them, | |
12347 | # especially as we might pass files found there to a mingw objdump, | |
12348 | # which wouldn't understand a cygwinified path. Ahh. | |
12349 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
12350 | else | |
12351 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
12352 | fi | |
12353 | ;; | |
12354 | pw32*) | |
12355 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
087278d6 | 12356 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
a33e1d91 | 12357 | ;; |
12358 | esac | |
12359 | ;; | |
12360 | ||
12361 | *) | |
12362 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
12363 | ;; | |
12364 | esac | |
12365 | dynamic_linker='Win32 ld.exe' | |
12366 | # FIXME: first we should search . and the directory the executable is in | |
12367 | shlibpath_var=PATH | |
12368 | ;; | |
12369 | ||
12370 | darwin* | rhapsody*) | |
12371 | dynamic_linker="$host_os dyld" | |
12372 | version_type=darwin | |
12373 | need_lib_prefix=no | |
12374 | need_version=no | |
12375 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
12376 | soname_spec='${libname}${release}${major}$shared_ext' | |
12377 | shlibpath_overrides_runpath=yes | |
12378 | shlibpath_var=DYLD_LIBRARY_PATH | |
693f5c2e | 12379 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
a33e1d91 | 12380 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
12381 | if test "$GCC" = yes; then | |
12382 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | |
12383 | else | |
12384 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
12385 | fi | |
12386 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
12387 | ;; | |
12388 | ||
12389 | dgux*) | |
12390 | version_type=linux | |
12391 | need_lib_prefix=no | |
12392 | need_version=no | |
12393 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
12394 | soname_spec='${libname}${release}${shared_ext}$major' | |
12395 | shlibpath_var=LD_LIBRARY_PATH | |
12396 | ;; | |
12397 | ||
12398 | freebsd1*) | |
12399 | dynamic_linker=no | |
12400 | ;; | |
12401 | ||
12402 | kfreebsd*-gnu) | |
12403 | version_type=linux | |
12404 | need_lib_prefix=no | |
12405 | need_version=no | |
12406 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12407 | soname_spec='${libname}${release}${shared_ext}$major' | |
12408 | shlibpath_var=LD_LIBRARY_PATH | |
12409 | shlibpath_overrides_runpath=no | |
12410 | hardcode_into_libs=yes | |
12411 | dynamic_linker='GNU ld.so' | |
12412 | ;; | |
12413 | ||
087278d6 | 12414 | freebsd* | dragonfly*) |
12415 | # DragonFly does not have aout. When/if they implement a new | |
12416 | # versioning mechanism, adjust this. | |
693f5c2e | 12417 | if test -x /usr/bin/objformat; then |
12418 | objformat=`/usr/bin/objformat` | |
12419 | else | |
12420 | case $host_os in | |
12421 | freebsd[123]*) objformat=aout ;; | |
12422 | *) objformat=elf ;; | |
12423 | esac | |
12424 | fi | |
a33e1d91 | 12425 | version_type=freebsd-$objformat |
12426 | case $version_type in | |
12427 | freebsd-elf*) | |
12428 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12429 | need_version=no | |
12430 | need_lib_prefix=no | |
12431 | ;; | |
12432 | freebsd-*) | |
12433 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
12434 | need_version=yes | |
12435 | ;; | |
12436 | esac | |
12437 | shlibpath_var=LD_LIBRARY_PATH | |
12438 | case $host_os in | |
12439 | freebsd2*) | |
12440 | shlibpath_overrides_runpath=yes | |
12441 | ;; | |
087278d6 | 12442 | freebsd3.[01]* | freebsdelf3.[01]*) |
a33e1d91 | 12443 | shlibpath_overrides_runpath=yes |
12444 | hardcode_into_libs=yes | |
12445 | ;; | |
62567204 | 12446 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
12447 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
a33e1d91 | 12448 | shlibpath_overrides_runpath=no |
12449 | hardcode_into_libs=yes | |
12450 | ;; | |
62567204 | 12451 | freebsd*) # from 4.6 on |
12452 | shlibpath_overrides_runpath=yes | |
12453 | hardcode_into_libs=yes | |
12454 | ;; | |
a33e1d91 | 12455 | esac |
12456 | ;; | |
12457 | ||
12458 | gnu*) | |
12459 | version_type=linux | |
12460 | need_lib_prefix=no | |
12461 | need_version=no | |
12462 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
12463 | soname_spec='${libname}${release}${shared_ext}$major' | |
12464 | shlibpath_var=LD_LIBRARY_PATH | |
12465 | hardcode_into_libs=yes | |
12466 | ;; | |
12467 | ||
12468 | hpux9* | hpux10* | hpux11*) | |
12469 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
12470 | # link against other versions. | |
12471 | version_type=sunos | |
12472 | need_lib_prefix=no | |
12473 | need_version=no | |
693f5c2e | 12474 | case $host_cpu in |
a33e1d91 | 12475 | ia64*) |
12476 | shrext_cmds='.so' | |
12477 | hardcode_into_libs=yes | |
12478 | dynamic_linker="$host_os dld.so" | |
12479 | shlibpath_var=LD_LIBRARY_PATH | |
12480 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12481 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12482 | soname_spec='${libname}${release}${shared_ext}$major' | |
12483 | if test "X$HPUX_IA64_MODE" = X32; then | |
12484 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
12485 | else | |
12486 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
12487 | fi | |
12488 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12489 | ;; | |
12490 | hppa*64*) | |
12491 | shrext_cmds='.sl' | |
12492 | hardcode_into_libs=yes | |
12493 | dynamic_linker="$host_os dld.sl" | |
12494 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
12495 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
12496 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12497 | soname_spec='${libname}${release}${shared_ext}$major' | |
12498 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
12499 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
12500 | ;; | |
12501 | *) | |
12502 | shrext_cmds='.sl' | |
12503 | dynamic_linker="$host_os dld.sl" | |
12504 | shlibpath_var=SHLIB_PATH | |
12505 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
12506 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12507 | soname_spec='${libname}${release}${shared_ext}$major' | |
12508 | ;; | |
12509 | esac | |
12510 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
12511 | postinstall_cmds='chmod 555 $lib' | |
12512 | ;; | |
12513 | ||
62567204 | 12514 | interix3*) |
12515 | version_type=linux | |
12516 | need_lib_prefix=no | |
12517 | need_version=no | |
12518 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12519 | soname_spec='${libname}${release}${shared_ext}$major' | |
12520 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
12521 | shlibpath_var=LD_LIBRARY_PATH | |
12522 | shlibpath_overrides_runpath=no | |
12523 | hardcode_into_libs=yes | |
12524 | ;; | |
12525 | ||
a33e1d91 | 12526 | irix5* | irix6* | nonstopux*) |
12527 | case $host_os in | |
12528 | nonstopux*) version_type=nonstopux ;; | |
12529 | *) | |
12530 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
12531 | version_type=linux | |
12532 | else | |
12533 | version_type=irix | |
12534 | fi ;; | |
12535 | esac | |
12536 | need_lib_prefix=no | |
12537 | need_version=no | |
12538 | soname_spec='${libname}${release}${shared_ext}$major' | |
12539 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12540 | case $host_os in | |
12541 | irix5* | nonstopux*) | |
12542 | libsuff= shlibsuff= | |
12543 | ;; | |
12544 | *) | |
12545 | case $LD in # libtool.m4 will add one of these switches to LD | |
12546 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
12547 | libsuff= shlibsuff= libmagic=32-bit;; | |
12548 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
12549 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
12550 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
12551 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
12552 | *) libsuff= shlibsuff= libmagic=never-match;; | |
12553 | esac | |
12554 | ;; | |
12555 | esac | |
12556 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
12557 | shlibpath_overrides_runpath=no | |
12558 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
12559 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
12560 | hardcode_into_libs=yes | |
12561 | ;; | |
12562 | ||
12563 | # No shared lib support for Linux oldld, aout, or coff. | |
12564 | linux*oldld* | linux*aout* | linux*coff*) | |
12565 | dynamic_linker=no | |
12566 | ;; | |
12567 | ||
12568 | # This must be Linux ELF. | |
12569 | linux*) | |
12570 | version_type=linux | |
12571 | need_lib_prefix=no | |
12572 | need_version=no | |
12573 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12574 | soname_spec='${libname}${release}${shared_ext}$major' | |
12575 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
12576 | shlibpath_var=LD_LIBRARY_PATH | |
12577 | shlibpath_overrides_runpath=no | |
12578 | # This implies no fast_install, which is unacceptable. | |
12579 | # Some rework will be needed to allow for fast_install | |
12580 | # before this can be enabled. | |
12581 | hardcode_into_libs=yes | |
12582 | ||
12583 | # Append ld.so.conf contents to the search path | |
12584 | if test -f /etc/ld.so.conf; then | |
087278d6 | 12585 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
a33e1d91 | 12586 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
12587 | fi | |
12588 | ||
12589 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
12590 | # powerpc, because MkLinux only supported shared libraries with the | |
12591 | # GNU dynamic linker. Since this was broken with cross compilers, | |
12592 | # most powerpc-linux boxes support dynamic linking these days and | |
12593 | # people can always --disable-shared, the test was removed, and we | |
12594 | # assume the GNU/Linux dynamic linker is in use. | |
12595 | dynamic_linker='GNU/Linux ld.so' | |
12596 | ;; | |
12597 | ||
12598 | knetbsd*-gnu) | |
12599 | version_type=linux | |
12600 | need_lib_prefix=no | |
12601 | need_version=no | |
12602 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12603 | soname_spec='${libname}${release}${shared_ext}$major' | |
12604 | shlibpath_var=LD_LIBRARY_PATH | |
12605 | shlibpath_overrides_runpath=no | |
12606 | hardcode_into_libs=yes | |
12607 | dynamic_linker='GNU ld.so' | |
12608 | ;; | |
12609 | ||
12610 | netbsd*) | |
12611 | version_type=sunos | |
12612 | need_lib_prefix=no | |
12613 | need_version=no | |
12614 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
12615 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12616 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12617 | dynamic_linker='NetBSD (a.out) ld.so' | |
12618 | else | |
12619 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
12620 | soname_spec='${libname}${release}${shared_ext}$major' | |
12621 | dynamic_linker='NetBSD ld.elf_so' | |
12622 | fi | |
12623 | shlibpath_var=LD_LIBRARY_PATH | |
12624 | shlibpath_overrides_runpath=yes | |
12625 | hardcode_into_libs=yes | |
12626 | ;; | |
12627 | ||
12628 | newsos6) | |
12629 | version_type=linux | |
12630 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12631 | shlibpath_var=LD_LIBRARY_PATH | |
12632 | shlibpath_overrides_runpath=yes | |
12633 | ;; | |
12634 | ||
12635 | nto-qnx*) | |
12636 | version_type=linux | |
12637 | need_lib_prefix=no | |
12638 | need_version=no | |
12639 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12640 | soname_spec='${libname}${release}${shared_ext}$major' | |
12641 | shlibpath_var=LD_LIBRARY_PATH | |
12642 | shlibpath_overrides_runpath=yes | |
12643 | ;; | |
12644 | ||
12645 | openbsd*) | |
12646 | version_type=sunos | |
62567204 | 12647 | sys_lib_dlsearch_path_spec="/usr/lib" |
a33e1d91 | 12648 | need_lib_prefix=no |
087278d6 | 12649 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
12650 | case $host_os in | |
12651 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
12652 | *) need_version=no ;; | |
12653 | esac | |
a33e1d91 | 12654 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12655 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
12656 | shlibpath_var=LD_LIBRARY_PATH | |
12657 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
12658 | case $host_os in | |
12659 | openbsd2.[89] | openbsd2.[89].*) | |
12660 | shlibpath_overrides_runpath=no | |
12661 | ;; | |
12662 | *) | |
12663 | shlibpath_overrides_runpath=yes | |
12664 | ;; | |
12665 | esac | |
12666 | else | |
12667 | shlibpath_overrides_runpath=yes | |
12668 | fi | |
12669 | ;; | |
12670 | ||
12671 | os2*) | |
12672 | libname_spec='$name' | |
12673 | shrext_cmds=".dll" | |
12674 | need_lib_prefix=no | |
12675 | library_names_spec='$libname${shared_ext} $libname.a' | |
12676 | dynamic_linker='OS/2 ld.exe' | |
12677 | shlibpath_var=LIBPATH | |
12678 | ;; | |
12679 | ||
12680 | osf3* | osf4* | osf5*) | |
12681 | version_type=osf | |
12682 | need_lib_prefix=no | |
12683 | need_version=no | |
12684 | soname_spec='${libname}${release}${shared_ext}$major' | |
12685 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12686 | shlibpath_var=LD_LIBRARY_PATH | |
12687 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
12688 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
12689 | ;; | |
12690 | ||
a33e1d91 | 12691 | solaris*) |
12692 | version_type=linux | |
12693 | need_lib_prefix=no | |
12694 | need_version=no | |
12695 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12696 | soname_spec='${libname}${release}${shared_ext}$major' | |
12697 | shlibpath_var=LD_LIBRARY_PATH | |
12698 | shlibpath_overrides_runpath=yes | |
12699 | hardcode_into_libs=yes | |
12700 | # ldd complains unless libraries are executable | |
12701 | postinstall_cmds='chmod +x $lib' | |
12702 | ;; | |
12703 | ||
12704 | sunos4*) | |
12705 | version_type=sunos | |
12706 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
12707 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
12708 | shlibpath_var=LD_LIBRARY_PATH | |
12709 | shlibpath_overrides_runpath=yes | |
12710 | if test "$with_gnu_ld" = yes; then | |
12711 | need_lib_prefix=no | |
12712 | fi | |
12713 | need_version=yes | |
12714 | ;; | |
12715 | ||
62567204 | 12716 | sysv4 | sysv4.3*) |
a33e1d91 | 12717 | version_type=linux |
12718 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12719 | soname_spec='${libname}${release}${shared_ext}$major' | |
12720 | shlibpath_var=LD_LIBRARY_PATH | |
12721 | case $host_vendor in | |
12722 | sni) | |
12723 | shlibpath_overrides_runpath=no | |
12724 | need_lib_prefix=no | |
12725 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
12726 | runpath_var=LD_RUN_PATH | |
12727 | ;; | |
12728 | siemens) | |
12729 | need_lib_prefix=no | |
12730 | ;; | |
12731 | motorola) | |
12732 | need_lib_prefix=no | |
12733 | need_version=no | |
12734 | shlibpath_overrides_runpath=no | |
12735 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
12736 | ;; | |
12737 | esac | |
12738 | ;; | |
12739 | ||
12740 | sysv4*MP*) | |
12741 | if test -d /usr/nec ;then | |
12742 | version_type=linux | |
12743 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
12744 | soname_spec='$libname${shared_ext}.$major' | |
12745 | shlibpath_var=LD_LIBRARY_PATH | |
12746 | fi | |
12747 | ;; | |
12748 | ||
62567204 | 12749 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
12750 | version_type=freebsd-elf | |
12751 | need_lib_prefix=no | |
12752 | need_version=no | |
12753 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
12754 | soname_spec='${libname}${release}${shared_ext}$major' | |
12755 | shlibpath_var=LD_LIBRARY_PATH | |
12756 | hardcode_into_libs=yes | |
12757 | if test "$with_gnu_ld" = yes; then | |
12758 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
12759 | shlibpath_overrides_runpath=no | |
12760 | else | |
12761 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
12762 | shlibpath_overrides_runpath=yes | |
12763 | case $host_os in | |
12764 | sco3.2v5*) | |
12765 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
12766 | ;; | |
12767 | esac | |
12768 | fi | |
12769 | sys_lib_dlsearch_path_spec='/usr/lib' | |
12770 | ;; | |
12771 | ||
a33e1d91 | 12772 | uts4*) |
12773 | version_type=linux | |
12774 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
12775 | soname_spec='${libname}${release}${shared_ext}$major' | |
12776 | shlibpath_var=LD_LIBRARY_PATH | |
12777 | ;; | |
12778 | ||
12779 | *) | |
12780 | dynamic_linker=no | |
12781 | ;; | |
12782 | esac | |
12783 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
12784 | echo "${ECHO_T}$dynamic_linker" >&6 | |
12785 | test "$dynamic_linker" = no && can_build_shared=no | |
12786 | ||
62567204 | 12787 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
12788 | if test "$GCC" = yes; then | |
12789 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
12790 | fi | |
12791 | ||
a33e1d91 | 12792 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
12793 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
12794 | hardcode_action_CXX= | |
12795 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | |
631008fb | 12796 | test -n "$runpath_var_CXX" || \ |
12797 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
a33e1d91 | 12798 | |
12799 | # We can hardcode non-existant directories. | |
12800 | if test "$hardcode_direct_CXX" != no && | |
12801 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
12802 | # have to relink, otherwise we might link with an installed library | |
12803 | # when we should be linking with a yet-to-be-installed one | |
12804 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
12805 | test "$hardcode_minus_L_CXX" != no; then | |
12806 | # Linking always hardcodes the temporary library directory. | |
12807 | hardcode_action_CXX=relink | |
12808 | else | |
12809 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
12810 | hardcode_action_CXX=immediate | |
12811 | fi | |
12812 | else | |
12813 | # We cannot hardcode anything, or else we can only hardcode existing | |
12814 | # directories. | |
12815 | hardcode_action_CXX=unsupported | |
12816 | fi | |
12817 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | |
12818 | echo "${ECHO_T}$hardcode_action_CXX" >&6 | |
12819 | ||
12820 | if test "$hardcode_action_CXX" = relink; then | |
12821 | # Fast installation is not supported | |
12822 | enable_fast_install=no | |
12823 | elif test "$shlibpath_overrides_runpath" = yes || | |
12824 | test "$enable_shared" = no; then | |
12825 | # Fast installation is not necessary | |
12826 | enable_fast_install=needless | |
12827 | fi | |
12828 | ||
a33e1d91 | 12829 | |
62567204 | 12830 | # The else clause should only fire when bootstrapping the |
12831 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
12832 | # with your package, and you will get complaints that there are | |
12833 | # no rules to generate ltmain.sh. | |
12834 | if test -f "$ltmain"; then | |
12835 | # See if we are running on zsh, and set the options which allow our commands through | |
12836 | # without removal of \ escapes. | |
12837 | if test -n "${ZSH_VERSION+set}" ; then | |
12838 | setopt NO_GLOB_SUBST | |
12839 | fi | |
12840 | # Now quote all the things that may contain metacharacters while being | |
12841 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
12842 | # variables and quote the copies for generation of the libtool script. | |
12843 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
12844 | SED SHELL STRIP \ | |
12845 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
12846 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
12847 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
12848 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
12849 | lt_cv_sys_global_symbol_to_c_name_address \ | |
12850 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
12851 | old_postinstall_cmds old_postuninstall_cmds \ | |
12852 | compiler_CXX \ | |
12853 | CC_CXX \ | |
12854 | LD_CXX \ | |
12855 | lt_prog_compiler_wl_CXX \ | |
12856 | lt_prog_compiler_pic_CXX \ | |
12857 | lt_prog_compiler_static_CXX \ | |
12858 | lt_prog_compiler_no_builtin_flag_CXX \ | |
12859 | export_dynamic_flag_spec_CXX \ | |
12860 | thread_safe_flag_spec_CXX \ | |
12861 | whole_archive_flag_spec_CXX \ | |
12862 | enable_shared_with_static_runtimes_CXX \ | |
12863 | old_archive_cmds_CXX \ | |
12864 | old_archive_from_new_cmds_CXX \ | |
12865 | predep_objects_CXX \ | |
12866 | postdep_objects_CXX \ | |
12867 | predeps_CXX \ | |
12868 | postdeps_CXX \ | |
12869 | compiler_lib_search_path_CXX \ | |
12870 | archive_cmds_CXX \ | |
12871 | archive_expsym_cmds_CXX \ | |
12872 | postinstall_cmds_CXX \ | |
12873 | postuninstall_cmds_CXX \ | |
12874 | old_archive_from_expsyms_cmds_CXX \ | |
12875 | allow_undefined_flag_CXX \ | |
12876 | no_undefined_flag_CXX \ | |
12877 | export_symbols_cmds_CXX \ | |
12878 | hardcode_libdir_flag_spec_CXX \ | |
12879 | hardcode_libdir_flag_spec_ld_CXX \ | |
12880 | hardcode_libdir_separator_CXX \ | |
12881 | hardcode_automatic_CXX \ | |
12882 | module_cmds_CXX \ | |
12883 | module_expsym_cmds_CXX \ | |
12884 | lt_cv_prog_compiler_c_o_CXX \ | |
12885 | exclude_expsyms_CXX \ | |
12886 | include_expsyms_CXX; do | |
a33e1d91 | 12887 | |
62567204 | 12888 | case $var in |
12889 | old_archive_cmds_CXX | \ | |
12890 | old_archive_from_new_cmds_CXX | \ | |
12891 | archive_cmds_CXX | \ | |
12892 | archive_expsym_cmds_CXX | \ | |
12893 | module_cmds_CXX | \ | |
12894 | module_expsym_cmds_CXX | \ | |
12895 | old_archive_from_expsyms_cmds_CXX | \ | |
12896 | export_symbols_cmds_CXX | \ | |
12897 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
12898 | postinstall_cmds | postuninstall_cmds | \ | |
12899 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
12900 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
12901 | # Double-quote double-evaled strings. | |
12902 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
12903 | ;; | |
12904 | *) | |
12905 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
12906 | ;; | |
12907 | esac | |
12908 | done | |
a33e1d91 | 12909 | |
62567204 | 12910 | case $lt_echo in |
12911 | *'\$0 --fallback-echo"') | |
12912 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
12913 | ;; | |
12914 | esac | |
a33e1d91 | 12915 | |
62567204 | 12916 | cfgfile="$ofile" |
a33e1d91 | 12917 | |
62567204 | 12918 | cat <<__EOF__ >> "$cfgfile" |
12919 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
a33e1d91 | 12920 | |
62567204 | 12921 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
af3004ff | 12922 | |
62567204 | 12923 | # Shell to use when invoking shell scripts. |
12924 | SHELL=$lt_SHELL | |
af3004ff | 12925 | |
62567204 | 12926 | # Whether or not to build shared libraries. |
12927 | build_libtool_libs=$enable_shared | |
af3004ff | 12928 | |
62567204 | 12929 | # Whether or not to build static libraries. |
12930 | build_old_libs=$enable_static | |
af3004ff | 12931 | |
62567204 | 12932 | # Whether or not to add -lc for building shared libraries. |
12933 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
a33e1d91 | 12934 | |
62567204 | 12935 | # Whether or not to disallow shared libs when runtime libs are static |
12936 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
a33e1d91 | 12937 | |
62567204 | 12938 | # Whether or not to optimize for fast installation. |
12939 | fast_install=$enable_fast_install | |
a33e1d91 | 12940 | |
62567204 | 12941 | # The host system. |
12942 | host_alias=$host_alias | |
12943 | host=$host | |
12944 | host_os=$host_os | |
a33e1d91 | 12945 | |
62567204 | 12946 | # The build system. |
12947 | build_alias=$build_alias | |
12948 | build=$build | |
12949 | build_os=$build_os | |
af3004ff | 12950 | |
62567204 | 12951 | # An echo program that does not interpret backslashes. |
12952 | echo=$lt_echo | |
af3004ff | 12953 | |
62567204 | 12954 | # The archiver. |
12955 | AR=$lt_AR | |
12956 | AR_FLAGS=$lt_AR_FLAGS | |
af3004ff | 12957 | |
62567204 | 12958 | # A C compiler. |
12959 | LTCC=$lt_LTCC | |
af3004ff | 12960 | |
62567204 | 12961 | # LTCC compiler flags. |
12962 | LTCFLAGS=$lt_LTCFLAGS | |
a33e1d91 | 12963 | |
62567204 | 12964 | # A language-specific compiler. |
12965 | CC=$lt_compiler_CXX | |
a33e1d91 | 12966 | |
62567204 | 12967 | # Is the compiler the GNU C compiler? |
12968 | with_gcc=$GCC_CXX | |
a33e1d91 | 12969 | |
62567204 | 12970 | # An ERE matcher. |
12971 | EGREP=$lt_EGREP | |
a33e1d91 | 12972 | |
62567204 | 12973 | # The linker used to build libraries. |
12974 | LD=$lt_LD_CXX | |
a33e1d91 | 12975 | |
62567204 | 12976 | # Whether we need hard or soft links. |
12977 | LN_S=$lt_LN_S | |
a33e1d91 | 12978 | |
62567204 | 12979 | # A BSD-compatible nm program. |
12980 | NM=$lt_NM | |
a33e1d91 | 12981 | |
62567204 | 12982 | # A symbol stripping program |
12983 | STRIP=$lt_STRIP | |
a33e1d91 | 12984 | |
62567204 | 12985 | # Used to examine libraries when file_magic_cmd begins "file" |
12986 | MAGIC_CMD=$MAGIC_CMD | |
a33e1d91 | 12987 | |
62567204 | 12988 | # Used on cygwin: DLL creation program. |
12989 | DLLTOOL="$DLLTOOL" | |
a33e1d91 | 12990 | |
62567204 | 12991 | # Used on cygwin: object dumper. |
12992 | OBJDUMP="$OBJDUMP" | |
a33e1d91 | 12993 | |
62567204 | 12994 | # Used on cygwin: assembler. |
12995 | AS="$AS" | |
a33e1d91 | 12996 | |
62567204 | 12997 | # The name of the directory that contains temporary libtool files. |
12998 | objdir=$objdir | |
a33e1d91 | 12999 | |
62567204 | 13000 | # How to create reloadable object files. |
13001 | reload_flag=$lt_reload_flag | |
13002 | reload_cmds=$lt_reload_cmds | |
a33e1d91 | 13003 | |
62567204 | 13004 | # How to pass a linker flag through the compiler. |
13005 | wl=$lt_lt_prog_compiler_wl_CXX | |
a33e1d91 | 13006 | |
62567204 | 13007 | # Object file suffix (normally "o"). |
13008 | objext="$ac_objext" | |
a33e1d91 | 13009 | |
62567204 | 13010 | # Old archive suffix (normally "a"). |
13011 | libext="$libext" | |
a33e1d91 | 13012 | |
62567204 | 13013 | # Shared library suffix (normally ".so"). |
13014 | shrext_cmds='$shrext_cmds' | |
a33e1d91 | 13015 | |
62567204 | 13016 | # Executable file suffix (normally ""). |
13017 | exeext="$exeext" | |
a33e1d91 | 13018 | |
62567204 | 13019 | # Additional compiler flags for building library objects. |
13020 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
13021 | pic_mode=$pic_mode | |
a33e1d91 | 13022 | |
62567204 | 13023 | # What is the maximum length of a command? |
13024 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
a33e1d91 | 13025 | |
62567204 | 13026 | # Does compiler simultaneously support -c and -o options? |
13027 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
a33e1d91 | 13028 | |
62567204 | 13029 | # Must we lock files when doing compilation? |
13030 | need_locks=$lt_need_locks | |
a33e1d91 | 13031 | |
62567204 | 13032 | # Do we need the lib prefix for modules? |
13033 | need_lib_prefix=$need_lib_prefix | |
a33e1d91 | 13034 | |
62567204 | 13035 | # Do we need a version for libraries? |
13036 | need_version=$need_version | |
a33e1d91 | 13037 | |
62567204 | 13038 | # Whether dlopen is supported. |
13039 | dlopen_support=$enable_dlopen | |
a33e1d91 | 13040 | |
62567204 | 13041 | # Whether dlopen of programs is supported. |
13042 | dlopen_self=$enable_dlopen_self | |
a33e1d91 | 13043 | |
62567204 | 13044 | # Whether dlopen of statically linked programs is supported. |
13045 | dlopen_self_static=$enable_dlopen_self_static | |
a33e1d91 | 13046 | |
62567204 | 13047 | # Compiler flag to prevent dynamic linking. |
13048 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
a33e1d91 | 13049 | |
62567204 | 13050 | # Compiler flag to turn off builtin functions. |
13051 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
a33e1d91 | 13052 | |
62567204 | 13053 | # Compiler flag to allow reflexive dlopens. |
13054 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
a33e1d91 | 13055 | |
62567204 | 13056 | # Compiler flag to generate shared objects directly from archives. |
13057 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
a33e1d91 | 13058 | |
62567204 | 13059 | # Compiler flag to generate thread-safe objects. |
13060 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | |
a33e1d91 | 13061 | |
62567204 | 13062 | # Library versioning type. |
13063 | version_type=$version_type | |
a33e1d91 | 13064 | |
62567204 | 13065 | # Format of library name prefix. |
13066 | libname_spec=$lt_libname_spec | |
a33e1d91 | 13067 | |
62567204 | 13068 | # List of archive names. First name is the real one, the rest are links. |
13069 | # The last name is the one that the linker finds with -lNAME. | |
13070 | library_names_spec=$lt_library_names_spec | |
a33e1d91 | 13071 | |
62567204 | 13072 | # The coded name of the library, if different from the real name. |
13073 | soname_spec=$lt_soname_spec | |
a33e1d91 | 13074 | |
62567204 | 13075 | # Commands used to build and install an old-style archive. |
13076 | RANLIB=$lt_RANLIB | |
13077 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
13078 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
13079 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
a33e1d91 | 13080 | |
62567204 | 13081 | # Create an old-style archive from a shared archive. |
13082 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
a33e1d91 | 13083 | |
62567204 | 13084 | # Create a temporary old-style archive to link instead of a shared archive. |
13085 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
a33e1d91 | 13086 | |
62567204 | 13087 | # Commands used to build and install a shared archive. |
13088 | archive_cmds=$lt_archive_cmds_CXX | |
13089 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
13090 | postinstall_cmds=$lt_postinstall_cmds | |
13091 | postuninstall_cmds=$lt_postuninstall_cmds | |
a33e1d91 | 13092 | |
62567204 | 13093 | # Commands used to build a loadable module (assumed same as above if empty) |
13094 | module_cmds=$lt_module_cmds_CXX | |
13095 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
a33e1d91 | 13096 | |
62567204 | 13097 | # Commands to strip libraries. |
13098 | old_striplib=$lt_old_striplib | |
13099 | striplib=$lt_striplib | |
a33e1d91 | 13100 | |
62567204 | 13101 | # Dependencies to place before the objects being linked to create a |
13102 | # shared library. | |
13103 | predep_objects=$lt_predep_objects_CXX | |
a33e1d91 | 13104 | |
62567204 | 13105 | # Dependencies to place after the objects being linked to create a |
13106 | # shared library. | |
13107 | postdep_objects=$lt_postdep_objects_CXX | |
a33e1d91 | 13108 | |
62567204 | 13109 | # Dependencies to place before the objects being linked to create a |
13110 | # shared library. | |
13111 | predeps=$lt_predeps_CXX | |
a33e1d91 | 13112 | |
62567204 | 13113 | # Dependencies to place after the objects being linked to create a |
13114 | # shared library. | |
13115 | postdeps=$lt_postdeps_CXX | |
a33e1d91 | 13116 | |
62567204 | 13117 | # The library search path used internally by the compiler when linking |
13118 | # a shared library. | |
13119 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
a33e1d91 | 13120 | |
62567204 | 13121 | # Method to check whether dependent libraries are shared objects. |
13122 | deplibs_check_method=$lt_deplibs_check_method | |
a33e1d91 | 13123 | |
62567204 | 13124 | # Command to use when deplibs_check_method == file_magic. |
13125 | file_magic_cmd=$lt_file_magic_cmd | |
a33e1d91 | 13126 | |
62567204 | 13127 | # Flag that allows shared libraries with undefined symbols to be built. |
13128 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
a33e1d91 | 13129 | |
62567204 | 13130 | # Flag that forces no undefined symbols. |
13131 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
a33e1d91 | 13132 | |
62567204 | 13133 | # Commands used to finish a libtool library installation in a directory. |
13134 | finish_cmds=$lt_finish_cmds | |
a33e1d91 | 13135 | |
62567204 | 13136 | # Same as above, but a single script fragment to be evaled but not shown. |
13137 | finish_eval=$lt_finish_eval | |
a33e1d91 | 13138 | |
62567204 | 13139 | # Take the output of nm and produce a listing of raw symbols and C names. |
13140 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
a33e1d91 | 13141 | |
62567204 | 13142 | # Transform the output of nm in a proper C declaration |
13143 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
a33e1d91 | 13144 | |
62567204 | 13145 | # Transform the output of nm in a C name address pair |
13146 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
a33e1d91 | 13147 | |
62567204 | 13148 | # This is the shared library runtime path variable. |
13149 | runpath_var=$runpath_var | |
a33e1d91 | 13150 | |
13151 | # This is the shared library path variable. | |
13152 | shlibpath_var=$shlibpath_var | |
13153 | ||
13154 | # Is shlibpath searched before the hard-coded library search path? | |
13155 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
13156 | ||
13157 | # How to hardcode a shared library path into an executable. | |
13158 | hardcode_action=$hardcode_action_CXX | |
13159 | ||
13160 | # Whether we should hardcode library paths into libraries. | |
13161 | hardcode_into_libs=$hardcode_into_libs | |
13162 | ||
13163 | # Flag to hardcode \$libdir into a binary during linking. | |
13164 | # This must work even if \$libdir does not exist. | |
13165 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
13166 | ||
13167 | # If ld is used when linking, flag to hardcode \$libdir into | |
13168 | # a binary during linking. This must work even if \$libdir does | |
13169 | # not exist. | |
13170 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
13171 | ||
13172 | # Whether we need a single -rpath flag with a separated argument. | |
13173 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
13174 | ||
13175 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
13176 | # resulting binary. | |
13177 | hardcode_direct=$hardcode_direct_CXX | |
13178 | ||
13179 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
13180 | # resulting binary. | |
13181 | hardcode_minus_L=$hardcode_minus_L_CXX | |
13182 | ||
13183 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
13184 | # the resulting binary. | |
13185 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
13186 | ||
13187 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
13188 | # and all subsequent libraries and executables linked against it. | |
13189 | hardcode_automatic=$hardcode_automatic_CXX | |
13190 | ||
13191 | # Variables whose values should be saved in libtool wrapper scripts and | |
13192 | # restored at relink time. | |
13193 | variables_saved_for_relink="$variables_saved_for_relink" | |
13194 | ||
13195 | # Whether libtool must link a program against all its dependency libraries. | |
13196 | link_all_deplibs=$link_all_deplibs_CXX | |
13197 | ||
13198 | # Compile-time system search path for libraries | |
13199 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
13200 | ||
13201 | # Run-time system search path for libraries | |
13202 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
13203 | ||
13204 | # Fix the shell variable \$srcfile for the compiler. | |
13205 | fix_srcfile_path="$fix_srcfile_path_CXX" | |
13206 | ||
13207 | # Set to yes if exported symbols are required. | |
13208 | always_export_symbols=$always_export_symbols_CXX | |
13209 | ||
13210 | # The commands to list exported symbols. | |
13211 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
13212 | ||
13213 | # The commands to extract the exported symbol list from a shared archive. | |
13214 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
13215 | ||
13216 | # Symbols that should not be listed in the preloaded symbols. | |
13217 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
13218 | ||
13219 | # Symbols that must always be exported. | |
13220 | include_expsyms=$lt_include_expsyms_CXX | |
13221 | ||
13222 | # ### END LIBTOOL TAG CONFIG: $tagname | |
13223 | ||
13224 | __EOF__ | |
13225 | ||
13226 | ||
13227 | else | |
13228 | # If there is no Makefile yet, we rely on a make rule to execute | |
13229 | # `config.status --recheck' to rerun these tests and create the | |
13230 | # libtool script then. | |
13231 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
13232 | if test -f "$ltmain_in"; then | |
13233 | test -f Makefile && make "$ltmain" | |
13234 | fi | |
13235 | fi | |
13236 | ||
13237 | ||
13238 | ac_ext=c | |
13239 | ac_cpp='$CPP $CPPFLAGS' | |
13240 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
13241 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13242 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
13243 | ||
13244 | CC=$lt_save_CC | |
13245 | LDCXX=$LD | |
13246 | LD=$lt_save_LD | |
13247 | GCC=$lt_save_GCC | |
13248 | with_gnu_ldcxx=$with_gnu_ld | |
13249 | with_gnu_ld=$lt_save_with_gnu_ld | |
13250 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
13251 | lt_cv_path_LD=$lt_save_path_LD | |
13252 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
13253 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
13254 | ||
13255 | else | |
13256 | tagname="" | |
13257 | fi | |
13258 | ;; | |
13259 | ||
13260 | F77) | |
13261 | if test -n "$F77" && test "X$F77" != "Xno"; then | |
13262 | ||
13263 | ac_ext=f | |
13264 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
13265 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
13266 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
13267 | ||
13268 | ||
13269 | archive_cmds_need_lc_F77=no | |
13270 | allow_undefined_flag_F77= | |
13271 | always_export_symbols_F77=no | |
13272 | archive_expsym_cmds_F77= | |
13273 | export_dynamic_flag_spec_F77= | |
13274 | hardcode_direct_F77=no | |
13275 | hardcode_libdir_flag_spec_F77= | |
13276 | hardcode_libdir_flag_spec_ld_F77= | |
13277 | hardcode_libdir_separator_F77= | |
13278 | hardcode_minus_L_F77=no | |
13279 | hardcode_automatic_F77=no | |
13280 | module_cmds_F77= | |
13281 | module_expsym_cmds_F77= | |
13282 | link_all_deplibs_F77=unknown | |
13283 | old_archive_cmds_F77=$old_archive_cmds | |
13284 | no_undefined_flag_F77= | |
13285 | whole_archive_flag_spec_F77= | |
13286 | enable_shared_with_static_runtimes_F77=no | |
13287 | ||
13288 | # Source file extension for f77 test sources. | |
13289 | ac_ext=f | |
13290 | ||
13291 | # Object file extension for compiled f77 test sources. | |
13292 | objext=o | |
13293 | objext_F77=$objext | |
13294 | ||
13295 | # Code to be used in simple compile tests | |
13296 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" | |
13297 | ||
13298 | # Code to be used in simple link tests | |
13299 | lt_simple_link_test_code=" program t\n end\n" | |
13300 | ||
13301 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
13302 | ||
13303 | # If no C compiler was specified, use CC. | |
13304 | LTCC=${LTCC-"$CC"} | |
13305 | ||
62567204 | 13306 | # If no C compiler flags were specified, use CFLAGS. |
13307 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
13308 | ||
a33e1d91 | 13309 | # Allow CC to be a program name with arguments. |
13310 | compiler=$CC | |
13311 | ||
13312 | ||
087278d6 | 13313 | # save warnings/boilerplate of simple test code |
13314 | ac_outfile=conftest.$ac_objext | |
13315 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
62567204 | 13316 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
087278d6 | 13317 | _lt_compiler_boilerplate=`cat conftest.err` |
13318 | $rm conftest* | |
13319 | ||
13320 | ac_outfile=conftest.$ac_objext | |
13321 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
62567204 | 13322 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
087278d6 | 13323 | _lt_linker_boilerplate=`cat conftest.err` |
13324 | $rm conftest* | |
13325 | ||
13326 | ||
a33e1d91 | 13327 | # Allow CC to be a program name with arguments. |
13328 | lt_save_CC="$CC" | |
13329 | CC=${F77-"f77"} | |
13330 | compiler=$CC | |
13331 | compiler_F77=$CC | |
087278d6 | 13332 | for cc_temp in $compiler""; do |
13333 | case $cc_temp in | |
13334 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
13335 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
13336 | \-*) ;; | |
13337 | *) break;; | |
13338 | esac | |
13339 | done | |
13340 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
13341 | ||
a33e1d91 | 13342 | |
13343 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
13344 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
13345 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
13346 | echo "${ECHO_T}$can_build_shared" >&6 | |
13347 | ||
13348 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
13349 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
13350 | test "$can_build_shared" = "no" && enable_shared=no | |
13351 | ||
13352 | # On AIX, shared libraries and static libraries use the same namespace, and | |
13353 | # are all built from PIC. | |
693f5c2e | 13354 | case $host_os in |
a33e1d91 | 13355 | aix3*) |
13356 | test "$enable_shared" = yes && enable_static=no | |
13357 | if test -n "$RANLIB"; then | |
13358 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
13359 | postinstall_cmds='$RANLIB $lib' | |
13360 | fi | |
13361 | ;; | |
13362 | aix4* | aix5*) | |
087278d6 | 13363 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13364 | test "$enable_shared" = yes && enable_static=no | |
13365 | fi | |
a33e1d91 | 13366 | ;; |
13367 | esac | |
13368 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
13369 | echo "${ECHO_T}$enable_shared" >&6 | |
13370 | ||
13371 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
13372 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
13373 | # Make sure either enable_shared or enable_static is yes. | |
13374 | test "$enable_shared" = yes || enable_static=yes | |
13375 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
13376 | echo "${ECHO_T}$enable_static" >&6 | |
13377 | ||
a33e1d91 | 13378 | GCC_F77="$G77" |
13379 | LD_F77="$LD" | |
13380 | ||
13381 | lt_prog_compiler_wl_F77= | |
13382 | lt_prog_compiler_pic_F77= | |
13383 | lt_prog_compiler_static_F77= | |
13384 | ||
13385 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
13386 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
13387 | ||
13388 | if test "$GCC" = yes; then | |
13389 | lt_prog_compiler_wl_F77='-Wl,' | |
13390 | lt_prog_compiler_static_F77='-static' | |
13391 | ||
13392 | case $host_os in | |
13393 | aix*) | |
13394 | # All AIX code is PIC. | |
13395 | if test "$host_cpu" = ia64; then | |
13396 | # AIX 5 now supports IA64 processor | |
13397 | lt_prog_compiler_static_F77='-Bstatic' | |
13398 | fi | |
13399 | ;; | |
13400 | ||
13401 | amigaos*) | |
13402 | # FIXME: we need at least 68020 code to build shared libraries, but | |
13403 | # adding the `-m68020' flag to GCC prevents building anything better, | |
13404 | # like `-m68040'. | |
13405 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | |
13406 | ;; | |
13407 | ||
13408 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13409 | # PIC is the default for these OSes. | |
13410 | ;; | |
13411 | ||
13412 | mingw* | pw32* | os2*) | |
13413 | # This hack is so that the source file can tell whether it is being | |
13414 | # built for inclusion in a dll (and should export symbols for example). | |
13415 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
13416 | ;; | |
13417 | ||
13418 | darwin* | rhapsody*) | |
13419 | # PIC is the default on this platform | |
13420 | # Common symbols not allowed in MH_DYLIB files | |
13421 | lt_prog_compiler_pic_F77='-fno-common' | |
13422 | ;; | |
13423 | ||
62567204 | 13424 | interix3*) |
13425 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13426 | # Instead, we relocate shared libraries at runtime. | |
13427 | ;; | |
13428 | ||
a33e1d91 | 13429 | msdosdjgpp*) |
13430 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
13431 | # on systems that don't support them. | |
13432 | lt_prog_compiler_can_build_shared_F77=no | |
13433 | enable_shared=no | |
13434 | ;; | |
13435 | ||
13436 | sysv4*MP*) | |
13437 | if test -d /usr/nec; then | |
13438 | lt_prog_compiler_pic_F77=-Kconform_pic | |
13439 | fi | |
13440 | ;; | |
13441 | ||
13442 | hpux*) | |
13443 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13444 | # not for PA HP-UX. | |
693f5c2e | 13445 | case $host_cpu in |
a33e1d91 | 13446 | hppa*64*|ia64*) |
13447 | # +Z the default | |
13448 | ;; | |
13449 | *) | |
13450 | lt_prog_compiler_pic_F77='-fPIC' | |
13451 | ;; | |
13452 | esac | |
13453 | ;; | |
13454 | ||
13455 | *) | |
13456 | lt_prog_compiler_pic_F77='-fPIC' | |
13457 | ;; | |
13458 | esac | |
13459 | else | |
13460 | # PORTME Check for flag to pass linker flags through the system compiler. | |
13461 | case $host_os in | |
13462 | aix*) | |
13463 | lt_prog_compiler_wl_F77='-Wl,' | |
13464 | if test "$host_cpu" = ia64; then | |
13465 | # AIX 5 now supports IA64 processor | |
13466 | lt_prog_compiler_static_F77='-Bstatic' | |
13467 | else | |
13468 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | |
13469 | fi | |
13470 | ;; | |
631008fb | 13471 | darwin*) |
13472 | # PIC is the default on this platform | |
13473 | # Common symbols not allowed in MH_DYLIB files | |
087278d6 | 13474 | case $cc_basename in |
631008fb | 13475 | xlc*) |
13476 | lt_prog_compiler_pic_F77='-qnocommon' | |
13477 | lt_prog_compiler_wl_F77='-Wl,' | |
13478 | ;; | |
13479 | esac | |
13480 | ;; | |
a33e1d91 | 13481 | |
13482 | mingw* | pw32* | os2*) | |
13483 | # This hack is so that the source file can tell whether it is being | |
13484 | # built for inclusion in a dll (and should export symbols for example). | |
13485 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
13486 | ;; | |
13487 | ||
13488 | hpux9* | hpux10* | hpux11*) | |
13489 | lt_prog_compiler_wl_F77='-Wl,' | |
13490 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13491 | # not for PA HP-UX. | |
693f5c2e | 13492 | case $host_cpu in |
a33e1d91 | 13493 | hppa*64*|ia64*) |
13494 | # +Z the default | |
13495 | ;; | |
13496 | *) | |
13497 | lt_prog_compiler_pic_F77='+Z' | |
13498 | ;; | |
13499 | esac | |
13500 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
13501 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | |
13502 | ;; | |
13503 | ||
13504 | irix5* | irix6* | nonstopux*) | |
13505 | lt_prog_compiler_wl_F77='-Wl,' | |
13506 | # PIC (with -KPIC) is the default. | |
13507 | lt_prog_compiler_static_F77='-non_shared' | |
13508 | ;; | |
13509 | ||
13510 | newsos6) | |
13511 | lt_prog_compiler_pic_F77='-KPIC' | |
13512 | lt_prog_compiler_static_F77='-Bstatic' | |
13513 | ;; | |
13514 | ||
13515 | linux*) | |
087278d6 | 13516 | case $cc_basename in |
a33e1d91 | 13517 | icc* | ecc*) |
13518 | lt_prog_compiler_wl_F77='-Wl,' | |
13519 | lt_prog_compiler_pic_F77='-KPIC' | |
13520 | lt_prog_compiler_static_F77='-static' | |
13521 | ;; | |
693f5c2e | 13522 | pgcc* | pgf77* | pgf90* | pgf95*) |
087278d6 | 13523 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13524 | # which looks to be a dead project) | |
13525 | lt_prog_compiler_wl_F77='-Wl,' | |
13526 | lt_prog_compiler_pic_F77='-fpic' | |
693f5c2e | 13527 | lt_prog_compiler_static_F77='-Bstatic' |
087278d6 | 13528 | ;; |
a33e1d91 | 13529 | ccc*) |
13530 | lt_prog_compiler_wl_F77='-Wl,' | |
13531 | # All Alpha code is PIC. | |
13532 | lt_prog_compiler_static_F77='-non_shared' | |
13533 | ;; | |
13534 | esac | |
13535 | ;; | |
13536 | ||
13537 | osf3* | osf4* | osf5*) | |
13538 | lt_prog_compiler_wl_F77='-Wl,' | |
13539 | # All OSF/1 code is PIC. | |
13540 | lt_prog_compiler_static_F77='-non_shared' | |
13541 | ;; | |
13542 | ||
a33e1d91 | 13543 | solaris*) |
a33e1d91 | 13544 | lt_prog_compiler_pic_F77='-KPIC' |
13545 | lt_prog_compiler_static_F77='-Bstatic' | |
087278d6 | 13546 | case $cc_basename in |
13547 | f77* | f90* | f95*) | |
13548 | lt_prog_compiler_wl_F77='-Qoption ld ';; | |
13549 | *) | |
13550 | lt_prog_compiler_wl_F77='-Wl,';; | |
13551 | esac | |
a33e1d91 | 13552 | ;; |
13553 | ||
13554 | sunos4*) | |
13555 | lt_prog_compiler_wl_F77='-Qoption ld ' | |
13556 | lt_prog_compiler_pic_F77='-PIC' | |
13557 | lt_prog_compiler_static_F77='-Bstatic' | |
13558 | ;; | |
13559 | ||
62567204 | 13560 | sysv4 | sysv4.2uw2* | sysv4.3*) |
a33e1d91 | 13561 | lt_prog_compiler_wl_F77='-Wl,' |
13562 | lt_prog_compiler_pic_F77='-KPIC' | |
13563 | lt_prog_compiler_static_F77='-Bstatic' | |
13564 | ;; | |
13565 | ||
13566 | sysv4*MP*) | |
13567 | if test -d /usr/nec ;then | |
13568 | lt_prog_compiler_pic_F77='-Kconform_pic' | |
13569 | lt_prog_compiler_static_F77='-Bstatic' | |
13570 | fi | |
13571 | ;; | |
13572 | ||
62567204 | 13573 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
13574 | lt_prog_compiler_wl_F77='-Wl,' | |
13575 | lt_prog_compiler_pic_F77='-KPIC' | |
13576 | lt_prog_compiler_static_F77='-Bstatic' | |
13577 | ;; | |
13578 | ||
087278d6 | 13579 | unicos*) |
13580 | lt_prog_compiler_wl_F77='-Wl,' | |
13581 | lt_prog_compiler_can_build_shared_F77=no | |
13582 | ;; | |
13583 | ||
a33e1d91 | 13584 | uts4*) |
13585 | lt_prog_compiler_pic_F77='-pic' | |
13586 | lt_prog_compiler_static_F77='-Bstatic' | |
13587 | ;; | |
13588 | ||
13589 | *) | |
13590 | lt_prog_compiler_can_build_shared_F77=no | |
13591 | ;; | |
13592 | esac | |
13593 | fi | |
13594 | ||
13595 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | |
13596 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 | |
13597 | ||
13598 | # | |
13599 | # Check to make sure the PIC flag actually works. | |
13600 | # | |
13601 | if test -n "$lt_prog_compiler_pic_F77"; then | |
13602 | ||
13603 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 | |
13604 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 | |
13605 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | |
13606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13607 | else | |
13608 | lt_prog_compiler_pic_works_F77=no | |
13609 | ac_outfile=conftest.$ac_objext | |
13610 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13611 | lt_compiler_flag="$lt_prog_compiler_pic_F77" | |
13612 | # Insert the option either (1) after the last *FLAGS variable, or | |
13613 | # (2) before a word containing "conftest.", or (3) at the end. | |
13614 | # Note that $ac_compile itself does not contain backslashes and begins | |
13615 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13616 | # The option is referenced via a variable to avoid confusing sed. | |
13617 | lt_compile=`echo "$ac_compile" | $SED \ | |
693f5c2e | 13618 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a33e1d91 | 13619 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13620 | -e 's:$: $lt_compiler_flag:'` | |
00b2804c | 13621 | (eval echo "\"\$as_me:13621: $lt_compile\"" >&5) |
a33e1d91 | 13622 | (eval "$lt_compile" 2>conftest.err) |
13623 | ac_status=$? | |
13624 | cat conftest.err >&5 | |
00b2804c | 13625 | echo "$as_me:13625: \$? = $ac_status" >&5 |
a33e1d91 | 13626 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13627 | # The compiler can only warn and ignore the option if not recognized | |
087278d6 | 13628 | # So say no if there are warnings other than the usual output. |
62567204 | 13629 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
13630 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13631 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
a33e1d91 | 13632 | lt_prog_compiler_pic_works_F77=yes |
13633 | fi | |
13634 | fi | |
13635 | $rm conftest* | |
13636 | ||
13637 | fi | |
13638 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | |
13639 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 | |
13640 | ||
13641 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | |
13642 | case $lt_prog_compiler_pic_F77 in | |
13643 | "" | " "*) ;; | |
13644 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | |
13645 | esac | |
13646 | else | |
13647 | lt_prog_compiler_pic_F77= | |
13648 | lt_prog_compiler_can_build_shared_F77=no | |
13649 | fi | |
13650 | ||
13651 | fi | |
693f5c2e | 13652 | case $host_os in |
a33e1d91 | 13653 | # For platforms which do not support PIC, -DPIC is meaningless: |
13654 | *djgpp*) | |
13655 | lt_prog_compiler_pic_F77= | |
13656 | ;; | |
13657 | *) | |
13658 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | |
13659 | ;; | |
13660 | esac | |
13661 | ||
62567204 | 13662 | # |
13663 | # Check to make sure the static flag actually works. | |
13664 | # | |
13665 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" | |
13666 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
13667 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
13668 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then | |
13669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13670 | else | |
13671 | lt_prog_compiler_static_works_F77=no | |
13672 | save_LDFLAGS="$LDFLAGS" | |
13673 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
13674 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
13675 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
13676 | # The linker can only warn and ignore the option if not recognized | |
13677 | # So say no if there are warnings | |
13678 | if test -s conftest.err; then | |
13679 | # Append any errors to the config.log. | |
13680 | cat conftest.err 1>&5 | |
13681 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
13682 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
13683 | if diff conftest.exp conftest.er2 >/dev/null; then | |
13684 | lt_prog_compiler_static_works_F77=yes | |
13685 | fi | |
13686 | else | |
13687 | lt_prog_compiler_static_works_F77=yes | |
13688 | fi | |
13689 | fi | |
13690 | $rm conftest* | |
13691 | LDFLAGS="$save_LDFLAGS" | |
13692 | ||
13693 | fi | |
13694 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 | |
13695 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6 | |
13696 | ||
13697 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then | |
13698 | : | |
13699 | else | |
13700 | lt_prog_compiler_static_F77= | |
13701 | fi | |
13702 | ||
13703 | ||
a33e1d91 | 13704 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
13705 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
13706 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | |
13707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13708 | else | |
13709 | lt_cv_prog_compiler_c_o_F77=no | |
13710 | $rm -r conftest 2>/dev/null | |
13711 | mkdir conftest | |
13712 | cd conftest | |
13713 | mkdir out | |
13714 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
13715 | ||
13716 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
13717 | # Insert the option either (1) after the last *FLAGS variable, or | |
13718 | # (2) before a word containing "conftest.", or (3) at the end. | |
13719 | # Note that $ac_compile itself does not contain backslashes and begins | |
13720 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
13721 | lt_compile=`echo "$ac_compile" | $SED \ | |
693f5c2e | 13722 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a33e1d91 | 13723 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13724 | -e 's:$: $lt_compiler_flag:'` | |
00b2804c | 13725 | (eval echo "\"\$as_me:13725: $lt_compile\"" >&5) |
a33e1d91 | 13726 | (eval "$lt_compile" 2>out/conftest.err) |
13727 | ac_status=$? | |
13728 | cat out/conftest.err >&5 | |
00b2804c | 13729 | echo "$as_me:13729: \$? = $ac_status" >&5 |
a33e1d91 | 13730 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
13731 | then | |
13732 | # The compiler can only warn and ignore the option if not recognized | |
13733 | # So say no if there are warnings | |
62567204 | 13734 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
13735 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
13736 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
a33e1d91 | 13737 | lt_cv_prog_compiler_c_o_F77=yes |
13738 | fi | |
13739 | fi | |
693f5c2e | 13740 | chmod u+w . 2>&5 |
a33e1d91 | 13741 | $rm conftest* |
13742 | # SGI C++ compiler will create directory out/ii_files/ for | |
13743 | # template instantiation | |
13744 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
13745 | $rm out/* && rmdir out | |
13746 | cd .. | |
13747 | rmdir conftest | |
13748 | $rm conftest* | |
13749 | ||
13750 | fi | |
13751 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | |
13752 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 | |
13753 | ||
13754 | ||
13755 | hard_links="nottested" | |
13756 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | |
13757 | # do not overwrite the value of need_locks provided by the user | |
13758 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
13759 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
13760 | hard_links=yes | |
13761 | $rm conftest* | |
13762 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13763 | touch conftest.a | |
13764 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
13765 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
13766 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
13767 | echo "${ECHO_T}$hard_links" >&6 | |
13768 | if test "$hard_links" = no; then | |
13769 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
13770 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
13771 | need_locks=warn | |
13772 | fi | |
13773 | else | |
13774 | need_locks=no | |
13775 | fi | |
13776 | ||
13777 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
13778 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
13779 | ||
13780 | runpath_var= | |
13781 | allow_undefined_flag_F77= | |
13782 | enable_shared_with_static_runtimes_F77=no | |
13783 | archive_cmds_F77= | |
13784 | archive_expsym_cmds_F77= | |
13785 | old_archive_From_new_cmds_F77= | |
13786 | old_archive_from_expsyms_cmds_F77= | |
13787 | export_dynamic_flag_spec_F77= | |
13788 | whole_archive_flag_spec_F77= | |
13789 | thread_safe_flag_spec_F77= | |
13790 | hardcode_libdir_flag_spec_F77= | |
13791 | hardcode_libdir_flag_spec_ld_F77= | |
13792 | hardcode_libdir_separator_F77= | |
13793 | hardcode_direct_F77=no | |
13794 | hardcode_minus_L_F77=no | |
13795 | hardcode_shlibpath_var_F77=unsupported | |
13796 | link_all_deplibs_F77=unknown | |
13797 | hardcode_automatic_F77=no | |
13798 | module_cmds_F77= | |
13799 | module_expsym_cmds_F77= | |
13800 | always_export_symbols_F77=no | |
13801 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
13802 | # include_expsyms should be a list of space-separated symbols to be *always* | |
13803 | # included in the symbol list | |
13804 | include_expsyms_F77= | |
13805 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
13806 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
13807 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
13808 | # as well as any symbol that contains `d'. | |
13809 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | |
13810 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
13811 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
13812 | # the symbol is explicitly referenced. Since portable code cannot | |
13813 | # rely on this symbol name, it's probably fine to never include it in | |
13814 | # preloaded symbol tables. | |
13815 | extract_expsyms_cmds= | |
087278d6 | 13816 | # Just being paranoid about ensuring that cc_basename is set. |
13817 | for cc_temp in $compiler""; do | |
13818 | case $cc_temp in | |
13819 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
13820 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
13821 | \-*) ;; | |
13822 | *) break;; | |
13823 | esac | |
13824 | done | |
13825 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
a33e1d91 | 13826 | |
13827 | case $host_os in | |
13828 | cygwin* | mingw* | pw32*) | |
13829 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
13830 | # When not using gcc, we currently assume that we are using | |
13831 | # Microsoft Visual C++. | |
13832 | if test "$GCC" != yes; then | |
13833 | with_gnu_ld=no | |
13834 | fi | |
13835 | ;; | |
62567204 | 13836 | interix*) |
13837 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
13838 | with_gnu_ld=yes | |
13839 | ;; | |
a33e1d91 | 13840 | openbsd*) |
13841 | with_gnu_ld=no | |
13842 | ;; | |
13843 | esac | |
13844 | ||
13845 | ld_shlibs_F77=yes | |
13846 | if test "$with_gnu_ld" = yes; then | |
13847 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
13848 | wlarc='${wl}' | |
13849 | ||
087278d6 | 13850 | # Set some defaults for GNU ld with shared library support. These |
13851 | # are reset later if shared libraries are not supported. Putting them | |
13852 | # here allows them to be overridden if necessary. | |
13853 | runpath_var=LD_RUN_PATH | |
13854 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | |
13855 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' | |
13856 | # ancient GNU ld didn't support --whole-archive et. al. | |
13857 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
13858 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13859 | else | |
13860 | whole_archive_flag_spec_F77= | |
13861 | fi | |
13862 | supports_anon_versioning=no | |
13863 | case `$LD -v 2>/dev/null` in | |
13864 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
13865 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
13866 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
13867 | *\ 2.11.*) ;; # other 2.11 versions | |
13868 | *) supports_anon_versioning=yes ;; | |
13869 | esac | |
13870 | ||
a33e1d91 | 13871 | # See if GNU ld supports shared libraries. |
13872 | case $host_os in | |
13873 | aix3* | aix4* | aix5*) | |
13874 | # On AIX/PPC, the GNU linker is very broken | |
13875 | if test "$host_cpu" != ia64; then | |
13876 | ld_shlibs_F77=no | |
13877 | cat <<EOF 1>&2 | |
13878 | ||
13879 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
13880 | *** to be unable to reliably create shared libraries on AIX. | |
13881 | *** Therefore, libtool is disabling shared libraries support. If you | |
13882 | *** really care for shared libraries, you may want to modify your PATH | |
13883 | *** so that a non-GNU linker is found, and then restart. | |
13884 | ||
13885 | EOF | |
13886 | fi | |
13887 | ;; | |
13888 | ||
13889 | amigaos*) | |
13890 | archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
13891 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
13892 | hardcode_minus_L_F77=yes | |
13893 | ||
13894 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
13895 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
13896 | # to version 4, is to share data among multiple programs linked | |
13897 | # with the same dynamic library. Since this doesn't match the | |
13898 | # behavior of shared libraries on other platforms, we can't use | |
13899 | # them. | |
13900 | ld_shlibs_F77=no | |
13901 | ;; | |
13902 | ||
13903 | beos*) | |
13904 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13905 | allow_undefined_flag_F77=unsupported | |
13906 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13907 | # support --undefined. This deserves some investigation. FIXME | |
13908 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13909 | else | |
13910 | ld_shlibs_F77=no | |
13911 | fi | |
13912 | ;; | |
13913 | ||
13914 | cygwin* | mingw* | pw32*) | |
13915 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | |
13916 | # as there is no search path for DLLs. | |
13917 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
13918 | allow_undefined_flag_F77=unsupported | |
13919 | always_export_symbols_F77=no | |
13920 | enable_shared_with_static_runtimes_F77=yes | |
087278d6 | 13921 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
a33e1d91 | 13922 | |
13923 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
62567204 | 13924 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
a33e1d91 | 13925 | # If the export-symbols file already is a .def file (1st line |
13926 | # is EXPORTS), use it as is; otherwise, prepend... | |
13927 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13928 | cp $export_symbols $output_objdir/$soname.def; | |
13929 | else | |
13930 | echo EXPORTS > $output_objdir/$soname.def; | |
13931 | cat $export_symbols >> $output_objdir/$soname.def; | |
13932 | fi~ | |
62567204 | 13933 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
a33e1d91 | 13934 | else |
087278d6 | 13935 | ld_shlibs_F77=no |
13936 | fi | |
13937 | ;; | |
13938 | ||
62567204 | 13939 | interix3*) |
13940 | hardcode_direct_F77=no | |
13941 | hardcode_shlibpath_var_F77=no | |
13942 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
13943 | export_dynamic_flag_spec_F77='${wl}-E' | |
13944 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
13945 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
13946 | # default) and relocated if they conflict, which is a slow very memory | |
13947 | # consuming and fragmenting process. To avoid this, we pick a random, | |
13948 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
13949 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
13950 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
13951 | archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
13952 | ;; | |
13953 | ||
087278d6 | 13954 | linux*) |
13955 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13956 | tmp_addflag= | |
13957 | case $cc_basename,$host_cpu in | |
13958 | pgcc*) # Portland Group C compiler | |
693f5c2e | 13959 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
087278d6 | 13960 | tmp_addflag=' $pic_flag' |
13961 | ;; | |
693f5c2e | 13962 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
13963 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
087278d6 | 13964 | tmp_addflag=' $pic_flag -Mnomain' ;; |
13965 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
13966 | tmp_addflag=' -i_dynamic' ;; | |
13967 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
13968 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
13969 | ifc* | ifort*) # Intel Fortran compiler | |
13970 | tmp_addflag=' -nofor_main' ;; | |
13971 | esac | |
13972 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13973 | ||
13974 | if test $supports_anon_versioning = yes; then | |
13975 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ | |
13976 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13977 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13978 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13979 | fi | |
13980 | else | |
13981 | ld_shlibs_F77=no | |
a33e1d91 | 13982 | fi |
13983 | ;; | |
13984 | ||
6263d81f | 13985 | netbsd*) |
a33e1d91 | 13986 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
13987 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
13988 | wlarc= | |
13989 | else | |
13990 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13991 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13992 | fi | |
13993 | ;; | |
13994 | ||
62567204 | 13995 | solaris*) |
a33e1d91 | 13996 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
13997 | ld_shlibs_F77=no | |
13998 | cat <<EOF 1>&2 | |
13999 | ||
14000 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
14001 | *** create shared libraries on Solaris systems. Therefore, libtool | |
14002 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
14003 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
14004 | *** your PATH or compiler configuration so that the native linker is | |
14005 | *** used, and then restart. | |
14006 | ||
14007 | EOF | |
14008 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
14009 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14010 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14011 | else | |
14012 | ld_shlibs_F77=no | |
14013 | fi | |
14014 | ;; | |
14015 | ||
62567204 | 14016 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
14017 | case `$LD -v 2>&1` in | |
14018 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
14019 | ld_shlibs_F77=no | |
14020 | cat <<_LT_EOF 1>&2 | |
14021 | ||
14022 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
14023 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
14024 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
14025 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
14026 | *** your PATH or compiler configuration so that the native linker is | |
14027 | *** used, and then restart. | |
14028 | ||
14029 | _LT_EOF | |
14030 | ;; | |
14031 | *) | |
14032 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
14033 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
14034 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
14035 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
14036 | else | |
14037 | ld_shlibs_F77=no | |
14038 | fi | |
14039 | ;; | |
14040 | esac | |
14041 | ;; | |
14042 | ||
a33e1d91 | 14043 | sunos4*) |
14044 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14045 | wlarc= | |
14046 | hardcode_direct_F77=yes | |
14047 | hardcode_shlibpath_var_F77=no | |
14048 | ;; | |
14049 | ||
a33e1d91 | 14050 | *) |
14051 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
14052 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
14053 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
14054 | else | |
14055 | ld_shlibs_F77=no | |
14056 | fi | |
14057 | ;; | |
14058 | esac | |
14059 | ||
087278d6 | 14060 | if test "$ld_shlibs_F77" = no; then |
14061 | runpath_var= | |
14062 | hardcode_libdir_flag_spec_F77= | |
14063 | export_dynamic_flag_spec_F77= | |
14064 | whole_archive_flag_spec_F77= | |
a33e1d91 | 14065 | fi |
14066 | else | |
14067 | # PORTME fill in a description of your system's linker (not GNU ld) | |
14068 | case $host_os in | |
14069 | aix3*) | |
14070 | allow_undefined_flag_F77=unsupported | |
14071 | always_export_symbols_F77=yes | |
14072 | archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
14073 | # Note: this linker hardcodes the directories in LIBPATH if there | |
14074 | # are no directories specified by -L. | |
14075 | hardcode_minus_L_F77=yes | |
62567204 | 14076 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
a33e1d91 | 14077 | # Neither direct hardcoding nor static linking is supported with a |
14078 | # broken collect2. | |
14079 | hardcode_direct_F77=unsupported | |
14080 | fi | |
14081 | ;; | |
14082 | ||
14083 | aix4* | aix5*) | |
14084 | if test "$host_cpu" = ia64; then | |
14085 | # On IA64, the linker does run time linking by default, so we don't | |
14086 | # have to do anything special. | |
14087 | aix_use_runtimelinking=no | |
14088 | exp_sym_flag='-Bexport' | |
14089 | no_entry_flag="" | |
14090 | else | |
14091 | # If we're using GNU nm, then we don't want the "-C" option. | |
14092 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
14093 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
14094 | export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
14095 | else | |
14096 | export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
14097 | fi | |
14098 | aix_use_runtimelinking=no | |
14099 | ||
14100 | # Test if we are trying to use run time linking or normal | |
14101 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
14102 | # need to do runtime linking. | |
14103 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
14104 | for ld_flag in $LDFLAGS; do | |
14105 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
14106 | aix_use_runtimelinking=yes | |
14107 | break | |
14108 | fi | |
14109 | done | |
62567204 | 14110 | ;; |
a33e1d91 | 14111 | esac |
14112 | ||
14113 | exp_sym_flag='-bexport' | |
14114 | no_entry_flag='-bnoentry' | |
14115 | fi | |
14116 | ||
14117 | # When large executables or shared objects are built, AIX ld can | |
14118 | # have problems creating the table of contents. If linking a library | |
14119 | # or program results in "error TOC overflow" add -mminimal-toc to | |
14120 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
14121 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
14122 | ||
14123 | archive_cmds_F77='' | |
14124 | hardcode_direct_F77=yes | |
14125 | hardcode_libdir_separator_F77=':' | |
14126 | link_all_deplibs_F77=yes | |
14127 | ||
14128 | if test "$GCC" = yes; then | |
087278d6 | 14129 | case $host_os in aix4.[012]|aix4.[012].*) |
a33e1d91 | 14130 | # We only want to do this on AIX 4.2 and lower, the check |
14131 | # below for broken collect2 doesn't work under 4.3+ | |
14132 | collect2name=`${CC} -print-prog-name=collect2` | |
14133 | if test -f "$collect2name" && \ | |
14134 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
14135 | then | |
14136 | # We have reworked collect2 | |
14137 | hardcode_direct_F77=yes | |
14138 | else | |
14139 | # We have old collect2 | |
14140 | hardcode_direct_F77=unsupported | |
14141 | # It fails to find uninstalled libraries when the uninstalled | |
14142 | # path is not listed in the libpath. Setting hardcode_minus_L | |
14143 | # to unsupported forces relinking | |
14144 | hardcode_minus_L_F77=yes | |
14145 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
14146 | hardcode_libdir_separator_F77= | |
14147 | fi | |
62567204 | 14148 | ;; |
a33e1d91 | 14149 | esac |
14150 | shared_flag='-shared' | |
087278d6 | 14151 | if test "$aix_use_runtimelinking" = yes; then |
14152 | shared_flag="$shared_flag "'${wl}-G' | |
14153 | fi | |
a33e1d91 | 14154 | else |
14155 | # not using gcc | |
14156 | if test "$host_cpu" = ia64; then | |
14157 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
14158 | # chokes on -Wl,-G. The following line is correct: | |
14159 | shared_flag='-G' | |
14160 | else | |
62567204 | 14161 | if test "$aix_use_runtimelinking" = yes; then |
a33e1d91 | 14162 | shared_flag='${wl}-G' |
14163 | else | |
14164 | shared_flag='${wl}-bM:SRE' | |
62567204 | 14165 | fi |
a33e1d91 | 14166 | fi |
14167 | fi | |
14168 | ||
14169 | # It seems that -bexpall does not export symbols beginning with | |
14170 | # underscore (_), so it is better to generate a list of symbols to export. | |
14171 | always_export_symbols_F77=yes | |
14172 | if test "$aix_use_runtimelinking" = yes; then | |
14173 | # Warning - without using the other runtime loading flags (-brtl), | |
14174 | # -berok will link without error, but may produce a broken library. | |
14175 | allow_undefined_flag_F77='-berok' | |
14176 | # Determine the default libpath from the value encoded in an empty executable. | |
14177 | cat >conftest.$ac_ext <<_ACEOF | |
14178 | program main | |
14179 | ||
14180 | end | |
14181 | _ACEOF | |
14182 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 14184 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 14185 | ac_status=$? |
af3004ff | 14186 | grep -v '^ *+' conftest.er1 >conftest.err |
14187 | rm -f conftest.er1 | |
14188 | cat conftest.err >&5 | |
a33e1d91 | 14189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14190 | (exit $ac_status); } && | |
6263d81f | 14191 | { ac_try='test -z "$ac_f77_werror_flag" |
14192 | || test ! -s conftest.err' | |
af3004ff | 14193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14194 | (eval $ac_try) 2>&5 | |
14195 | ac_status=$? | |
14196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14197 | (exit $ac_status); }; } && | |
14198 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 14199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14200 | (eval $ac_try) 2>&5 | |
14201 | ac_status=$? | |
14202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14203 | (exit $ac_status); }; }; then | |
14204 | ||
14205 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14206 | }'` | |
14207 | # Check for a 64-bit object if we didn't find anything. | |
14208 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14209 | }'`; fi | |
14210 | else | |
14211 | echo "$as_me: failed program was:" >&5 | |
14212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14213 | ||
14214 | fi | |
af3004ff | 14215 | rm -f conftest.err conftest.$ac_objext \ |
14216 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 14217 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14218 | ||
14219 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
62567204 | 14220 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
a33e1d91 | 14221 | else |
14222 | if test "$host_cpu" = ia64; then | |
14223 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | |
14224 | allow_undefined_flag_F77="-z nodefs" | |
62567204 | 14225 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
a33e1d91 | 14226 | else |
14227 | # Determine the default libpath from the value encoded in an empty executable. | |
14228 | cat >conftest.$ac_ext <<_ACEOF | |
14229 | program main | |
14230 | ||
14231 | end | |
14232 | _ACEOF | |
14233 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14234 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 14235 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 14236 | ac_status=$? |
af3004ff | 14237 | grep -v '^ *+' conftest.er1 >conftest.err |
14238 | rm -f conftest.er1 | |
14239 | cat conftest.err >&5 | |
a33e1d91 | 14240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14241 | (exit $ac_status); } && | |
6263d81f | 14242 | { ac_try='test -z "$ac_f77_werror_flag" |
14243 | || test ! -s conftest.err' | |
af3004ff | 14244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14245 | (eval $ac_try) 2>&5 | |
14246 | ac_status=$? | |
14247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14248 | (exit $ac_status); }; } && | |
14249 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 14250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14251 | (eval $ac_try) 2>&5 | |
14252 | ac_status=$? | |
14253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14254 | (exit $ac_status); }; }; then | |
14255 | ||
14256 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14257 | }'` | |
14258 | # Check for a 64-bit object if we didn't find anything. | |
14259 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
14260 | }'`; fi | |
14261 | else | |
14262 | echo "$as_me: failed program was:" >&5 | |
14263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14264 | ||
14265 | fi | |
af3004ff | 14266 | rm -f conftest.err conftest.$ac_objext \ |
14267 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 14268 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14269 | ||
14270 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
14271 | # Warning - without using the other run time loading flags, | |
14272 | # -berok will link without error, but may produce a broken library. | |
14273 | no_undefined_flag_F77=' ${wl}-bernotok' | |
14274 | allow_undefined_flag_F77=' ${wl}-berok' | |
a33e1d91 | 14275 | # Exported symbols can be pulled into shared objects from archives |
62567204 | 14276 | whole_archive_flag_spec_F77='$convenience' |
a33e1d91 | 14277 | archive_cmds_need_lc_F77=yes |
693f5c2e | 14278 | # This is similar to how AIX traditionally builds its shared libraries. |
62567204 | 14279 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
a33e1d91 | 14280 | fi |
14281 | fi | |
14282 | ;; | |
14283 | ||
14284 | amigaos*) | |
14285 | archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
14286 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
14287 | hardcode_minus_L_F77=yes | |
14288 | # see comment about different semantics on the GNU ld section | |
14289 | ld_shlibs_F77=no | |
14290 | ;; | |
14291 | ||
631008fb | 14292 | bsdi[45]*) |
a33e1d91 | 14293 | export_dynamic_flag_spec_F77=-rdynamic |
14294 | ;; | |
14295 | ||
14296 | cygwin* | mingw* | pw32*) | |
14297 | # When not using gcc, we currently assume that we are using | |
14298 | # Microsoft Visual C++. | |
14299 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
14300 | # no search path for DLLs. | |
14301 | hardcode_libdir_flag_spec_F77=' ' | |
14302 | allow_undefined_flag_F77=unsupported | |
14303 | # Tell ltmain to make .lib files, not .a files. | |
14304 | libext=lib | |
14305 | # Tell ltmain to make .dll files, not .so files. | |
14306 | shrext_cmds=".dll" | |
14307 | # FIXME: Setting linknames here is a bad hack. | |
14308 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
14309 | # The linker will automatically build a .lib file if we build a DLL. | |
14310 | old_archive_From_new_cmds_F77='true' | |
14311 | # FIXME: Should let the user specify the lib program. | |
14312 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
087278d6 | 14313 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
a33e1d91 | 14314 | enable_shared_with_static_runtimes_F77=yes |
14315 | ;; | |
14316 | ||
14317 | darwin* | rhapsody*) | |
693f5c2e | 14318 | case $host_os in |
631008fb | 14319 | rhapsody* | darwin1.[012]) |
14320 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' | |
14321 | ;; | |
14322 | *) # Darwin 1.3 on | |
14323 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
14324 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
14325 | else | |
14326 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
14327 | 10.[012]) | |
14328 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
14329 | ;; | |
14330 | 10.*) | |
14331 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' | |
14332 | ;; | |
14333 | esac | |
14334 | fi | |
14335 | ;; | |
a33e1d91 | 14336 | esac |
631008fb | 14337 | archive_cmds_need_lc_F77=no |
a33e1d91 | 14338 | hardcode_direct_F77=no |
14339 | hardcode_automatic_F77=yes | |
14340 | hardcode_shlibpath_var_F77=unsupported | |
631008fb | 14341 | whole_archive_flag_spec_F77='' |
a33e1d91 | 14342 | link_all_deplibs_F77=yes |
631008fb | 14343 | if test "$GCC" = yes ; then |
14344 | output_verbose_link_cmd='echo' | |
14345 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
14346 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
693f5c2e | 14347 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
631008fb | 14348 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
14349 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
a33e1d91 | 14350 | else |
087278d6 | 14351 | case $cc_basename in |
631008fb | 14352 | xlc*) |
14353 | output_verbose_link_cmd='echo' | |
14354 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
14355 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
693f5c2e | 14356 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
631008fb | 14357 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
14358 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
14359 | ;; | |
14360 | *) | |
14361 | ld_shlibs_F77=no | |
14362 | ;; | |
14363 | esac | |
a33e1d91 | 14364 | fi |
14365 | ;; | |
14366 | ||
14367 | dgux*) | |
14368 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14369 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
14370 | hardcode_shlibpath_var_F77=no | |
14371 | ;; | |
14372 | ||
14373 | freebsd1*) | |
14374 | ld_shlibs_F77=no | |
14375 | ;; | |
14376 | ||
14377 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
14378 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
14379 | # does not break anything, and helps significantly (at the cost of a little | |
14380 | # extra space). | |
14381 | freebsd2.2*) | |
14382 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
14383 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
14384 | hardcode_direct_F77=yes | |
14385 | hardcode_shlibpath_var_F77=no | |
14386 | ;; | |
14387 | ||
14388 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
14389 | freebsd2*) | |
14390 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14391 | hardcode_direct_F77=yes | |
14392 | hardcode_minus_L_F77=yes | |
14393 | hardcode_shlibpath_var_F77=no | |
14394 | ;; | |
14395 | ||
14396 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
6263d81f | 14397 | freebsd* | kfreebsd*-gnu | dragonfly*) |
a33e1d91 | 14398 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14399 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
14400 | hardcode_direct_F77=yes | |
14401 | hardcode_shlibpath_var_F77=no | |
14402 | ;; | |
14403 | ||
14404 | hpux9*) | |
14405 | if test "$GCC" = yes; then | |
14406 | archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
14407 | else | |
14408 | archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
14409 | fi | |
14410 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14411 | hardcode_libdir_separator_F77=: | |
14412 | hardcode_direct_F77=yes | |
14413 | ||
14414 | # hardcode_minus_L: Not really in the search PATH, | |
14415 | # but as the default location of the library. | |
14416 | hardcode_minus_L_F77=yes | |
14417 | export_dynamic_flag_spec_F77='${wl}-E' | |
14418 | ;; | |
14419 | ||
62567204 | 14420 | hpux10*) |
14421 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
14422 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14423 | else | |
14424 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
14425 | fi | |
14426 | if test "$with_gnu_ld" = no; then | |
14427 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
14428 | hardcode_libdir_separator_F77=: | |
14429 | ||
14430 | hardcode_direct_F77=yes | |
14431 | export_dynamic_flag_spec_F77='${wl}-E' | |
14432 | ||
14433 | # hardcode_minus_L: Not really in the search PATH, | |
14434 | # but as the default location of the library. | |
14435 | hardcode_minus_L_F77=yes | |
14436 | fi | |
14437 | ;; | |
14438 | ||
14439 | hpux11*) | |
a33e1d91 | 14440 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
693f5c2e | 14441 | case $host_cpu in |
62567204 | 14442 | hppa*64*) |
a33e1d91 | 14443 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14444 | ;; | |
62567204 | 14445 | ia64*) |
14446 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
14447 | ;; | |
a33e1d91 | 14448 | *) |
14449 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
14450 | ;; | |
14451 | esac | |
14452 | else | |
693f5c2e | 14453 | case $host_cpu in |
62567204 | 14454 | hppa*64*) |
14455 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14456 | ;; | |
14457 | ia64*) | |
14458 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
a33e1d91 | 14459 | ;; |
14460 | *) | |
62567204 | 14461 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
a33e1d91 | 14462 | ;; |
14463 | esac | |
14464 | fi | |
14465 | if test "$with_gnu_ld" = no; then | |
62567204 | 14466 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14467 | hardcode_libdir_separator_F77=: | |
14468 | ||
693f5c2e | 14469 | case $host_cpu in |
62567204 | 14470 | hppa*64*|ia64*) |
a33e1d91 | 14471 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
a33e1d91 | 14472 | hardcode_direct_F77=no |
14473 | hardcode_shlibpath_var_F77=no | |
a33e1d91 | 14474 | ;; |
14475 | *) | |
a33e1d91 | 14476 | hardcode_direct_F77=yes |
14477 | export_dynamic_flag_spec_F77='${wl}-E' | |
14478 | ||
14479 | # hardcode_minus_L: Not really in the search PATH, | |
14480 | # but as the default location of the library. | |
14481 | hardcode_minus_L_F77=yes | |
14482 | ;; | |
14483 | esac | |
14484 | fi | |
14485 | ;; | |
14486 | ||
14487 | irix5* | irix6* | nonstopux*) | |
14488 | if test "$GCC" = yes; then | |
14489 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
14490 | else | |
14491 | archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
14492 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | |
14493 | fi | |
14494 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14495 | hardcode_libdir_separator_F77=: | |
14496 | link_all_deplibs_F77=yes | |
14497 | ;; | |
14498 | ||
6263d81f | 14499 | netbsd*) |
a33e1d91 | 14500 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14501 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
14502 | else | |
14503 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
14504 | fi | |
14505 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
14506 | hardcode_direct_F77=yes | |
14507 | hardcode_shlibpath_var_F77=no | |
14508 | ;; | |
14509 | ||
14510 | newsos6) | |
14511 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14512 | hardcode_direct_F77=yes | |
14513 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14514 | hardcode_libdir_separator_F77=: | |
14515 | hardcode_shlibpath_var_F77=no | |
14516 | ;; | |
14517 | ||
14518 | openbsd*) | |
14519 | hardcode_direct_F77=yes | |
14520 | hardcode_shlibpath_var_F77=no | |
14521 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14522 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
631008fb | 14523 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
a33e1d91 | 14524 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14525 | export_dynamic_flag_spec_F77='${wl}-E' | |
14526 | else | |
14527 | case $host_os in | |
14528 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
14529 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
14530 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
14531 | ;; | |
14532 | *) | |
14533 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
14534 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
14535 | ;; | |
14536 | esac | |
14537 | fi | |
14538 | ;; | |
14539 | ||
14540 | os2*) | |
14541 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
14542 | hardcode_minus_L_F77=yes | |
14543 | allow_undefined_flag_F77=unsupported | |
14544 | archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
14545 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
14546 | ;; | |
14547 | ||
14548 | osf3*) | |
14549 | if test "$GCC" = yes; then | |
14550 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
14551 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
14552 | else | |
14553 | allow_undefined_flag_F77=' -expect_unresolved \*' | |
14554 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
14555 | fi | |
14556 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14557 | hardcode_libdir_separator_F77=: | |
14558 | ;; | |
14559 | ||
14560 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
14561 | if test "$GCC" = yes; then | |
14562 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
14563 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
14564 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
14565 | else | |
14566 | allow_undefined_flag_F77=' -expect_unresolved \*' | |
14567 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
14568 | archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
087278d6 | 14569 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
a33e1d91 | 14570 | |
14571 | # Both c and cxx compiler support -rpath directly | |
14572 | hardcode_libdir_flag_spec_F77='-rpath $libdir' | |
14573 | fi | |
14574 | hardcode_libdir_separator_F77=: | |
14575 | ;; | |
14576 | ||
a33e1d91 | 14577 | solaris*) |
14578 | no_undefined_flag_F77=' -z text' | |
14579 | if test "$GCC" = yes; then | |
087278d6 | 14580 | wlarc='${wl}' |
a33e1d91 | 14581 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14582 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
14583 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
14584 | else | |
087278d6 | 14585 | wlarc='' |
a33e1d91 | 14586 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14587 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
14588 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
14589 | fi | |
14590 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
14591 | hardcode_shlibpath_var_F77=no | |
14592 | case $host_os in | |
14593 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
087278d6 | 14594 | *) |
14595 | # The compiler driver will combine linker options so we | |
14596 | # cannot just pass the convience library names through | |
14597 | # without $wl, iff we do not link with $LD. | |
14598 | # Luckily, gcc supports the same syntax we need for Sun Studio. | |
14599 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
14600 | case $wlarc in | |
14601 | '') | |
14602 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; | |
14603 | *) | |
14604 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
14605 | esac ;; | |
a33e1d91 | 14606 | esac |
14607 | link_all_deplibs_F77=yes | |
14608 | ;; | |
14609 | ||
14610 | sunos4*) | |
14611 | if test "x$host_vendor" = xsequent; then | |
14612 | # Use $CC to link under sequent, because it throws in some extra .o | |
14613 | # files that make .init and .fini sections work. | |
14614 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
14615 | else | |
14616 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
14617 | fi | |
14618 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
14619 | hardcode_direct_F77=yes | |
14620 | hardcode_minus_L_F77=yes | |
14621 | hardcode_shlibpath_var_F77=no | |
14622 | ;; | |
14623 | ||
14624 | sysv4) | |
14625 | case $host_vendor in | |
14626 | sni) | |
14627 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14628 | hardcode_direct_F77=yes # is this really true??? | |
14629 | ;; | |
14630 | siemens) | |
14631 | ## LD is ld it makes a PLAMLIB | |
14632 | ## CC just makes a GrossModule. | |
14633 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
14634 | reload_cmds_F77='$CC -r -o $output$reload_objs' | |
14635 | hardcode_direct_F77=no | |
14636 | ;; | |
14637 | motorola) | |
14638 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14639 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | |
14640 | ;; | |
14641 | esac | |
14642 | runpath_var='LD_RUN_PATH' | |
14643 | hardcode_shlibpath_var_F77=no | |
14644 | ;; | |
14645 | ||
14646 | sysv4.3*) | |
14647 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14648 | hardcode_shlibpath_var_F77=no | |
14649 | export_dynamic_flag_spec_F77='-Bexport' | |
14650 | ;; | |
14651 | ||
14652 | sysv4*MP*) | |
14653 | if test -d /usr/nec; then | |
14654 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14655 | hardcode_shlibpath_var_F77=no | |
14656 | runpath_var=LD_RUN_PATH | |
14657 | hardcode_runpath_var=yes | |
14658 | ld_shlibs_F77=yes | |
14659 | fi | |
14660 | ;; | |
14661 | ||
62567204 | 14662 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
14663 | no_undefined_flag_F77='${wl}-z,text' | |
14664 | archive_cmds_need_lc_F77=no | |
a33e1d91 | 14665 | hardcode_shlibpath_var_F77=no |
62567204 | 14666 | runpath_var='LD_RUN_PATH' |
a33e1d91 | 14667 | |
a33e1d91 | 14668 | if test "$GCC" = yes; then |
62567204 | 14669 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14670 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a33e1d91 | 14671 | else |
62567204 | 14672 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
14673 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a33e1d91 | 14674 | fi |
a33e1d91 | 14675 | ;; |
14676 | ||
62567204 | 14677 | sysv5* | sco3.2v5* | sco5v6*) |
14678 | # Note: We can NOT use -z defs as we might desire, because we do not | |
14679 | # link with -lc, and that would cause any symbols used from libc to | |
14680 | # always be unresolved, which means just about no library would | |
14681 | # ever link correctly. If we're not using GNU ld we use -z text | |
14682 | # though, which does catch some bad symbols but isn't as heavy-handed | |
14683 | # as -z defs. | |
14684 | no_undefined_flag_F77='${wl}-z,text' | |
14685 | allow_undefined_flag_F77='${wl}-z,nodefs' | |
14686 | archive_cmds_need_lc_F77=no | |
a33e1d91 | 14687 | hardcode_shlibpath_var_F77=no |
62567204 | 14688 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
14689 | hardcode_libdir_separator_F77=':' | |
14690 | link_all_deplibs_F77=yes | |
14691 | export_dynamic_flag_spec_F77='${wl}-Bexport' | |
a33e1d91 | 14692 | runpath_var='LD_RUN_PATH' |
62567204 | 14693 | |
14694 | if test "$GCC" = yes; then | |
14695 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14696 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14697 | else | |
14698 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14699 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
14700 | fi | |
a33e1d91 | 14701 | ;; |
14702 | ||
14703 | uts4*) | |
14704 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
14705 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
14706 | hardcode_shlibpath_var_F77=no | |
14707 | ;; | |
14708 | ||
14709 | *) | |
14710 | ld_shlibs_F77=no | |
14711 | ;; | |
14712 | esac | |
14713 | fi | |
14714 | ||
14715 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | |
14716 | echo "${ECHO_T}$ld_shlibs_F77" >&6 | |
14717 | test "$ld_shlibs_F77" = no && can_build_shared=no | |
14718 | ||
a33e1d91 | 14719 | # |
14720 | # Do we need to explicitly link libc? | |
14721 | # | |
14722 | case "x$archive_cmds_need_lc_F77" in | |
14723 | x|xyes) | |
14724 | # Assume -lc should be added | |
14725 | archive_cmds_need_lc_F77=yes | |
14726 | ||
14727 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14728 | case $archive_cmds_F77 in | |
14729 | *'~'*) | |
14730 | # FIXME: we may have to deal with multi-command sequences. | |
14731 | ;; | |
14732 | '$CC '*) | |
14733 | # Test whether the compiler implicitly links with -lc since on some | |
14734 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14735 | # to ld, don't add -lc before -lgcc. | |
14736 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
14737 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
14738 | $rm conftest* | |
14739 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14740 | ||
14741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14742 | (eval $ac_compile) 2>&5 | |
14743 | ac_status=$? | |
14744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14745 | (exit $ac_status); } 2>conftest.err; then | |
14746 | soname=conftest | |
14747 | lib=conftest | |
14748 | libobjs=conftest.$ac_objext | |
14749 | deplibs= | |
14750 | wl=$lt_prog_compiler_wl_F77 | |
62567204 | 14751 | pic_flag=$lt_prog_compiler_pic_F77 |
a33e1d91 | 14752 | compiler_flags=-v |
14753 | linker_flags=-v | |
14754 | verstring= | |
14755 | output_objdir=. | |
14756 | libname=conftest | |
14757 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | |
14758 | allow_undefined_flag_F77= | |
14759 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
14760 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
14761 | ac_status=$? | |
14762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14763 | (exit $ac_status); } | |
14764 | then | |
14765 | archive_cmds_need_lc_F77=no | |
14766 | else | |
14767 | archive_cmds_need_lc_F77=yes | |
14768 | fi | |
14769 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag | |
14770 | else | |
14771 | cat conftest.err 1>&5 | |
14772 | fi | |
14773 | $rm conftest* | |
14774 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | |
14775 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 | |
14776 | ;; | |
14777 | esac | |
14778 | fi | |
14779 | ;; | |
14780 | esac | |
14781 | ||
14782 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
14783 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
14784 | library_names_spec= | |
14785 | libname_spec='lib$name' | |
14786 | soname_spec= | |
14787 | shrext_cmds=".so" | |
14788 | postinstall_cmds= | |
14789 | postuninstall_cmds= | |
14790 | finish_cmds= | |
14791 | finish_eval= | |
14792 | shlibpath_var= | |
14793 | shlibpath_overrides_runpath=unknown | |
14794 | version_type=none | |
14795 | dynamic_linker="$host_os ld.so" | |
14796 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14797 | if test "$GCC" = yes; then | |
14798 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
14799 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
14800 | # if the path contains ";" then we assume it to be the separator | |
14801 | # otherwise default to the standard path separator (i.e. ":") - it is | |
14802 | # assumed that no part of a normal pathname contains ";" but that should | |
14803 | # okay in the real world where ";" in dirpaths is itself problematic. | |
14804 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
14805 | else | |
14806 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
14807 | fi | |
14808 | else | |
14809 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
14810 | fi | |
14811 | need_lib_prefix=unknown | |
14812 | hardcode_into_libs=no | |
14813 | ||
14814 | # when you set need_version to no, make sure it does not cause -set_version | |
14815 | # flags to be left without arguments | |
14816 | need_version=unknown | |
14817 | ||
14818 | case $host_os in | |
14819 | aix3*) | |
14820 | version_type=linux | |
14821 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14822 | shlibpath_var=LIBPATH | |
14823 | ||
14824 | # AIX 3 has no versioning support, so we append a major version to the name. | |
14825 | soname_spec='${libname}${release}${shared_ext}$major' | |
14826 | ;; | |
14827 | ||
14828 | aix4* | aix5*) | |
14829 | version_type=linux | |
14830 | need_lib_prefix=no | |
14831 | need_version=no | |
14832 | hardcode_into_libs=yes | |
14833 | if test "$host_cpu" = ia64; then | |
14834 | # AIX 5 supports IA64 | |
14835 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14836 | shlibpath_var=LD_LIBRARY_PATH | |
14837 | else | |
14838 | # With GCC up to 2.95.x, collect2 would create an import file | |
14839 | # for dependence libraries. The import file would start with | |
14840 | # the line `#! .'. This would cause the generated library to | |
14841 | # depend on `.', always an invalid library. This was fixed in | |
14842 | # development snapshots of GCC prior to 3.0. | |
14843 | case $host_os in | |
14844 | aix4 | aix4.[01] | aix4.[01].*) | |
14845 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14846 | echo ' yes ' | |
14847 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
14848 | : | |
14849 | else | |
14850 | can_build_shared=no | |
14851 | fi | |
14852 | ;; | |
14853 | esac | |
14854 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14855 | # soname into executable. Probably we can add versioning support to | |
14856 | # collect2, so additional links can be useful in future. | |
14857 | if test "$aix_use_runtimelinking" = yes; then | |
14858 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14859 | # instead of lib<name>.a to let people know that these are not | |
14860 | # typical AIX shared libraries. | |
14861 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14862 | else | |
14863 | # We preserve .a as extension for shared libraries through AIX4.2 | |
14864 | # and later when we are not doing run time linking. | |
14865 | library_names_spec='${libname}${release}.a $libname.a' | |
14866 | soname_spec='${libname}${release}${shared_ext}$major' | |
14867 | fi | |
14868 | shlibpath_var=LIBPATH | |
14869 | fi | |
14870 | ;; | |
14871 | ||
14872 | amigaos*) | |
14873 | library_names_spec='$libname.ixlibrary $libname.a' | |
14874 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
14875 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
14876 | ;; | |
14877 | ||
14878 | beos*) | |
14879 | library_names_spec='${libname}${shared_ext}' | |
14880 | dynamic_linker="$host_os ld.so" | |
14881 | shlibpath_var=LIBRARY_PATH | |
14882 | ;; | |
14883 | ||
631008fb | 14884 | bsdi[45]*) |
a33e1d91 | 14885 | version_type=linux |
14886 | need_version=no | |
14887 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14888 | soname_spec='${libname}${release}${shared_ext}$major' | |
14889 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14890 | shlibpath_var=LD_LIBRARY_PATH | |
14891 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14892 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14893 | # the default ld.so.conf also contains /usr/contrib/lib and | |
14894 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14895 | # libtool to hard-code these into programs | |
14896 | ;; | |
14897 | ||
14898 | cygwin* | mingw* | pw32*) | |
14899 | version_type=windows | |
14900 | shrext_cmds=".dll" | |
14901 | need_version=no | |
14902 | need_lib_prefix=no | |
14903 | ||
14904 | case $GCC,$host_os in | |
14905 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
14906 | library_names_spec='$libname.dll.a' | |
14907 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14908 | postinstall_cmds='base_file=`basename \${file}`~ | |
14909 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
14910 | dldir=$destdir/`dirname \$dlpath`~ | |
14911 | test -d \$dldir || mkdir -p \$dldir~ | |
693f5c2e | 14912 | $install_prog $dir/$dlname \$dldir/$dlname~ |
14913 | chmod a+x \$dldir/$dlname' | |
a33e1d91 | 14914 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
14915 | dlpath=$dir/\$dldll~ | |
14916 | $rm \$dlpath' | |
14917 | shlibpath_overrides_runpath=yes | |
14918 | ||
14919 | case $host_os in | |
14920 | cygwin*) | |
14921 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14922 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14923 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
14924 | ;; | |
14925 | mingw*) | |
14926 | # MinGW DLLs use traditional 'lib' prefix | |
14927 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14928 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
14929 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
14930 | # It is most probably a Windows format PATH printed by | |
14931 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
14932 | # path with ; separators, and with drive letters. We can handle the | |
14933 | # drive letters (cygwin fileutils understands them), so leave them, | |
14934 | # especially as we might pass files found there to a mingw objdump, | |
14935 | # which wouldn't understand a cygwinified path. Ahh. | |
14936 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
14937 | else | |
14938 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
14939 | fi | |
14940 | ;; | |
14941 | pw32*) | |
14942 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
087278d6 | 14943 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
a33e1d91 | 14944 | ;; |
14945 | esac | |
14946 | ;; | |
14947 | ||
14948 | *) | |
14949 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14950 | ;; | |
14951 | esac | |
14952 | dynamic_linker='Win32 ld.exe' | |
14953 | # FIXME: first we should search . and the directory the executable is in | |
14954 | shlibpath_var=PATH | |
14955 | ;; | |
14956 | ||
14957 | darwin* | rhapsody*) | |
14958 | dynamic_linker="$host_os dyld" | |
14959 | version_type=darwin | |
14960 | need_lib_prefix=no | |
14961 | need_version=no | |
14962 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14963 | soname_spec='${libname}${release}${major}$shared_ext' | |
14964 | shlibpath_overrides_runpath=yes | |
14965 | shlibpath_var=DYLD_LIBRARY_PATH | |
693f5c2e | 14966 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
a33e1d91 | 14967 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
14968 | if test "$GCC" = yes; then | |
14969 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | |
14970 | else | |
14971 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
14972 | fi | |
14973 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14974 | ;; | |
14975 | ||
14976 | dgux*) | |
14977 | version_type=linux | |
14978 | need_lib_prefix=no | |
14979 | need_version=no | |
14980 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14981 | soname_spec='${libname}${release}${shared_ext}$major' | |
14982 | shlibpath_var=LD_LIBRARY_PATH | |
14983 | ;; | |
14984 | ||
14985 | freebsd1*) | |
14986 | dynamic_linker=no | |
14987 | ;; | |
14988 | ||
14989 | kfreebsd*-gnu) | |
14990 | version_type=linux | |
14991 | need_lib_prefix=no | |
14992 | need_version=no | |
14993 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14994 | soname_spec='${libname}${release}${shared_ext}$major' | |
14995 | shlibpath_var=LD_LIBRARY_PATH | |
14996 | shlibpath_overrides_runpath=no | |
14997 | hardcode_into_libs=yes | |
14998 | dynamic_linker='GNU ld.so' | |
14999 | ;; | |
15000 | ||
087278d6 | 15001 | freebsd* | dragonfly*) |
15002 | # DragonFly does not have aout. When/if they implement a new | |
15003 | # versioning mechanism, adjust this. | |
693f5c2e | 15004 | if test -x /usr/bin/objformat; then |
15005 | objformat=`/usr/bin/objformat` | |
15006 | else | |
15007 | case $host_os in | |
15008 | freebsd[123]*) objformat=aout ;; | |
15009 | *) objformat=elf ;; | |
15010 | esac | |
15011 | fi | |
a33e1d91 | 15012 | version_type=freebsd-$objformat |
15013 | case $version_type in | |
15014 | freebsd-elf*) | |
15015 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15016 | need_version=no | |
15017 | need_lib_prefix=no | |
15018 | ;; | |
15019 | freebsd-*) | |
15020 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
15021 | need_version=yes | |
15022 | ;; | |
15023 | esac | |
15024 | shlibpath_var=LD_LIBRARY_PATH | |
15025 | case $host_os in | |
15026 | freebsd2*) | |
15027 | shlibpath_overrides_runpath=yes | |
15028 | ;; | |
087278d6 | 15029 | freebsd3.[01]* | freebsdelf3.[01]*) |
a33e1d91 | 15030 | shlibpath_overrides_runpath=yes |
15031 | hardcode_into_libs=yes | |
15032 | ;; | |
62567204 | 15033 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
15034 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
a33e1d91 | 15035 | shlibpath_overrides_runpath=no |
15036 | hardcode_into_libs=yes | |
15037 | ;; | |
62567204 | 15038 | freebsd*) # from 4.6 on |
15039 | shlibpath_overrides_runpath=yes | |
15040 | hardcode_into_libs=yes | |
15041 | ;; | |
a33e1d91 | 15042 | esac |
15043 | ;; | |
15044 | ||
15045 | gnu*) | |
15046 | version_type=linux | |
15047 | need_lib_prefix=no | |
15048 | need_version=no | |
15049 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
15050 | soname_spec='${libname}${release}${shared_ext}$major' | |
15051 | shlibpath_var=LD_LIBRARY_PATH | |
15052 | hardcode_into_libs=yes | |
15053 | ;; | |
15054 | ||
15055 | hpux9* | hpux10* | hpux11*) | |
15056 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
15057 | # link against other versions. | |
15058 | version_type=sunos | |
15059 | need_lib_prefix=no | |
15060 | need_version=no | |
693f5c2e | 15061 | case $host_cpu in |
a33e1d91 | 15062 | ia64*) |
15063 | shrext_cmds='.so' | |
15064 | hardcode_into_libs=yes | |
15065 | dynamic_linker="$host_os dld.so" | |
15066 | shlibpath_var=LD_LIBRARY_PATH | |
15067 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15068 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15069 | soname_spec='${libname}${release}${shared_ext}$major' | |
15070 | if test "X$HPUX_IA64_MODE" = X32; then | |
15071 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
15072 | else | |
15073 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
15074 | fi | |
15075 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15076 | ;; | |
15077 | hppa*64*) | |
15078 | shrext_cmds='.sl' | |
15079 | hardcode_into_libs=yes | |
15080 | dynamic_linker="$host_os dld.sl" | |
15081 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
15082 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
15083 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15084 | soname_spec='${libname}${release}${shared_ext}$major' | |
15085 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
15086 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
15087 | ;; | |
15088 | *) | |
15089 | shrext_cmds='.sl' | |
15090 | dynamic_linker="$host_os dld.sl" | |
15091 | shlibpath_var=SHLIB_PATH | |
15092 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
15093 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15094 | soname_spec='${libname}${release}${shared_ext}$major' | |
15095 | ;; | |
15096 | esac | |
15097 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
15098 | postinstall_cmds='chmod 555 $lib' | |
15099 | ;; | |
15100 | ||
62567204 | 15101 | interix3*) |
15102 | version_type=linux | |
15103 | need_lib_prefix=no | |
15104 | need_version=no | |
15105 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15106 | soname_spec='${libname}${release}${shared_ext}$major' | |
15107 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
15108 | shlibpath_var=LD_LIBRARY_PATH | |
15109 | shlibpath_overrides_runpath=no | |
15110 | hardcode_into_libs=yes | |
15111 | ;; | |
15112 | ||
a33e1d91 | 15113 | irix5* | irix6* | nonstopux*) |
15114 | case $host_os in | |
15115 | nonstopux*) version_type=nonstopux ;; | |
15116 | *) | |
15117 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
15118 | version_type=linux | |
15119 | else | |
15120 | version_type=irix | |
15121 | fi ;; | |
15122 | esac | |
15123 | need_lib_prefix=no | |
15124 | need_version=no | |
15125 | soname_spec='${libname}${release}${shared_ext}$major' | |
15126 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15127 | case $host_os in | |
15128 | irix5* | nonstopux*) | |
15129 | libsuff= shlibsuff= | |
15130 | ;; | |
15131 | *) | |
15132 | case $LD in # libtool.m4 will add one of these switches to LD | |
15133 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
15134 | libsuff= shlibsuff= libmagic=32-bit;; | |
15135 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
15136 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
15137 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
15138 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
15139 | *) libsuff= shlibsuff= libmagic=never-match;; | |
15140 | esac | |
15141 | ;; | |
15142 | esac | |
15143 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15144 | shlibpath_overrides_runpath=no | |
15145 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15146 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15147 | hardcode_into_libs=yes | |
15148 | ;; | |
15149 | ||
15150 | # No shared lib support for Linux oldld, aout, or coff. | |
15151 | linux*oldld* | linux*aout* | linux*coff*) | |
15152 | dynamic_linker=no | |
15153 | ;; | |
15154 | ||
15155 | # This must be Linux ELF. | |
15156 | linux*) | |
15157 | version_type=linux | |
15158 | need_lib_prefix=no | |
15159 | need_version=no | |
15160 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15161 | soname_spec='${libname}${release}${shared_ext}$major' | |
15162 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15163 | shlibpath_var=LD_LIBRARY_PATH | |
15164 | shlibpath_overrides_runpath=no | |
15165 | # This implies no fast_install, which is unacceptable. | |
15166 | # Some rework will be needed to allow for fast_install | |
15167 | # before this can be enabled. | |
15168 | hardcode_into_libs=yes | |
15169 | ||
15170 | # Append ld.so.conf contents to the search path | |
15171 | if test -f /etc/ld.so.conf; then | |
087278d6 | 15172 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
a33e1d91 | 15173 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
15174 | fi | |
15175 | ||
15176 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
15177 | # powerpc, because MkLinux only supported shared libraries with the | |
15178 | # GNU dynamic linker. Since this was broken with cross compilers, | |
15179 | # most powerpc-linux boxes support dynamic linking these days and | |
15180 | # people can always --disable-shared, the test was removed, and we | |
15181 | # assume the GNU/Linux dynamic linker is in use. | |
15182 | dynamic_linker='GNU/Linux ld.so' | |
15183 | ;; | |
15184 | ||
15185 | knetbsd*-gnu) | |
15186 | version_type=linux | |
15187 | need_lib_prefix=no | |
15188 | need_version=no | |
15189 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15190 | soname_spec='${libname}${release}${shared_ext}$major' | |
15191 | shlibpath_var=LD_LIBRARY_PATH | |
15192 | shlibpath_overrides_runpath=no | |
15193 | hardcode_into_libs=yes | |
15194 | dynamic_linker='GNU ld.so' | |
15195 | ;; | |
15196 | ||
15197 | netbsd*) | |
15198 | version_type=sunos | |
15199 | need_lib_prefix=no | |
15200 | need_version=no | |
15201 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
15202 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15203 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15204 | dynamic_linker='NetBSD (a.out) ld.so' | |
15205 | else | |
15206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15207 | soname_spec='${libname}${release}${shared_ext}$major' | |
15208 | dynamic_linker='NetBSD ld.elf_so' | |
15209 | fi | |
15210 | shlibpath_var=LD_LIBRARY_PATH | |
15211 | shlibpath_overrides_runpath=yes | |
15212 | hardcode_into_libs=yes | |
15213 | ;; | |
15214 | ||
15215 | newsos6) | |
15216 | version_type=linux | |
15217 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15218 | shlibpath_var=LD_LIBRARY_PATH | |
15219 | shlibpath_overrides_runpath=yes | |
15220 | ;; | |
15221 | ||
15222 | nto-qnx*) | |
15223 | version_type=linux | |
15224 | need_lib_prefix=no | |
15225 | need_version=no | |
15226 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15227 | soname_spec='${libname}${release}${shared_ext}$major' | |
15228 | shlibpath_var=LD_LIBRARY_PATH | |
15229 | shlibpath_overrides_runpath=yes | |
15230 | ;; | |
15231 | ||
15232 | openbsd*) | |
15233 | version_type=sunos | |
62567204 | 15234 | sys_lib_dlsearch_path_spec="/usr/lib" |
a33e1d91 | 15235 | need_lib_prefix=no |
087278d6 | 15236 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
15237 | case $host_os in | |
15238 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15239 | *) need_version=no ;; | |
15240 | esac | |
a33e1d91 | 15241 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15242 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15243 | shlibpath_var=LD_LIBRARY_PATH | |
15244 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15245 | case $host_os in | |
15246 | openbsd2.[89] | openbsd2.[89].*) | |
15247 | shlibpath_overrides_runpath=no | |
15248 | ;; | |
15249 | *) | |
15250 | shlibpath_overrides_runpath=yes | |
15251 | ;; | |
15252 | esac | |
15253 | else | |
15254 | shlibpath_overrides_runpath=yes | |
15255 | fi | |
15256 | ;; | |
15257 | ||
15258 | os2*) | |
15259 | libname_spec='$name' | |
15260 | shrext_cmds=".dll" | |
15261 | need_lib_prefix=no | |
15262 | library_names_spec='$libname${shared_ext} $libname.a' | |
15263 | dynamic_linker='OS/2 ld.exe' | |
15264 | shlibpath_var=LIBPATH | |
15265 | ;; | |
15266 | ||
15267 | osf3* | osf4* | osf5*) | |
15268 | version_type=osf | |
15269 | need_lib_prefix=no | |
15270 | need_version=no | |
15271 | soname_spec='${libname}${release}${shared_ext}$major' | |
15272 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15273 | shlibpath_var=LD_LIBRARY_PATH | |
15274 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15275 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15276 | ;; | |
15277 | ||
a33e1d91 | 15278 | solaris*) |
15279 | version_type=linux | |
15280 | need_lib_prefix=no | |
15281 | need_version=no | |
15282 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15283 | soname_spec='${libname}${release}${shared_ext}$major' | |
15284 | shlibpath_var=LD_LIBRARY_PATH | |
15285 | shlibpath_overrides_runpath=yes | |
15286 | hardcode_into_libs=yes | |
15287 | # ldd complains unless libraries are executable | |
15288 | postinstall_cmds='chmod +x $lib' | |
15289 | ;; | |
15290 | ||
15291 | sunos4*) | |
15292 | version_type=sunos | |
15293 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15294 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15295 | shlibpath_var=LD_LIBRARY_PATH | |
15296 | shlibpath_overrides_runpath=yes | |
15297 | if test "$with_gnu_ld" = yes; then | |
15298 | need_lib_prefix=no | |
15299 | fi | |
15300 | need_version=yes | |
15301 | ;; | |
15302 | ||
62567204 | 15303 | sysv4 | sysv4.3*) |
a33e1d91 | 15304 | version_type=linux |
15305 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15306 | soname_spec='${libname}${release}${shared_ext}$major' | |
15307 | shlibpath_var=LD_LIBRARY_PATH | |
15308 | case $host_vendor in | |
15309 | sni) | |
15310 | shlibpath_overrides_runpath=no | |
15311 | need_lib_prefix=no | |
15312 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
15313 | runpath_var=LD_RUN_PATH | |
15314 | ;; | |
15315 | siemens) | |
15316 | need_lib_prefix=no | |
15317 | ;; | |
15318 | motorola) | |
15319 | need_lib_prefix=no | |
15320 | need_version=no | |
15321 | shlibpath_overrides_runpath=no | |
15322 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15323 | ;; | |
15324 | esac | |
15325 | ;; | |
15326 | ||
15327 | sysv4*MP*) | |
15328 | if test -d /usr/nec ;then | |
15329 | version_type=linux | |
15330 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
15331 | soname_spec='$libname${shared_ext}.$major' | |
15332 | shlibpath_var=LD_LIBRARY_PATH | |
15333 | fi | |
15334 | ;; | |
15335 | ||
62567204 | 15336 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15337 | version_type=freebsd-elf | |
15338 | need_lib_prefix=no | |
15339 | need_version=no | |
15340 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15341 | soname_spec='${libname}${release}${shared_ext}$major' | |
15342 | shlibpath_var=LD_LIBRARY_PATH | |
15343 | hardcode_into_libs=yes | |
15344 | if test "$with_gnu_ld" = yes; then | |
15345 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15346 | shlibpath_overrides_runpath=no | |
15347 | else | |
15348 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15349 | shlibpath_overrides_runpath=yes | |
15350 | case $host_os in | |
15351 | sco3.2v5*) | |
15352 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15353 | ;; | |
15354 | esac | |
15355 | fi | |
15356 | sys_lib_dlsearch_path_spec='/usr/lib' | |
15357 | ;; | |
15358 | ||
a33e1d91 | 15359 | uts4*) |
15360 | version_type=linux | |
15361 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15362 | soname_spec='${libname}${release}${shared_ext}$major' | |
15363 | shlibpath_var=LD_LIBRARY_PATH | |
15364 | ;; | |
15365 | ||
15366 | *) | |
15367 | dynamic_linker=no | |
15368 | ;; | |
15369 | esac | |
15370 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
15371 | echo "${ECHO_T}$dynamic_linker" >&6 | |
15372 | test "$dynamic_linker" = no && can_build_shared=no | |
15373 | ||
62567204 | 15374 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
15375 | if test "$GCC" = yes; then | |
15376 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
15377 | fi | |
15378 | ||
a33e1d91 | 15379 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15380 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
15381 | hardcode_action_F77= | |
15382 | if test -n "$hardcode_libdir_flag_spec_F77" || \ | |
631008fb | 15383 | test -n "$runpath_var_F77" || \ |
15384 | test "X$hardcode_automatic_F77" = "Xyes" ; then | |
a33e1d91 | 15385 | |
15386 | # We can hardcode non-existant directories. | |
15387 | if test "$hardcode_direct_F77" != no && | |
15388 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15389 | # have to relink, otherwise we might link with an installed library | |
15390 | # when we should be linking with a yet-to-be-installed one | |
15391 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | |
15392 | test "$hardcode_minus_L_F77" != no; then | |
15393 | # Linking always hardcodes the temporary library directory. | |
15394 | hardcode_action_F77=relink | |
15395 | else | |
15396 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15397 | hardcode_action_F77=immediate | |
15398 | fi | |
15399 | else | |
15400 | # We cannot hardcode anything, or else we can only hardcode existing | |
15401 | # directories. | |
15402 | hardcode_action_F77=unsupported | |
15403 | fi | |
15404 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | |
15405 | echo "${ECHO_T}$hardcode_action_F77" >&6 | |
15406 | ||
15407 | if test "$hardcode_action_F77" = relink; then | |
15408 | # Fast installation is not supported | |
15409 | enable_fast_install=no | |
15410 | elif test "$shlibpath_overrides_runpath" = yes || | |
15411 | test "$enable_shared" = no; then | |
15412 | # Fast installation is not necessary | |
15413 | enable_fast_install=needless | |
15414 | fi | |
15415 | ||
a33e1d91 | 15416 | |
15417 | # The else clause should only fire when bootstrapping the | |
15418 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
15419 | # with your package, and you will get complaints that there are | |
15420 | # no rules to generate ltmain.sh. | |
15421 | if test -f "$ltmain"; then | |
15422 | # See if we are running on zsh, and set the options which allow our commands through | |
15423 | # without removal of \ escapes. | |
15424 | if test -n "${ZSH_VERSION+set}" ; then | |
15425 | setopt NO_GLOB_SUBST | |
15426 | fi | |
15427 | # Now quote all the things that may contain metacharacters while being | |
15428 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
15429 | # variables and quote the copies for generation of the libtool script. | |
62567204 | 15430 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
a33e1d91 | 15431 | SED SHELL STRIP \ |
15432 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
15433 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
15434 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
15435 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
15436 | lt_cv_sys_global_symbol_to_c_name_address \ | |
15437 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
15438 | old_postinstall_cmds old_postuninstall_cmds \ | |
15439 | compiler_F77 \ | |
15440 | CC_F77 \ | |
15441 | LD_F77 \ | |
15442 | lt_prog_compiler_wl_F77 \ | |
15443 | lt_prog_compiler_pic_F77 \ | |
15444 | lt_prog_compiler_static_F77 \ | |
15445 | lt_prog_compiler_no_builtin_flag_F77 \ | |
15446 | export_dynamic_flag_spec_F77 \ | |
15447 | thread_safe_flag_spec_F77 \ | |
15448 | whole_archive_flag_spec_F77 \ | |
15449 | enable_shared_with_static_runtimes_F77 \ | |
15450 | old_archive_cmds_F77 \ | |
15451 | old_archive_from_new_cmds_F77 \ | |
15452 | predep_objects_F77 \ | |
15453 | postdep_objects_F77 \ | |
15454 | predeps_F77 \ | |
15455 | postdeps_F77 \ | |
15456 | compiler_lib_search_path_F77 \ | |
15457 | archive_cmds_F77 \ | |
15458 | archive_expsym_cmds_F77 \ | |
15459 | postinstall_cmds_F77 \ | |
15460 | postuninstall_cmds_F77 \ | |
15461 | old_archive_from_expsyms_cmds_F77 \ | |
15462 | allow_undefined_flag_F77 \ | |
15463 | no_undefined_flag_F77 \ | |
15464 | export_symbols_cmds_F77 \ | |
15465 | hardcode_libdir_flag_spec_F77 \ | |
15466 | hardcode_libdir_flag_spec_ld_F77 \ | |
15467 | hardcode_libdir_separator_F77 \ | |
15468 | hardcode_automatic_F77 \ | |
15469 | module_cmds_F77 \ | |
15470 | module_expsym_cmds_F77 \ | |
15471 | lt_cv_prog_compiler_c_o_F77 \ | |
15472 | exclude_expsyms_F77 \ | |
15473 | include_expsyms_F77; do | |
15474 | ||
15475 | case $var in | |
15476 | old_archive_cmds_F77 | \ | |
15477 | old_archive_from_new_cmds_F77 | \ | |
15478 | archive_cmds_F77 | \ | |
15479 | archive_expsym_cmds_F77 | \ | |
15480 | module_cmds_F77 | \ | |
15481 | module_expsym_cmds_F77 | \ | |
15482 | old_archive_from_expsyms_cmds_F77 | \ | |
15483 | export_symbols_cmds_F77 | \ | |
15484 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
15485 | postinstall_cmds | postuninstall_cmds | \ | |
15486 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
15487 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
15488 | # Double-quote double-evaled strings. | |
15489 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
15490 | ;; | |
15491 | *) | |
15492 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
15493 | ;; | |
15494 | esac | |
15495 | done | |
15496 | ||
15497 | case $lt_echo in | |
15498 | *'\$0 --fallback-echo"') | |
15499 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
15500 | ;; | |
15501 | esac | |
15502 | ||
15503 | cfgfile="$ofile" | |
15504 | ||
15505 | cat <<__EOF__ >> "$cfgfile" | |
15506 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
15507 | ||
15508 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
15509 | ||
15510 | # Shell to use when invoking shell scripts. | |
15511 | SHELL=$lt_SHELL | |
15512 | ||
15513 | # Whether or not to build shared libraries. | |
15514 | build_libtool_libs=$enable_shared | |
15515 | ||
15516 | # Whether or not to build static libraries. | |
15517 | build_old_libs=$enable_static | |
15518 | ||
15519 | # Whether or not to add -lc for building shared libraries. | |
15520 | build_libtool_need_lc=$archive_cmds_need_lc_F77 | |
15521 | ||
15522 | # Whether or not to disallow shared libs when runtime libs are static | |
15523 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | |
15524 | ||
15525 | # Whether or not to optimize for fast installation. | |
15526 | fast_install=$enable_fast_install | |
15527 | ||
15528 | # The host system. | |
15529 | host_alias=$host_alias | |
15530 | host=$host | |
087278d6 | 15531 | host_os=$host_os |
15532 | ||
15533 | # The build system. | |
15534 | build_alias=$build_alias | |
15535 | build=$build | |
15536 | build_os=$build_os | |
a33e1d91 | 15537 | |
15538 | # An echo program that does not interpret backslashes. | |
15539 | echo=$lt_echo | |
15540 | ||
15541 | # The archiver. | |
15542 | AR=$lt_AR | |
15543 | AR_FLAGS=$lt_AR_FLAGS | |
15544 | ||
15545 | # A C compiler. | |
15546 | LTCC=$lt_LTCC | |
15547 | ||
62567204 | 15548 | # LTCC compiler flags. |
15549 | LTCFLAGS=$lt_LTCFLAGS | |
15550 | ||
a33e1d91 | 15551 | # A language-specific compiler. |
15552 | CC=$lt_compiler_F77 | |
15553 | ||
15554 | # Is the compiler the GNU C compiler? | |
15555 | with_gcc=$GCC_F77 | |
15556 | ||
15557 | # An ERE matcher. | |
15558 | EGREP=$lt_EGREP | |
15559 | ||
15560 | # The linker used to build libraries. | |
15561 | LD=$lt_LD_F77 | |
15562 | ||
15563 | # Whether we need hard or soft links. | |
15564 | LN_S=$lt_LN_S | |
15565 | ||
15566 | # A BSD-compatible nm program. | |
15567 | NM=$lt_NM | |
15568 | ||
15569 | # A symbol stripping program | |
15570 | STRIP=$lt_STRIP | |
15571 | ||
15572 | # Used to examine libraries when file_magic_cmd begins "file" | |
15573 | MAGIC_CMD=$MAGIC_CMD | |
15574 | ||
15575 | # Used on cygwin: DLL creation program. | |
15576 | DLLTOOL="$DLLTOOL" | |
15577 | ||
15578 | # Used on cygwin: object dumper. | |
15579 | OBJDUMP="$OBJDUMP" | |
15580 | ||
15581 | # Used on cygwin: assembler. | |
15582 | AS="$AS" | |
15583 | ||
15584 | # The name of the directory that contains temporary libtool files. | |
15585 | objdir=$objdir | |
15586 | ||
15587 | # How to create reloadable object files. | |
15588 | reload_flag=$lt_reload_flag | |
15589 | reload_cmds=$lt_reload_cmds | |
15590 | ||
15591 | # How to pass a linker flag through the compiler. | |
15592 | wl=$lt_lt_prog_compiler_wl_F77 | |
15593 | ||
15594 | # Object file suffix (normally "o"). | |
15595 | objext="$ac_objext" | |
15596 | ||
15597 | # Old archive suffix (normally "a"). | |
15598 | libext="$libext" | |
15599 | ||
15600 | # Shared library suffix (normally ".so"). | |
15601 | shrext_cmds='$shrext_cmds' | |
15602 | ||
15603 | # Executable file suffix (normally ""). | |
15604 | exeext="$exeext" | |
15605 | ||
15606 | # Additional compiler flags for building library objects. | |
15607 | pic_flag=$lt_lt_prog_compiler_pic_F77 | |
15608 | pic_mode=$pic_mode | |
15609 | ||
15610 | # What is the maximum length of a command? | |
15611 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
15612 | ||
15613 | # Does compiler simultaneously support -c and -o options? | |
15614 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | |
15615 | ||
087278d6 | 15616 | # Must we lock files when doing compilation? |
a33e1d91 | 15617 | need_locks=$lt_need_locks |
15618 | ||
15619 | # Do we need the lib prefix for modules? | |
15620 | need_lib_prefix=$need_lib_prefix | |
15621 | ||
15622 | # Do we need a version for libraries? | |
15623 | need_version=$need_version | |
15624 | ||
15625 | # Whether dlopen is supported. | |
15626 | dlopen_support=$enable_dlopen | |
15627 | ||
15628 | # Whether dlopen of programs is supported. | |
15629 | dlopen_self=$enable_dlopen_self | |
15630 | ||
15631 | # Whether dlopen of statically linked programs is supported. | |
15632 | dlopen_self_static=$enable_dlopen_self_static | |
15633 | ||
15634 | # Compiler flag to prevent dynamic linking. | |
15635 | link_static_flag=$lt_lt_prog_compiler_static_F77 | |
15636 | ||
15637 | # Compiler flag to turn off builtin functions. | |
15638 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | |
15639 | ||
15640 | # Compiler flag to allow reflexive dlopens. | |
15641 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | |
15642 | ||
15643 | # Compiler flag to generate shared objects directly from archives. | |
15644 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | |
15645 | ||
15646 | # Compiler flag to generate thread-safe objects. | |
15647 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | |
15648 | ||
15649 | # Library versioning type. | |
15650 | version_type=$version_type | |
15651 | ||
15652 | # Format of library name prefix. | |
15653 | libname_spec=$lt_libname_spec | |
15654 | ||
15655 | # List of archive names. First name is the real one, the rest are links. | |
15656 | # The last name is the one that the linker finds with -lNAME. | |
15657 | library_names_spec=$lt_library_names_spec | |
15658 | ||
15659 | # The coded name of the library, if different from the real name. | |
15660 | soname_spec=$lt_soname_spec | |
15661 | ||
15662 | # Commands used to build and install an old-style archive. | |
15663 | RANLIB=$lt_RANLIB | |
15664 | old_archive_cmds=$lt_old_archive_cmds_F77 | |
15665 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
15666 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
15667 | ||
15668 | # Create an old-style archive from a shared archive. | |
15669 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | |
15670 | ||
15671 | # Create a temporary old-style archive to link instead of a shared archive. | |
15672 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | |
15673 | ||
15674 | # Commands used to build and install a shared archive. | |
15675 | archive_cmds=$lt_archive_cmds_F77 | |
15676 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | |
15677 | postinstall_cmds=$lt_postinstall_cmds | |
15678 | postuninstall_cmds=$lt_postuninstall_cmds | |
15679 | ||
15680 | # Commands used to build a loadable module (assumed same as above if empty) | |
15681 | module_cmds=$lt_module_cmds_F77 | |
15682 | module_expsym_cmds=$lt_module_expsym_cmds_F77 | |
15683 | ||
15684 | # Commands to strip libraries. | |
15685 | old_striplib=$lt_old_striplib | |
15686 | striplib=$lt_striplib | |
15687 | ||
15688 | # Dependencies to place before the objects being linked to create a | |
15689 | # shared library. | |
15690 | predep_objects=$lt_predep_objects_F77 | |
15691 | ||
15692 | # Dependencies to place after the objects being linked to create a | |
15693 | # shared library. | |
15694 | postdep_objects=$lt_postdep_objects_F77 | |
15695 | ||
15696 | # Dependencies to place before the objects being linked to create a | |
15697 | # shared library. | |
15698 | predeps=$lt_predeps_F77 | |
15699 | ||
15700 | # Dependencies to place after the objects being linked to create a | |
15701 | # shared library. | |
15702 | postdeps=$lt_postdeps_F77 | |
15703 | ||
15704 | # The library search path used internally by the compiler when linking | |
15705 | # a shared library. | |
15706 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 | |
15707 | ||
15708 | # Method to check whether dependent libraries are shared objects. | |
15709 | deplibs_check_method=$lt_deplibs_check_method | |
15710 | ||
15711 | # Command to use when deplibs_check_method == file_magic. | |
15712 | file_magic_cmd=$lt_file_magic_cmd | |
15713 | ||
15714 | # Flag that allows shared libraries with undefined symbols to be built. | |
15715 | allow_undefined_flag=$lt_allow_undefined_flag_F77 | |
15716 | ||
15717 | # Flag that forces no undefined symbols. | |
15718 | no_undefined_flag=$lt_no_undefined_flag_F77 | |
15719 | ||
15720 | # Commands used to finish a libtool library installation in a directory. | |
15721 | finish_cmds=$lt_finish_cmds | |
15722 | ||
15723 | # Same as above, but a single script fragment to be evaled but not shown. | |
15724 | finish_eval=$lt_finish_eval | |
15725 | ||
15726 | # Take the output of nm and produce a listing of raw symbols and C names. | |
15727 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
15728 | ||
15729 | # Transform the output of nm in a proper C declaration | |
15730 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
15731 | ||
15732 | # Transform the output of nm in a C name address pair | |
15733 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
15734 | ||
15735 | # This is the shared library runtime path variable. | |
15736 | runpath_var=$runpath_var | |
15737 | ||
15738 | # This is the shared library path variable. | |
15739 | shlibpath_var=$shlibpath_var | |
15740 | ||
15741 | # Is shlibpath searched before the hard-coded library search path? | |
15742 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
15743 | ||
15744 | # How to hardcode a shared library path into an executable. | |
15745 | hardcode_action=$hardcode_action_F77 | |
15746 | ||
15747 | # Whether we should hardcode library paths into libraries. | |
15748 | hardcode_into_libs=$hardcode_into_libs | |
15749 | ||
15750 | # Flag to hardcode \$libdir into a binary during linking. | |
15751 | # This must work even if \$libdir does not exist. | |
15752 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | |
15753 | ||
15754 | # If ld is used when linking, flag to hardcode \$libdir into | |
15755 | # a binary during linking. This must work even if \$libdir does | |
15756 | # not exist. | |
15757 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | |
15758 | ||
15759 | # Whether we need a single -rpath flag with a separated argument. | |
15760 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | |
15761 | ||
15762 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
15763 | # resulting binary. | |
15764 | hardcode_direct=$hardcode_direct_F77 | |
15765 | ||
15766 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
15767 | # resulting binary. | |
15768 | hardcode_minus_L=$hardcode_minus_L_F77 | |
15769 | ||
15770 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
15771 | # the resulting binary. | |
15772 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | |
15773 | ||
15774 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
15775 | # and all subsequent libraries and executables linked against it. | |
15776 | hardcode_automatic=$hardcode_automatic_F77 | |
15777 | ||
15778 | # Variables whose values should be saved in libtool wrapper scripts and | |
15779 | # restored at relink time. | |
15780 | variables_saved_for_relink="$variables_saved_for_relink" | |
15781 | ||
15782 | # Whether libtool must link a program against all its dependency libraries. | |
15783 | link_all_deplibs=$link_all_deplibs_F77 | |
15784 | ||
15785 | # Compile-time system search path for libraries | |
15786 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
15787 | ||
15788 | # Run-time system search path for libraries | |
15789 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
15790 | ||
15791 | # Fix the shell variable \$srcfile for the compiler. | |
15792 | fix_srcfile_path="$fix_srcfile_path_F77" | |
15793 | ||
15794 | # Set to yes if exported symbols are required. | |
15795 | always_export_symbols=$always_export_symbols_F77 | |
15796 | ||
15797 | # The commands to list exported symbols. | |
15798 | export_symbols_cmds=$lt_export_symbols_cmds_F77 | |
15799 | ||
15800 | # The commands to extract the exported symbol list from a shared archive. | |
15801 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
15802 | ||
15803 | # Symbols that should not be listed in the preloaded symbols. | |
15804 | exclude_expsyms=$lt_exclude_expsyms_F77 | |
15805 | ||
15806 | # Symbols that must always be exported. | |
15807 | include_expsyms=$lt_include_expsyms_F77 | |
15808 | ||
15809 | # ### END LIBTOOL TAG CONFIG: $tagname | |
15810 | ||
15811 | __EOF__ | |
15812 | ||
15813 | ||
15814 | else | |
15815 | # If there is no Makefile yet, we rely on a make rule to execute | |
15816 | # `config.status --recheck' to rerun these tests and create the | |
15817 | # libtool script then. | |
15818 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
15819 | if test -f "$ltmain_in"; then | |
15820 | test -f Makefile && make "$ltmain" | |
15821 | fi | |
15822 | fi | |
15823 | ||
15824 | ||
15825 | ac_ext=c | |
15826 | ac_cpp='$CPP $CPPFLAGS' | |
15827 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15828 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15829 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15830 | ||
15831 | CC="$lt_save_CC" | |
15832 | ||
15833 | else | |
15834 | tagname="" | |
15835 | fi | |
15836 | ;; | |
15837 | ||
15838 | GCJ) | |
15839 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | |
15840 | ||
15841 | ||
15842 | ||
15843 | # Source file extension for Java test sources. | |
15844 | ac_ext=java | |
15845 | ||
15846 | # Object file extension for compiled Java test sources. | |
15847 | objext=o | |
15848 | objext_GCJ=$objext | |
15849 | ||
15850 | # Code to be used in simple compile tests | |
15851 | lt_simple_compile_test_code="class foo {}\n" | |
15852 | ||
15853 | # Code to be used in simple link tests | |
087278d6 | 15854 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
a33e1d91 | 15855 | |
15856 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
15857 | ||
15858 | # If no C compiler was specified, use CC. | |
15859 | LTCC=${LTCC-"$CC"} | |
15860 | ||
62567204 | 15861 | # If no C compiler flags were specified, use CFLAGS. |
15862 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
15863 | ||
a33e1d91 | 15864 | # Allow CC to be a program name with arguments. |
15865 | compiler=$CC | |
15866 | ||
15867 | ||
087278d6 | 15868 | # save warnings/boilerplate of simple test code |
15869 | ac_outfile=conftest.$ac_objext | |
15870 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
62567204 | 15871 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
087278d6 | 15872 | _lt_compiler_boilerplate=`cat conftest.err` |
15873 | $rm conftest* | |
15874 | ||
15875 | ac_outfile=conftest.$ac_objext | |
15876 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
62567204 | 15877 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
087278d6 | 15878 | _lt_linker_boilerplate=`cat conftest.err` |
15879 | $rm conftest* | |
15880 | ||
15881 | ||
a33e1d91 | 15882 | # Allow CC to be a program name with arguments. |
15883 | lt_save_CC="$CC" | |
15884 | CC=${GCJ-"gcj"} | |
15885 | compiler=$CC | |
15886 | compiler_GCJ=$CC | |
087278d6 | 15887 | for cc_temp in $compiler""; do |
15888 | case $cc_temp in | |
15889 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
15890 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
15891 | \-*) ;; | |
15892 | *) break;; | |
15893 | esac | |
15894 | done | |
15895 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
15896 | ||
a33e1d91 | 15897 | |
15898 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
15899 | archive_cmds_need_lc_GCJ=no | |
15900 | ||
087278d6 | 15901 | old_archive_cmds_GCJ=$old_archive_cmds |
15902 | ||
a33e1d91 | 15903 | |
15904 | lt_prog_compiler_no_builtin_flag_GCJ= | |
15905 | ||
15906 | if test "$GCC" = yes; then | |
15907 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | |
15908 | ||
15909 | ||
15910 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
15911 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
15912 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
15913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15914 | else | |
15915 | lt_cv_prog_compiler_rtti_exceptions=no | |
15916 | ac_outfile=conftest.$ac_objext | |
15917 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15918 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
15919 | # Insert the option either (1) after the last *FLAGS variable, or | |
15920 | # (2) before a word containing "conftest.", or (3) at the end. | |
15921 | # Note that $ac_compile itself does not contain backslashes and begins | |
15922 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15923 | # The option is referenced via a variable to avoid confusing sed. | |
15924 | lt_compile=`echo "$ac_compile" | $SED \ | |
693f5c2e | 15925 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a33e1d91 | 15926 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
15927 | -e 's:$: $lt_compiler_flag:'` | |
00b2804c | 15928 | (eval echo "\"\$as_me:15928: $lt_compile\"" >&5) |
a33e1d91 | 15929 | (eval "$lt_compile" 2>conftest.err) |
15930 | ac_status=$? | |
15931 | cat conftest.err >&5 | |
00b2804c | 15932 | echo "$as_me:15932: \$? = $ac_status" >&5 |
a33e1d91 | 15933 | if (exit $ac_status) && test -s "$ac_outfile"; then |
15934 | # The compiler can only warn and ignore the option if not recognized | |
087278d6 | 15935 | # So say no if there are warnings other than the usual output. |
62567204 | 15936 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
15937 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
15938 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
a33e1d91 | 15939 | lt_cv_prog_compiler_rtti_exceptions=yes |
15940 | fi | |
15941 | fi | |
15942 | $rm conftest* | |
15943 | ||
15944 | fi | |
15945 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
15946 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
15947 | ||
15948 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
15949 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | |
15950 | else | |
15951 | : | |
15952 | fi | |
15953 | ||
15954 | fi | |
15955 | ||
15956 | lt_prog_compiler_wl_GCJ= | |
15957 | lt_prog_compiler_pic_GCJ= | |
15958 | lt_prog_compiler_static_GCJ= | |
15959 | ||
15960 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
15961 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
15962 | ||
15963 | if test "$GCC" = yes; then | |
15964 | lt_prog_compiler_wl_GCJ='-Wl,' | |
15965 | lt_prog_compiler_static_GCJ='-static' | |
15966 | ||
15967 | case $host_os in | |
15968 | aix*) | |
15969 | # All AIX code is PIC. | |
15970 | if test "$host_cpu" = ia64; then | |
15971 | # AIX 5 now supports IA64 processor | |
15972 | lt_prog_compiler_static_GCJ='-Bstatic' | |
15973 | fi | |
15974 | ;; | |
15975 | ||
15976 | amigaos*) | |
15977 | # FIXME: we need at least 68020 code to build shared libraries, but | |
15978 | # adding the `-m68020' flag to GCC prevents building anything better, | |
15979 | # like `-m68040'. | |
15980 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | |
15981 | ;; | |
15982 | ||
15983 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
15984 | # PIC is the default for these OSes. | |
15985 | ;; | |
15986 | ||
15987 | mingw* | pw32* | os2*) | |
15988 | # This hack is so that the source file can tell whether it is being | |
15989 | # built for inclusion in a dll (and should export symbols for example). | |
15990 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
15991 | ;; | |
15992 | ||
15993 | darwin* | rhapsody*) | |
15994 | # PIC is the default on this platform | |
15995 | # Common symbols not allowed in MH_DYLIB files | |
15996 | lt_prog_compiler_pic_GCJ='-fno-common' | |
15997 | ;; | |
15998 | ||
62567204 | 15999 | interix3*) |
16000 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
16001 | # Instead, we relocate shared libraries at runtime. | |
16002 | ;; | |
16003 | ||
a33e1d91 | 16004 | msdosdjgpp*) |
16005 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
16006 | # on systems that don't support them. | |
16007 | lt_prog_compiler_can_build_shared_GCJ=no | |
16008 | enable_shared=no | |
16009 | ;; | |
16010 | ||
16011 | sysv4*MP*) | |
16012 | if test -d /usr/nec; then | |
16013 | lt_prog_compiler_pic_GCJ=-Kconform_pic | |
16014 | fi | |
16015 | ;; | |
16016 | ||
16017 | hpux*) | |
16018 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
16019 | # not for PA HP-UX. | |
693f5c2e | 16020 | case $host_cpu in |
a33e1d91 | 16021 | hppa*64*|ia64*) |
16022 | # +Z the default | |
16023 | ;; | |
16024 | *) | |
16025 | lt_prog_compiler_pic_GCJ='-fPIC' | |
16026 | ;; | |
16027 | esac | |
16028 | ;; | |
16029 | ||
16030 | *) | |
16031 | lt_prog_compiler_pic_GCJ='-fPIC' | |
16032 | ;; | |
16033 | esac | |
16034 | else | |
16035 | # PORTME Check for flag to pass linker flags through the system compiler. | |
16036 | case $host_os in | |
16037 | aix*) | |
16038 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16039 | if test "$host_cpu" = ia64; then | |
16040 | # AIX 5 now supports IA64 processor | |
16041 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16042 | else | |
16043 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | |
16044 | fi | |
16045 | ;; | |
631008fb | 16046 | darwin*) |
16047 | # PIC is the default on this platform | |
16048 | # Common symbols not allowed in MH_DYLIB files | |
087278d6 | 16049 | case $cc_basename in |
631008fb | 16050 | xlc*) |
16051 | lt_prog_compiler_pic_GCJ='-qnocommon' | |
16052 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16053 | ;; | |
16054 | esac | |
16055 | ;; | |
a33e1d91 | 16056 | |
16057 | mingw* | pw32* | os2*) | |
16058 | # This hack is so that the source file can tell whether it is being | |
16059 | # built for inclusion in a dll (and should export symbols for example). | |
16060 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
16061 | ;; | |
16062 | ||
16063 | hpux9* | hpux10* | hpux11*) | |
16064 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16065 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
16066 | # not for PA HP-UX. | |
693f5c2e | 16067 | case $host_cpu in |
a33e1d91 | 16068 | hppa*64*|ia64*) |
16069 | # +Z the default | |
16070 | ;; | |
16071 | *) | |
16072 | lt_prog_compiler_pic_GCJ='+Z' | |
16073 | ;; | |
16074 | esac | |
16075 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
16076 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | |
16077 | ;; | |
16078 | ||
16079 | irix5* | irix6* | nonstopux*) | |
16080 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16081 | # PIC (with -KPIC) is the default. | |
16082 | lt_prog_compiler_static_GCJ='-non_shared' | |
16083 | ;; | |
16084 | ||
16085 | newsos6) | |
16086 | lt_prog_compiler_pic_GCJ='-KPIC' | |
16087 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16088 | ;; | |
16089 | ||
16090 | linux*) | |
087278d6 | 16091 | case $cc_basename in |
a33e1d91 | 16092 | icc* | ecc*) |
16093 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16094 | lt_prog_compiler_pic_GCJ='-KPIC' | |
16095 | lt_prog_compiler_static_GCJ='-static' | |
16096 | ;; | |
693f5c2e | 16097 | pgcc* | pgf77* | pgf90* | pgf95*) |
087278d6 | 16098 | # Portland Group compilers (*not* the Pentium gcc compiler, |
16099 | # which looks to be a dead project) | |
16100 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16101 | lt_prog_compiler_pic_GCJ='-fpic' | |
693f5c2e | 16102 | lt_prog_compiler_static_GCJ='-Bstatic' |
087278d6 | 16103 | ;; |
a33e1d91 | 16104 | ccc*) |
16105 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16106 | # All Alpha code is PIC. | |
16107 | lt_prog_compiler_static_GCJ='-non_shared' | |
16108 | ;; | |
16109 | esac | |
16110 | ;; | |
16111 | ||
16112 | osf3* | osf4* | osf5*) | |
16113 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16114 | # All OSF/1 code is PIC. | |
16115 | lt_prog_compiler_static_GCJ='-non_shared' | |
16116 | ;; | |
16117 | ||
a33e1d91 | 16118 | solaris*) |
a33e1d91 | 16119 | lt_prog_compiler_pic_GCJ='-KPIC' |
16120 | lt_prog_compiler_static_GCJ='-Bstatic' | |
087278d6 | 16121 | case $cc_basename in |
16122 | f77* | f90* | f95*) | |
16123 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; | |
16124 | *) | |
16125 | lt_prog_compiler_wl_GCJ='-Wl,';; | |
16126 | esac | |
a33e1d91 | 16127 | ;; |
16128 | ||
16129 | sunos4*) | |
16130 | lt_prog_compiler_wl_GCJ='-Qoption ld ' | |
16131 | lt_prog_compiler_pic_GCJ='-PIC' | |
16132 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16133 | ;; | |
16134 | ||
62567204 | 16135 | sysv4 | sysv4.2uw2* | sysv4.3*) |
a33e1d91 | 16136 | lt_prog_compiler_wl_GCJ='-Wl,' |
16137 | lt_prog_compiler_pic_GCJ='-KPIC' | |
16138 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16139 | ;; | |
16140 | ||
16141 | sysv4*MP*) | |
16142 | if test -d /usr/nec ;then | |
16143 | lt_prog_compiler_pic_GCJ='-Kconform_pic' | |
16144 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16145 | fi | |
16146 | ;; | |
16147 | ||
62567204 | 16148 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
16149 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16150 | lt_prog_compiler_pic_GCJ='-KPIC' | |
16151 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16152 | ;; | |
16153 | ||
087278d6 | 16154 | unicos*) |
16155 | lt_prog_compiler_wl_GCJ='-Wl,' | |
16156 | lt_prog_compiler_can_build_shared_GCJ=no | |
16157 | ;; | |
16158 | ||
a33e1d91 | 16159 | uts4*) |
16160 | lt_prog_compiler_pic_GCJ='-pic' | |
16161 | lt_prog_compiler_static_GCJ='-Bstatic' | |
16162 | ;; | |
16163 | ||
16164 | *) | |
16165 | lt_prog_compiler_can_build_shared_GCJ=no | |
16166 | ;; | |
16167 | esac | |
16168 | fi | |
16169 | ||
16170 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | |
16171 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 | |
16172 | ||
16173 | # | |
16174 | # Check to make sure the PIC flag actually works. | |
16175 | # | |
16176 | if test -n "$lt_prog_compiler_pic_GCJ"; then | |
16177 | ||
16178 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | |
16179 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 | |
16180 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | |
16181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16182 | else | |
16183 | lt_prog_compiler_pic_works_GCJ=no | |
16184 | ac_outfile=conftest.$ac_objext | |
16185 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16186 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | |
16187 | # Insert the option either (1) after the last *FLAGS variable, or | |
16188 | # (2) before a word containing "conftest.", or (3) at the end. | |
16189 | # Note that $ac_compile itself does not contain backslashes and begins | |
16190 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16191 | # The option is referenced via a variable to avoid confusing sed. | |
16192 | lt_compile=`echo "$ac_compile" | $SED \ | |
693f5c2e | 16193 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a33e1d91 | 16194 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16195 | -e 's:$: $lt_compiler_flag:'` | |
00b2804c | 16196 | (eval echo "\"\$as_me:16196: $lt_compile\"" >&5) |
a33e1d91 | 16197 | (eval "$lt_compile" 2>conftest.err) |
16198 | ac_status=$? | |
16199 | cat conftest.err >&5 | |
00b2804c | 16200 | echo "$as_me:16200: \$? = $ac_status" >&5 |
a33e1d91 | 16201 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16202 | # The compiler can only warn and ignore the option if not recognized | |
087278d6 | 16203 | # So say no if there are warnings other than the usual output. |
62567204 | 16204 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16205 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
16206 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
a33e1d91 | 16207 | lt_prog_compiler_pic_works_GCJ=yes |
16208 | fi | |
16209 | fi | |
16210 | $rm conftest* | |
16211 | ||
16212 | fi | |
16213 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | |
16214 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 | |
16215 | ||
16216 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | |
16217 | case $lt_prog_compiler_pic_GCJ in | |
16218 | "" | " "*) ;; | |
16219 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | |
16220 | esac | |
16221 | else | |
16222 | lt_prog_compiler_pic_GCJ= | |
16223 | lt_prog_compiler_can_build_shared_GCJ=no | |
16224 | fi | |
16225 | ||
16226 | fi | |
693f5c2e | 16227 | case $host_os in |
a33e1d91 | 16228 | # For platforms which do not support PIC, -DPIC is meaningless: |
16229 | *djgpp*) | |
16230 | lt_prog_compiler_pic_GCJ= | |
16231 | ;; | |
16232 | *) | |
16233 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | |
16234 | ;; | |
16235 | esac | |
16236 | ||
62567204 | 16237 | # |
16238 | # Check to make sure the static flag actually works. | |
16239 | # | |
16240 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" | |
16241 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
16242 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
16243 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then | |
16244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16245 | else | |
16246 | lt_prog_compiler_static_works_GCJ=no | |
16247 | save_LDFLAGS="$LDFLAGS" | |
16248 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
16249 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
16250 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
16251 | # The linker can only warn and ignore the option if not recognized | |
16252 | # So say no if there are warnings | |
16253 | if test -s conftest.err; then | |
16254 | # Append any errors to the config.log. | |
16255 | cat conftest.err 1>&5 | |
16256 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
16257 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
16258 | if diff conftest.exp conftest.er2 >/dev/null; then | |
16259 | lt_prog_compiler_static_works_GCJ=yes | |
16260 | fi | |
16261 | else | |
16262 | lt_prog_compiler_static_works_GCJ=yes | |
16263 | fi | |
16264 | fi | |
16265 | $rm conftest* | |
16266 | LDFLAGS="$save_LDFLAGS" | |
16267 | ||
16268 | fi | |
16269 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 | |
16270 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6 | |
16271 | ||
16272 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then | |
16273 | : | |
16274 | else | |
16275 | lt_prog_compiler_static_GCJ= | |
16276 | fi | |
16277 | ||
16278 | ||
a33e1d91 | 16279 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16280 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
16281 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | |
16282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16283 | else | |
16284 | lt_cv_prog_compiler_c_o_GCJ=no | |
16285 | $rm -r conftest 2>/dev/null | |
16286 | mkdir conftest | |
16287 | cd conftest | |
16288 | mkdir out | |
16289 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16290 | ||
16291 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
16292 | # Insert the option either (1) after the last *FLAGS variable, or | |
16293 | # (2) before a word containing "conftest.", or (3) at the end. | |
16294 | # Note that $ac_compile itself does not contain backslashes and begins | |
16295 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16296 | lt_compile=`echo "$ac_compile" | $SED \ | |
693f5c2e | 16297 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
a33e1d91 | 16298 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16299 | -e 's:$: $lt_compiler_flag:'` | |
00b2804c | 16300 | (eval echo "\"\$as_me:16300: $lt_compile\"" >&5) |
a33e1d91 | 16301 | (eval "$lt_compile" 2>out/conftest.err) |
16302 | ac_status=$? | |
16303 | cat out/conftest.err >&5 | |
00b2804c | 16304 | echo "$as_me:16304: \$? = $ac_status" >&5 |
a33e1d91 | 16305 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16306 | then | |
16307 | # The compiler can only warn and ignore the option if not recognized | |
16308 | # So say no if there are warnings | |
62567204 | 16309 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
16310 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
16311 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
a33e1d91 | 16312 | lt_cv_prog_compiler_c_o_GCJ=yes |
16313 | fi | |
16314 | fi | |
693f5c2e | 16315 | chmod u+w . 2>&5 |
a33e1d91 | 16316 | $rm conftest* |
16317 | # SGI C++ compiler will create directory out/ii_files/ for | |
16318 | # template instantiation | |
16319 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
16320 | $rm out/* && rmdir out | |
16321 | cd .. | |
16322 | rmdir conftest | |
16323 | $rm conftest* | |
16324 | ||
16325 | fi | |
16326 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | |
16327 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 | |
16328 | ||
16329 | ||
16330 | hard_links="nottested" | |
16331 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | |
16332 | # do not overwrite the value of need_locks provided by the user | |
16333 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
16334 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
16335 | hard_links=yes | |
16336 | $rm conftest* | |
16337 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
16338 | touch conftest.a | |
16339 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
16340 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
16341 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
16342 | echo "${ECHO_T}$hard_links" >&6 | |
16343 | if test "$hard_links" = no; then | |
16344 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
16345 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
16346 | need_locks=warn | |
16347 | fi | |
16348 | else | |
16349 | need_locks=no | |
16350 | fi | |
16351 | ||
16352 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
16353 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
16354 | ||
16355 | runpath_var= | |
16356 | allow_undefined_flag_GCJ= | |
16357 | enable_shared_with_static_runtimes_GCJ=no | |
16358 | archive_cmds_GCJ= | |
16359 | archive_expsym_cmds_GCJ= | |
16360 | old_archive_From_new_cmds_GCJ= | |
16361 | old_archive_from_expsyms_cmds_GCJ= | |
16362 | export_dynamic_flag_spec_GCJ= | |
16363 | whole_archive_flag_spec_GCJ= | |
16364 | thread_safe_flag_spec_GCJ= | |
16365 | hardcode_libdir_flag_spec_GCJ= | |
16366 | hardcode_libdir_flag_spec_ld_GCJ= | |
16367 | hardcode_libdir_separator_GCJ= | |
16368 | hardcode_direct_GCJ=no | |
16369 | hardcode_minus_L_GCJ=no | |
16370 | hardcode_shlibpath_var_GCJ=unsupported | |
16371 | link_all_deplibs_GCJ=unknown | |
16372 | hardcode_automatic_GCJ=no | |
16373 | module_cmds_GCJ= | |
16374 | module_expsym_cmds_GCJ= | |
16375 | always_export_symbols_GCJ=no | |
16376 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
16377 | # include_expsyms should be a list of space-separated symbols to be *always* | |
16378 | # included in the symbol list | |
16379 | include_expsyms_GCJ= | |
16380 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
16381 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
16382 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
16383 | # as well as any symbol that contains `d'. | |
16384 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | |
16385 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
16386 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
16387 | # the symbol is explicitly referenced. Since portable code cannot | |
16388 | # rely on this symbol name, it's probably fine to never include it in | |
16389 | # preloaded symbol tables. | |
16390 | extract_expsyms_cmds= | |
087278d6 | 16391 | # Just being paranoid about ensuring that cc_basename is set. |
16392 | for cc_temp in $compiler""; do | |
16393 | case $cc_temp in | |
16394 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
16395 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
16396 | \-*) ;; | |
16397 | *) break;; | |
16398 | esac | |
16399 | done | |
16400 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
a33e1d91 | 16401 | |
16402 | case $host_os in | |
16403 | cygwin* | mingw* | pw32*) | |
16404 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
16405 | # When not using gcc, we currently assume that we are using | |
16406 | # Microsoft Visual C++. | |
16407 | if test "$GCC" != yes; then | |
16408 | with_gnu_ld=no | |
16409 | fi | |
16410 | ;; | |
62567204 | 16411 | interix*) |
16412 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
16413 | with_gnu_ld=yes | |
16414 | ;; | |
a33e1d91 | 16415 | openbsd*) |
16416 | with_gnu_ld=no | |
16417 | ;; | |
16418 | esac | |
16419 | ||
16420 | ld_shlibs_GCJ=yes | |
16421 | if test "$with_gnu_ld" = yes; then | |
16422 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
16423 | wlarc='${wl}' | |
16424 | ||
087278d6 | 16425 | # Set some defaults for GNU ld with shared library support. These |
16426 | # are reset later if shared libraries are not supported. Putting them | |
16427 | # here allows them to be overridden if necessary. | |
16428 | runpath_var=LD_RUN_PATH | |
16429 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | |
16430 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | |
16431 | # ancient GNU ld didn't support --whole-archive et. al. | |
16432 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
16433 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
16434 | else | |
16435 | whole_archive_flag_spec_GCJ= | |
16436 | fi | |
16437 | supports_anon_versioning=no | |
16438 | case `$LD -v 2>/dev/null` in | |
16439 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
16440 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
16441 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
16442 | *\ 2.11.*) ;; # other 2.11 versions | |
16443 | *) supports_anon_versioning=yes ;; | |
16444 | esac | |
16445 | ||
a33e1d91 | 16446 | # See if GNU ld supports shared libraries. |
16447 | case $host_os in | |
16448 | aix3* | aix4* | aix5*) | |
16449 | # On AIX/PPC, the GNU linker is very broken | |
16450 | if test "$host_cpu" != ia64; then | |
16451 | ld_shlibs_GCJ=no | |
16452 | cat <<EOF 1>&2 | |
16453 | ||
16454 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
16455 | *** to be unable to reliably create shared libraries on AIX. | |
16456 | *** Therefore, libtool is disabling shared libraries support. If you | |
16457 | *** really care for shared libraries, you may want to modify your PATH | |
16458 | *** so that a non-GNU linker is found, and then restart. | |
16459 | ||
16460 | EOF | |
16461 | fi | |
16462 | ;; | |
16463 | ||
16464 | amigaos*) | |
16465 | archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
16466 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16467 | hardcode_minus_L_GCJ=yes | |
16468 | ||
16469 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
16470 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
16471 | # to version 4, is to share data among multiple programs linked | |
16472 | # with the same dynamic library. Since this doesn't match the | |
16473 | # behavior of shared libraries on other platforms, we can't use | |
16474 | # them. | |
16475 | ld_shlibs_GCJ=no | |
16476 | ;; | |
16477 | ||
16478 | beos*) | |
16479 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16480 | allow_undefined_flag_GCJ=unsupported | |
16481 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
16482 | # support --undefined. This deserves some investigation. FIXME | |
16483 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16484 | else | |
16485 | ld_shlibs_GCJ=no | |
16486 | fi | |
16487 | ;; | |
16488 | ||
16489 | cygwin* | mingw* | pw32*) | |
16490 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | |
16491 | # as there is no search path for DLLs. | |
16492 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16493 | allow_undefined_flag_GCJ=unsupported | |
16494 | always_export_symbols_GCJ=no | |
16495 | enable_shared_with_static_runtimes_GCJ=yes | |
087278d6 | 16496 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
a33e1d91 | 16497 | |
16498 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
62567204 | 16499 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
a33e1d91 | 16500 | # If the export-symbols file already is a .def file (1st line |
16501 | # is EXPORTS), use it as is; otherwise, prepend... | |
16502 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
16503 | cp $export_symbols $output_objdir/$soname.def; | |
16504 | else | |
16505 | echo EXPORTS > $output_objdir/$soname.def; | |
16506 | cat $export_symbols >> $output_objdir/$soname.def; | |
16507 | fi~ | |
62567204 | 16508 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
a33e1d91 | 16509 | else |
087278d6 | 16510 | ld_shlibs_GCJ=no |
16511 | fi | |
16512 | ;; | |
16513 | ||
62567204 | 16514 | interix3*) |
16515 | hardcode_direct_GCJ=no | |
16516 | hardcode_shlibpath_var_GCJ=no | |
16517 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
16518 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
16519 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
16520 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
16521 | # default) and relocated if they conflict, which is a slow very memory | |
16522 | # consuming and fragmenting process. To avoid this, we pick a random, | |
16523 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
16524 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
16525 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
16526 | archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
16527 | ;; | |
16528 | ||
087278d6 | 16529 | linux*) |
16530 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16531 | tmp_addflag= | |
16532 | case $cc_basename,$host_cpu in | |
16533 | pgcc*) # Portland Group C compiler | |
693f5c2e | 16534 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
087278d6 | 16535 | tmp_addflag=' $pic_flag' |
16536 | ;; | |
693f5c2e | 16537 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
16538 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
087278d6 | 16539 | tmp_addflag=' $pic_flag -Mnomain' ;; |
16540 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
16541 | tmp_addflag=' -i_dynamic' ;; | |
16542 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
16543 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
16544 | ifc* | ifort*) # Intel Fortran compiler | |
16545 | tmp_addflag=' -nofor_main' ;; | |
16546 | esac | |
16547 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16548 | ||
16549 | if test $supports_anon_versioning = yes; then | |
16550 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ | |
16551 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
16552 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
16553 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
16554 | fi | |
16555 | else | |
16556 | ld_shlibs_GCJ=no | |
a33e1d91 | 16557 | fi |
16558 | ;; | |
16559 | ||
6263d81f | 16560 | netbsd*) |
a33e1d91 | 16561 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16562 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
16563 | wlarc= | |
16564 | else | |
16565 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16566 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16567 | fi | |
16568 | ;; | |
16569 | ||
62567204 | 16570 | solaris*) |
a33e1d91 | 16571 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
16572 | ld_shlibs_GCJ=no | |
16573 | cat <<EOF 1>&2 | |
16574 | ||
16575 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
16576 | *** create shared libraries on Solaris systems. Therefore, libtool | |
16577 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
16578 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
16579 | *** your PATH or compiler configuration so that the native linker is | |
16580 | *** used, and then restart. | |
16581 | ||
16582 | EOF | |
16583 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16584 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16585 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16586 | else | |
16587 | ld_shlibs_GCJ=no | |
16588 | fi | |
16589 | ;; | |
16590 | ||
62567204 | 16591 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
16592 | case `$LD -v 2>&1` in | |
16593 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
16594 | ld_shlibs_GCJ=no | |
16595 | cat <<_LT_EOF 1>&2 | |
16596 | ||
16597 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
16598 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
16599 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
16600 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
16601 | *** your PATH or compiler configuration so that the native linker is | |
16602 | *** used, and then restart. | |
16603 | ||
16604 | _LT_EOF | |
16605 | ;; | |
16606 | *) | |
16607 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16608 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
16609 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
16610 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
16611 | else | |
16612 | ld_shlibs_GCJ=no | |
16613 | fi | |
16614 | ;; | |
16615 | esac | |
16616 | ;; | |
16617 | ||
a33e1d91 | 16618 | sunos4*) |
16619 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16620 | wlarc= | |
16621 | hardcode_direct_GCJ=yes | |
16622 | hardcode_shlibpath_var_GCJ=no | |
16623 | ;; | |
16624 | ||
a33e1d91 | 16625 | *) |
16626 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16627 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16628 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16629 | else | |
16630 | ld_shlibs_GCJ=no | |
16631 | fi | |
16632 | ;; | |
16633 | esac | |
16634 | ||
087278d6 | 16635 | if test "$ld_shlibs_GCJ" = no; then |
16636 | runpath_var= | |
16637 | hardcode_libdir_flag_spec_GCJ= | |
16638 | export_dynamic_flag_spec_GCJ= | |
16639 | whole_archive_flag_spec_GCJ= | |
a33e1d91 | 16640 | fi |
16641 | else | |
16642 | # PORTME fill in a description of your system's linker (not GNU ld) | |
16643 | case $host_os in | |
16644 | aix3*) | |
16645 | allow_undefined_flag_GCJ=unsupported | |
16646 | always_export_symbols_GCJ=yes | |
16647 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
16648 | # Note: this linker hardcodes the directories in LIBPATH if there | |
16649 | # are no directories specified by -L. | |
16650 | hardcode_minus_L_GCJ=yes | |
62567204 | 16651 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
a33e1d91 | 16652 | # Neither direct hardcoding nor static linking is supported with a |
16653 | # broken collect2. | |
16654 | hardcode_direct_GCJ=unsupported | |
16655 | fi | |
16656 | ;; | |
16657 | ||
16658 | aix4* | aix5*) | |
16659 | if test "$host_cpu" = ia64; then | |
16660 | # On IA64, the linker does run time linking by default, so we don't | |
16661 | # have to do anything special. | |
16662 | aix_use_runtimelinking=no | |
16663 | exp_sym_flag='-Bexport' | |
16664 | no_entry_flag="" | |
16665 | else | |
16666 | # If we're using GNU nm, then we don't want the "-C" option. | |
16667 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
16668 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
16669 | export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
16670 | else | |
16671 | export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | |
16672 | fi | |
16673 | aix_use_runtimelinking=no | |
16674 | ||
16675 | # Test if we are trying to use run time linking or normal | |
16676 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
16677 | # need to do runtime linking. | |
16678 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
16679 | for ld_flag in $LDFLAGS; do | |
16680 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
16681 | aix_use_runtimelinking=yes | |
16682 | break | |
16683 | fi | |
16684 | done | |
62567204 | 16685 | ;; |
a33e1d91 | 16686 | esac |
16687 | ||
16688 | exp_sym_flag='-bexport' | |
16689 | no_entry_flag='-bnoentry' | |
16690 | fi | |
16691 | ||
16692 | # When large executables or shared objects are built, AIX ld can | |
16693 | # have problems creating the table of contents. If linking a library | |
16694 | # or program results in "error TOC overflow" add -mminimal-toc to | |
16695 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
16696 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
16697 | ||
16698 | archive_cmds_GCJ='' | |
16699 | hardcode_direct_GCJ=yes | |
16700 | hardcode_libdir_separator_GCJ=':' | |
16701 | link_all_deplibs_GCJ=yes | |
16702 | ||
16703 | if test "$GCC" = yes; then | |
087278d6 | 16704 | case $host_os in aix4.[012]|aix4.[012].*) |
a33e1d91 | 16705 | # We only want to do this on AIX 4.2 and lower, the check |
16706 | # below for broken collect2 doesn't work under 4.3+ | |
16707 | collect2name=`${CC} -print-prog-name=collect2` | |
16708 | if test -f "$collect2name" && \ | |
16709 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
16710 | then | |
16711 | # We have reworked collect2 | |
16712 | hardcode_direct_GCJ=yes | |
16713 | else | |
16714 | # We have old collect2 | |
16715 | hardcode_direct_GCJ=unsupported | |
16716 | # It fails to find uninstalled libraries when the uninstalled | |
16717 | # path is not listed in the libpath. Setting hardcode_minus_L | |
16718 | # to unsupported forces relinking | |
16719 | hardcode_minus_L_GCJ=yes | |
16720 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16721 | hardcode_libdir_separator_GCJ= | |
16722 | fi | |
62567204 | 16723 | ;; |
a33e1d91 | 16724 | esac |
16725 | shared_flag='-shared' | |
087278d6 | 16726 | if test "$aix_use_runtimelinking" = yes; then |
16727 | shared_flag="$shared_flag "'${wl}-G' | |
16728 | fi | |
a33e1d91 | 16729 | else |
16730 | # not using gcc | |
16731 | if test "$host_cpu" = ia64; then | |
16732 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
16733 | # chokes on -Wl,-G. The following line is correct: | |
16734 | shared_flag='-G' | |
16735 | else | |
62567204 | 16736 | if test "$aix_use_runtimelinking" = yes; then |
a33e1d91 | 16737 | shared_flag='${wl}-G' |
16738 | else | |
16739 | shared_flag='${wl}-bM:SRE' | |
62567204 | 16740 | fi |
a33e1d91 | 16741 | fi |
16742 | fi | |
16743 | ||
16744 | # It seems that -bexpall does not export symbols beginning with | |
16745 | # underscore (_), so it is better to generate a list of symbols to export. | |
16746 | always_export_symbols_GCJ=yes | |
16747 | if test "$aix_use_runtimelinking" = yes; then | |
16748 | # Warning - without using the other runtime loading flags (-brtl), | |
16749 | # -berok will link without error, but may produce a broken library. | |
16750 | allow_undefined_flag_GCJ='-berok' | |
16751 | # Determine the default libpath from the value encoded in an empty executable. | |
16752 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 16753 | /* confdefs.h. */ |
16754 | _ACEOF | |
16755 | cat confdefs.h >>conftest.$ac_ext | |
16756 | cat >>conftest.$ac_ext <<_ACEOF | |
16757 | /* end confdefs.h. */ | |
16758 | ||
16759 | int | |
16760 | main () | |
16761 | { | |
16762 | ||
16763 | ; | |
16764 | return 0; | |
16765 | } | |
16766 | _ACEOF | |
16767 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16768 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 16769 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 16770 | ac_status=$? |
af3004ff | 16771 | grep -v '^ *+' conftest.er1 >conftest.err |
16772 | rm -f conftest.er1 | |
16773 | cat conftest.err >&5 | |
a33e1d91 | 16774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16775 | (exit $ac_status); } && | |
6263d81f | 16776 | { ac_try='test -z "$ac_c_werror_flag" |
16777 | || test ! -s conftest.err' | |
af3004ff | 16778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16779 | (eval $ac_try) 2>&5 | |
16780 | ac_status=$? | |
16781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16782 | (exit $ac_status); }; } && | |
16783 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 16784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16785 | (eval $ac_try) 2>&5 | |
16786 | ac_status=$? | |
16787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16788 | (exit $ac_status); }; }; then | |
16789 | ||
16790 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16791 | }'` | |
16792 | # Check for a 64-bit object if we didn't find anything. | |
16793 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16794 | }'`; fi | |
16795 | else | |
16796 | echo "$as_me: failed program was:" >&5 | |
16797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16798 | ||
16799 | fi | |
af3004ff | 16800 | rm -f conftest.err conftest.$ac_objext \ |
16801 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 16802 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
16803 | ||
16804 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
62567204 | 16805 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
a33e1d91 | 16806 | else |
16807 | if test "$host_cpu" = ia64; then | |
16808 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | |
16809 | allow_undefined_flag_GCJ="-z nodefs" | |
62567204 | 16810 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
a33e1d91 | 16811 | else |
16812 | # Determine the default libpath from the value encoded in an empty executable. | |
16813 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 16814 | /* confdefs.h. */ |
16815 | _ACEOF | |
16816 | cat confdefs.h >>conftest.$ac_ext | |
16817 | cat >>conftest.$ac_ext <<_ACEOF | |
16818 | /* end confdefs.h. */ | |
16819 | ||
16820 | int | |
16821 | main () | |
16822 | { | |
16823 | ||
16824 | ; | |
16825 | return 0; | |
16826 | } | |
16827 | _ACEOF | |
16828 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16829 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 16830 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 16831 | ac_status=$? |
af3004ff | 16832 | grep -v '^ *+' conftest.er1 >conftest.err |
16833 | rm -f conftest.er1 | |
16834 | cat conftest.err >&5 | |
a33e1d91 | 16835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16836 | (exit $ac_status); } && | |
6263d81f | 16837 | { ac_try='test -z "$ac_c_werror_flag" |
16838 | || test ! -s conftest.err' | |
af3004ff | 16839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16840 | (eval $ac_try) 2>&5 | |
16841 | ac_status=$? | |
16842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16843 | (exit $ac_status); }; } && | |
16844 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 16845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16846 | (eval $ac_try) 2>&5 | |
16847 | ac_status=$? | |
16848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16849 | (exit $ac_status); }; }; then | |
16850 | ||
16851 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16852 | }'` | |
16853 | # Check for a 64-bit object if we didn't find anything. | |
16854 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16855 | }'`; fi | |
16856 | else | |
16857 | echo "$as_me: failed program was:" >&5 | |
16858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16859 | ||
16860 | fi | |
af3004ff | 16861 | rm -f conftest.err conftest.$ac_objext \ |
16862 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 16863 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
16864 | ||
16865 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
16866 | # Warning - without using the other run time loading flags, | |
16867 | # -berok will link without error, but may produce a broken library. | |
16868 | no_undefined_flag_GCJ=' ${wl}-bernotok' | |
16869 | allow_undefined_flag_GCJ=' ${wl}-berok' | |
a33e1d91 | 16870 | # Exported symbols can be pulled into shared objects from archives |
62567204 | 16871 | whole_archive_flag_spec_GCJ='$convenience' |
a33e1d91 | 16872 | archive_cmds_need_lc_GCJ=yes |
693f5c2e | 16873 | # This is similar to how AIX traditionally builds its shared libraries. |
62567204 | 16874 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
a33e1d91 | 16875 | fi |
16876 | fi | |
16877 | ;; | |
16878 | ||
16879 | amigaos*) | |
16880 | archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
16881 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16882 | hardcode_minus_L_GCJ=yes | |
16883 | # see comment about different semantics on the GNU ld section | |
16884 | ld_shlibs_GCJ=no | |
16885 | ;; | |
16886 | ||
631008fb | 16887 | bsdi[45]*) |
a33e1d91 | 16888 | export_dynamic_flag_spec_GCJ=-rdynamic |
16889 | ;; | |
16890 | ||
16891 | cygwin* | mingw* | pw32*) | |
16892 | # When not using gcc, we currently assume that we are using | |
16893 | # Microsoft Visual C++. | |
16894 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
16895 | # no search path for DLLs. | |
16896 | hardcode_libdir_flag_spec_GCJ=' ' | |
16897 | allow_undefined_flag_GCJ=unsupported | |
16898 | # Tell ltmain to make .lib files, not .a files. | |
16899 | libext=lib | |
16900 | # Tell ltmain to make .dll files, not .so files. | |
16901 | shrext_cmds=".dll" | |
16902 | # FIXME: Setting linknames here is a bad hack. | |
16903 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
16904 | # The linker will automatically build a .lib file if we build a DLL. | |
16905 | old_archive_From_new_cmds_GCJ='true' | |
16906 | # FIXME: Should let the user specify the lib program. | |
16907 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
087278d6 | 16908 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
a33e1d91 | 16909 | enable_shared_with_static_runtimes_GCJ=yes |
16910 | ;; | |
16911 | ||
16912 | darwin* | rhapsody*) | |
693f5c2e | 16913 | case $host_os in |
631008fb | 16914 | rhapsody* | darwin1.[012]) |
16915 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' | |
16916 | ;; | |
16917 | *) # Darwin 1.3 on | |
16918 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
16919 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
16920 | else | |
16921 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
16922 | 10.[012]) | |
16923 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
16924 | ;; | |
16925 | 10.*) | |
16926 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' | |
16927 | ;; | |
16928 | esac | |
16929 | fi | |
16930 | ;; | |
a33e1d91 | 16931 | esac |
631008fb | 16932 | archive_cmds_need_lc_GCJ=no |
a33e1d91 | 16933 | hardcode_direct_GCJ=no |
16934 | hardcode_automatic_GCJ=yes | |
16935 | hardcode_shlibpath_var_GCJ=unsupported | |
631008fb | 16936 | whole_archive_flag_spec_GCJ='' |
a33e1d91 | 16937 | link_all_deplibs_GCJ=yes |
631008fb | 16938 | if test "$GCC" = yes ; then |
16939 | output_verbose_link_cmd='echo' | |
16940 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
16941 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
693f5c2e | 16942 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
631008fb | 16943 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
16944 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
a33e1d91 | 16945 | else |
087278d6 | 16946 | case $cc_basename in |
631008fb | 16947 | xlc*) |
16948 | output_verbose_link_cmd='echo' | |
16949 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
16950 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
693f5c2e | 16951 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
631008fb | 16952 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
16953 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
16954 | ;; | |
16955 | *) | |
16956 | ld_shlibs_GCJ=no | |
16957 | ;; | |
16958 | esac | |
a33e1d91 | 16959 | fi |
16960 | ;; | |
16961 | ||
16962 | dgux*) | |
16963 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16964 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
16965 | hardcode_shlibpath_var_GCJ=no | |
16966 | ;; | |
16967 | ||
16968 | freebsd1*) | |
16969 | ld_shlibs_GCJ=no | |
16970 | ;; | |
16971 | ||
16972 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
16973 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
16974 | # does not break anything, and helps significantly (at the cost of a little | |
16975 | # extra space). | |
16976 | freebsd2.2*) | |
16977 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
16978 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16979 | hardcode_direct_GCJ=yes | |
16980 | hardcode_shlibpath_var_GCJ=no | |
16981 | ;; | |
16982 | ||
16983 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
16984 | freebsd2*) | |
16985 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16986 | hardcode_direct_GCJ=yes | |
16987 | hardcode_minus_L_GCJ=yes | |
16988 | hardcode_shlibpath_var_GCJ=no | |
16989 | ;; | |
16990 | ||
16991 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
6263d81f | 16992 | freebsd* | kfreebsd*-gnu | dragonfly*) |
25b6a907 | 16993 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
16994 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
16995 | hardcode_direct_GCJ=yes | |
16996 | hardcode_shlibpath_var_GCJ=no | |
16997 | ;; | |
16998 | ||
a33e1d91 | 16999 | hpux9*) |
17000 | if test "$GCC" = yes; then | |
17001 | archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
17002 | else | |
17003 | archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
17004 | fi | |
17005 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
17006 | hardcode_libdir_separator_GCJ=: | |
17007 | hardcode_direct_GCJ=yes | |
17008 | ||
17009 | # hardcode_minus_L: Not really in the search PATH, | |
17010 | # but as the default location of the library. | |
17011 | hardcode_minus_L_GCJ=yes | |
17012 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
17013 | ;; | |
17014 | ||
62567204 | 17015 | hpux10*) |
17016 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
17017 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
17018 | else | |
17019 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
17020 | fi | |
17021 | if test "$with_gnu_ld" = no; then | |
17022 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
17023 | hardcode_libdir_separator_GCJ=: | |
17024 | ||
17025 | hardcode_direct_GCJ=yes | |
17026 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
17027 | ||
17028 | # hardcode_minus_L: Not really in the search PATH, | |
17029 | # but as the default location of the library. | |
17030 | hardcode_minus_L_GCJ=yes | |
17031 | fi | |
17032 | ;; | |
17033 | ||
17034 | hpux11*) | |
a33e1d91 | 17035 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
693f5c2e | 17036 | case $host_cpu in |
62567204 | 17037 | hppa*64*) |
a33e1d91 | 17038 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17039 | ;; | |
62567204 | 17040 | ia64*) |
17041 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
17042 | ;; | |
a33e1d91 | 17043 | *) |
17044 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
17045 | ;; | |
17046 | esac | |
17047 | else | |
693f5c2e | 17048 | case $host_cpu in |
62567204 | 17049 | hppa*64*) |
17050 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17051 | ;; | |
17052 | ia64*) | |
17053 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
a33e1d91 | 17054 | ;; |
17055 | *) | |
62567204 | 17056 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
a33e1d91 | 17057 | ;; |
17058 | esac | |
17059 | fi | |
17060 | if test "$with_gnu_ld" = no; then | |
62567204 | 17061 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17062 | hardcode_libdir_separator_GCJ=: | |
17063 | ||
693f5c2e | 17064 | case $host_cpu in |
62567204 | 17065 | hppa*64*|ia64*) |
a33e1d91 | 17066 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
a33e1d91 | 17067 | hardcode_direct_GCJ=no |
17068 | hardcode_shlibpath_var_GCJ=no | |
a33e1d91 | 17069 | ;; |
17070 | *) | |
a33e1d91 | 17071 | hardcode_direct_GCJ=yes |
17072 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
17073 | ||
17074 | # hardcode_minus_L: Not really in the search PATH, | |
17075 | # but as the default location of the library. | |
17076 | hardcode_minus_L_GCJ=yes | |
17077 | ;; | |
17078 | esac | |
17079 | fi | |
17080 | ;; | |
17081 | ||
17082 | irix5* | irix6* | nonstopux*) | |
17083 | if test "$GCC" = yes; then | |
17084 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
17085 | else | |
17086 | archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
17087 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | |
17088 | fi | |
17089 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17090 | hardcode_libdir_separator_GCJ=: | |
17091 | link_all_deplibs_GCJ=yes | |
17092 | ;; | |
17093 | ||
6263d81f | 17094 | netbsd*) |
a33e1d91 | 17095 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17096 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
17097 | else | |
17098 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
17099 | fi | |
17100 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17101 | hardcode_direct_GCJ=yes | |
17102 | hardcode_shlibpath_var_GCJ=no | |
17103 | ;; | |
17104 | ||
17105 | newsos6) | |
17106 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17107 | hardcode_direct_GCJ=yes | |
17108 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17109 | hardcode_libdir_separator_GCJ=: | |
17110 | hardcode_shlibpath_var_GCJ=no | |
17111 | ;; | |
17112 | ||
17113 | openbsd*) | |
17114 | hardcode_direct_GCJ=yes | |
17115 | hardcode_shlibpath_var_GCJ=no | |
17116 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
17117 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
631008fb | 17118 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
a33e1d91 | 17119 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17120 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
17121 | else | |
17122 | case $host_os in | |
17123 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
17124 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
17125 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17126 | ;; | |
17127 | *) | |
17128 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
17129 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
17130 | ;; | |
17131 | esac | |
17132 | fi | |
17133 | ;; | |
17134 | ||
17135 | os2*) | |
17136 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17137 | hardcode_minus_L_GCJ=yes | |
17138 | allow_undefined_flag_GCJ=unsupported | |
17139 | archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
17140 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
17141 | ;; | |
17142 | ||
17143 | osf3*) | |
17144 | if test "$GCC" = yes; then | |
17145 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
17146 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
17147 | else | |
17148 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
17149 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
17150 | fi | |
17151 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17152 | hardcode_libdir_separator_GCJ=: | |
17153 | ;; | |
17154 | ||
17155 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
17156 | if test "$GCC" = yes; then | |
17157 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
17158 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
17159 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
17160 | else | |
17161 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
17162 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | |
17163 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
087278d6 | 17164 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' |
a33e1d91 | 17165 | |
17166 | # Both c and cxx compiler support -rpath directly | |
17167 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | |
17168 | fi | |
17169 | hardcode_libdir_separator_GCJ=: | |
17170 | ;; | |
17171 | ||
a33e1d91 | 17172 | solaris*) |
17173 | no_undefined_flag_GCJ=' -z text' | |
17174 | if test "$GCC" = yes; then | |
087278d6 | 17175 | wlarc='${wl}' |
a33e1d91 | 17176 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17177 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
17178 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
17179 | else | |
087278d6 | 17180 | wlarc='' |
a33e1d91 | 17181 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17182 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
17183 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
17184 | fi | |
17185 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
17186 | hardcode_shlibpath_var_GCJ=no | |
17187 | case $host_os in | |
17188 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
087278d6 | 17189 | *) |
17190 | # The compiler driver will combine linker options so we | |
17191 | # cannot just pass the convience library names through | |
17192 | # without $wl, iff we do not link with $LD. | |
17193 | # Luckily, gcc supports the same syntax we need for Sun Studio. | |
17194 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
17195 | case $wlarc in | |
17196 | '') | |
17197 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | |
17198 | *) | |
17199 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
17200 | esac ;; | |
a33e1d91 | 17201 | esac |
17202 | link_all_deplibs_GCJ=yes | |
17203 | ;; | |
17204 | ||
17205 | sunos4*) | |
17206 | if test "x$host_vendor" = xsequent; then | |
17207 | # Use $CC to link under sequent, because it throws in some extra .o | |
17208 | # files that make .init and .fini sections work. | |
17209 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
17210 | else | |
17211 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
17212 | fi | |
17213 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17214 | hardcode_direct_GCJ=yes | |
17215 | hardcode_minus_L_GCJ=yes | |
17216 | hardcode_shlibpath_var_GCJ=no | |
17217 | ;; | |
17218 | ||
17219 | sysv4) | |
17220 | case $host_vendor in | |
17221 | sni) | |
17222 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17223 | hardcode_direct_GCJ=yes # is this really true??? | |
17224 | ;; | |
17225 | siemens) | |
17226 | ## LD is ld it makes a PLAMLIB | |
17227 | ## CC just makes a GrossModule. | |
17228 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
17229 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' | |
17230 | hardcode_direct_GCJ=no | |
17231 | ;; | |
17232 | motorola) | |
17233 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17234 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | |
17235 | ;; | |
17236 | esac | |
17237 | runpath_var='LD_RUN_PATH' | |
17238 | hardcode_shlibpath_var_GCJ=no | |
17239 | ;; | |
17240 | ||
17241 | sysv4.3*) | |
17242 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17243 | hardcode_shlibpath_var_GCJ=no | |
17244 | export_dynamic_flag_spec_GCJ='-Bexport' | |
17245 | ;; | |
17246 | ||
17247 | sysv4*MP*) | |
17248 | if test -d /usr/nec; then | |
17249 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17250 | hardcode_shlibpath_var_GCJ=no | |
17251 | runpath_var=LD_RUN_PATH | |
17252 | hardcode_runpath_var=yes | |
17253 | ld_shlibs_GCJ=yes | |
17254 | fi | |
17255 | ;; | |
17256 | ||
62567204 | 17257 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
17258 | no_undefined_flag_GCJ='${wl}-z,text' | |
17259 | archive_cmds_need_lc_GCJ=no | |
a33e1d91 | 17260 | hardcode_shlibpath_var_GCJ=no |
62567204 | 17261 | runpath_var='LD_RUN_PATH' |
a33e1d91 | 17262 | |
a33e1d91 | 17263 | if test "$GCC" = yes; then |
62567204 | 17264 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17265 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a33e1d91 | 17266 | else |
62567204 | 17267 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17268 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
a33e1d91 | 17269 | fi |
a33e1d91 | 17270 | ;; |
17271 | ||
62567204 | 17272 | sysv5* | sco3.2v5* | sco5v6*) |
17273 | # Note: We can NOT use -z defs as we might desire, because we do not | |
17274 | # link with -lc, and that would cause any symbols used from libc to | |
17275 | # always be unresolved, which means just about no library would | |
17276 | # ever link correctly. If we're not using GNU ld we use -z text | |
17277 | # though, which does catch some bad symbols but isn't as heavy-handed | |
17278 | # as -z defs. | |
17279 | no_undefined_flag_GCJ='${wl}-z,text' | |
17280 | allow_undefined_flag_GCJ='${wl}-z,nodefs' | |
17281 | archive_cmds_need_lc_GCJ=no | |
a33e1d91 | 17282 | hardcode_shlibpath_var_GCJ=no |
62567204 | 17283 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
17284 | hardcode_libdir_separator_GCJ=':' | |
17285 | link_all_deplibs_GCJ=yes | |
17286 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' | |
a33e1d91 | 17287 | runpath_var='LD_RUN_PATH' |
62567204 | 17288 | |
17289 | if test "$GCC" = yes; then | |
17290 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17291 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17292 | else | |
17293 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17294 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
17295 | fi | |
a33e1d91 | 17296 | ;; |
17297 | ||
17298 | uts4*) | |
17299 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
17300 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
17301 | hardcode_shlibpath_var_GCJ=no | |
17302 | ;; | |
17303 | ||
17304 | *) | |
17305 | ld_shlibs_GCJ=no | |
17306 | ;; | |
17307 | esac | |
17308 | fi | |
17309 | ||
17310 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | |
17311 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | |
17312 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | |
17313 | ||
a33e1d91 | 17314 | # |
17315 | # Do we need to explicitly link libc? | |
17316 | # | |
17317 | case "x$archive_cmds_need_lc_GCJ" in | |
17318 | x|xyes) | |
17319 | # Assume -lc should be added | |
17320 | archive_cmds_need_lc_GCJ=yes | |
17321 | ||
17322 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
17323 | case $archive_cmds_GCJ in | |
17324 | *'~'*) | |
17325 | # FIXME: we may have to deal with multi-command sequences. | |
17326 | ;; | |
17327 | '$CC '*) | |
17328 | # Test whether the compiler implicitly links with -lc since on some | |
17329 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
17330 | # to ld, don't add -lc before -lgcc. | |
17331 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
17332 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
17333 | $rm conftest* | |
17334 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
17335 | ||
17336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17337 | (eval $ac_compile) 2>&5 | |
17338 | ac_status=$? | |
17339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17340 | (exit $ac_status); } 2>conftest.err; then | |
17341 | soname=conftest | |
17342 | lib=conftest | |
17343 | libobjs=conftest.$ac_objext | |
17344 | deplibs= | |
17345 | wl=$lt_prog_compiler_wl_GCJ | |
62567204 | 17346 | pic_flag=$lt_prog_compiler_pic_GCJ |
a33e1d91 | 17347 | compiler_flags=-v |
17348 | linker_flags=-v | |
17349 | verstring= | |
17350 | output_objdir=. | |
17351 | libname=conftest | |
17352 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | |
17353 | allow_undefined_flag_GCJ= | |
17354 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
17355 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
17356 | ac_status=$? | |
17357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17358 | (exit $ac_status); } | |
17359 | then | |
17360 | archive_cmds_need_lc_GCJ=no | |
17361 | else | |
17362 | archive_cmds_need_lc_GCJ=yes | |
17363 | fi | |
17364 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | |
17365 | else | |
17366 | cat conftest.err 1>&5 | |
17367 | fi | |
17368 | $rm conftest* | |
17369 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | |
17370 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 | |
17371 | ;; | |
17372 | esac | |
17373 | fi | |
17374 | ;; | |
17375 | esac | |
17376 | ||
17377 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
17378 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
17379 | library_names_spec= | |
17380 | libname_spec='lib$name' | |
17381 | soname_spec= | |
17382 | shrext_cmds=".so" | |
17383 | postinstall_cmds= | |
17384 | postuninstall_cmds= | |
17385 | finish_cmds= | |
17386 | finish_eval= | |
17387 | shlibpath_var= | |
17388 | shlibpath_overrides_runpath=unknown | |
17389 | version_type=none | |
17390 | dynamic_linker="$host_os ld.so" | |
17391 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
17392 | if test "$GCC" = yes; then | |
17393 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
17394 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
17395 | # if the path contains ";" then we assume it to be the separator | |
17396 | # otherwise default to the standard path separator (i.e. ":") - it is | |
17397 | # assumed that no part of a normal pathname contains ";" but that should | |
17398 | # okay in the real world where ";" in dirpaths is itself problematic. | |
17399 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
17400 | else | |
17401 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
17402 | fi | |
17403 | else | |
17404 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
17405 | fi | |
17406 | need_lib_prefix=unknown | |
17407 | hardcode_into_libs=no | |
17408 | ||
17409 | # when you set need_version to no, make sure it does not cause -set_version | |
17410 | # flags to be left without arguments | |
17411 | need_version=unknown | |
17412 | ||
17413 | case $host_os in | |
17414 | aix3*) | |
17415 | version_type=linux | |
17416 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
17417 | shlibpath_var=LIBPATH | |
17418 | ||
17419 | # AIX 3 has no versioning support, so we append a major version to the name. | |
17420 | soname_spec='${libname}${release}${shared_ext}$major' | |
17421 | ;; | |
17422 | ||
17423 | aix4* | aix5*) | |
17424 | version_type=linux | |
17425 | need_lib_prefix=no | |
17426 | need_version=no | |
17427 | hardcode_into_libs=yes | |
17428 | if test "$host_cpu" = ia64; then | |
17429 | # AIX 5 supports IA64 | |
17430 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
17431 | shlibpath_var=LD_LIBRARY_PATH | |
17432 | else | |
17433 | # With GCC up to 2.95.x, collect2 would create an import file | |
17434 | # for dependence libraries. The import file would start with | |
17435 | # the line `#! .'. This would cause the generated library to | |
17436 | # depend on `.', always an invalid library. This was fixed in | |
17437 | # development snapshots of GCC prior to 3.0. | |
17438 | case $host_os in | |
17439 | aix4 | aix4.[01] | aix4.[01].*) | |
17440 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
17441 | echo ' yes ' | |
17442 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
17443 | : | |
17444 | else | |
17445 | can_build_shared=no | |
17446 | fi | |
17447 | ;; | |
17448 | esac | |
17449 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
17450 | # soname into executable. Probably we can add versioning support to | |
17451 | # collect2, so additional links can be useful in future. | |
17452 | if test "$aix_use_runtimelinking" = yes; then | |
17453 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
17454 | # instead of lib<name>.a to let people know that these are not | |
17455 | # typical AIX shared libraries. | |
17456 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17457 | else | |
17458 | # We preserve .a as extension for shared libraries through AIX4.2 | |
17459 | # and later when we are not doing run time linking. | |
17460 | library_names_spec='${libname}${release}.a $libname.a' | |
17461 | soname_spec='${libname}${release}${shared_ext}$major' | |
17462 | fi | |
17463 | shlibpath_var=LIBPATH | |
62567204 | 17464 | fi |
17465 | ;; | |
a33e1d91 | 17466 | |
62567204 | 17467 | amigaos*) |
17468 | library_names_spec='$libname.ixlibrary $libname.a' | |
17469 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
17470 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
17471 | ;; | |
a33e1d91 | 17472 | |
62567204 | 17473 | beos*) |
17474 | library_names_spec='${libname}${shared_ext}' | |
17475 | dynamic_linker="$host_os ld.so" | |
17476 | shlibpath_var=LIBRARY_PATH | |
17477 | ;; | |
a33e1d91 | 17478 | |
62567204 | 17479 | bsdi[45]*) |
17480 | version_type=linux | |
17481 | need_version=no | |
17482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17483 | soname_spec='${libname}${release}${shared_ext}$major' | |
17484 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
17485 | shlibpath_var=LD_LIBRARY_PATH | |
17486 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
17487 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
17488 | # the default ld.so.conf also contains /usr/contrib/lib and | |
17489 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
17490 | # libtool to hard-code these into programs | |
17491 | ;; | |
a33e1d91 | 17492 | |
62567204 | 17493 | cygwin* | mingw* | pw32*) |
17494 | version_type=windows | |
17495 | shrext_cmds=".dll" | |
17496 | need_version=no | |
17497 | need_lib_prefix=no | |
a33e1d91 | 17498 | |
62567204 | 17499 | case $GCC,$host_os in |
17500 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
17501 | library_names_spec='$libname.dll.a' | |
17502 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
17503 | postinstall_cmds='base_file=`basename \${file}`~ | |
17504 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
17505 | dldir=$destdir/`dirname \$dlpath`~ | |
17506 | test -d \$dldir || mkdir -p \$dldir~ | |
17507 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
17508 | chmod a+x \$dldir/$dlname' | |
17509 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
17510 | dlpath=$dir/\$dldll~ | |
17511 | $rm \$dlpath' | |
17512 | shlibpath_overrides_runpath=yes | |
a33e1d91 | 17513 | |
62567204 | 17514 | case $host_os in |
17515 | cygwin*) | |
17516 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
17517 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17518 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
17519 | ;; | |
17520 | mingw*) | |
17521 | # MinGW DLLs use traditional 'lib' prefix | |
17522 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17523 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
17524 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
17525 | # It is most probably a Windows format PATH printed by | |
17526 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
17527 | # path with ; separators, and with drive letters. We can handle the | |
17528 | # drive letters (cygwin fileutils understands them), so leave them, | |
17529 | # especially as we might pass files found there to a mingw objdump, | |
17530 | # which wouldn't understand a cygwinified path. Ahh. | |
17531 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
17532 | else | |
17533 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
17534 | fi | |
17535 | ;; | |
17536 | pw32*) | |
17537 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
17538 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17539 | ;; | |
17540 | esac | |
17541 | ;; | |
a33e1d91 | 17542 | |
62567204 | 17543 | *) |
17544 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
17545 | ;; | |
17546 | esac | |
17547 | dynamic_linker='Win32 ld.exe' | |
17548 | # FIXME: first we should search . and the directory the executable is in | |
17549 | shlibpath_var=PATH | |
17550 | ;; | |
a33e1d91 | 17551 | |
62567204 | 17552 | darwin* | rhapsody*) |
17553 | dynamic_linker="$host_os dyld" | |
17554 | version_type=darwin | |
17555 | need_lib_prefix=no | |
17556 | need_version=no | |
17557 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
17558 | soname_spec='${libname}${release}${major}$shared_ext' | |
17559 | shlibpath_overrides_runpath=yes | |
17560 | shlibpath_var=DYLD_LIBRARY_PATH | |
17561 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
17562 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
17563 | if test "$GCC" = yes; then | |
17564 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | |
17565 | else | |
17566 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
17567 | fi | |
17568 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
17569 | ;; | |
a33e1d91 | 17570 | |
62567204 | 17571 | dgux*) |
17572 | version_type=linux | |
17573 | need_lib_prefix=no | |
17574 | need_version=no | |
17575 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
17576 | soname_spec='${libname}${release}${shared_ext}$major' | |
17577 | shlibpath_var=LD_LIBRARY_PATH | |
17578 | ;; | |
a33e1d91 | 17579 | |
62567204 | 17580 | freebsd1*) |
17581 | dynamic_linker=no | |
17582 | ;; | |
a33e1d91 | 17583 | |
62567204 | 17584 | kfreebsd*-gnu) |
17585 | version_type=linux | |
17586 | need_lib_prefix=no | |
17587 | need_version=no | |
17588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17589 | soname_spec='${libname}${release}${shared_ext}$major' | |
17590 | shlibpath_var=LD_LIBRARY_PATH | |
17591 | shlibpath_overrides_runpath=no | |
17592 | hardcode_into_libs=yes | |
17593 | dynamic_linker='GNU ld.so' | |
17594 | ;; | |
a33e1d91 | 17595 | |
62567204 | 17596 | freebsd* | dragonfly*) |
17597 | # DragonFly does not have aout. When/if they implement a new | |
17598 | # versioning mechanism, adjust this. | |
17599 | if test -x /usr/bin/objformat; then | |
17600 | objformat=`/usr/bin/objformat` | |
17601 | else | |
17602 | case $host_os in | |
17603 | freebsd[123]*) objformat=aout ;; | |
17604 | *) objformat=elf ;; | |
17605 | esac | |
17606 | fi | |
17607 | version_type=freebsd-$objformat | |
17608 | case $version_type in | |
17609 | freebsd-elf*) | |
17610 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
17611 | need_version=no | |
17612 | need_lib_prefix=no | |
17613 | ;; | |
17614 | freebsd-*) | |
17615 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
17616 | need_version=yes | |
17617 | ;; | |
17618 | esac | |
17619 | shlibpath_var=LD_LIBRARY_PATH | |
17620 | case $host_os in | |
17621 | freebsd2*) | |
17622 | shlibpath_overrides_runpath=yes | |
17623 | ;; | |
17624 | freebsd3.[01]* | freebsdelf3.[01]*) | |
17625 | shlibpath_overrides_runpath=yes | |
17626 | hardcode_into_libs=yes | |
17627 | ;; | |
17628 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
17629 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
17630 | shlibpath_overrides_runpath=no | |
17631 | hardcode_into_libs=yes | |
17632 | ;; | |
17633 | freebsd*) # from 4.6 on | |
17634 | shlibpath_overrides_runpath=yes | |
17635 | hardcode_into_libs=yes | |
17636 | ;; | |
17637 | esac | |
17638 | ;; | |
a33e1d91 | 17639 | |
62567204 | 17640 | gnu*) |
17641 | version_type=linux | |
17642 | need_lib_prefix=no | |
17643 | need_version=no | |
17644 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
17645 | soname_spec='${libname}${release}${shared_ext}$major' | |
17646 | shlibpath_var=LD_LIBRARY_PATH | |
17647 | hardcode_into_libs=yes | |
17648 | ;; | |
a33e1d91 | 17649 | |
62567204 | 17650 | hpux9* | hpux10* | hpux11*) |
17651 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
17652 | # link against other versions. | |
17653 | version_type=sunos | |
17654 | need_lib_prefix=no | |
17655 | need_version=no | |
17656 | case $host_cpu in | |
17657 | ia64*) | |
17658 | shrext_cmds='.so' | |
17659 | hardcode_into_libs=yes | |
17660 | dynamic_linker="$host_os dld.so" | |
17661 | shlibpath_var=LD_LIBRARY_PATH | |
17662 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
17663 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17664 | soname_spec='${libname}${release}${shared_ext}$major' | |
17665 | if test "X$HPUX_IA64_MODE" = X32; then | |
17666 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
17667 | else | |
17668 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
17669 | fi | |
17670 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
17671 | ;; | |
17672 | hppa*64*) | |
17673 | shrext_cmds='.sl' | |
17674 | hardcode_into_libs=yes | |
17675 | dynamic_linker="$host_os dld.sl" | |
17676 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
17677 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
17678 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17679 | soname_spec='${libname}${release}${shared_ext}$major' | |
17680 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
17681 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
17682 | ;; | |
17683 | *) | |
17684 | shrext_cmds='.sl' | |
17685 | dynamic_linker="$host_os dld.sl" | |
17686 | shlibpath_var=SHLIB_PATH | |
17687 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
17688 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17689 | soname_spec='${libname}${release}${shared_ext}$major' | |
a33e1d91 | 17690 | ;; |
17691 | esac | |
62567204 | 17692 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
17693 | postinstall_cmds='chmod 555 $lib' | |
17694 | ;; | |
a33e1d91 | 17695 | |
62567204 | 17696 | interix3*) |
17697 | version_type=linux | |
17698 | need_lib_prefix=no | |
17699 | need_version=no | |
17700 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17701 | soname_spec='${libname}${release}${shared_ext}$major' | |
17702 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
17703 | shlibpath_var=LD_LIBRARY_PATH | |
17704 | shlibpath_overrides_runpath=no | |
17705 | hardcode_into_libs=yes | |
17706 | ;; | |
a33e1d91 | 17707 | |
62567204 | 17708 | irix5* | irix6* | nonstopux*) |
17709 | case $host_os in | |
17710 | nonstopux*) version_type=nonstopux ;; | |
17711 | *) | |
17712 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
17713 | version_type=linux | |
17714 | else | |
17715 | version_type=irix | |
17716 | fi ;; | |
17717 | esac | |
17718 | need_lib_prefix=no | |
17719 | need_version=no | |
17720 | soname_spec='${libname}${release}${shared_ext}$major' | |
17721 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
17722 | case $host_os in | |
17723 | irix5* | nonstopux*) | |
17724 | libsuff= shlibsuff= | |
17725 | ;; | |
17726 | *) | |
17727 | case $LD in # libtool.m4 will add one of these switches to LD | |
17728 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
17729 | libsuff= shlibsuff= libmagic=32-bit;; | |
17730 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
17731 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
17732 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
17733 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
17734 | *) libsuff= shlibsuff= libmagic=never-match;; | |
17735 | esac | |
17736 | ;; | |
17737 | esac | |
17738 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
17739 | shlibpath_overrides_runpath=no | |
17740 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
17741 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
17742 | hardcode_into_libs=yes | |
17743 | ;; | |
a33e1d91 | 17744 | |
62567204 | 17745 | # No shared lib support for Linux oldld, aout, or coff. |
17746 | linux*oldld* | linux*aout* | linux*coff*) | |
17747 | dynamic_linker=no | |
17748 | ;; | |
a33e1d91 | 17749 | |
62567204 | 17750 | # This must be Linux ELF. |
17751 | linux*) | |
17752 | version_type=linux | |
17753 | need_lib_prefix=no | |
17754 | need_version=no | |
17755 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17756 | soname_spec='${libname}${release}${shared_ext}$major' | |
17757 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
17758 | shlibpath_var=LD_LIBRARY_PATH | |
17759 | shlibpath_overrides_runpath=no | |
17760 | # This implies no fast_install, which is unacceptable. | |
17761 | # Some rework will be needed to allow for fast_install | |
17762 | # before this can be enabled. | |
17763 | hardcode_into_libs=yes | |
a33e1d91 | 17764 | |
62567204 | 17765 | # Append ld.so.conf contents to the search path |
17766 | if test -f /etc/ld.so.conf; then | |
17767 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
17768 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
17769 | fi | |
a33e1d91 | 17770 | |
62567204 | 17771 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
17772 | # powerpc, because MkLinux only supported shared libraries with the | |
17773 | # GNU dynamic linker. Since this was broken with cross compilers, | |
17774 | # most powerpc-linux boxes support dynamic linking these days and | |
17775 | # people can always --disable-shared, the test was removed, and we | |
17776 | # assume the GNU/Linux dynamic linker is in use. | |
17777 | dynamic_linker='GNU/Linux ld.so' | |
17778 | ;; | |
a33e1d91 | 17779 | |
62567204 | 17780 | knetbsd*-gnu) |
17781 | version_type=linux | |
17782 | need_lib_prefix=no | |
17783 | need_version=no | |
17784 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17785 | soname_spec='${libname}${release}${shared_ext}$major' | |
17786 | shlibpath_var=LD_LIBRARY_PATH | |
17787 | shlibpath_overrides_runpath=no | |
17788 | hardcode_into_libs=yes | |
17789 | dynamic_linker='GNU ld.so' | |
17790 | ;; | |
a33e1d91 | 17791 | |
62567204 | 17792 | netbsd*) |
17793 | version_type=sunos | |
17794 | need_lib_prefix=no | |
17795 | need_version=no | |
17796 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
17797 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17798 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17799 | dynamic_linker='NetBSD (a.out) ld.so' | |
17800 | else | |
17801 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17802 | soname_spec='${libname}${release}${shared_ext}$major' | |
17803 | dynamic_linker='NetBSD ld.elf_so' | |
a33e1d91 | 17804 | fi |
62567204 | 17805 | shlibpath_var=LD_LIBRARY_PATH |
17806 | shlibpath_overrides_runpath=yes | |
17807 | hardcode_into_libs=yes | |
17808 | ;; | |
a33e1d91 | 17809 | |
62567204 | 17810 | newsos6) |
17811 | version_type=linux | |
17812 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17813 | shlibpath_var=LD_LIBRARY_PATH | |
17814 | shlibpath_overrides_runpath=yes | |
17815 | ;; | |
a33e1d91 | 17816 | |
62567204 | 17817 | nto-qnx*) |
17818 | version_type=linux | |
17819 | need_lib_prefix=no | |
17820 | need_version=no | |
17821 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17822 | soname_spec='${libname}${release}${shared_ext}$major' | |
17823 | shlibpath_var=LD_LIBRARY_PATH | |
17824 | shlibpath_overrides_runpath=yes | |
17825 | ;; | |
a33e1d91 | 17826 | |
62567204 | 17827 | openbsd*) |
17828 | version_type=sunos | |
17829 | sys_lib_dlsearch_path_spec="/usr/lib" | |
17830 | need_lib_prefix=no | |
17831 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
17832 | case $host_os in | |
17833 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
17834 | *) need_version=no ;; | |
17835 | esac | |
17836 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17837 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17838 | shlibpath_var=LD_LIBRARY_PATH | |
17839 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
17840 | case $host_os in | |
17841 | openbsd2.[89] | openbsd2.[89].*) | |
17842 | shlibpath_overrides_runpath=no | |
17843 | ;; | |
17844 | *) | |
17845 | shlibpath_overrides_runpath=yes | |
17846 | ;; | |
17847 | esac | |
17848 | else | |
17849 | shlibpath_overrides_runpath=yes | |
17850 | fi | |
17851 | ;; | |
a33e1d91 | 17852 | |
62567204 | 17853 | os2*) |
17854 | libname_spec='$name' | |
17855 | shrext_cmds=".dll" | |
17856 | need_lib_prefix=no | |
17857 | library_names_spec='$libname${shared_ext} $libname.a' | |
17858 | dynamic_linker='OS/2 ld.exe' | |
17859 | shlibpath_var=LIBPATH | |
17860 | ;; | |
a33e1d91 | 17861 | |
62567204 | 17862 | osf3* | osf4* | osf5*) |
17863 | version_type=osf | |
17864 | need_lib_prefix=no | |
17865 | need_version=no | |
17866 | soname_spec='${libname}${release}${shared_ext}$major' | |
17867 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17868 | shlibpath_var=LD_LIBRARY_PATH | |
17869 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
17870 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
17871 | ;; | |
a33e1d91 | 17872 | |
62567204 | 17873 | solaris*) |
17874 | version_type=linux | |
17875 | need_lib_prefix=no | |
17876 | need_version=no | |
17877 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17878 | soname_spec='${libname}${release}${shared_ext}$major' | |
17879 | shlibpath_var=LD_LIBRARY_PATH | |
17880 | shlibpath_overrides_runpath=yes | |
17881 | hardcode_into_libs=yes | |
17882 | # ldd complains unless libraries are executable | |
17883 | postinstall_cmds='chmod +x $lib' | |
17884 | ;; | |
a33e1d91 | 17885 | |
62567204 | 17886 | sunos4*) |
17887 | version_type=sunos | |
17888 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17889 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
17890 | shlibpath_var=LD_LIBRARY_PATH | |
17891 | shlibpath_overrides_runpath=yes | |
17892 | if test "$with_gnu_ld" = yes; then | |
17893 | need_lib_prefix=no | |
17894 | fi | |
17895 | need_version=yes | |
17896 | ;; | |
a33e1d91 | 17897 | |
62567204 | 17898 | sysv4 | sysv4.3*) |
17899 | version_type=linux | |
17900 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17901 | soname_spec='${libname}${release}${shared_ext}$major' | |
17902 | shlibpath_var=LD_LIBRARY_PATH | |
17903 | case $host_vendor in | |
17904 | sni) | |
17905 | shlibpath_overrides_runpath=no | |
17906 | need_lib_prefix=no | |
17907 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
17908 | runpath_var=LD_RUN_PATH | |
17909 | ;; | |
17910 | siemens) | |
17911 | need_lib_prefix=no | |
17912 | ;; | |
17913 | motorola) | |
17914 | need_lib_prefix=no | |
17915 | need_version=no | |
17916 | shlibpath_overrides_runpath=no | |
17917 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
17918 | ;; | |
17919 | esac | |
17920 | ;; | |
a33e1d91 | 17921 | |
62567204 | 17922 | sysv4*MP*) |
17923 | if test -d /usr/nec ;then | |
17924 | version_type=linux | |
17925 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
17926 | soname_spec='$libname${shared_ext}.$major' | |
17927 | shlibpath_var=LD_LIBRARY_PATH | |
17928 | fi | |
17929 | ;; | |
17930 | ||
17931 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
17932 | version_type=freebsd-elf | |
17933 | need_lib_prefix=no | |
17934 | need_version=no | |
17935 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
17936 | soname_spec='${libname}${release}${shared_ext}$major' | |
17937 | shlibpath_var=LD_LIBRARY_PATH | |
17938 | hardcode_into_libs=yes | |
17939 | if test "$with_gnu_ld" = yes; then | |
17940 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
17941 | shlibpath_overrides_runpath=no | |
17942 | else | |
17943 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
17944 | shlibpath_overrides_runpath=yes | |
17945 | case $host_os in | |
17946 | sco3.2v5*) | |
17947 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
17948 | ;; | |
a33e1d91 | 17949 | esac |
a33e1d91 | 17950 | fi |
62567204 | 17951 | sys_lib_dlsearch_path_spec='/usr/lib' |
17952 | ;; | |
17953 | ||
17954 | uts4*) | |
17955 | version_type=linux | |
17956 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17957 | soname_spec='${libname}${release}${shared_ext}$major' | |
17958 | shlibpath_var=LD_LIBRARY_PATH | |
17959 | ;; | |
a33e1d91 | 17960 | |
62567204 | 17961 | *) |
17962 | dynamic_linker=no | |
17963 | ;; | |
17964 | esac | |
17965 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
17966 | echo "${ECHO_T}$dynamic_linker" >&6 | |
17967 | test "$dynamic_linker" = no && can_build_shared=no | |
a33e1d91 | 17968 | |
62567204 | 17969 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
17970 | if test "$GCC" = yes; then | |
17971 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
a33e1d91 | 17972 | fi |
a33e1d91 | 17973 | |
62567204 | 17974 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
17975 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
17976 | hardcode_action_GCJ= | |
17977 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | |
17978 | test -n "$runpath_var_GCJ" || \ | |
17979 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then | |
a33e1d91 | 17980 | |
62567204 | 17981 | # We can hardcode non-existant directories. |
17982 | if test "$hardcode_direct_GCJ" != no && | |
17983 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
17984 | # have to relink, otherwise we might link with an installed library | |
17985 | # when we should be linking with a yet-to-be-installed one | |
17986 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | |
17987 | test "$hardcode_minus_L_GCJ" != no; then | |
17988 | # Linking always hardcodes the temporary library directory. | |
17989 | hardcode_action_GCJ=relink | |
17990 | else | |
17991 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
17992 | hardcode_action_GCJ=immediate | |
17993 | fi | |
17994 | else | |
17995 | # We cannot hardcode anything, or else we can only hardcode existing | |
17996 | # directories. | |
17997 | hardcode_action_GCJ=unsupported | |
17998 | fi | |
17999 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | |
18000 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 | |
a33e1d91 | 18001 | |
62567204 | 18002 | if test "$hardcode_action_GCJ" = relink; then |
18003 | # Fast installation is not supported | |
18004 | enable_fast_install=no | |
18005 | elif test "$shlibpath_overrides_runpath" = yes || | |
18006 | test "$enable_shared" = no; then | |
18007 | # Fast installation is not necessary | |
18008 | enable_fast_install=needless | |
a33e1d91 | 18009 | fi |
18010 | ||
18011 | ||
18012 | # The else clause should only fire when bootstrapping the | |
18013 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
18014 | # with your package, and you will get complaints that there are | |
18015 | # no rules to generate ltmain.sh. | |
18016 | if test -f "$ltmain"; then | |
18017 | # See if we are running on zsh, and set the options which allow our commands through | |
18018 | # without removal of \ escapes. | |
18019 | if test -n "${ZSH_VERSION+set}" ; then | |
18020 | setopt NO_GLOB_SUBST | |
18021 | fi | |
18022 | # Now quote all the things that may contain metacharacters while being | |
18023 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
18024 | # variables and quote the copies for generation of the libtool script. | |
62567204 | 18025 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
a33e1d91 | 18026 | SED SHELL STRIP \ |
18027 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
18028 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
18029 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
18030 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
18031 | lt_cv_sys_global_symbol_to_c_name_address \ | |
18032 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
18033 | old_postinstall_cmds old_postuninstall_cmds \ | |
18034 | compiler_GCJ \ | |
18035 | CC_GCJ \ | |
18036 | LD_GCJ \ | |
18037 | lt_prog_compiler_wl_GCJ \ | |
18038 | lt_prog_compiler_pic_GCJ \ | |
18039 | lt_prog_compiler_static_GCJ \ | |
18040 | lt_prog_compiler_no_builtin_flag_GCJ \ | |
18041 | export_dynamic_flag_spec_GCJ \ | |
18042 | thread_safe_flag_spec_GCJ \ | |
18043 | whole_archive_flag_spec_GCJ \ | |
18044 | enable_shared_with_static_runtimes_GCJ \ | |
18045 | old_archive_cmds_GCJ \ | |
18046 | old_archive_from_new_cmds_GCJ \ | |
18047 | predep_objects_GCJ \ | |
18048 | postdep_objects_GCJ \ | |
18049 | predeps_GCJ \ | |
18050 | postdeps_GCJ \ | |
18051 | compiler_lib_search_path_GCJ \ | |
18052 | archive_cmds_GCJ \ | |
18053 | archive_expsym_cmds_GCJ \ | |
18054 | postinstall_cmds_GCJ \ | |
18055 | postuninstall_cmds_GCJ \ | |
18056 | old_archive_from_expsyms_cmds_GCJ \ | |
18057 | allow_undefined_flag_GCJ \ | |
18058 | no_undefined_flag_GCJ \ | |
18059 | export_symbols_cmds_GCJ \ | |
18060 | hardcode_libdir_flag_spec_GCJ \ | |
18061 | hardcode_libdir_flag_spec_ld_GCJ \ | |
18062 | hardcode_libdir_separator_GCJ \ | |
18063 | hardcode_automatic_GCJ \ | |
18064 | module_cmds_GCJ \ | |
18065 | module_expsym_cmds_GCJ \ | |
18066 | lt_cv_prog_compiler_c_o_GCJ \ | |
18067 | exclude_expsyms_GCJ \ | |
18068 | include_expsyms_GCJ; do | |
18069 | ||
18070 | case $var in | |
18071 | old_archive_cmds_GCJ | \ | |
18072 | old_archive_from_new_cmds_GCJ | \ | |
18073 | archive_cmds_GCJ | \ | |
18074 | archive_expsym_cmds_GCJ | \ | |
18075 | module_cmds_GCJ | \ | |
18076 | module_expsym_cmds_GCJ | \ | |
18077 | old_archive_from_expsyms_cmds_GCJ | \ | |
18078 | export_symbols_cmds_GCJ | \ | |
18079 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
18080 | postinstall_cmds | postuninstall_cmds | \ | |
18081 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
18082 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
18083 | # Double-quote double-evaled strings. | |
18084 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
18085 | ;; | |
18086 | *) | |
18087 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
18088 | ;; | |
18089 | esac | |
18090 | done | |
18091 | ||
18092 | case $lt_echo in | |
18093 | *'\$0 --fallback-echo"') | |
18094 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
18095 | ;; | |
18096 | esac | |
18097 | ||
18098 | cfgfile="$ofile" | |
18099 | ||
18100 | cat <<__EOF__ >> "$cfgfile" | |
18101 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
18102 | ||
18103 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18104 | ||
18105 | # Shell to use when invoking shell scripts. | |
18106 | SHELL=$lt_SHELL | |
18107 | ||
18108 | # Whether or not to build shared libraries. | |
18109 | build_libtool_libs=$enable_shared | |
18110 | ||
18111 | # Whether or not to build static libraries. | |
18112 | build_old_libs=$enable_static | |
18113 | ||
18114 | # Whether or not to add -lc for building shared libraries. | |
18115 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | |
18116 | ||
18117 | # Whether or not to disallow shared libs when runtime libs are static | |
18118 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | |
18119 | ||
18120 | # Whether or not to optimize for fast installation. | |
18121 | fast_install=$enable_fast_install | |
18122 | ||
18123 | # The host system. | |
18124 | host_alias=$host_alias | |
18125 | host=$host | |
087278d6 | 18126 | host_os=$host_os |
18127 | ||
18128 | # The build system. | |
18129 | build_alias=$build_alias | |
18130 | build=$build | |
18131 | build_os=$build_os | |
a33e1d91 | 18132 | |
18133 | # An echo program that does not interpret backslashes. | |
18134 | echo=$lt_echo | |
18135 | ||
18136 | # The archiver. | |
18137 | AR=$lt_AR | |
18138 | AR_FLAGS=$lt_AR_FLAGS | |
18139 | ||
18140 | # A C compiler. | |
18141 | LTCC=$lt_LTCC | |
18142 | ||
62567204 | 18143 | # LTCC compiler flags. |
18144 | LTCFLAGS=$lt_LTCFLAGS | |
18145 | ||
a33e1d91 | 18146 | # A language-specific compiler. |
18147 | CC=$lt_compiler_GCJ | |
18148 | ||
18149 | # Is the compiler the GNU C compiler? | |
18150 | with_gcc=$GCC_GCJ | |
18151 | ||
18152 | # An ERE matcher. | |
18153 | EGREP=$lt_EGREP | |
18154 | ||
18155 | # The linker used to build libraries. | |
18156 | LD=$lt_LD_GCJ | |
18157 | ||
18158 | # Whether we need hard or soft links. | |
18159 | LN_S=$lt_LN_S | |
18160 | ||
18161 | # A BSD-compatible nm program. | |
18162 | NM=$lt_NM | |
18163 | ||
18164 | # A symbol stripping program | |
18165 | STRIP=$lt_STRIP | |
18166 | ||
18167 | # Used to examine libraries when file_magic_cmd begins "file" | |
18168 | MAGIC_CMD=$MAGIC_CMD | |
18169 | ||
18170 | # Used on cygwin: DLL creation program. | |
18171 | DLLTOOL="$DLLTOOL" | |
18172 | ||
18173 | # Used on cygwin: object dumper. | |
18174 | OBJDUMP="$OBJDUMP" | |
18175 | ||
18176 | # Used on cygwin: assembler. | |
18177 | AS="$AS" | |
18178 | ||
18179 | # The name of the directory that contains temporary libtool files. | |
18180 | objdir=$objdir | |
18181 | ||
18182 | # How to create reloadable object files. | |
18183 | reload_flag=$lt_reload_flag | |
18184 | reload_cmds=$lt_reload_cmds | |
18185 | ||
18186 | # How to pass a linker flag through the compiler. | |
18187 | wl=$lt_lt_prog_compiler_wl_GCJ | |
18188 | ||
18189 | # Object file suffix (normally "o"). | |
18190 | objext="$ac_objext" | |
18191 | ||
18192 | # Old archive suffix (normally "a"). | |
18193 | libext="$libext" | |
18194 | ||
18195 | # Shared library suffix (normally ".so"). | |
18196 | shrext_cmds='$shrext_cmds' | |
18197 | ||
18198 | # Executable file suffix (normally ""). | |
18199 | exeext="$exeext" | |
18200 | ||
18201 | # Additional compiler flags for building library objects. | |
18202 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | |
18203 | pic_mode=$pic_mode | |
18204 | ||
18205 | # What is the maximum length of a command? | |
18206 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
18207 | ||
18208 | # Does compiler simultaneously support -c and -o options? | |
18209 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | |
18210 | ||
087278d6 | 18211 | # Must we lock files when doing compilation? |
a33e1d91 | 18212 | need_locks=$lt_need_locks |
18213 | ||
18214 | # Do we need the lib prefix for modules? | |
18215 | need_lib_prefix=$need_lib_prefix | |
18216 | ||
18217 | # Do we need a version for libraries? | |
18218 | need_version=$need_version | |
18219 | ||
18220 | # Whether dlopen is supported. | |
18221 | dlopen_support=$enable_dlopen | |
18222 | ||
18223 | # Whether dlopen of programs is supported. | |
18224 | dlopen_self=$enable_dlopen_self | |
18225 | ||
18226 | # Whether dlopen of statically linked programs is supported. | |
18227 | dlopen_self_static=$enable_dlopen_self_static | |
18228 | ||
18229 | # Compiler flag to prevent dynamic linking. | |
18230 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | |
18231 | ||
18232 | # Compiler flag to turn off builtin functions. | |
18233 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | |
18234 | ||
18235 | # Compiler flag to allow reflexive dlopens. | |
18236 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | |
18237 | ||
18238 | # Compiler flag to generate shared objects directly from archives. | |
18239 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | |
18240 | ||
18241 | # Compiler flag to generate thread-safe objects. | |
18242 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | |
18243 | ||
18244 | # Library versioning type. | |
18245 | version_type=$version_type | |
18246 | ||
18247 | # Format of library name prefix. | |
18248 | libname_spec=$lt_libname_spec | |
18249 | ||
18250 | # List of archive names. First name is the real one, the rest are links. | |
18251 | # The last name is the one that the linker finds with -lNAME. | |
18252 | library_names_spec=$lt_library_names_spec | |
18253 | ||
18254 | # The coded name of the library, if different from the real name. | |
18255 | soname_spec=$lt_soname_spec | |
18256 | ||
18257 | # Commands used to build and install an old-style archive. | |
18258 | RANLIB=$lt_RANLIB | |
18259 | old_archive_cmds=$lt_old_archive_cmds_GCJ | |
18260 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
18261 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18262 | ||
18263 | # Create an old-style archive from a shared archive. | |
18264 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | |
18265 | ||
18266 | # Create a temporary old-style archive to link instead of a shared archive. | |
18267 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | |
18268 | ||
18269 | # Commands used to build and install a shared archive. | |
18270 | archive_cmds=$lt_archive_cmds_GCJ | |
18271 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | |
18272 | postinstall_cmds=$lt_postinstall_cmds | |
18273 | postuninstall_cmds=$lt_postuninstall_cmds | |
18274 | ||
18275 | # Commands used to build a loadable module (assumed same as above if empty) | |
18276 | module_cmds=$lt_module_cmds_GCJ | |
18277 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ | |
18278 | ||
18279 | # Commands to strip libraries. | |
18280 | old_striplib=$lt_old_striplib | |
18281 | striplib=$lt_striplib | |
18282 | ||
18283 | # Dependencies to place before the objects being linked to create a | |
18284 | # shared library. | |
18285 | predep_objects=$lt_predep_objects_GCJ | |
18286 | ||
18287 | # Dependencies to place after the objects being linked to create a | |
18288 | # shared library. | |
18289 | postdep_objects=$lt_postdep_objects_GCJ | |
18290 | ||
18291 | # Dependencies to place before the objects being linked to create a | |
18292 | # shared library. | |
18293 | predeps=$lt_predeps_GCJ | |
18294 | ||
18295 | # Dependencies to place after the objects being linked to create a | |
18296 | # shared library. | |
18297 | postdeps=$lt_postdeps_GCJ | |
18298 | ||
18299 | # The library search path used internally by the compiler when linking | |
18300 | # a shared library. | |
18301 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | |
18302 | ||
18303 | # Method to check whether dependent libraries are shared objects. | |
18304 | deplibs_check_method=$lt_deplibs_check_method | |
18305 | ||
18306 | # Command to use when deplibs_check_method == file_magic. | |
18307 | file_magic_cmd=$lt_file_magic_cmd | |
18308 | ||
18309 | # Flag that allows shared libraries with undefined symbols to be built. | |
18310 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | |
18311 | ||
18312 | # Flag that forces no undefined symbols. | |
18313 | no_undefined_flag=$lt_no_undefined_flag_GCJ | |
18314 | ||
18315 | # Commands used to finish a libtool library installation in a directory. | |
18316 | finish_cmds=$lt_finish_cmds | |
18317 | ||
18318 | # Same as above, but a single script fragment to be evaled but not shown. | |
18319 | finish_eval=$lt_finish_eval | |
18320 | ||
18321 | # Take the output of nm and produce a listing of raw symbols and C names. | |
18322 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18323 | ||
18324 | # Transform the output of nm in a proper C declaration | |
18325 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18326 | ||
18327 | # Transform the output of nm in a C name address pair | |
18328 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18329 | ||
18330 | # This is the shared library runtime path variable. | |
18331 | runpath_var=$runpath_var | |
18332 | ||
18333 | # This is the shared library path variable. | |
18334 | shlibpath_var=$shlibpath_var | |
18335 | ||
18336 | # Is shlibpath searched before the hard-coded library search path? | |
18337 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18338 | ||
18339 | # How to hardcode a shared library path into an executable. | |
18340 | hardcode_action=$hardcode_action_GCJ | |
18341 | ||
18342 | # Whether we should hardcode library paths into libraries. | |
18343 | hardcode_into_libs=$hardcode_into_libs | |
18344 | ||
18345 | # Flag to hardcode \$libdir into a binary during linking. | |
18346 | # This must work even if \$libdir does not exist. | |
18347 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | |
18348 | ||
18349 | # If ld is used when linking, flag to hardcode \$libdir into | |
18350 | # a binary during linking. This must work even if \$libdir does | |
18351 | # not exist. | |
18352 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | |
18353 | ||
18354 | # Whether we need a single -rpath flag with a separated argument. | |
18355 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | |
18356 | ||
18357 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
18358 | # resulting binary. | |
18359 | hardcode_direct=$hardcode_direct_GCJ | |
18360 | ||
18361 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
18362 | # resulting binary. | |
18363 | hardcode_minus_L=$hardcode_minus_L_GCJ | |
18364 | ||
18365 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
18366 | # the resulting binary. | |
18367 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | |
18368 | ||
18369 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
18370 | # and all subsequent libraries and executables linked against it. | |
18371 | hardcode_automatic=$hardcode_automatic_GCJ | |
18372 | ||
18373 | # Variables whose values should be saved in libtool wrapper scripts and | |
18374 | # restored at relink time. | |
18375 | variables_saved_for_relink="$variables_saved_for_relink" | |
18376 | ||
18377 | # Whether libtool must link a program against all its dependency libraries. | |
18378 | link_all_deplibs=$link_all_deplibs_GCJ | |
18379 | ||
18380 | # Compile-time system search path for libraries | |
18381 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
18382 | ||
18383 | # Run-time system search path for libraries | |
18384 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18385 | ||
18386 | # Fix the shell variable \$srcfile for the compiler. | |
18387 | fix_srcfile_path="$fix_srcfile_path_GCJ" | |
18388 | ||
18389 | # Set to yes if exported symbols are required. | |
18390 | always_export_symbols=$always_export_symbols_GCJ | |
18391 | ||
18392 | # The commands to list exported symbols. | |
18393 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | |
18394 | ||
18395 | # The commands to extract the exported symbol list from a shared archive. | |
18396 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18397 | ||
18398 | # Symbols that should not be listed in the preloaded symbols. | |
18399 | exclude_expsyms=$lt_exclude_expsyms_GCJ | |
18400 | ||
18401 | # Symbols that must always be exported. | |
18402 | include_expsyms=$lt_include_expsyms_GCJ | |
18403 | ||
18404 | # ### END LIBTOOL TAG CONFIG: $tagname | |
18405 | ||
18406 | __EOF__ | |
18407 | ||
18408 | ||
18409 | else | |
18410 | # If there is no Makefile yet, we rely on a make rule to execute | |
18411 | # `config.status --recheck' to rerun these tests and create the | |
18412 | # libtool script then. | |
18413 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
18414 | if test -f "$ltmain_in"; then | |
18415 | test -f Makefile && make "$ltmain" | |
18416 | fi | |
18417 | fi | |
18418 | ||
18419 | ||
18420 | ac_ext=c | |
18421 | ac_cpp='$CPP $CPPFLAGS' | |
18422 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18423 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18424 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18425 | ||
18426 | CC="$lt_save_CC" | |
18427 | ||
18428 | else | |
18429 | tagname="" | |
18430 | fi | |
18431 | ;; | |
18432 | ||
18433 | RC) | |
18434 | ||
18435 | ||
18436 | ||
18437 | # Source file extension for RC test sources. | |
18438 | ac_ext=rc | |
18439 | ||
18440 | # Object file extension for compiled RC test sources. | |
18441 | objext=o | |
18442 | objext_RC=$objext | |
18443 | ||
18444 | # Code to be used in simple compile tests | |
18445 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | |
18446 | ||
18447 | # Code to be used in simple link tests | |
18448 | lt_simple_link_test_code="$lt_simple_compile_test_code" | |
18449 | ||
18450 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
18451 | ||
18452 | # If no C compiler was specified, use CC. | |
18453 | LTCC=${LTCC-"$CC"} | |
18454 | ||
62567204 | 18455 | # If no C compiler flags were specified, use CFLAGS. |
18456 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
18457 | ||
a33e1d91 | 18458 | # Allow CC to be a program name with arguments. |
18459 | compiler=$CC | |
18460 | ||
18461 | ||
087278d6 | 18462 | # save warnings/boilerplate of simple test code |
18463 | ac_outfile=conftest.$ac_objext | |
18464 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
62567204 | 18465 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
087278d6 | 18466 | _lt_compiler_boilerplate=`cat conftest.err` |
18467 | $rm conftest* | |
18468 | ||
18469 | ac_outfile=conftest.$ac_objext | |
18470 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
62567204 | 18471 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
087278d6 | 18472 | _lt_linker_boilerplate=`cat conftest.err` |
18473 | $rm conftest* | |
18474 | ||
18475 | ||
a33e1d91 | 18476 | # Allow CC to be a program name with arguments. |
18477 | lt_save_CC="$CC" | |
18478 | CC=${RC-"windres"} | |
18479 | compiler=$CC | |
18480 | compiler_RC=$CC | |
087278d6 | 18481 | for cc_temp in $compiler""; do |
18482 | case $cc_temp in | |
18483 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
18484 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
18485 | \-*) ;; | |
18486 | *) break;; | |
18487 | esac | |
18488 | done | |
18489 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
18490 | ||
a33e1d91 | 18491 | lt_cv_prog_compiler_c_o_RC=yes |
18492 | ||
18493 | # The else clause should only fire when bootstrapping the | |
18494 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
18495 | # with your package, and you will get complaints that there are | |
18496 | # no rules to generate ltmain.sh. | |
18497 | if test -f "$ltmain"; then | |
18498 | # See if we are running on zsh, and set the options which allow our commands through | |
18499 | # without removal of \ escapes. | |
18500 | if test -n "${ZSH_VERSION+set}" ; then | |
18501 | setopt NO_GLOB_SUBST | |
18502 | fi | |
18503 | # Now quote all the things that may contain metacharacters while being | |
18504 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
18505 | # variables and quote the copies for generation of the libtool script. | |
62567204 | 18506 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
a33e1d91 | 18507 | SED SHELL STRIP \ |
18508 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
18509 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
18510 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
18511 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
18512 | lt_cv_sys_global_symbol_to_c_name_address \ | |
18513 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
18514 | old_postinstall_cmds old_postuninstall_cmds \ | |
18515 | compiler_RC \ | |
18516 | CC_RC \ | |
18517 | LD_RC \ | |
18518 | lt_prog_compiler_wl_RC \ | |
18519 | lt_prog_compiler_pic_RC \ | |
18520 | lt_prog_compiler_static_RC \ | |
18521 | lt_prog_compiler_no_builtin_flag_RC \ | |
18522 | export_dynamic_flag_spec_RC \ | |
18523 | thread_safe_flag_spec_RC \ | |
18524 | whole_archive_flag_spec_RC \ | |
18525 | enable_shared_with_static_runtimes_RC \ | |
18526 | old_archive_cmds_RC \ | |
18527 | old_archive_from_new_cmds_RC \ | |
18528 | predep_objects_RC \ | |
18529 | postdep_objects_RC \ | |
18530 | predeps_RC \ | |
18531 | postdeps_RC \ | |
18532 | compiler_lib_search_path_RC \ | |
18533 | archive_cmds_RC \ | |
18534 | archive_expsym_cmds_RC \ | |
18535 | postinstall_cmds_RC \ | |
18536 | postuninstall_cmds_RC \ | |
18537 | old_archive_from_expsyms_cmds_RC \ | |
18538 | allow_undefined_flag_RC \ | |
18539 | no_undefined_flag_RC \ | |
18540 | export_symbols_cmds_RC \ | |
18541 | hardcode_libdir_flag_spec_RC \ | |
18542 | hardcode_libdir_flag_spec_ld_RC \ | |
18543 | hardcode_libdir_separator_RC \ | |
18544 | hardcode_automatic_RC \ | |
18545 | module_cmds_RC \ | |
18546 | module_expsym_cmds_RC \ | |
18547 | lt_cv_prog_compiler_c_o_RC \ | |
18548 | exclude_expsyms_RC \ | |
18549 | include_expsyms_RC; do | |
18550 | ||
18551 | case $var in | |
18552 | old_archive_cmds_RC | \ | |
18553 | old_archive_from_new_cmds_RC | \ | |
18554 | archive_cmds_RC | \ | |
18555 | archive_expsym_cmds_RC | \ | |
18556 | module_cmds_RC | \ | |
18557 | module_expsym_cmds_RC | \ | |
18558 | old_archive_from_expsyms_cmds_RC | \ | |
18559 | export_symbols_cmds_RC | \ | |
18560 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
18561 | postinstall_cmds | postuninstall_cmds | \ | |
18562 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
18563 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
18564 | # Double-quote double-evaled strings. | |
18565 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
18566 | ;; | |
18567 | *) | |
18568 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
18569 | ;; | |
18570 | esac | |
18571 | done | |
18572 | ||
18573 | case $lt_echo in | |
18574 | *'\$0 --fallback-echo"') | |
18575 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
18576 | ;; | |
18577 | esac | |
18578 | ||
18579 | cfgfile="$ofile" | |
18580 | ||
18581 | cat <<__EOF__ >> "$cfgfile" | |
18582 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
18583 | ||
18584 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
18585 | ||
18586 | # Shell to use when invoking shell scripts. | |
18587 | SHELL=$lt_SHELL | |
18588 | ||
18589 | # Whether or not to build shared libraries. | |
18590 | build_libtool_libs=$enable_shared | |
18591 | ||
18592 | # Whether or not to build static libraries. | |
18593 | build_old_libs=$enable_static | |
18594 | ||
18595 | # Whether or not to add -lc for building shared libraries. | |
18596 | build_libtool_need_lc=$archive_cmds_need_lc_RC | |
18597 | ||
18598 | # Whether or not to disallow shared libs when runtime libs are static | |
18599 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | |
18600 | ||
18601 | # Whether or not to optimize for fast installation. | |
18602 | fast_install=$enable_fast_install | |
18603 | ||
18604 | # The host system. | |
18605 | host_alias=$host_alias | |
18606 | host=$host | |
087278d6 | 18607 | host_os=$host_os |
18608 | ||
18609 | # The build system. | |
18610 | build_alias=$build_alias | |
18611 | build=$build | |
18612 | build_os=$build_os | |
a33e1d91 | 18613 | |
18614 | # An echo program that does not interpret backslashes. | |
18615 | echo=$lt_echo | |
18616 | ||
18617 | # The archiver. | |
18618 | AR=$lt_AR | |
18619 | AR_FLAGS=$lt_AR_FLAGS | |
18620 | ||
18621 | # A C compiler. | |
18622 | LTCC=$lt_LTCC | |
18623 | ||
62567204 | 18624 | # LTCC compiler flags. |
18625 | LTCFLAGS=$lt_LTCFLAGS | |
18626 | ||
a33e1d91 | 18627 | # A language-specific compiler. |
18628 | CC=$lt_compiler_RC | |
18629 | ||
18630 | # Is the compiler the GNU C compiler? | |
18631 | with_gcc=$GCC_RC | |
18632 | ||
18633 | # An ERE matcher. | |
18634 | EGREP=$lt_EGREP | |
18635 | ||
18636 | # The linker used to build libraries. | |
18637 | LD=$lt_LD_RC | |
18638 | ||
18639 | # Whether we need hard or soft links. | |
18640 | LN_S=$lt_LN_S | |
18641 | ||
18642 | # A BSD-compatible nm program. | |
18643 | NM=$lt_NM | |
18644 | ||
18645 | # A symbol stripping program | |
18646 | STRIP=$lt_STRIP | |
18647 | ||
18648 | # Used to examine libraries when file_magic_cmd begins "file" | |
18649 | MAGIC_CMD=$MAGIC_CMD | |
18650 | ||
18651 | # Used on cygwin: DLL creation program. | |
18652 | DLLTOOL="$DLLTOOL" | |
18653 | ||
18654 | # Used on cygwin: object dumper. | |
18655 | OBJDUMP="$OBJDUMP" | |
18656 | ||
18657 | # Used on cygwin: assembler. | |
18658 | AS="$AS" | |
18659 | ||
18660 | # The name of the directory that contains temporary libtool files. | |
18661 | objdir=$objdir | |
18662 | ||
18663 | # How to create reloadable object files. | |
18664 | reload_flag=$lt_reload_flag | |
18665 | reload_cmds=$lt_reload_cmds | |
18666 | ||
18667 | # How to pass a linker flag through the compiler. | |
18668 | wl=$lt_lt_prog_compiler_wl_RC | |
18669 | ||
18670 | # Object file suffix (normally "o"). | |
18671 | objext="$ac_objext" | |
18672 | ||
18673 | # Old archive suffix (normally "a"). | |
18674 | libext="$libext" | |
18675 | ||
18676 | # Shared library suffix (normally ".so"). | |
18677 | shrext_cmds='$shrext_cmds' | |
18678 | ||
18679 | # Executable file suffix (normally ""). | |
18680 | exeext="$exeext" | |
18681 | ||
18682 | # Additional compiler flags for building library objects. | |
18683 | pic_flag=$lt_lt_prog_compiler_pic_RC | |
18684 | pic_mode=$pic_mode | |
18685 | ||
18686 | # What is the maximum length of a command? | |
18687 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
18688 | ||
18689 | # Does compiler simultaneously support -c and -o options? | |
18690 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | |
18691 | ||
087278d6 | 18692 | # Must we lock files when doing compilation? |
a33e1d91 | 18693 | need_locks=$lt_need_locks |
18694 | ||
18695 | # Do we need the lib prefix for modules? | |
18696 | need_lib_prefix=$need_lib_prefix | |
18697 | ||
18698 | # Do we need a version for libraries? | |
18699 | need_version=$need_version | |
18700 | ||
18701 | # Whether dlopen is supported. | |
18702 | dlopen_support=$enable_dlopen | |
18703 | ||
18704 | # Whether dlopen of programs is supported. | |
18705 | dlopen_self=$enable_dlopen_self | |
18706 | ||
18707 | # Whether dlopen of statically linked programs is supported. | |
18708 | dlopen_self_static=$enable_dlopen_self_static | |
18709 | ||
18710 | # Compiler flag to prevent dynamic linking. | |
18711 | link_static_flag=$lt_lt_prog_compiler_static_RC | |
18712 | ||
18713 | # Compiler flag to turn off builtin functions. | |
18714 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | |
18715 | ||
18716 | # Compiler flag to allow reflexive dlopens. | |
18717 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | |
18718 | ||
18719 | # Compiler flag to generate shared objects directly from archives. | |
18720 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | |
18721 | ||
18722 | # Compiler flag to generate thread-safe objects. | |
18723 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | |
18724 | ||
18725 | # Library versioning type. | |
18726 | version_type=$version_type | |
18727 | ||
18728 | # Format of library name prefix. | |
18729 | libname_spec=$lt_libname_spec | |
18730 | ||
18731 | # List of archive names. First name is the real one, the rest are links. | |
18732 | # The last name is the one that the linker finds with -lNAME. | |
18733 | library_names_spec=$lt_library_names_spec | |
18734 | ||
18735 | # The coded name of the library, if different from the real name. | |
18736 | soname_spec=$lt_soname_spec | |
18737 | ||
18738 | # Commands used to build and install an old-style archive. | |
18739 | RANLIB=$lt_RANLIB | |
18740 | old_archive_cmds=$lt_old_archive_cmds_RC | |
18741 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
18742 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
18743 | ||
18744 | # Create an old-style archive from a shared archive. | |
18745 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | |
18746 | ||
18747 | # Create a temporary old-style archive to link instead of a shared archive. | |
18748 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | |
18749 | ||
18750 | # Commands used to build and install a shared archive. | |
18751 | archive_cmds=$lt_archive_cmds_RC | |
18752 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | |
18753 | postinstall_cmds=$lt_postinstall_cmds | |
18754 | postuninstall_cmds=$lt_postuninstall_cmds | |
18755 | ||
18756 | # Commands used to build a loadable module (assumed same as above if empty) | |
18757 | module_cmds=$lt_module_cmds_RC | |
18758 | module_expsym_cmds=$lt_module_expsym_cmds_RC | |
18759 | ||
18760 | # Commands to strip libraries. | |
18761 | old_striplib=$lt_old_striplib | |
18762 | striplib=$lt_striplib | |
18763 | ||
18764 | # Dependencies to place before the objects being linked to create a | |
18765 | # shared library. | |
18766 | predep_objects=$lt_predep_objects_RC | |
18767 | ||
18768 | # Dependencies to place after the objects being linked to create a | |
18769 | # shared library. | |
18770 | postdep_objects=$lt_postdep_objects_RC | |
18771 | ||
18772 | # Dependencies to place before the objects being linked to create a | |
18773 | # shared library. | |
18774 | predeps=$lt_predeps_RC | |
18775 | ||
18776 | # Dependencies to place after the objects being linked to create a | |
18777 | # shared library. | |
18778 | postdeps=$lt_postdeps_RC | |
18779 | ||
18780 | # The library search path used internally by the compiler when linking | |
18781 | # a shared library. | |
18782 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | |
18783 | ||
18784 | # Method to check whether dependent libraries are shared objects. | |
18785 | deplibs_check_method=$lt_deplibs_check_method | |
18786 | ||
18787 | # Command to use when deplibs_check_method == file_magic. | |
18788 | file_magic_cmd=$lt_file_magic_cmd | |
18789 | ||
18790 | # Flag that allows shared libraries with undefined symbols to be built. | |
18791 | allow_undefined_flag=$lt_allow_undefined_flag_RC | |
18792 | ||
18793 | # Flag that forces no undefined symbols. | |
18794 | no_undefined_flag=$lt_no_undefined_flag_RC | |
18795 | ||
18796 | # Commands used to finish a libtool library installation in a directory. | |
18797 | finish_cmds=$lt_finish_cmds | |
18798 | ||
18799 | # Same as above, but a single script fragment to be evaled but not shown. | |
18800 | finish_eval=$lt_finish_eval | |
18801 | ||
18802 | # Take the output of nm and produce a listing of raw symbols and C names. | |
18803 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18804 | ||
18805 | # Transform the output of nm in a proper C declaration | |
18806 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18807 | ||
18808 | # Transform the output of nm in a C name address pair | |
18809 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18810 | ||
18811 | # This is the shared library runtime path variable. | |
18812 | runpath_var=$runpath_var | |
18813 | ||
18814 | # This is the shared library path variable. | |
18815 | shlibpath_var=$shlibpath_var | |
18816 | ||
18817 | # Is shlibpath searched before the hard-coded library search path? | |
18818 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18819 | ||
18820 | # How to hardcode a shared library path into an executable. | |
18821 | hardcode_action=$hardcode_action_RC | |
18822 | ||
18823 | # Whether we should hardcode library paths into libraries. | |
18824 | hardcode_into_libs=$hardcode_into_libs | |
18825 | ||
18826 | # Flag to hardcode \$libdir into a binary during linking. | |
18827 | # This must work even if \$libdir does not exist. | |
18828 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | |
18829 | ||
18830 | # If ld is used when linking, flag to hardcode \$libdir into | |
18831 | # a binary during linking. This must work even if \$libdir does | |
18832 | # not exist. | |
18833 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | |
18834 | ||
18835 | # Whether we need a single -rpath flag with a separated argument. | |
18836 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | |
18837 | ||
18838 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
18839 | # resulting binary. | |
18840 | hardcode_direct=$hardcode_direct_RC | |
18841 | ||
18842 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
18843 | # resulting binary. | |
18844 | hardcode_minus_L=$hardcode_minus_L_RC | |
18845 | ||
18846 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
18847 | # the resulting binary. | |
18848 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | |
18849 | ||
18850 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
18851 | # and all subsequent libraries and executables linked against it. | |
18852 | hardcode_automatic=$hardcode_automatic_RC | |
18853 | ||
18854 | # Variables whose values should be saved in libtool wrapper scripts and | |
18855 | # restored at relink time. | |
18856 | variables_saved_for_relink="$variables_saved_for_relink" | |
18857 | ||
18858 | # Whether libtool must link a program against all its dependency libraries. | |
18859 | link_all_deplibs=$link_all_deplibs_RC | |
18860 | ||
18861 | # Compile-time system search path for libraries | |
18862 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
18863 | ||
18864 | # Run-time system search path for libraries | |
18865 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18866 | ||
18867 | # Fix the shell variable \$srcfile for the compiler. | |
18868 | fix_srcfile_path="$fix_srcfile_path_RC" | |
18869 | ||
18870 | # Set to yes if exported symbols are required. | |
18871 | always_export_symbols=$always_export_symbols_RC | |
18872 | ||
18873 | # The commands to list exported symbols. | |
18874 | export_symbols_cmds=$lt_export_symbols_cmds_RC | |
18875 | ||
18876 | # The commands to extract the exported symbol list from a shared archive. | |
18877 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18878 | ||
18879 | # Symbols that should not be listed in the preloaded symbols. | |
18880 | exclude_expsyms=$lt_exclude_expsyms_RC | |
18881 | ||
18882 | # Symbols that must always be exported. | |
18883 | include_expsyms=$lt_include_expsyms_RC | |
18884 | ||
18885 | # ### END LIBTOOL TAG CONFIG: $tagname | |
18886 | ||
18887 | __EOF__ | |
18888 | ||
18889 | ||
18890 | else | |
18891 | # If there is no Makefile yet, we rely on a make rule to execute | |
18892 | # `config.status --recheck' to rerun these tests and create the | |
18893 | # libtool script then. | |
18894 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
18895 | if test -f "$ltmain_in"; then | |
18896 | test -f Makefile && make "$ltmain" | |
18897 | fi | |
18898 | fi | |
18899 | ||
18900 | ||
18901 | ac_ext=c | |
18902 | ac_cpp='$CPP $CPPFLAGS' | |
18903 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18904 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18905 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18906 | ||
18907 | CC="$lt_save_CC" | |
18908 | ||
18909 | ;; | |
18910 | ||
18911 | *) | |
18912 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | |
18913 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | |
18914 | { (exit 1); exit 1; }; } | |
18915 | ;; | |
18916 | esac | |
18917 | ||
18918 | # Append the new tag name to the list of available tags. | |
18919 | if test -n "$tagname" ; then | |
18920 | available_tags="$available_tags $tagname" | |
18921 | fi | |
18922 | fi | |
18923 | done | |
18924 | IFS="$lt_save_ifs" | |
18925 | ||
18926 | # Now substitute the updated list of available tags. | |
18927 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | |
18928 | mv "${ofile}T" "$ofile" | |
18929 | chmod +x "$ofile" | |
18930 | else | |
18931 | rm -f "${ofile}T" | |
18932 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | |
18933 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | |
18934 | { (exit 1); exit 1; }; } | |
18935 | fi | |
18936 | fi | |
18937 | ||
18938 | ||
18939 | ||
18940 | # This can be used to rebuild libtool when needed | |
18941 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | |
18942 | ||
18943 | # Always use our own libtool. | |
18944 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
18945 | ||
18946 | # Prevent multiple expansion | |
18947 | ||
18948 | ||
18949 | ||
18950 | ||
18951 | ||
18952 | ||
18953 | ||
18954 | ||
18955 | ||
18956 | ||
18957 | ||
18958 | ||
18959 | ||
18960 | ||
18961 | ||
18962 | ||
18963 | ||
18964 | ||
18965 | ||
18966 | ||
18967 | LIBADD_DL= | |
18968 | ||
18969 | ac_ext=c | |
18970 | ac_cpp='$CPP $CPPFLAGS' | |
18971 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18972 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18973 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18974 | ||
18975 | ||
18976 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
18977 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
18978 | if test "${ac_cv_func_shl_load+set}" = set; then | |
18979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18980 | else | |
18981 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 18982 | /* confdefs.h. */ |
18983 | _ACEOF | |
18984 | cat confdefs.h >>conftest.$ac_ext | |
18985 | cat >>conftest.$ac_ext <<_ACEOF | |
18986 | /* end confdefs.h. */ | |
af3004ff | 18987 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
18988 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18989 | #define shl_load innocuous_shl_load | |
18990 | ||
a33e1d91 | 18991 | /* System header to define __stub macros and hopefully few prototypes, |
18992 | which can conflict with char shl_load (); below. | |
18993 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18994 | <limits.h> exists even on freestanding compilers. */ | |
af3004ff | 18995 | |
a33e1d91 | 18996 | #ifdef __STDC__ |
18997 | # include <limits.h> | |
18998 | #else | |
18999 | # include <assert.h> | |
19000 | #endif | |
af3004ff | 19001 | |
19002 | #undef shl_load | |
19003 | ||
a33e1d91 | 19004 | /* Override any gcc2 internal prototype to avoid an error. */ |
19005 | #ifdef __cplusplus | |
19006 | extern "C" | |
19007 | { | |
19008 | #endif | |
19009 | /* We use char because int might match the return type of a gcc2 | |
19010 | builtin and then its argument prototype would still apply. */ | |
19011 | char shl_load (); | |
19012 | /* The GNU C library defines this for functions which it implements | |
19013 | to always fail with ENOSYS. Some functions are actually named | |
19014 | something starting with __ and the normal name is an alias. */ | |
19015 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
19016 | choke me | |
19017 | #else | |
19018 | char (*f) () = shl_load; | |
19019 | #endif | |
19020 | #ifdef __cplusplus | |
19021 | } | |
19022 | #endif | |
19023 | ||
19024 | int | |
19025 | main () | |
19026 | { | |
19027 | return f != shl_load; | |
19028 | ; | |
19029 | return 0; | |
19030 | } | |
19031 | _ACEOF | |
19032 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 19034 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 19035 | ac_status=$? |
af3004ff | 19036 | grep -v '^ *+' conftest.er1 >conftest.err |
19037 | rm -f conftest.er1 | |
19038 | cat conftest.err >&5 | |
a33e1d91 | 19039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19040 | (exit $ac_status); } && | |
6263d81f | 19041 | { ac_try='test -z "$ac_c_werror_flag" |
19042 | || test ! -s conftest.err' | |
af3004ff | 19043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19044 | (eval $ac_try) 2>&5 | |
19045 | ac_status=$? | |
19046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19047 | (exit $ac_status); }; } && | |
19048 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 19049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19050 | (eval $ac_try) 2>&5 | |
19051 | ac_status=$? | |
19052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19053 | (exit $ac_status); }; }; then | |
19054 | ac_cv_func_shl_load=yes | |
19055 | else | |
19056 | echo "$as_me: failed program was:" >&5 | |
19057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19058 | ||
19059 | ac_cv_func_shl_load=no | |
19060 | fi | |
af3004ff | 19061 | rm -f conftest.err conftest.$ac_objext \ |
19062 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 19063 | fi |
19064 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
19065 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
19066 | if test $ac_cv_func_shl_load = yes; then | |
19067 | ||
19068 | cat >>confdefs.h <<\_ACEOF | |
19069 | #define HAVE_SHL_LOAD 1 | |
19070 | _ACEOF | |
19071 | ||
19072 | else | |
19073 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
19074 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
19075 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
19076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19077 | else | |
19078 | ac_check_lib_save_LIBS=$LIBS | |
19079 | LIBS="-ldld $LIBS" | |
19080 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 19081 | /* confdefs.h. */ |
19082 | _ACEOF | |
19083 | cat confdefs.h >>conftest.$ac_ext | |
19084 | cat >>conftest.$ac_ext <<_ACEOF | |
19085 | /* end confdefs.h. */ | |
19086 | ||
19087 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19088 | #ifdef __cplusplus | |
19089 | extern "C" | |
19090 | #endif | |
19091 | /* We use char because int might match the return type of a gcc2 | |
19092 | builtin and then its argument prototype would still apply. */ | |
19093 | char shl_load (); | |
19094 | int | |
19095 | main () | |
19096 | { | |
19097 | shl_load (); | |
19098 | ; | |
19099 | return 0; | |
19100 | } | |
19101 | _ACEOF | |
19102 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 19104 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 19105 | ac_status=$? |
af3004ff | 19106 | grep -v '^ *+' conftest.er1 >conftest.err |
19107 | rm -f conftest.er1 | |
19108 | cat conftest.err >&5 | |
a33e1d91 | 19109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19110 | (exit $ac_status); } && | |
6263d81f | 19111 | { ac_try='test -z "$ac_c_werror_flag" |
19112 | || test ! -s conftest.err' | |
af3004ff | 19113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19114 | (eval $ac_try) 2>&5 | |
19115 | ac_status=$? | |
19116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19117 | (exit $ac_status); }; } && | |
19118 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 19119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19120 | (eval $ac_try) 2>&5 | |
19121 | ac_status=$? | |
19122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19123 | (exit $ac_status); }; }; then | |
19124 | ac_cv_lib_dld_shl_load=yes | |
19125 | else | |
19126 | echo "$as_me: failed program was:" >&5 | |
19127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19128 | ||
19129 | ac_cv_lib_dld_shl_load=no | |
19130 | fi | |
af3004ff | 19131 | rm -f conftest.err conftest.$ac_objext \ |
19132 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 19133 | LIBS=$ac_check_lib_save_LIBS |
19134 | fi | |
19135 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
19136 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
19137 | if test $ac_cv_lib_dld_shl_load = yes; then | |
19138 | ||
19139 | cat >>confdefs.h <<\_ACEOF | |
19140 | #define HAVE_SHL_LOAD 1 | |
19141 | _ACEOF | |
19142 | ||
19143 | LIBADD_DL="$LIBADD_DL -ldld" | |
19144 | else | |
19145 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
19146 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
19147 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
19148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19149 | else | |
19150 | ac_check_lib_save_LIBS=$LIBS | |
19151 | LIBS="-ldl $LIBS" | |
19152 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 19153 | /* confdefs.h. */ |
19154 | _ACEOF | |
19155 | cat confdefs.h >>conftest.$ac_ext | |
19156 | cat >>conftest.$ac_ext <<_ACEOF | |
19157 | /* end confdefs.h. */ | |
19158 | ||
19159 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19160 | #ifdef __cplusplus | |
19161 | extern "C" | |
19162 | #endif | |
19163 | /* We use char because int might match the return type of a gcc2 | |
19164 | builtin and then its argument prototype would still apply. */ | |
19165 | char dlopen (); | |
19166 | int | |
19167 | main () | |
19168 | { | |
19169 | dlopen (); | |
19170 | ; | |
19171 | return 0; | |
19172 | } | |
19173 | _ACEOF | |
19174 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19175 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 19176 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 19177 | ac_status=$? |
af3004ff | 19178 | grep -v '^ *+' conftest.er1 >conftest.err |
19179 | rm -f conftest.er1 | |
19180 | cat conftest.err >&5 | |
a33e1d91 | 19181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19182 | (exit $ac_status); } && | |
6263d81f | 19183 | { ac_try='test -z "$ac_c_werror_flag" |
19184 | || test ! -s conftest.err' | |
af3004ff | 19185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19186 | (eval $ac_try) 2>&5 | |
19187 | ac_status=$? | |
19188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19189 | (exit $ac_status); }; } && | |
19190 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 19191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19192 | (eval $ac_try) 2>&5 | |
19193 | ac_status=$? | |
19194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19195 | (exit $ac_status); }; }; then | |
19196 | ac_cv_lib_dl_dlopen=yes | |
19197 | else | |
19198 | echo "$as_me: failed program was:" >&5 | |
19199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19200 | ||
19201 | ac_cv_lib_dl_dlopen=no | |
19202 | fi | |
af3004ff | 19203 | rm -f conftest.err conftest.$ac_objext \ |
19204 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 19205 | LIBS=$ac_check_lib_save_LIBS |
19206 | fi | |
19207 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
19208 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
19209 | if test $ac_cv_lib_dl_dlopen = yes; then | |
19210 | ||
19211 | cat >>confdefs.h <<\_ACEOF | |
19212 | #define HAVE_LIBDL 1 | |
19213 | _ACEOF | |
19214 | ||
19215 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" | |
19216 | else | |
19217 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 19218 | /* confdefs.h. */ |
19219 | _ACEOF | |
19220 | cat confdefs.h >>conftest.$ac_ext | |
19221 | cat >>conftest.$ac_ext <<_ACEOF | |
19222 | /* end confdefs.h. */ | |
19223 | #if HAVE_DLFCN_H | |
19224 | # include <dlfcn.h> | |
19225 | #endif | |
19226 | ||
19227 | int | |
19228 | main () | |
19229 | { | |
19230 | dlopen(0, 0); | |
19231 | ; | |
19232 | return 0; | |
19233 | } | |
19234 | _ACEOF | |
19235 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19236 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 19237 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 19238 | ac_status=$? |
af3004ff | 19239 | grep -v '^ *+' conftest.er1 >conftest.err |
19240 | rm -f conftest.er1 | |
19241 | cat conftest.err >&5 | |
a33e1d91 | 19242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19243 | (exit $ac_status); } && | |
6263d81f | 19244 | { ac_try='test -z "$ac_c_werror_flag" |
19245 | || test ! -s conftest.err' | |
af3004ff | 19246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19247 | (eval $ac_try) 2>&5 | |
19248 | ac_status=$? | |
19249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19250 | (exit $ac_status); }; } && | |
19251 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 19252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19253 | (eval $ac_try) 2>&5 | |
19254 | ac_status=$? | |
19255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19256 | (exit $ac_status); }; }; then | |
19257 | ||
19258 | cat >>confdefs.h <<\_ACEOF | |
19259 | #define HAVE_LIBDL 1 | |
19260 | _ACEOF | |
19261 | libltdl_cv_func_dlopen="yes" | |
19262 | else | |
19263 | echo "$as_me: failed program was:" >&5 | |
19264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19265 | ||
19266 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
19267 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
19268 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
19269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19270 | else | |
19271 | ac_check_lib_save_LIBS=$LIBS | |
19272 | LIBS="-lsvld $LIBS" | |
19273 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 19274 | /* confdefs.h. */ |
19275 | _ACEOF | |
19276 | cat confdefs.h >>conftest.$ac_ext | |
19277 | cat >>conftest.$ac_ext <<_ACEOF | |
19278 | /* end confdefs.h. */ | |
19279 | ||
19280 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19281 | #ifdef __cplusplus | |
19282 | extern "C" | |
19283 | #endif | |
19284 | /* We use char because int might match the return type of a gcc2 | |
19285 | builtin and then its argument prototype would still apply. */ | |
19286 | char dlopen (); | |
19287 | int | |
19288 | main () | |
19289 | { | |
19290 | dlopen (); | |
19291 | ; | |
19292 | return 0; | |
19293 | } | |
19294 | _ACEOF | |
19295 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 19297 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 19298 | ac_status=$? |
af3004ff | 19299 | grep -v '^ *+' conftest.er1 >conftest.err |
19300 | rm -f conftest.er1 | |
19301 | cat conftest.err >&5 | |
a33e1d91 | 19302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19303 | (exit $ac_status); } && | |
6263d81f | 19304 | { ac_try='test -z "$ac_c_werror_flag" |
19305 | || test ! -s conftest.err' | |
af3004ff | 19306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19307 | (eval $ac_try) 2>&5 | |
19308 | ac_status=$? | |
19309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19310 | (exit $ac_status); }; } && | |
19311 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 19312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19313 | (eval $ac_try) 2>&5 | |
19314 | ac_status=$? | |
19315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19316 | (exit $ac_status); }; }; then | |
19317 | ac_cv_lib_svld_dlopen=yes | |
19318 | else | |
19319 | echo "$as_me: failed program was:" >&5 | |
19320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19321 | ||
19322 | ac_cv_lib_svld_dlopen=no | |
19323 | fi | |
af3004ff | 19324 | rm -f conftest.err conftest.$ac_objext \ |
19325 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 19326 | LIBS=$ac_check_lib_save_LIBS |
19327 | fi | |
19328 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
19329 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
19330 | if test $ac_cv_lib_svld_dlopen = yes; then | |
19331 | ||
19332 | cat >>confdefs.h <<\_ACEOF | |
19333 | #define HAVE_LIBDL 1 | |
19334 | _ACEOF | |
19335 | ||
19336 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" | |
19337 | else | |
19338 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
19339 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
19340 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
19341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19342 | else | |
19343 | ac_check_lib_save_LIBS=$LIBS | |
19344 | LIBS="-ldld $LIBS" | |
19345 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 19346 | /* confdefs.h. */ |
19347 | _ACEOF | |
19348 | cat confdefs.h >>conftest.$ac_ext | |
19349 | cat >>conftest.$ac_ext <<_ACEOF | |
19350 | /* end confdefs.h. */ | |
19351 | ||
19352 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19353 | #ifdef __cplusplus | |
19354 | extern "C" | |
19355 | #endif | |
19356 | /* We use char because int might match the return type of a gcc2 | |
19357 | builtin and then its argument prototype would still apply. */ | |
19358 | char dld_link (); | |
19359 | int | |
19360 | main () | |
19361 | { | |
19362 | dld_link (); | |
19363 | ; | |
19364 | return 0; | |
19365 | } | |
19366 | _ACEOF | |
19367 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19368 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 19369 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 19370 | ac_status=$? |
af3004ff | 19371 | grep -v '^ *+' conftest.er1 >conftest.err |
19372 | rm -f conftest.er1 | |
19373 | cat conftest.err >&5 | |
a33e1d91 | 19374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19375 | (exit $ac_status); } && | |
6263d81f | 19376 | { ac_try='test -z "$ac_c_werror_flag" |
19377 | || test ! -s conftest.err' | |
af3004ff | 19378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19379 | (eval $ac_try) 2>&5 | |
19380 | ac_status=$? | |
19381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19382 | (exit $ac_status); }; } && | |
19383 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 19384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19385 | (eval $ac_try) 2>&5 | |
19386 | ac_status=$? | |
19387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19388 | (exit $ac_status); }; }; then | |
19389 | ac_cv_lib_dld_dld_link=yes | |
19390 | else | |
19391 | echo "$as_me: failed program was:" >&5 | |
19392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19393 | ||
19394 | ac_cv_lib_dld_dld_link=no | |
19395 | fi | |
af3004ff | 19396 | rm -f conftest.err conftest.$ac_objext \ |
19397 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 19398 | LIBS=$ac_check_lib_save_LIBS |
19399 | fi | |
19400 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
19401 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
19402 | if test $ac_cv_lib_dld_dld_link = yes; then | |
19403 | ||
19404 | cat >>confdefs.h <<\_ACEOF | |
19405 | #define HAVE_DLD 1 | |
19406 | _ACEOF | |
19407 | ||
19408 | LIBADD_DL="$LIBADD_DL -ldld" | |
19409 | else | |
19410 | echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 | |
19411 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6 | |
19412 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then | |
19413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19414 | else | |
19415 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 19416 | /* confdefs.h. */ |
19417 | _ACEOF | |
19418 | cat confdefs.h >>conftest.$ac_ext | |
19419 | cat >>conftest.$ac_ext <<_ACEOF | |
19420 | /* end confdefs.h. */ | |
af3004ff | 19421 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. |
19422 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19423 | #define _dyld_func_lookup innocuous__dyld_func_lookup | |
19424 | ||
a33e1d91 | 19425 | /* System header to define __stub macros and hopefully few prototypes, |
19426 | which can conflict with char _dyld_func_lookup (); below. | |
19427 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19428 | <limits.h> exists even on freestanding compilers. */ | |
af3004ff | 19429 | |
a33e1d91 | 19430 | #ifdef __STDC__ |
19431 | # include <limits.h> | |
19432 | #else | |
19433 | # include <assert.h> | |
19434 | #endif | |
af3004ff | 19435 | |
19436 | #undef _dyld_func_lookup | |
19437 | ||
a33e1d91 | 19438 | /* Override any gcc2 internal prototype to avoid an error. */ |
19439 | #ifdef __cplusplus | |
19440 | extern "C" | |
19441 | { | |
19442 | #endif | |
19443 | /* We use char because int might match the return type of a gcc2 | |
19444 | builtin and then its argument prototype would still apply. */ | |
19445 | char _dyld_func_lookup (); | |
19446 | /* The GNU C library defines this for functions which it implements | |
19447 | to always fail with ENOSYS. Some functions are actually named | |
19448 | something starting with __ and the normal name is an alias. */ | |
19449 | #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup) | |
19450 | choke me | |
19451 | #else | |
19452 | char (*f) () = _dyld_func_lookup; | |
19453 | #endif | |
19454 | #ifdef __cplusplus | |
19455 | } | |
19456 | #endif | |
19457 | ||
19458 | int | |
19459 | main () | |
19460 | { | |
19461 | return f != _dyld_func_lookup; | |
19462 | ; | |
19463 | return 0; | |
19464 | } | |
19465 | _ACEOF | |
19466 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 19468 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 19469 | ac_status=$? |
af3004ff | 19470 | grep -v '^ *+' conftest.er1 >conftest.err |
19471 | rm -f conftest.er1 | |
19472 | cat conftest.err >&5 | |
a33e1d91 | 19473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19474 | (exit $ac_status); } && | |
6263d81f | 19475 | { ac_try='test -z "$ac_c_werror_flag" |
19476 | || test ! -s conftest.err' | |
af3004ff | 19477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19478 | (eval $ac_try) 2>&5 | |
19479 | ac_status=$? | |
19480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19481 | (exit $ac_status); }; } && | |
19482 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 19483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19484 | (eval $ac_try) 2>&5 | |
19485 | ac_status=$? | |
19486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19487 | (exit $ac_status); }; }; then | |
19488 | ac_cv_func__dyld_func_lookup=yes | |
19489 | else | |
19490 | echo "$as_me: failed program was:" >&5 | |
19491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19492 | ||
19493 | ac_cv_func__dyld_func_lookup=no | |
19494 | fi | |
af3004ff | 19495 | rm -f conftest.err conftest.$ac_objext \ |
19496 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 19497 | fi |
19498 | echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 | |
19499 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6 | |
19500 | if test $ac_cv_func__dyld_func_lookup = yes; then | |
19501 | ||
19502 | cat >>confdefs.h <<\_ACEOF | |
19503 | #define HAVE_DYLD 1 | |
19504 | _ACEOF | |
19505 | ||
19506 | fi | |
19507 | ||
19508 | ||
19509 | fi | |
19510 | ||
19511 | ||
19512 | fi | |
19513 | ||
19514 | ||
19515 | fi | |
af3004ff | 19516 | rm -f conftest.err conftest.$ac_objext \ |
19517 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 19518 | |
19519 | fi | |
19520 | ||
19521 | ||
19522 | fi | |
19523 | ||
19524 | ||
19525 | fi | |
19526 | ||
19527 | ||
19528 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes | |
19529 | then | |
19530 | lt_save_LIBS="$LIBS" | |
19531 | LIBS="$LIBS $LIBADD_DL" | |
19532 | ||
19533 | for ac_func in dlerror | |
19534 | do | |
19535 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
19536 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
19537 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19538 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
19539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19540 | else | |
19541 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 19542 | /* confdefs.h. */ |
19543 | _ACEOF | |
19544 | cat confdefs.h >>conftest.$ac_ext | |
19545 | cat >>conftest.$ac_ext <<_ACEOF | |
19546 | /* end confdefs.h. */ | |
af3004ff | 19547 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19548 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19549 | #define $ac_func innocuous_$ac_func | |
19550 | ||
a33e1d91 | 19551 | /* System header to define __stub macros and hopefully few prototypes, |
19552 | which can conflict with char $ac_func (); below. | |
19553 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19554 | <limits.h> exists even on freestanding compilers. */ | |
af3004ff | 19555 | |
a33e1d91 | 19556 | #ifdef __STDC__ |
19557 | # include <limits.h> | |
19558 | #else | |
19559 | # include <assert.h> | |
19560 | #endif | |
af3004ff | 19561 | |
19562 | #undef $ac_func | |
19563 | ||
a33e1d91 | 19564 | /* Override any gcc2 internal prototype to avoid an error. */ |
19565 | #ifdef __cplusplus | |
19566 | extern "C" | |
19567 | { | |
19568 | #endif | |
19569 | /* We use char because int might match the return type of a gcc2 | |
19570 | builtin and then its argument prototype would still apply. */ | |
19571 | char $ac_func (); | |
19572 | /* The GNU C library defines this for functions which it implements | |
19573 | to always fail with ENOSYS. Some functions are actually named | |
19574 | something starting with __ and the normal name is an alias. */ | |
19575 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19576 | choke me | |
19577 | #else | |
19578 | char (*f) () = $ac_func; | |
19579 | #endif | |
19580 | #ifdef __cplusplus | |
19581 | } | |
19582 | #endif | |
19583 | ||
19584 | int | |
19585 | main () | |
19586 | { | |
19587 | return f != $ac_func; | |
19588 | ; | |
19589 | return 0; | |
19590 | } | |
19591 | _ACEOF | |
19592 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 19594 | (eval $ac_link) 2>conftest.er1 |
a33e1d91 | 19595 | ac_status=$? |
af3004ff | 19596 | grep -v '^ *+' conftest.er1 >conftest.err |
19597 | rm -f conftest.er1 | |
19598 | cat conftest.err >&5 | |
a33e1d91 | 19599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19600 | (exit $ac_status); } && | |
6263d81f | 19601 | { ac_try='test -z "$ac_c_werror_flag" |
19602 | || test ! -s conftest.err' | |
af3004ff | 19603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19604 | (eval $ac_try) 2>&5 | |
19605 | ac_status=$? | |
19606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19607 | (exit $ac_status); }; } && | |
19608 | { ac_try='test -s conftest$ac_exeext' | |
a33e1d91 | 19609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19610 | (eval $ac_try) 2>&5 | |
19611 | ac_status=$? | |
19612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19613 | (exit $ac_status); }; }; then | |
19614 | eval "$as_ac_var=yes" | |
19615 | else | |
19616 | echo "$as_me: failed program was:" >&5 | |
19617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19618 | ||
19619 | eval "$as_ac_var=no" | |
19620 | fi | |
af3004ff | 19621 | rm -f conftest.err conftest.$ac_objext \ |
19622 | conftest$ac_exeext conftest.$ac_ext | |
a33e1d91 | 19623 | fi |
19624 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
19625 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
19626 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
19627 | cat >>confdefs.h <<_ACEOF | |
19628 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19629 | _ACEOF | |
19630 | ||
19631 | fi | |
19632 | done | |
19633 | ||
19634 | LIBS="$lt_save_LIBS" | |
19635 | fi | |
19636 | ac_ext=c | |
19637 | ac_cpp='$CPP $CPPFLAGS' | |
19638 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19639 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19640 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19641 | ||
19642 | ||
07d1f987 | 19643 | if test -n "$ac_tool_prefix"; then |
19644 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
19645 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
19646 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
19647 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
19648 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
19649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19650 | else | |
19651 | if test -n "$RANLIB"; then | |
19652 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
19653 | else | |
19654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19655 | for as_dir in $PATH | |
19656 | do | |
19657 | IFS=$as_save_IFS | |
19658 | test -z "$as_dir" && as_dir=. | |
19659 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19660 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19661 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
19662 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19663 | break 2 | |
19664 | fi | |
19665 | done | |
19666 | done | |
19667 | ||
19668 | fi | |
19669 | fi | |
19670 | RANLIB=$ac_cv_prog_RANLIB | |
19671 | if test -n "$RANLIB"; then | |
19672 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
19673 | echo "${ECHO_T}$RANLIB" >&6 | |
19674 | else | |
19675 | echo "$as_me:$LINENO: result: no" >&5 | |
19676 | echo "${ECHO_T}no" >&6 | |
19677 | fi | |
19678 | ||
19679 | fi | |
19680 | if test -z "$ac_cv_prog_RANLIB"; then | |
19681 | ac_ct_RANLIB=$RANLIB | |
19682 | # Extract the first word of "ranlib", so it can be a program name with args. | |
19683 | set dummy ranlib; ac_word=$2 | |
19684 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
19685 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
19686 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
19687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19688 | else | |
19689 | if test -n "$ac_ct_RANLIB"; then | |
19690 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
19691 | else | |
19692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19693 | for as_dir in $PATH | |
19694 | do | |
19695 | IFS=$as_save_IFS | |
19696 | test -z "$as_dir" && as_dir=. | |
19697 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19698 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19699 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
19700 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19701 | break 2 | |
19702 | fi | |
19703 | done | |
19704 | done | |
19705 | ||
19706 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
19707 | fi | |
19708 | fi | |
19709 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
19710 | if test -n "$ac_ct_RANLIB"; then | |
19711 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
19712 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
19713 | else | |
19714 | echo "$as_me:$LINENO: result: no" >&5 | |
19715 | echo "${ECHO_T}no" >&6 | |
19716 | fi | |
19717 | ||
19718 | RANLIB=$ac_ct_RANLIB | |
19719 | else | |
19720 | RANLIB="$ac_cv_prog_RANLIB" | |
19721 | fi | |
19722 | ||
a33e1d91 | 19723 | |
19724 | ||
19725 | CRYPTLIB='' | |
19726 | REGEXLIB='' # -lregex | |
19727 | LIBREGEX='' # libregex.a | |
19728 | ||
19729 | ||
19730 | ||
19731 | ||
19732 | if test -z "$EXEEXT"; then | |
19733 | CGIEXT=".cgi" | |
19734 | else | |
19735 | # automake automatically adds .exe when installing binaries | |
19736 | CGIEXT="" | |
19737 | fi | |
19738 | ||
19739 | ||
19740 | case "$host_os" in | |
07d1f987 | 19741 | mingw|mingw32|cygwin|cygwin32) |
a33e1d91 | 19742 | |
19743 | ||
19744 | if true; then | |
19745 | ENABLE_WIN32SPECIFIC_TRUE= | |
19746 | ENABLE_WIN32SPECIFIC_FALSE='#' | |
19747 | else | |
19748 | ENABLE_WIN32SPECIFIC_TRUE='#' | |
19749 | ENABLE_WIN32SPECIFIC_FALSE= | |
19750 | fi | |
19751 | ||
19752 | ;; | |
19753 | *) | |
19754 | ||
19755 | ||
19756 | if false; then | |
19757 | ENABLE_WIN32SPECIFIC_TRUE= | |
19758 | ENABLE_WIN32SPECIFIC_FALSE='#' | |
19759 | else | |
19760 | ENABLE_WIN32SPECIFIC_TRUE='#' | |
19761 | ENABLE_WIN32SPECIFIC_FALSE= | |
a2794549 | 19762 | fi |
ad21602a | 19763 | |
a2794549 | 19764 | ;; |
19765 | esac | |
19766 | ||
07d1f987 | 19767 | case "$host_os" in |
19768 | mingw|mingw32) | |
19769 | # Extract the first word of "psapi.dll", so it can be a program name with args. | |
19770 | set dummy psapi.dll; ac_word=$2 | |
19771 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
19772 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
19773 | if test "${ac_cv_path_WIN32_PSAPI+set}" = set; then | |
19774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19775 | else | |
19776 | case $WIN32_PSAPI in | |
19777 | [\\/]* | ?:[\\/]*) | |
19778 | ac_cv_path_WIN32_PSAPI="$WIN32_PSAPI" # Let the user override the test with a path. | |
19779 | ;; | |
19780 | *) | |
19781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
19782 | for as_dir in $PATH | |
19783 | do | |
19784 | IFS=$as_save_IFS | |
19785 | test -z "$as_dir" && as_dir=. | |
19786 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19787 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19788 | ac_cv_path_WIN32_PSAPI="$as_dir/$ac_word$ac_exec_ext" | |
19789 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19790 | break 2 | |
19791 | fi | |
19792 | done | |
19793 | done | |
19794 | ||
19795 | test -z "$ac_cv_path_WIN32_PSAPI" && ac_cv_path_WIN32_PSAPI="none" | |
19796 | ;; | |
19797 | esac | |
19798 | fi | |
19799 | WIN32_PSAPI=$ac_cv_path_WIN32_PSAPI | |
19800 | ||
19801 | if test -n "$WIN32_PSAPI"; then | |
19802 | echo "$as_me:$LINENO: result: $WIN32_PSAPI" >&5 | |
19803 | echo "${ECHO_T}$WIN32_PSAPI" >&6 | |
19804 | else | |
19805 | echo "$as_me:$LINENO: result: no" >&5 | |
19806 | echo "${ECHO_T}no" >&6 | |
19807 | fi | |
19808 | ||
19809 | CFLAGS="$CFLAGS -mthreads" | |
19810 | CXXFLAGS="$CXXFLAGS -mthreads" | |
19811 | if test "$ac_cv_path_WIN32_PSAPI" = "none"; then | |
19812 | echo "PSAPI.DLL is recommended to run Squid on Windows NT Platform" | |
19813 | echo "Please see PSAPI.DLL section on doc/win32-relnotes.html." | |
19814 | else | |
19815 | ||
19816 | cat >>confdefs.h <<\_ACEOF | |
19817 | #define HAVE_WIN32_PSAPI 1 | |
19818 | _ACEOF | |
19819 | ||
19820 | LIBS="$LIBS -lpsapi" | |
19821 | fi | |
ced2e74b | 19822 | MINGW_LIBS="-lmingwex" |
19823 | ||
bfd36867 | 19824 | |
19825 | if true; then | |
19826 | USE_IPC_WIN32_TRUE= | |
19827 | USE_IPC_WIN32_FALSE='#' | |
19828 | else | |
19829 | USE_IPC_WIN32_TRUE='#' | |
19830 | USE_IPC_WIN32_FALSE= | |
19831 | fi | |
19832 | ||
19833 | ||
19834 | ;; | |
19835 | *) | |
19836 | ||
19837 | ||
19838 | if false; then | |
19839 | USE_IPC_WIN32_TRUE= | |
19840 | USE_IPC_WIN32_FALSE='#' | |
19841 | else | |
19842 | USE_IPC_WIN32_TRUE='#' | |
19843 | USE_IPC_WIN32_FALSE= | |
19844 | fi | |
19845 | ||
07d1f987 | 19846 | ;; |
19847 | esac | |
19848 | ||
a2794549 | 19849 | if test -z "$CACHE_HTTP_PORT"; then |
19850 | CACHE_HTTP_PORT="3128" | |
19851 | fi | |
19852 | if test -z "$CACHE_ICP_PORT"; then | |
19853 | CACHE_ICP_PORT="3130" | |
19854 | fi | |
19855 | ||
33f5f8b9 | 19856 | |
19857 | cat >>confdefs.h <<_ACEOF | |
4d683a65 | 19858 | #define CACHE_HTTP_PORT $CACHE_HTTP_PORT |
33f5f8b9 | 19859 | _ACEOF |
19860 | ||
a2794549 | 19861 | |
e16674da | 19862 | |
33f5f8b9 | 19863 | cat >>confdefs.h <<_ACEOF |
4d683a65 | 19864 | #define CACHE_ICP_PORT $CACHE_ICP_PORT |
33f5f8b9 | 19865 | _ACEOF |
a2794549 | 19866 | |
19867 | ||
33f5f8b9 | 19868 | |
19869 | cat >>confdefs.h <<_ACEOF | |
a2794549 | 19870 | #define CONFIG_HOST_TYPE "$host" |
33f5f8b9 | 19871 | _ACEOF |
19872 | ||
a2794549 | 19873 | |
19874 | ||
33f5f8b9 | 19875 | cat >>confdefs.h <<_ACEOF |
781ba3fb | 19876 | #define SQUID_CONFIGURE_OPTIONS "$ac_configure_args" |
33f5f8b9 | 19877 | _ACEOF |
19878 | ||
19879 | ||
cec01b94 | 19880 | case "$host" in |
19881 | mab-next-nextstep3) | |
19882 | CC="$CC -arch m68k -arch i486 -arch hppa -arch sparc" | |
19883 | ;; | |
19884 | esac | |
781ba3fb | 19885 | |
cec01b94 | 19886 | if test "$GCC" = "yes"; then |
19887 | GCCVER=`$CC -v 2>&1 | awk '$2 == "version" {print $3}'` | |
19888 | GCCVER2=`echo $GCCVER | awk '{print $1 * 100}'` | |
19889 | case "$host" in | |
19890 | i386-*-freebsd*) | |
19891 | if test $GCCVER2 -lt 300 ; then | |
19892 | echo "ERROR: GCC $GCCVER causes a coredump on $host" | |
19893 | echo "ERROR: Try a more recent GCC version" | |
19894 | sleep 5 | |
19895 | fi | |
19896 | ;; | |
19897 | esac | |
19898 | unset GCCVER | |
19899 | unset GCCVER2 | |
33f5f8b9 | 19900 | fi |
a2794549 | 19901 | |
cec01b94 | 19902 | if test -z "$PRESET_CFLAGS"; then |
19903 | if test "$GCC" = "yes"; then | |
19904 | case "$host" in | |
19905 | *-sun-sunos*) | |
19906 | # sunos has too many warnings for this to be useful | |
19907 | # motorola too | |
19908 | ;; | |
19909 | *m88k*) | |
19910 | # Motorola cc/ld does not like -02 but is ok on -O | |
19911 | CFLAGS=`echo $CFLAGS | sed -e 's/-O0-9/-O/'` | |
19912 | ;; | |
19913 | *) | |
c65da457 | 19914 | CFLAGS="-Wall $CFLAGS" |
cec01b94 | 19915 | ;; |
19916 | esac | |
19917 | else | |
19918 | case "$host" in | |
19919 | *mips-sgi-irix6.*) | |
19920 | # suggested by Rafael Seidl <rafaels@cthulhu.engr.sgi.com> | |
c65da457 | 19921 | CFLAGS="-O3 -OPT:Olimit=0:space=OFF \ |
cec01b94 | 19922 | -woff 1009,1014,1110,1116,1185,1188,1204,1230,1233 \ |
19923 | -Wl,-woff,85,-woff,84,-woff,134 \ | |
c65da457 | 19924 | -nostdinc -I/usr/include -D_BSD_SIGNALS $CFLAGS" |
cec01b94 | 19925 | ;; |
19926 | alpha-dec-osf4.*) | |
19927 | # Mogul says DEC compilers take both -g and -O2 | |
19928 | CFLAGS=`echo $CFLAGS | sed -e 's/-g/-g3/'` | |
c65da457 | 19929 | CFLAGS="-O2 $CFLAGS" |
cec01b94 | 19930 | ;; |
19931 | *) | |
19932 | ;; | |
19933 | esac | |
19934 | fi | |
33f5f8b9 | 19935 | fi |
33f5f8b9 | 19936 | |
cec01b94 | 19937 | if test "$GCC" = "yes"; then |
19938 | SQUID_CFLAGS="-Werror -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments" | |
19939 | SQUID_CXXFLAGS="-Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments" | |
33f5f8b9 | 19940 | else |
cec01b94 | 19941 | SQUID_CFLAGS= |
19942 | SQUID_CXXFLAGS= | |
33f5f8b9 | 19943 | fi |
19944 | ||
33f5f8b9 | 19945 | |
33f5f8b9 | 19946 | |
33f5f8b9 | 19947 | |
cec01b94 | 19948 | echo "$as_me:$LINENO: checking whether compiler accepts -fhuge-objects" >&5 |
19949 | echo $ECHO_N "checking whether compiler accepts -fhuge-objects... $ECHO_C" >&6 | |
19950 | if test "${ac_cv_test_checkforhugeobjects+set}" = set; then | |
33f5f8b9 | 19951 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19952 | else | |
33f5f8b9 | 19953 | |
cec01b94 | 19954 | ac_cv_test_checkforhugeobjects=`echo "int foo;" > conftest.cc |
19955 | ${CXX} -Werror -fhuge-objects -c conftest.cc 2>/dev/null | |
19956 | res=$? | |
19957 | rm -f conftest.* | |
19958 | echo yes | |
19959 | exit $res` | |
19960 | if [ $? -ne 0 ] | |
19961 | then ac_cv_test_checkforhugeobjects=no | |
19962 | else if [ -z "$ac_cv_test_checkforhugeobjects" ] | |
19963 | then ac_cv_test_checkforhugeobjects=yes | |
19964 | fi ; fi | |
33f5f8b9 | 19965 | |
d96ceb8e | 19966 | fi |
cec01b94 | 19967 | # end of CACHE_VAL |
19968 | echo "$as_me:$LINENO: result: ${ac_cv_test_checkforhugeobjects}" >&5 | |
19969 | echo "${ECHO_T}${ac_cv_test_checkforhugeobjects}" >&6 | |
d96ceb8e | 19970 | |
cec01b94 | 19971 | if test "X${ac_cv_test_checkforhugeobjects}" != Xno |
19972 | then | |
19973 | HUGE_OBJECT_FLAG="-fhuge-objects" | |
19974 | else | |
19975 | HUGE_OBJECT_FLAG="" | |
33f5f8b9 | 19976 | fi |
33f5f8b9 | 19977 | |
cec01b94 | 19978 | SQUID_CXXFLAGS="$SQUID_CXXFLAGS $HUGE_OBJECT_FLAG" |
d96ceb8e | 19979 | |
cec01b94 | 19980 | if test -z "$PRESET_LDFLAGS"; then |
19981 | if test "$GCC" = "yes"; then | |
19982 | case "$host" in | |
c65da457 | 19983 | *mips-sgi-irix6.*) |
19984 | # Silence Linker warnings 84, 85 and 134 | |
19985 | LDFLAGS="-Wl,-woff,85 -Wl,-woff,84 -Wl,-woff,134 $LDFLAGS" | |
19986 | ;; | |
cec01b94 | 19987 | *) |
19988 | # nothing | |
19989 | ;; | |
19990 | esac | |
19991 | else | |
19992 | case "$host" in | |
c65da457 | 19993 | *) |
19994 | # nothing | |
cec01b94 | 19995 | ;; |
19996 | esac | |
19997 | fi | |
30a4f2a8 | 19998 | fi |
2060fa9a | 19999 | |
e5f4e1b0 | 20000 | # Check whether --enable-dlmalloc or --disable-dlmalloc was given. |
20001 | if test "${enable_dlmalloc+set}" = set; then | |
20002 | enableval="$enable_dlmalloc" | |
33f5f8b9 | 20003 | |
94d48591 | 20004 | case "$enableval" in |
20005 | 'yes') | |
029ce4ae | 20006 | use_dlmalloc="yes" |
94d48591 | 20007 | LIBDLMALLOC="libdlmalloc.a" |
20008 | LIB_MALLOC="-L../lib -ldlmalloc" | |
029ce4ae | 20009 | echo "dlmalloc enabled" |
94d48591 | 20010 | ;; |
20011 | 'no') | |
029ce4ae | 20012 | use_dlmalloc="no" |
20013 | echo "dlmalloc disabled" | |
94d48591 | 20014 | ;; |
029ce4ae | 20015 | *) use_dlmalloc="yes" |
20016 | LIB_MALLOC="$enableval" | |
20017 | echo "dlmalloc enabled with $LIB_MALLOC" | |
20018 | esac | |
20019 | ||
33f5f8b9 | 20020 | fi; |
3f961930 | 20021 | if test "${use_dlmalloc-unset}" = unset; then |
029ce4ae | 20022 | case "$host" in |
20023 | i386-*-solaris2.*) | |
20024 | echo "Enabling dlmalloc for $host" | |
20025 | use_dlmalloc="yes" | |
d20b1cd0 | 20026 | LIBDLMALLOC="libdlmalloc.a" |
20027 | LIB_MALLOC="-L../lib -ldlmalloc" | |
029ce4ae | 20028 | ;; |
e8dbaa90 | 20029 | *-sgi-irix*) |
20030 | echo "Enabling dlmalloc for $host" | |
20031 | use_dlmalloc="yes" | |
20032 | LIBDLMALLOC="libdlmalloc.a" | |
20033 | LIB_MALLOC="-L../lib -ldlmalloc" | |
20034 | ;; | |
029ce4ae | 20035 | esac |
20036 | fi | |
20037 | if test "x$ac_cv_enabled_dlmalloc" = "xyes"; then | |
20038 | # Ok. dlmalloc was enabled before, but state may be changed. | |
20039 | # we have to test these again | |
20040 | unset ac_cv_func_mallinfo | |
20041 | unset ac_cv_func_mallocblksize | |
20042 | unset ac_cv_func_free | |
20043 | unset ac_cv_func_realloc | |
20044 | unset ac_cv_func_memalign | |
20045 | unset ac_cv_func_valloc | |
20046 | unset ac_cv_func_pvalloc | |
20047 | unset ac_cv_func_calloc | |
20048 | unset ac_cv_func_cfree | |
20049 | unset ac_cv_func_malloc_trim | |
20050 | unset ac_cv_func_malloc_usable_size | |
20051 | unset ac_cv_func_malloc_stats | |
20052 | unset ac_cv_func_mallinfo | |
20053 | unset ac_cv_func_mallopt | |
20054 | unset ac_cv_lib_gnumalloc | |
20055 | unset ac_cv_header_gnumalloc_h | |
20056 | unset ac_cv_lib_malloc | |
20057 | unset ac_cv_enabled_dlmalloc | |
20058 | fi | |
20059 | if test "$use_dlmalloc" = yes; then | |
94d48591 | 20060 | ac_cv_func_mallinfo="yes" |
20061 | ac_cv_func_mallocblksize="no" | |
20062 | ac_cv_func_free="yes" | |
20063 | ac_cv_func_realloc="yes" | |
20064 | ac_cv_func_memalign="yes" | |
20065 | ac_cv_func_valloc="yes" | |
20066 | ac_cv_func_pvalloc="yes" | |
20067 | ac_cv_func_calloc="yes" | |
20068 | ac_cv_func_cfree="yes" | |
20069 | ac_cv_func_malloc_trim="yes" | |
20070 | ac_cv_func_malloc_usable_size="yes" | |
20071 | ac_cv_func_malloc_stats="yes" | |
94d48591 | 20072 | ac_cv_func_mallopt="yes" |
20073 | ac_cv_lib_gnumalloc="no" | |
85efe3ec | 20074 | ac_cv_header_gnumalloc_h="no" |
94d48591 | 20075 | ac_cv_lib_malloc="no" |
20076 | ac_cv_enabled_dlmalloc="yes" | |
33f5f8b9 | 20077 | |
20078 | cat >>confdefs.h <<\_ACEOF | |
d96ceb8e | 20079 | #define USE_DLMALLOC 1 |
33f5f8b9 | 20080 | _ACEOF |
d96ceb8e | 20081 | |
e5f4e1b0 | 20082 | fi |
20083 | ||
20084 | ||
20085 | ||
20086 | ||
20087 | # Check whether --enable-gnuregex or --disable-gnuregex was given. | |
20088 | if test "${enable_gnuregex+set}" = set; then | |
20089 | enableval="$enable_gnuregex" | |
20090 | USE_GNUREGEX=$enableval | |
33f5f8b9 | 20091 | fi; |
e5f4e1b0 | 20092 | |
3360d3f2 | 20093 | SquidInline="yes" |
9a1efaa8 | 20094 | |
20095 | # Check whether --enable-optimizations or --disable-optimizations was given. | |
20096 | if test "${enable_optimizations+set}" = set; then | |
20097 | enableval="$enable_optimizations" | |
20098 | if test "$enableval" = "no" ; then | |
20099 | echo "Disabling compiler optimizations (-O flag)" | |
20100 | CFLAGS="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`" | |
20101 | CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-O[0-9]*//'`" | |
20102 | SquidInline="no" | |
20103 | fi | |
20104 | ||
20105 | fi; | |
20106 | ||
3360d3f2 | 20107 | # Check whether --enable-inline or --disable-inline was given. |
20108 | if test "${enable_inline+set}" = set; then | |
20109 | enableval="$enable_inline" | |
20110 | if test "$enableval" = "no" ; then | |
20111 | SquidInline="no" | |
20112 | fi | |
20113 | ||
20114 | fi; | |
20115 | ||
20116 | if test "$SquidInline" = "yes" ; then | |
20117 | ||
20118 | cat >>confdefs.h <<\_ACEOF | |
20119 | #define _SQUID_INLINE_ inline | |
20120 | _ACEOF | |
20121 | ||
20122 | ||
20123 | cat >>confdefs.h <<\_ACEOF | |
20124 | #define _USE_INLINE_ | |
20125 | _ACEOF | |
20126 | ||
20127 | else | |
9a1efaa8 | 20128 | echo "Inlining optimization disabled" |
3360d3f2 | 20129 | |
20130 | cat >>confdefs.h <<\_ACEOF | |
20131 | #define _SQUID_INLINE_ | |
20132 | _ACEOF | |
20133 | ||
20134 | fi | |
20135 | ||
a454bd49 | 20136 | # Check whether --enable-debug-cbdata or --disable-debug-cbdata was given. |
20137 | if test "${enable_debug_cbdata+set}" = set; then | |
20138 | enableval="$enable_debug_cbdata" | |
20139 | if test "$enableval" = "yes" ; then | |
20140 | echo "cbdata debugging enabled" | |
33f5f8b9 | 20141 | |
20142 | cat >>confdefs.h <<\_ACEOF | |
a454bd49 | 20143 | #define CBDATA_DEBUG 1 |
33f5f8b9 | 20144 | _ACEOF |
a454bd49 | 20145 | |
20146 | fi | |
20147 | ||
33f5f8b9 | 20148 | fi; |
a454bd49 | 20149 | |
e5f4e1b0 | 20150 | |
20151 | ||
d9180414 | 20152 | # Check whether --enable-xmalloc-statistics or --disable-xmalloc-statistics was given. |
e5f4e1b0 | 20153 | if test "${enable_xmalloc_statistics+set}" = set; then |
20154 | enableval="$enable_xmalloc_statistics" | |
20155 | if test "$enableval" = "yes" ; then | |
20156 | echo "Malloc statistics enabled" | |
33f5f8b9 | 20157 | |
20158 | cat >>confdefs.h <<\_ACEOF | |
e5f4e1b0 | 20159 | #define XMALLOC_STATISTICS 1 |
33f5f8b9 | 20160 | _ACEOF |
e5f4e1b0 | 20161 | |
20162 | fi | |
20163 | ||
33f5f8b9 | 20164 | fi; |
e5f4e1b0 | 20165 | |
d5a00a1e | 20166 | use_carp=1 |
3f628dde | 20167 | # Check whether --enable-carp or --disable-carp was given. |
20168 | if test "${enable_carp+set}" = set; then | |
20169 | enableval="$enable_carp" | |
919bc7b6 | 20170 | if test "$enableval" = "no" ; then |
20171 | echo "CARP disabled" | |
d5a00a1e | 20172 | use_carp=0 |
20173 | fi | |
20174 | ||
20175 | fi; | |
20176 | if test $use_carp = 1; then | |
33f5f8b9 | 20177 | |
20178 | cat >>confdefs.h <<\_ACEOF | |
d5a00a1e | 20179 | #define USE_CARP 1 |
33f5f8b9 | 20180 | _ACEOF |
919bc7b6 | 20181 | |
d5a00a1e | 20182 | fi |
3f628dde | 20183 | |
cd748f27 | 20184 | # Check whether --enable-async-io or --disable-async-io was given. |
e5f4e1b0 | 20185 | if test "${enable_async_io+set}" = set; then |
20186 | enableval="$enable_async_io" | |
cd748f27 | 20187 | case $enableval in |
9bc73deb | 20188 | yes) |
8fab2eba | 20189 | with_pthreads="yes" |
cd748f27 | 20190 | STORE_MODULES="ufs aufs" |
9bc73deb | 20191 | ;; |
20192 | no) | |
9bc73deb | 20193 | ;; |
20194 | *) | |
f85c88f3 | 20195 | aufs_io_threads=$enableval |
8fab2eba | 20196 | with_pthreads="yes" |
cd748f27 | 20197 | STORE_MODULES="ufs aufs" |
9bc73deb | 20198 | ;; |
20199 | esac | |
20200 | ||
33f5f8b9 | 20201 | fi; |
9bc73deb | 20202 | |
20203 | ||
f85c88f3 | 20204 | # Check whether --with-aufs-threads or --without-aufs-threads was given. |
20205 | if test "${with_aufs_threads+set}" = set; then | |
20206 | withval="$with_aufs_threads" | |
e825dd59 | 20207 | case $withval in |
20208 | [0-9]*) | |
20209 | aufs_io_threads=$withval | |
20210 | ;; | |
20211 | *) | |
20212 | echo "ERROR: Invalid --with-aufs-threads argument" | |
20213 | exit 1 | |
20214 | ;; | |
20215 | esac | |
20216 | ||
33f5f8b9 | 20217 | fi; |
f85c88f3 | 20218 | if test "$aufs_io_threads"; then |
20219 | echo "With $aufs_io_threads aufs threads" | |
33f5f8b9 | 20220 | |
20221 | cat >>confdefs.h <<_ACEOF | |
f85c88f3 | 20222 | #define AUFS_IO_THREADS $aufs_io_threads |
33f5f8b9 | 20223 | _ACEOF |
e5f4e1b0 | 20224 | |
cd748f27 | 20225 | fi |
20226 | ||
33f5f8b9 | 20227 | |
cd748f27 | 20228 | # Check whether --with-pthreads or --without-pthreads was given. |
20229 | if test "${with_pthreads+set}" = set; then | |
20230 | withval="$with_pthreads" | |
cd748f27 | 20231 | |
33f5f8b9 | 20232 | fi; |
0205c9c8 | 20233 | if test "$with_pthreads" = "yes"; then |
cd748f27 | 20234 | echo "With pthreads" |
cd748f27 | 20235 | fi |
20236 | ||
33f5f8b9 | 20237 | |
f85c88f3 | 20238 | # Check whether --with-aio or --without-aio was given. |
20239 | if test "${with_aio+set}" = set; then | |
20240 | withval="$with_aio" | |
f85c88f3 | 20241 | |
33f5f8b9 | 20242 | fi; |
0205c9c8 | 20243 | if test "$with_aio" = "yes"; then |
f85c88f3 | 20244 | echo "With aio" |
f85c88f3 | 20245 | fi |
20246 | ||
33f5f8b9 | 20247 | |
0205c9c8 | 20248 | # Check whether --with-dl or --without-dl was given. |
20249 | if test "${with_dl+set}" = set; then | |
20250 | withval="$with_dl" | |
0205c9c8 | 20251 | |
33f5f8b9 | 20252 | fi; |
0205c9c8 | 20253 | if test "$with_dl" = "yes"; then |
20254 | echo "With dl" | |
20255 | fi | |
f85c88f3 | 20256 | |
cd748f27 | 20257 | # Check whether --enable-storeio or --disable-storeio was given. |
20258 | if test "${enable_storeio+set}" = set; then | |
20259 | enableval="$enable_storeio" | |
20260 | case $enableval in | |
20261 | yes) | |
e825dd59 | 20262 | for dir in $srcdir/src/fs/*; do |
20263 | module="`basename $dir`" | |
20264 | if test -d "$dir" && test "$module" != CVS; then | |
20265 | STORE_MODULES="$STORE_MODULES $module" | |
0205c9c8 | 20266 | fi |
cd748f27 | 20267 | done |
20268 | ;; | |
20269 | no) | |
20270 | ;; | |
e825dd59 | 20271 | *) |
20272 | STORE_MODULES="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`" | |
c68e9c6b | 20273 | ;; |
cd748f27 | 20274 | esac |
20275 | ||
20276 | else | |
20277 | if test -z "$STORE_MODULES"; then | |
20278 | STORE_MODULES="ufs" | |
20279 | fi | |
20280 | ||
33f5f8b9 | 20281 | fi; |
e825dd59 | 20282 | if test -n "$STORE_MODULES"; then |
20283 | for module in $STORE_MODULES; do | |
20284 | if test -d $srcdir/src/fs/$module; then | |
20285 | : | |
20286 | else | |
20287 | echo "ERROR: storeio $module does not exists" | |
20288 | exit 1 | |
20289 | fi | |
20290 | done | |
20291 | echo "Store modules built: $STORE_MODULES" | |
70fd1c3d | 20292 | STORE_LINKOBJS= |
20293 | for module in $STORE_MODULES; do | |
20294 | STORE_LINKOBJS="$STORE_LINKOBJS fs/${module}/StoreFS${module}.o" | |
20295 | done | |
e825dd59 | 20296 | fi |
34cdec6e | 20297 | UFS_FOUND= |
e825dd59 | 20298 | NEED_UFS= |
b9ae18aa | 20299 | NEED_BLOCKING= |
20300 | NEED_DISKDAEMON= | |
20301 | NEED_DISKTHREADS= | |
20302 | NEED_AIO= | |
6a2814f7 | 20303 | STORE_TESTS= |
a2794549 | 20304 | for fs in $STORE_MODULES none; do |
0205c9c8 | 20305 | case "$fs" in |
20306 | diskd) | |
e825dd59 | 20307 | NEED_UFS="true" |
b9ae18aa | 20308 | NEED_BLOCKING="true" |
20309 | NEED_DISKDAEMON="true" | |
0205c9c8 | 20310 | ;; |
20311 | aufs) | |
e825dd59 | 20312 | NEED_UFS="true" |
b9ae18aa | 20313 | NEED_BLOCKING="true" |
20314 | NEED_DISKTHREADS="true" | |
0205c9c8 | 20315 | ;; |
20316 | coss) | |
6a2814f7 | 20317 | NEED_AIO="true" |
d93c6669 | 20318 | STORE_TESTS="$STORE_TESTS tests/testCoss$EXEEXT" |
6a2814f7 | 20319 | ;; |
20320 | null) | |
20321 | STORE_TESTS="$STORE_TESTS tests/testNull$EXEEXT" | |
0205c9c8 | 20322 | ;; |
34cdec6e | 20323 | ufs) |
6a2814f7 | 20324 | UFS_FOUND="true" |
20325 | STORE_TESTS="$STORE_TESTS tests/testUfs$EXEEXT" | |
0205c9c8 | 20326 | esac |
a2794549 | 20327 | done |
b9ae18aa | 20328 | STORE_OBJS= |
20329 | STORE_LIBS= | |
20330 | for fs in $STORE_MODULES; do | |
20331 | case "$fs" in | |
20332 | diskd);; | |
20333 | aufs);; | |
20334 | *) | |
20335 | STORE_OBJS="$STORE_OBJS fs/lib${fs}.a" | |
20336 | STORE_LIBS="$STORE_LIBS lib${fs}.a" | |
20337 | ;; | |
20338 | esac | |
20339 | done | |
a2794549 | 20340 | |
e825dd59 | 20341 | if test -z "$UFS_FOUND" && test -n "$NEED_UFS"; then |
d93c6669 | 20342 | echo "adding UFS, as it contains core logic for diskd and aufs" |
20343 | STORE_OBJS="$STORE_OBJS fs/libufs.a" | |
20344 | STORE_LIBS="$STORE_LIBS libufs.a" | |
20345 | STORE_MODULES="$STORE_MODULES ufs" | |
20346 | STORE_LINKOBJS="$STORE_LINKOBJS fs/ufs/StoreFSufs.o" | |
20347 | STORE_TESTS="$STORE_TESTS tests/testUfs$EXEEXT" | |
34cdec6e | 20348 | fi |
20349 | ||
20350 | ||
a2794549 | 20351 | |
20352 | ||
5968c189 | 20353 | |
6a2814f7 | 20354 | |
b9ae18aa | 20355 | # Check whether --enable-disk-io or --disable-disk-io was given. |
20356 | if test "${enable_disk_io+set}" = set; then | |
20357 | enableval="$enable_disk_io" | |
20358 | case $enableval in | |
20359 | yes) | |
20360 | for dir in $srcdir/src/DiskIO/*; do | |
20361 | module="`basename $dir`" | |
20362 | if test -d "$dir" && test "$module" != CVS; then | |
20363 | DISK_MODULES="$DISK_MODULES $module" | |
20364 | fi | |
20365 | done | |
20366 | ;; | |
20367 | no) | |
20368 | ;; | |
20369 | *) | |
20370 | DISK_MODULES="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`" | |
20371 | ;; | |
20372 | esac | |
20373 | ||
20374 | else | |
20375 | if test -z "$DISK_MODULES"; then | |
20376 | DISK_MODULES="Blocking" | |
20377 | fi | |
20378 | ||
20379 | fi; | |
20380 | if test -n "$DISK_MODULES"; then | |
20381 | for module in $DISK_MODULES; do | |
20382 | if test -d $srcdir/src/DiskIO/$module; then | |
20383 | : | |
20384 | else | |
20385 | echo "ERROR: disk-io $module does not exists" | |
20386 | exit 1 | |
20387 | fi | |
20388 | done | |
20389 | DISK_LIBS="lib`echo $DISK_MODULES|sed -e 's% %.a lib%g'`.a" | |
20390 | DISK_LINKOBJS= | |
20391 | for module in $DISK_MODULES; do | |
20392 | DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/${module}/${module}DiskIOModule.o" | |
20393 | done | |
20394 | fi | |
20395 | for fs in $DISK_MODULES none; do | |
20396 | case "$fs" in | |
20397 | DiskDaemon) | |
20398 | DISK_PROGRAMS="$DISK_PROGRAMS DiskIO/DiskDaemon/diskd" | |
20399 | FOUND_DISKDAEMON="true" | |
20400 | ;; | |
20401 | DiskThreads) | |
20402 | FOUND_DISKTHREADS="true" | |
20403 | ;; | |
20404 | AIO) | |
20405 | FOUND_AIO="true" | |
20406 | ;; | |
20407 | Blocking) | |
20408 | FOUND_BLOCKING="true" | |
20409 | esac | |
20410 | done | |
20411 | ||
20412 | if test -z "$FOUND_BLOCKING" && test -n "$NEED_BLOCKING"; then | |
c2158752 | 20413 | echo "adding Blocking, as it is used by an active, legacy Store Module" |
20414 | DISK_LIBS="$DISK_LIBS libBlocking.a" | |
20415 | DISK_MODULES="$DISK_MODULES Blocking" | |
20416 | DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/Blocking/BlockingDiskIOModule.o" | |
b9ae18aa | 20417 | fi |
20418 | ||
20419 | if test -z "$FOUND_DISKDAEMON" && test -n "$NEED_DISKDAEMON"; then | |
c2158752 | 20420 | echo "adding DiskDaemon, as it is used by an active, legacy Store Module" |
20421 | DISK_LIBS="$DISK_LIBS libDiskDaemon.a" | |
20422 | DISK_MODULES="$DISK_MODULES DiskDaemon" | |
20423 | DISK_PROGRAMS="$DISK_PROGRAMS DiskIO/DiskDaemon/diskd" | |
20424 | DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/DiskDaemon/DiskDaemonDiskIOModule.o" | |
b9ae18aa | 20425 | fi |
20426 | ||
20427 | if test -z "$FOUND_DISKTHREADS" && test -n "$NEED_DISKTHREADS"; then | |
c2158752 | 20428 | echo "adding DiskThreads, as it is used by an active, legacy Store Module" |
20429 | DISK_LIBS="$DISK_LIBS libDiskThreads.a" | |
20430 | DISK_MODULES="$DISK_MODULES DiskThreads" | |
20431 | DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/DiskThreads/DiskThreadsDiskIOModule.o" | |
b9ae18aa | 20432 | fi |
c7cee0a7 | 20433 | |
b9ae18aa | 20434 | if test -z "$FOUND_AIO" && test -n "$NEED_AIO"; then |
c2158752 | 20435 | echo "adding AIO, as it is used by an active, legacy Store Module" |
20436 | DISK_LIBS="$DISK_LIBS libAIO.a" | |
20437 | DISK_MODULES="$DISK_MODULES AIO" | |
20438 | DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/AIO/AIODiskIOModule.o" | |
b9ae18aa | 20439 | fi |
20440 | echo "IO Modules built: $DISK_MODULES" | |
6e6cb8f0 | 20441 | USE_AIOPS_WIN32=0 |
20442 | USE_AIO_WIN32=0 | |
b9ae18aa | 20443 | for fs in $DISK_MODULES none; do |
20444 | case "$fs" in | |
20445 | DiskThreads) | |
20446 | if test -z "$with_pthreads"; then | |
c7cee0a7 | 20447 | case "$host_os" in |
f4114eb4 | 20448 | mingw|mingw32) |
6e6cb8f0 | 20449 | USE_AIOPS_WIN32=1 |
c7cee0a7 | 20450 | echo "DiskThreads IO Module used, Windows threads support automatically enabled" |
20451 | ;; | |
20452 | *) | |
c7cee0a7 | 20453 | echo "DiskThreads IO Module used, pthreads support automatically enabled" |
20454 | with_pthreads=yes | |
20455 | ;; | |
20456 | esac | |
b9ae18aa | 20457 | fi |
20458 | ;; | |
20459 | AIO) | |
20460 | if test -z "$with_aio"; then | |
c2158752 | 20461 | case "$host_os" in |
f4114eb4 | 20462 | mingw|mingw32) |
6e6cb8f0 | 20463 | USE_AIO_WIN32=1 |
c2158752 | 20464 | echo "Aio IO Module used, Windows overlapped I/O support automatically enabled" |
20465 | ;; | |
20466 | *) | |
c2158752 | 20467 | echo "Aio IO Module used, aio support automatically enabled" |
20468 | with_aio=yes | |
20469 | ;; | |
20470 | esac | |
b9ae18aa | 20471 | fi |
20472 | ;; | |
20473 | esac | |
20474 | done | |
20475 | ||
20476 | ||
20477 | ||
c9ce3663 | 20478 | |
c9ce3663 | 20479 | |
6e6cb8f0 | 20480 | |
20481 | if test "$USE_AIOPS_WIN32" = 1; then | |
20482 | USE_AIOPS_WIN32_TRUE= | |
20483 | USE_AIOPS_WIN32_FALSE='#' | |
20484 | else | |
20485 | USE_AIOPS_WIN32_TRUE='#' | |
20486 | USE_AIOPS_WIN32_FALSE= | |
20487 | fi | |
20488 | ||
20489 | ||
20490 | ||
20491 | if test "$USE_AIO_WIN32" = 1; then | |
20492 | USE_AIO_WIN32_TRUE= | |
20493 | USE_AIO_WIN32_FALSE='#' | |
20494 | else | |
20495 | USE_AIO_WIN32_TRUE='#' | |
20496 | USE_AIO_WIN32_FALSE= | |
20497 | fi | |
20498 | ||
20499 | ||
d9180414 | 20500 | # Check whether --enable-removal-policies or --disable-removal-policies was given. |
c9ce3663 | 20501 | if test "${enable_removal_policies+set}" = set; then |
20502 | enableval="$enable_removal_policies" | |
20503 | case $enableval in | |
20504 | yes) | |
e825dd59 | 20505 | for dir in $srcdir/src/repl/*; do |
20506 | module="`basename $dir`" | |
20507 | if test -d "$dir" && test "$module" != CVS; then | |
20508 | REPL_POLICIES="$REPL_POLICIES $module" | |
c9ce3663 | 20509 | fi |
20510 | done | |
20511 | ;; | |
20512 | no) | |
20513 | ;; | |
e825dd59 | 20514 | *) |
20515 | REPL_POLICIES="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`" | |
c9ce3663 | 20516 | ;; |
20517 | esac | |
20518 | ||
20519 | else | |
20520 | if test -z "$REPL_POLICIES"; then | |
20521 | REPL_POLICIES="lru" | |
20522 | fi | |
20523 | ||
33f5f8b9 | 20524 | fi; |
e825dd59 | 20525 | if test -n "$REPL_POLICIES"; then |
20526 | for module in $REPL_POLICIES; do | |
20527 | if test -d $srcdir/src/repl/$module; then | |
20528 | : | |
20529 | else | |
20530 | echo "ERROR: Removal policy $module does not exists" | |
20531 | exit 1 | |
20532 | fi | |
20533 | done | |
20534 | echo "Removal policies built: $REPL_POLICIES" | |
20535 | REPL_OBJS="repl/lib`echo $REPL_POLICIES|sed -e 's% %.a repl/lib%g'`.a" | |
20536 | REPL_LIBS="`echo $REPL_OBJS|sed -e 's%repl/%%g'`" | |
20537 | fi | |
c9ce3663 | 20538 | |
c9ce3663 | 20539 | |
042b1f8a | 20540 | |
c9ce3663 | 20541 | |
6487cca8 | 20542 | |
20543 | ||
20544 | if false; then | |
20545 | ENABLE_PINGER_TRUE= | |
20546 | ENABLE_PINGER_FALSE='#' | |
20547 | else | |
20548 | ENABLE_PINGER_TRUE='#' | |
20549 | ENABLE_PINGER_FALSE= | |
20550 | fi | |
ad21602a | 20551 | |
e5f4e1b0 | 20552 | # Check whether --enable-icmp or --disable-icmp was given. |
20553 | if test "${enable_icmp+set}" = set; then | |
20554 | enableval="$enable_icmp" | |
20555 | if test "$enableval" = "yes" ; then | |
20556 | echo "ICMP enabled" | |
33f5f8b9 | 20557 | |
20558 | cat >>confdefs.h <<\_ACEOF | |
e5f4e1b0 | 20559 | #define USE_ICMP 1 |
33f5f8b9 | 20560 | _ACEOF |
20561 | ||
e5f4e1b0 | 20562 | |
e5f4e1b0 | 20563 | |
6487cca8 | 20564 | if true; then |
20565 | ENABLE_PINGER_TRUE= | |
20566 | ENABLE_PINGER_FALSE='#' | |
20567 | else | |
20568 | ENABLE_PINGER_TRUE='#' | |
20569 | ENABLE_PINGER_FALSE= | |
e5f4e1b0 | 20570 | fi |
ad21602a | 20571 | |
6487cca8 | 20572 | fi |
e5f4e1b0 | 20573 | |
33f5f8b9 | 20574 | fi; |
a2794549 | 20575 | |
20576 | ||
8efddab9 | 20577 | |
a2794549 | 20578 | if false; then |
20579 | USE_DELAY_POOLS_TRUE= | |
20580 | USE_DELAY_POOLS_FALSE='#' | |
20581 | else | |
20582 | USE_DELAY_POOLS_TRUE='#' | |
20583 | USE_DELAY_POOLS_FALSE= | |
20584 | fi | |
ad21602a | 20585 | |
d9180414 | 20586 | # Check whether --enable-delay-pools or --disable-delay-pools was given. |
95e36d02 | 20587 | if test "${enable_delay_pools+set}" = set; then |
20588 | enableval="$enable_delay_pools" | |
e5f4e1b0 | 20589 | if test "$enableval" = "yes" ; then |
95e36d02 | 20590 | echo "Delay pools enabled" |
33f5f8b9 | 20591 | |
20592 | cat >>confdefs.h <<\_ACEOF | |
95e36d02 | 20593 | #define DELAY_POOLS 1 |
33f5f8b9 | 20594 | _ACEOF |
20595 | ||
e5f4e1b0 | 20596 | |
e5f4e1b0 | 20597 | |
a2794549 | 20598 | if true; then |
20599 | USE_DELAY_POOLS_TRUE= | |
20600 | USE_DELAY_POOLS_FALSE='#' | |
20601 | else | |
20602 | USE_DELAY_POOLS_TRUE='#' | |
20603 | USE_DELAY_POOLS_FALSE= | |
e5f4e1b0 | 20604 | fi |
ad21602a | 20605 | |
a2794549 | 20606 | fi |
e5f4e1b0 | 20607 | |
33f5f8b9 | 20608 | fi; |
95e36d02 | 20609 | |
9fcb1cd6 | 20610 | |
12a5c9fd | 20611 | |
20612 | if false; then | |
20613 | USE_ESI_TRUE= | |
20614 | USE_ESI_FALSE='#' | |
20615 | else | |
20616 | USE_ESI_TRUE='#' | |
20617 | USE_ESI_FALSE= | |
20618 | fi | |
ad21602a | 20619 | |
12a5c9fd | 20620 | # Check whether --enable-esi or --disable-esi was given. |
20621 | if test "${enable_esi+set}" = set; then | |
20622 | enableval="$enable_esi" | |
20623 | ac_cv_use_esi=$enableval | |
20624 | else | |
20625 | ac_cv_use_esi=no | |
20626 | fi; | |
20627 | echo "$as_me:$LINENO: checking whether to enable ESI" >&5 | |
20628 | echo $ECHO_N "checking whether to enable ESI... $ECHO_C" >&6 | |
20629 | if test "${ac_cv_use_esi+set}" = set; then | |
20630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20631 | else | |
20632 | ac_cv_use_esi=no | |
20633 | fi | |
20634 | echo "$as_me:$LINENO: result: $ac_cv_use_esi" >&5 | |
20635 | echo "${ECHO_T}$ac_cv_use_esi" >&6 | |
20636 | if test "$ac_cv_use_esi" = "yes" ; then | |
20637 | ||
20638 | cat >>confdefs.h <<\_ACEOF | |
20639 | #define ESI 1 | |
20640 | _ACEOF | |
20641 | ||
20642 | ||
20643 | ||
20644 | if true; then | |
20645 | USE_ESI_TRUE= | |
20646 | USE_ESI_FALSE='#' | |
20647 | else | |
20648 | USE_ESI_TRUE='#' | |
20649 | USE_ESI_FALSE= | |
20650 | fi | |
ad21602a | 20651 | |
3b258ec1 | 20652 | XTRA_LIBS="$XTRA_LIBS -lexpat -lxml2" |
029d84da | 20653 | else |
20654 | ||
20655 | cat >>confdefs.h <<\_ACEOF | |
20656 | #define ESI 0 | |
20657 | _ACEOF | |
20658 | ||
12a5c9fd | 20659 | fi |
20660 | ||
20661 | ||
2f2d507f | 20662 | |
20663 | if false; then | |
20664 | USE_ICAP_CLIENT_TRUE= | |
20665 | USE_ICAP_CLIENT_FALSE='#' | |
20666 | else | |
20667 | USE_ICAP_CLIENT_TRUE='#' | |
20668 | USE_ICAP_CLIENT_FALSE= | |
20669 | fi | |
20670 | ||
20671 | # Check whether --enable-icap-client or --disable-icap-client was given. | |
20672 | if test "${enable_icap_client+set}" = set; then | |
20673 | enableval="$enable_icap_client" | |
20674 | ac_cv_use_icap_client=$enableval | |
20675 | else | |
20676 | ac_cv_use_icap_client=no | |
20677 | fi; | |
20678 | echo "$as_me:$LINENO: checking whether to enable the ICAP client" >&5 | |
20679 | echo $ECHO_N "checking whether to enable the ICAP client... $ECHO_C" >&6 | |
20680 | if test "${ac_cv_use_icap_client+set}" = set; then | |
20681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20682 | else | |
20683 | ac_cv_use_icap_client=no | |
20684 | fi | |
20685 | echo "$as_me:$LINENO: result: $ac_cv_use_icap_client" >&5 | |
20686 | echo "${ECHO_T}$ac_cv_use_icap_client" >&6 | |
20687 | if test "$ac_cv_use_icap_client" = "yes" ; then | |
20688 | ||
20689 | cat >>confdefs.h <<\_ACEOF | |
20690 | #define ICAP_CLIENT 1 | |
20691 | _ACEOF | |
20692 | ||
20693 | ||
20694 | ||
20695 | if true; then | |
20696 | USE_ICAP_CLIENT_TRUE= | |
20697 | USE_ICAP_CLIENT_FALSE='#' | |
20698 | else | |
20699 | USE_ICAP_CLIENT_TRUE='#' | |
20700 | USE_ICAP_CLIENT_FALSE= | |
20701 | fi | |
20702 | ||
958bc9ca | 20703 | ICAP_LIBS="ICAP/libicap.a" |
2f2d507f | 20704 | else |
20705 | ||
20706 | cat >>confdefs.h <<\_ACEOF | |
20707 | #define ICAP_CLIENT 0 | |
20708 | _ACEOF | |
20709 | ||
958bc9ca | 20710 | ICAP_LIBS="" |
2f2d507f | 20711 | fi |
20712 | ||
20713 | ||
958bc9ca | 20714 | |
d9180414 | 20715 | # Check whether --enable-useragent-log or --disable-useragent-log was given. |
e5f4e1b0 | 20716 | if test "${enable_useragent_log+set}" = set; then |
20717 | enableval="$enable_useragent_log" | |
20718 | if test "$enableval" = "yes" ; then | |
20719 | echo "User-Agent logging enabled" | |
33f5f8b9 | 20720 | |
20721 | cat >>confdefs.h <<\_ACEOF | |
e5f4e1b0 | 20722 | #define USE_USERAGENT_LOG 1 |
33f5f8b9 | 20723 | _ACEOF |
e5f4e1b0 | 20724 | |
20725 | fi | |
20726 | ||
33f5f8b9 | 20727 | fi; |
e5f4e1b0 | 20728 | |
dfca7e1a | 20729 | # Check whether --enable-referer-log or --disable-referer-log was given. |
20730 | if test "${enable_referer_log+set}" = set; then | |
20731 | enableval="$enable_referer_log" | |
20732 | if test "$enableval" = "yes" ; then | |
20733 | echo "Referer logging enabled" | |
33f5f8b9 | 20734 | |
20735 | cat >>confdefs.h <<\_ACEOF | |
dfca7e1a | 20736 | #define USE_REFERER_LOG 1 |
33f5f8b9 | 20737 | _ACEOF |
dfca7e1a | 20738 | |
20739 | fi | |
20740 | ||
33f5f8b9 | 20741 | fi; |
dfca7e1a | 20742 | |
fbbe3d25 | 20743 | USE_WCCP=1 |
320e9f36 | 20744 | # Check whether --enable-wccp or --disable-wccp was given. |
20745 | if test "${enable_wccp+set}" = set; then | |
20746 | enableval="$enable_wccp" | |
eb824054 | 20747 | if test "$enableval" = "no" ; then |
20748 | echo "Web Cache Coordination Protocol disabled" | |
fbbe3d25 | 20749 | USE_WCCP=0 |
d5a00a1e | 20750 | fi |
20751 | ||
20752 | fi; | |
fbbe3d25 | 20753 | if test $USE_WCCP = 1; then |
33f5f8b9 | 20754 | |
20755 | cat >>confdefs.h <<\_ACEOF | |
d5a00a1e | 20756 | #define USE_WCCP 1 |
33f5f8b9 | 20757 | _ACEOF |
eb824054 | 20758 | |
fbbe3d25 | 20759 | fi |
20760 | ||
20761 | USE_WCCPv2=1 | |
20762 | # Check whether --enable-wccpv2 or --disable-wccpv2 was given. | |
20763 | if test "${enable_wccpv2+set}" = set; then | |
20764 | enableval="$enable_wccpv2" | |
20765 | if test "$enableval" = "no" ; then | |
20766 | echo "Web Cache Coordination V2 Protocol disabled" | |
20767 | USE_WCCPv2=0 | |
20768 | fi | |
20769 | ||
20770 | fi; | |
20771 | if test $USE_WCCPv2 = 1; then | |
20772 | ||
20773 | cat >>confdefs.h <<\_ACEOF | |
20774 | #define USE_WCCPv2 1 | |
33f5f8b9 | 20775 | _ACEOF |
320e9f36 | 20776 | |
d5a00a1e | 20777 | fi |
320e9f36 | 20778 | |
d9180414 | 20779 | # Check whether --enable-kill-parent-hack or --disable-kill-parent-hack was given. |
68d3e4a5 | 20780 | if test "${enable_kill_parent_hack+set}" = set; then |
20781 | enableval="$enable_kill_parent_hack" | |
e5f4e1b0 | 20782 | if test "$enableval" = "yes" ; then |
20783 | echo "Kill parent on shutdown" | |
33f5f8b9 | 20784 | |
20785 | cat >>confdefs.h <<\_ACEOF | |
e5f4e1b0 | 20786 | #define KILL_PARENT_OPT 1 |
33f5f8b9 | 20787 | _ACEOF |
e5f4e1b0 | 20788 | |
20789 | fi | |
20790 | ||
33f5f8b9 | 20791 | fi; |
e5f4e1b0 | 20792 | |
a2794549 | 20793 | |
20794 | ||
20795 | if false; then | |
20796 | USE_SNMP_TRUE= | |
20797 | USE_SNMP_FALSE='#' | |
20798 | else | |
20799 | USE_SNMP_TRUE='#' | |
20800 | USE_SNMP_FALSE= | |
20801 | fi | |
ad21602a | 20802 | |
e5f4e1b0 | 20803 | # Check whether --enable-snmp or --disable-snmp was given. |
20804 | if test "${enable_snmp+set}" = set; then | |
20805 | enableval="$enable_snmp" | |
20806 | if test "$enableval" = "yes" ; then | |
20807 | echo "SNMP monitoring enabled" | |
33f5f8b9 | 20808 | |
20809 | cat >>confdefs.h <<\_ACEOF | |
e5f4e1b0 | 20810 | #define SQUID_SNMP 1 |
33f5f8b9 | 20811 | _ACEOF |
e5f4e1b0 | 20812 | |
20813 | SNMPLIB='-L../snmplib -lsnmp' | |
33f5f8b9 | 20814 | |
a2794549 | 20815 | |
20816 | if true; then | |
20817 | USE_SNMP_TRUE= | |
20818 | USE_SNMP_FALSE='#' | |
20819 | else | |
20820 | USE_SNMP_TRUE='#' | |
20821 | USE_SNMP_FALSE= | |
20822 | fi | |
ad21602a | 20823 | |
8a7f0105 | 20824 | SNMP_MAKEFILE=./snmplib/Makefile |
e5f4e1b0 | 20825 | makesnmplib=snmplib |
20826 | fi | |
20827 | ||
33f5f8b9 | 20828 | fi; |
e5f4e1b0 | 20829 | |
20830 | ||
20831 | ||
d9180414 | 20832 | # Check whether --enable-cachemgr-hostname or --disable-cachemgr-hostname was given. |
e5f4e1b0 | 20833 | if test "${enable_cachemgr_hostname+set}" = set; then |
20834 | enableval="$enable_cachemgr_hostname" | |
20835 | case $enableval in | |
20836 | yes) | |
33f5f8b9 | 20837 | |
20838 | cat >>confdefs.h <<\_ACEOF | |
e5f4e1b0 | 20839 | #define CACHEMGR_HOSTNAME getfullhostname() |
33f5f8b9 | 20840 | _ACEOF |
e5f4e1b0 | 20841 | |
20842 | echo "Cachemgr default hostname == host where cachemgr runs" | |
20843 | ;; | |
20844 | no) | |
20845 | : # Nothing to do.. | |
20846 | ;; | |
20847 | *) | |
33f5f8b9 | 20848 | cat >>confdefs.h <<_ACEOF |
e5f4e1b0 | 20849 | #define CACHEMGR_HOSTNAME "${enableval}" |
33f5f8b9 | 20850 | _ACEOF |
e5f4e1b0 | 20851 | |
20852 | echo "Cachemgr default hostname set to ${enableval}" | |
20853 | ;; | |
20854 | esac | |
20855 | ||
33f5f8b9 | 20856 | fi; |
e5f4e1b0 | 20857 | |
b0dd28ba | 20858 | |
20859 | ||
20860 | if false; then | |
20861 | ENABLE_ARP_ACL_TRUE= | |
20862 | ENABLE_ARP_ACL_FALSE='#' | |
20863 | else | |
20864 | ENABLE_ARP_ACL_TRUE='#' | |
20865 | ENABLE_ARP_ACL_FALSE= | |
20866 | fi | |
ad21602a | 20867 | |
d9180414 | 20868 | # Check whether --enable-arp-acl or --disable-arp-acl was given. |
e5f4e1b0 | 20869 | if test "${enable_arp_acl+set}" = set; then |
20870 | enableval="$enable_arp_acl" | |
20871 | if test "$enableval" = "yes" ; then | |
20872 | echo "ARP ACL lists enabled (ether address)" | |
933cc58d | 20873 | case "$host" in |
eb15aa64 | 20874 | *-linux-*) |
20875 | ;; | |
631008fb | 20876 | *-solaris*) |
a931a29b | 20877 | ;; |
51fcf1f1 | 20878 | *-freebsd*) |
20879 | ;; | |
f71a524f | 20880 | *-openbsd*) |
20881 | ;; | |
7611ad08 | 20882 | *-cygwin*) |
20883 | LIBS="$LIBS -liphlpapi" | |
20884 | ;; | |
20885 | *-mingw*) | |
20886 | LIBS="$LIBS -liphlpapi" | |
20887 | ;; | |
933cc58d | 20888 | *) |
eb15aa64 | 20889 | echo "WARNING: ARP ACL support probably won't work on $host." |
933cc58d | 20890 | sleep 10 |
20891 | ;; | |
20892 | esac | |
33f5f8b9 | 20893 | |
20894 | cat >>confdefs.h <<\_ACEOF | |
e5f4e1b0 | 20895 | #define USE_ARP_ACL 1 |
33f5f8b9 | 20896 | _ACEOF |
e5f4e1b0 | 20897 | |
b0dd28ba | 20898 | |
20899 | ||
20900 | if true; then | |
20901 | ENABLE_ARP_ACL_TRUE= | |
20902 | ENABLE_ARP_ACL_FALSE='#' | |
20903 | else | |
20904 | ENABLE_ARP_ACL_TRUE='#' | |
20905 | ENABLE_ARP_ACL_FALSE= | |
20906 | fi | |
ad21602a | 20907 | |
e5f4e1b0 | 20908 | fi |
20909 | ||
33f5f8b9 | 20910 | fi; |
e5f4e1b0 | 20911 | |
a2794549 | 20912 | |
20913 | ||
20914 | if false; then | |
20915 | ENABLE_HTCP_TRUE= | |
20916 | ENABLE_HTCP_FALSE='#' | |
20917 | else | |
20918 | ENABLE_HTCP_TRUE='#' | |
20919 | ENABLE_HTCP_FALSE= | |
20920 | fi | |
ad21602a | 20921 | |
14e8e510 | 20922 | # Check whether --enable-htcp or --disable-htcp was given. |
20923 | if test "${enable_htcp+set}" = set; then | |
20924 | enableval="$enable_htcp" | |
b4b8b6da | 20925 | if test "$enableval" = "yes" ; then |
20926 | echo "HTCP enabled" | |
33f5f8b9 | 20927 | |
20928 | cat >>confdefs.h <<\_ACEOF | |
14e8e510 | 20929 | #define USE_HTCP 1 |
33f5f8b9 | 20930 | _ACEOF |
20931 | ||
14e8e510 | 20932 | |
a2794549 | 20933 | |
20934 | if true; then | |
20935 | ENABLE_HTCP_TRUE= | |
20936 | ENABLE_HTCP_FALSE='#' | |
20937 | else | |
20938 | ENABLE_HTCP_TRUE='#' | |
20939 | ENABLE_HTCP_FALSE= | |
20940 | fi | |
ad21602a | 20941 | |
b4b8b6da | 20942 | fi |
14e8e510 | 20943 | |
33f5f8b9 | 20944 | fi; |
14e8e510 | 20945 | |
b4b8b6da | 20946 | |
a2794549 | 20947 | |
20948 | if false; then | |
20949 | ENABLE_SSL_TRUE= | |
20950 | ENABLE_SSL_FALSE='#' | |
20951 | else | |
20952 | ENABLE_SSL_TRUE='#' | |
20953 | ENABLE_SSL_FALSE= | |
20954 | fi | |
a2794549 | 20955 | |
ad21602a | 20956 | |
53f16c78 | 20957 | # Check whether --enable-ssl or --disable-ssl was given. |
20958 | if test "${enable_ssl+set}" = set; then | |
20959 | enableval="$enable_ssl" | |
20960 | if test "$enableval" != "no"; then | |
3dff197f | 20961 | echo "SSL gatewaying using OpenSSL enabled" |
33f5f8b9 | 20962 | |
20963 | cat >>confdefs.h <<\_ACEOF | |
53f16c78 | 20964 | #define USE_SSL 1 |
33f5f8b9 | 20965 | _ACEOF |
20966 | ||
53f16c78 | 20967 | |
a2794549 | 20968 | |
20969 | if true; then | |
20970 | ENABLE_SSL_TRUE= | |
20971 | ENABLE_SSL_FALSE='#' | |
20972 | else | |
20973 | ENABLE_SSL_TRUE='#' | |
20974 | ENABLE_SSL_FALSE= | |
20975 | fi | |
ad21602a | 20976 | |
07d1f987 | 20977 | case "$host_os" in |
20978 | mingw|mingw32) | |
20979 | SSLLIB='-lssl -lcrypto -lgdi32' | |
20980 | ;; | |
20981 | *) | |
20982 | SSLLIB='-lssl -lcrypto' | |
20983 | ;; | |
20984 | esac | |
53f16c78 | 20985 | USE_OPENSSL=1 |
20986 | fi | |
20987 | ||
33f5f8b9 | 20988 | fi; |
53f16c78 | 20989 | |
3dff197f | 20990 | |
20991 | ||
20992 | if true; then | |
20993 | NEED_OWN_MD5_TRUE= | |
20994 | NEED_OWN_MD5_FALSE='#' | |
20995 | else | |
20996 | NEED_OWN_MD5_TRUE='#' | |
20997 | NEED_OWN_MD5_FALSE= | |
20998 | fi | |
20999 | ||
33f5f8b9 | 21000 | |
ad21602a | 21001 | |
53f16c78 | 21002 | # Check whether --with-openssl or --without-openssl was given. |
21003 | if test "${with_openssl+set}" = set; then | |
21004 | withval="$with_openssl" | |
33f5f8b9 | 21005 | |
dd283e6e | 21006 | case "$with_openssl" in |
53f16c78 | 21007 | yes) |
21008 | USE_OPENSSL=1 | |
21009 | ;; | |
21010 | no) | |
21011 | USE_OPENSSL= | |
21012 | ;; | |
21013 | *) | |
dd283e6e | 21014 | SSLLIBDIR="$with_openssl/lib" |
730d4a97 | 21015 | CPPFLAGS="-I$with_openssl/include $CPPFLAGS" |
53f16c78 | 21016 | USE_OPENSSL=1 |
21017 | esac | |
21018 | ||
33f5f8b9 | 21019 | fi; |
53f16c78 | 21020 | |
21021 | if test -n "$USE_OPENSSL"; then | |
3dff197f | 21022 | echo "Using OpenSSL MD5 implementation" |
33f5f8b9 | 21023 | |
21024 | cat >>confdefs.h <<\_ACEOF | |
53f16c78 | 21025 | #define USE_OPENSSL 1 |
33f5f8b9 | 21026 | _ACEOF |
21027 | ||
53f16c78 | 21028 | |
3dff197f | 21029 | |
21030 | if false; then | |
21031 | NEED_OWN_MD5_TRUE= | |
21032 | NEED_OWN_MD5_FALSE='#' | |
21033 | else | |
21034 | NEED_OWN_MD5_TRUE='#' | |
21035 | NEED_OWN_MD5_FALSE= | |
21036 | fi | |
ad21602a | 21037 | |
53f16c78 | 21038 | if test -z "$SSLLIB"; then |
21039 | SSLLIB="-lcrypto" # for MD5 routines | |
21040 | fi | |
9282cc28 | 21041 | if test -d /usr/kerberos/include && test -z "$SSLLIBDIR" && test -f /usr/include/openssl/kssl.h; then |
21042 | echo "OpenSSL depends on Kerberos" | |
21043 | SSLLIBDIR="/usr/kerberos/lib" | |
21044 | CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include" | |
21045 | fi | |
53f16c78 | 21046 | fi |
21047 | if test -n "$SSLLIBDIR"; then | |
21048 | SSLLIB="-L$SSLLIBDIR $SSLLIB" | |
21049 | fi | |
53f16c78 | 21050 | |
21051 | ||
02749868 | 21052 | # Check whether --enable-forw-via-db or --disable-forw-via-db was given. |
21053 | if test "${enable_forw_via_db+set}" = set; then | |
21054 | enableval="$enable_forw_via_db" | |
21055 | if test "$enableval" = "yes" ; then | |
21056 | echo "FORW-VIA enabled" | |
33f5f8b9 | 21057 | |
21058 | cat >>confdefs.h <<\_ACEOF | |
02749868 | 21059 | #define FORW_VIA_DB 1 |
33f5f8b9 | 21060 | _ACEOF |
02749868 | 21061 | |
21062 | fi | |
21063 | ||
33f5f8b9 | 21064 | fi; |
02749868 | 21065 | |
22df58ea | 21066 | # Check whether --enable-cache-digests or --disable-cache-digests was given. |
21067 | if test "${enable_cache_digests+set}" = set; then | |
21068 | enableval="$enable_cache_digests" | |
484f2ebc | 21069 | if test "$enableval" = "yes" ; then |
22df58ea | 21070 | echo "USE_CACHE_DIGESTS enabled" |
33f5f8b9 | 21071 | |
21072 | cat >>confdefs.h <<\_ACEOF | |
22df58ea | 21073 | #define USE_CACHE_DIGESTS 1 |
33f5f8b9 | 21074 | _ACEOF |
484f2ebc | 21075 | |
21076 | fi | |
21077 | ||
33f5f8b9 | 21078 | fi; |
484f2ebc | 21079 | |
8c3926c5 | 21080 | # Check whether --enable-default-err-language or --disable-default-err-language was given. |
21081 | if test "${enable_default_err_language+set}" = set; then | |
21082 | enableval="$enable_default_err_language" | |
33f5f8b9 | 21083 | |
230a03f6 | 21084 | if test -d $srcdir/errors/$enableval; then |
8c3926c5 | 21085 | ERR_DEFAULT_LANGUAGE=$enableval |
933cc58d | 21086 | else |
e0a8c463 | 21087 | echo "ERROR! Unknown language $enableval, see errors/ directory" |
933cc58d | 21088 | exit 1 |
21089 | fi | |
93a8bb45 | 21090 | |
933cc58d | 21091 | else |
8c3926c5 | 21092 | ERR_DEFAULT_LANGUAGE="English" |
33f5f8b9 | 21093 | fi; |
8c3926c5 | 21094 | |
21095 | ||
21096 | # Check whether --enable-err-languages or --disable-err-languages was given. | |
21097 | if test "${enable_err_languages+set}" = set; then | |
21098 | enableval="$enable_err_languages" | |
33f5f8b9 | 21099 | |
8c3926c5 | 21100 | for l in $enableval; do |
21101 | if test -d $srcdir/errors/$l; then :; else | |
21102 | echo "ERROR! Unknown language $$l, see errors/" | |
21103 | exit 1 | |
21104 | fi | |
21105 | done | |
21106 | ERR_LANGUAGES=$enableval | |
21107 | ||
21108 | else | |
33f5f8b9 | 21109 | |
8c3926c5 | 21110 | ERR_LANGUAGES= |
21111 | for l in $srcdir/errors/*; do | |
feee755e | 21112 | if test -f $l/ERR_ACCESS_DENIED; then |
8c3926c5 | 21113 | ERR_LANGUAGES="$ERR_LANGUAGES `basename $l`" |
21114 | fi | |
21115 | done | |
21116 | ||
33f5f8b9 | 21117 | fi; |
933cc58d | 21118 | |
21119 | ||
21120 | ||
cd748f27 | 21121 | # Check whether --with-coss-membuf-size or --without-coss-membuf-size was given. |
21122 | if test "${with_coss_membuf_size+set}" = set; then | |
21123 | withval="$with_coss_membuf_size" | |
21124 | if test "$with_coss_membuf_size"; then | |
21125 | echo "Setting COSS membuf size to $with_coss_membuf_size bytes" | |
33f5f8b9 | 21126 | |
21127 | cat >>confdefs.h <<_ACEOF | |
cd748f27 | 21128 | #define COSS_MEMBUF_SZ $with_coss_membuf_size |
33f5f8b9 | 21129 | _ACEOF |
cd748f27 | 21130 | |
21131 | fi | |
21132 | ||
33f5f8b9 | 21133 | fi; |
cd748f27 | 21134 | |
9bb83c8b | 21135 | # Check whether --enable-poll or --disable-poll was given. |
21136 | if test "${enable_poll+set}" = set; then | |
21137 | enableval="$enable_poll" | |
33f5f8b9 | 21138 | |
c68e9c6b | 21139 | case "$enableval" in |
21140 | yes) | |
9bb83c8b | 21141 | echo "Forcing poll() to be enabled" |
21142 | ac_cv_func_poll='yes' | |
c68e9c6b | 21143 | ;; |
21144 | no) | |
21145 | echo "Forcing poll() to be disabled" | |
21146 | ac_cv_func_poll='no' | |
21147 | ;; | |
21148 | esac | |
9bb83c8b | 21149 | |
33f5f8b9 | 21150 | fi; |
9bb83c8b | 21151 | |
1b3db6d9 | 21152 | # Check whether --enable-select or --disable-select was given. |
21153 | if test "${enable_select+set}" = set; then | |
21154 | enableval="$enable_select" | |
33f5f8b9 | 21155 | |
1b3db6d9 | 21156 | case "$enableval" in |
21157 | yes) | |
21158 | echo "Forcing select() to be enabled" | |
21159 | ac_cv_func_select='yes' | |
21160 | ;; | |
21161 | no) | |
21162 | echo "Forcing select() to be disabled" | |
21163 | ac_cv_func_select='no' | |
21164 | ;; | |
21165 | esac | |
21166 | ||
33f5f8b9 | 21167 | fi; |
1b3db6d9 | 21168 | |
21169 | # Check whether --enable-kqueue or --disable-kqueue was given. | |
21170 | if test "${enable_kqueue+set}" = set; then | |
21171 | enableval="$enable_kqueue" | |
33f5f8b9 | 21172 | |
1b3db6d9 | 21173 | case "$enableval" in |
21174 | yes) | |
21175 | echo "Forcing kqueue() to be enabled" | |
21176 | ac_cv_func_kqueue='yes' | |
21177 | ;; | |
21178 | no) | |
21179 | echo "Forcing kqueue() to be disabled" | |
21180 | ac_cv_func_kqueue='no' | |
21181 | ;; | |
21182 | esac | |
21183 | ||
33f5f8b9 | 21184 | fi; |
1b3db6d9 | 21185 | |
867db1c2 | 21186 | # Check whether --enable-epoll or --disable-epoll was given. |
21187 | if test "${enable_epoll+set}" = set; then | |
21188 | enableval="$enable_epoll" | |
21189 | ||
21190 | case "$enableval" in | |
21191 | yes) | |
21192 | echo "Forcing epoll() to be enabled" | |
21193 | ac_cv_func_epoll='yes' | |
867db1c2 | 21194 | ;; |
21195 | no) | |
21196 | echo "Forcing epoll() to be disabled" | |
21197 | ac_cv_func_epoll='no' | |
21198 | ;; | |
21199 | esac | |
21200 | ||
21201 | fi; | |
21202 | ||
21203 | ||
d5a00a1e | 21204 | http_violations=1 |
6eec93b2 | 21205 | # Check whether --enable-http-violations or --disable-http-violations was given. |
21206 | if test "${enable_http_violations+set}" = set; then | |
21207 | enableval="$enable_http_violations" | |
21208 | if test "$enableval" = "no" ; then | |
21209 | echo "Disabling HTTP Violations" | |
d5a00a1e | 21210 | http_violations=0 |
21211 | fi | |
21212 | ||
21213 | fi; | |
21214 | if test $http_violations = 1; then | |
33f5f8b9 | 21215 | |
21216 | cat >>confdefs.h <<\_ACEOF | |
d5a00a1e | 21217 | #define HTTP_VIOLATIONS 1 |
33f5f8b9 | 21218 | _ACEOF |
6eec93b2 | 21219 | |
d5a00a1e | 21220 | else |
33f5f8b9 | 21221 | cat >>confdefs.h <<\_ACEOF |
d5a00a1e | 21222 | #define HTTP_VIOLATIONS 0 |
33f5f8b9 | 21223 | _ACEOF |
6eec93b2 | 21224 | |
d5a00a1e | 21225 | fi |
6eec93b2 | 21226 | |
5cafc1d6 | 21227 | # Check whether --enable-ipf-transparent or --disable-ipf-transparent was given. |
21228 | if test "${enable_ipf_transparent+set}" = set; then | |
21229 | enableval="$enable_ipf_transparent" | |
21230 | if test "$enableval" = "yes" ; then | |
21231 | echo "IP-Filter Transparent Proxy enabled" | |
33f5f8b9 | 21232 | |
21233 | cat >>confdefs.h <<\_ACEOF | |
5cafc1d6 | 21234 | #define IPF_TRANSPARENT 1 |
33f5f8b9 | 21235 | _ACEOF |
5cafc1d6 | 21236 | |
21237 | IPF_TRANSPARENT="yes" | |
21238 | fi | |
21239 | ||
33f5f8b9 | 21240 | fi; |
5cafc1d6 | 21241 | |
0205c9c8 | 21242 | # Check whether --enable-pf-transparent or --disable-pf-transparent was given. |
21243 | if test "${enable_pf_transparent+set}" = set; then | |
21244 | enableval="$enable_pf_transparent" | |
21245 | if test "$enableval" = "yes" ; then | |
21246 | echo "PF Transparent Proxy enabled" | |
33f5f8b9 | 21247 | |
21248 | cat >>confdefs.h <<\_ACEOF | |
0205c9c8 | 21249 | #define PF_TRANSPARENT 1 |
33f5f8b9 | 21250 | _ACEOF |
0205c9c8 | 21251 | |
21252 | PF_TRANSPARENT="yes" | |
21253 | fi | |
21254 | ||
33f5f8b9 | 21255 | fi; |
0205c9c8 | 21256 | |
d852fbad | 21257 | # Check whether --enable-linux-netfilter or --disable-linux-netfilter was given. |
21258 | if test "${enable_linux_netfilter+set}" = set; then | |
21259 | enableval="$enable_linux_netfilter" | |
21260 | if test "$enableval" = "yes" ; then | |
82fd361a | 21261 | echo "Linux (Netfilter) Transparent Proxy enabled" |
33f5f8b9 | 21262 | |
21263 | cat >>confdefs.h <<\_ACEOF | |
d852fbad | 21264 | #define LINUX_NETFILTER 1 |
33f5f8b9 | 21265 | _ACEOF |
d852fbad | 21266 | |
21267 | LINUX_NETFILTER="yes" | |
21268 | fi | |
21269 | ||
33f5f8b9 | 21270 | fi; |
d852fbad | 21271 | |
ca732765 | 21272 | buildmodel="" |
21273 | needlargefiles= | |
21274 | ||
21275 | ||
21276 | # Check whether --with-large-files or --without-large-files was given. | |
21277 | if test "${with_large_files+set}" = set; then | |
21278 | withval="$with_large_files" | |
21279 | if test "$withval" = yes; then | |
21280 | needlargefiles=1 | |
ffbbfa56 | 21281 | fi |
21282 | ||
33f5f8b9 | 21283 | fi; |
ffbbfa56 | 21284 | |
a2794549 | 21285 | |
ca732765 | 21286 | # Check whether --with-build-environment or --without-build-environment was given. |
21287 | if test "${with_build_environment+set}" = set; then | |
21288 | withval="$with_build_environment" | |
21289 | case "$withval" in | |
21290 | yes|no) | |
21291 | echo "--with-build-environment expects a build environment string as used by getconf" | |
21292 | exit 1 | |
21293 | ;; | |
21294 | *) | |
21295 | buildmodel="$withval" | |
21296 | ;; | |
21297 | esac | |
21298 | ||
21299 | fi; | |
21300 | ||
21301 | if test $needlargefiles && test -z "$buildmodel"; then | |
21302 | for model in POSIX_V6_ILP32_OFFBIG XBS5_ILP32_OFFBIG POSIX_V6_LP64_OFF64 XBS5_LP64_OFF64 POSIX_V6_LPBIG_OFFBIG XBS5_LPBIG_OFFBIG; do | |
21303 | if test "`getconf _$model 2>/dev/null || true`" = 1 || test "`getconf $model 2>/dev/null || true`" ; then | |
21304 | buildmodel=$model | |
21305 | break | |
21306 | fi | |
21307 | done | |
21308 | if test -z "$buildmodel"; then | |
21309 | echo "WARNING: No suitable build environment found for large files. Trying to use _FILE_OFFSET_BITS=64" | |
21310 | sleep 1 | |
21311 | CFLAGS="-D_FILE_OFFSET_BITS=64 $CFLAGS" | |
00549620 | 21312 | CXXFLAGS="-D_FILE_OFFSET_BITS=64 $CXXFLAGS" |
ca732765 | 21313 | fi |
21314 | fi | |
21315 | if test -n "$buildmodel" && test "$buildmodel" != "default"; then | |
21316 | echo "Using $buildmodel build environment" | |
21317 | if test "`getconf _$buildmodel 2>/dev/null || true`" = 1 || test "`getconf $buildmodel 2>/dev/null || true`" ; then | |
21318 | : # All fine | |
21319 | else | |
21320 | echo "ERROR: Build environment $buildmodel not known to getconf." | |
21321 | exit 1 | |
21322 | fi | |
21323 | CFLAGS="`getconf ${buildmodel}_CFLAGS` $CFLAGS" | |
00549620 | 21324 | CXXFLAGS="`getconf ${buildmodel}_CFLAGS` $CXXFLAGS" |
ca732765 | 21325 | LIBS="`getconf ${buildmodel}_LIBS` $LIBS" |
21326 | LDFLAGS="`getconf ${buildmodel}_LDFLAGS` $LDFLAGS" | |
21327 | case "$host" in | |
21328 | *-solaris*) | |
21329 | if test "$GCC" = "yes"; then | |
21330 | echo "Removing -Xa for gcc on $host" | |
21331 | CFLAGS="`echo $CFLAGS | sed -e 's/-Xa//'`" | |
00549620 | 21332 | CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-Xa//'`" |
ca732765 | 21333 | fi |
c65da457 | 21334 | echo "Removing -Usun on $host" |
ca732765 | 21335 | CFLAGS="`echo $CFLAGS | sed -e 's/-Usun//'`" |
00549620 | 21336 | CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-Usun//'`" |
ca732765 | 21337 | ;; |
c65da457 | 21338 | *-sgi-irix6.*) |
21339 | if test "$GCC" = "yes"; then | |
21340 | CFLAGS="`echo $CFLAGS | sed -e 's/-n32/-mabi=n32/'`" | |
537835cd | 21341 | CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-n32/-mabi=n32/'`" |
c65da457 | 21342 | LDFLAGS="`echo $LDFLAGS | sed -e 's/-n32//'`" |
21343 | CFLAGS="`echo $CFLAGS | sed -e 's/-64/-mabi=64/'`" | |
537835cd | 21344 | CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-64/-mabi=64/'`" |
c65da457 | 21345 | LDFLAGS="`echo $LDFLAGS | sed -e 's/-64//'`" |
21346 | fi | |
21347 | ;; | |
ca732765 | 21348 | *) |
21349 | ;; | |
21350 | esac | |
21351 | fi | |
21352 | ||
21353 | ||
a2794549 | 21354 | |
21355 | if false; then | |
21356 | MAKE_LEAKFINDER_TRUE= | |
21357 | MAKE_LEAKFINDER_FALSE='#' | |
21358 | else | |
21359 | MAKE_LEAKFINDER_TRUE='#' | |
21360 | MAKE_LEAKFINDER_FALSE= | |
21361 | fi | |
ad21602a | 21362 | |
5d620373 | 21363 | # Check whether --enable-leakfinder or --disable-leakfinder was given. |
21364 | if test "${enable_leakfinder+set}" = set; then | |
21365 | enableval="$enable_leakfinder" | |
21366 | if test "$enableval" = "yes" ; then | |
21367 | echo "Leak-Finding enabled" | |
33f5f8b9 | 21368 | |
21369 | cat >>confdefs.h <<\_ACEOF | |
5d620373 | 21370 | #define USE_LEAKFINDER 1 |
33f5f8b9 | 21371 | _ACEOF |
5d620373 | 21372 | |
5d620373 | 21373 | USE_LEAKFINDER="yes" |
33f5f8b9 | 21374 | |
5d620373 | 21375 | |
a2794549 | 21376 | if true; then |
21377 | MAKE_LEAKFINDER_TRUE= | |
21378 | MAKE_LEAKFINDER_FALSE='#' | |
21379 | else | |
21380 | MAKE_LEAKFINDER_TRUE='#' | |
21381 | MAKE_LEAKFINDER_FALSE= | |
5d620373 | 21382 | fi |
ad21602a | 21383 | |
a2794549 | 21384 | fi |
5d620373 | 21385 | |
33f5f8b9 | 21386 | fi; |
5d620373 | 21387 | |
d5a00a1e | 21388 | use_ident=1 |
3898f57f | 21389 | # Check whether --enable-ident-lookups or --disable-ident-lookups was given. |
21390 | if test "${enable_ident_lookups+set}" = set; then | |
21391 | enableval="$enable_ident_lookups" | |
21392 | if test "$enableval" = "no" ; then | |
21393 | echo "Disabling Ident Lookups" | |
d5a00a1e | 21394 | use_ident=0 |
21395 | fi | |
21396 | ||
21397 | fi; | |
21398 | if test $use_ident = 1; then | |
33f5f8b9 | 21399 | |
21400 | cat >>confdefs.h <<\_ACEOF | |
d5a00a1e | 21401 | #define USE_IDENT 1 |
33f5f8b9 | 21402 | _ACEOF |
3898f57f | 21403 | |
8000a965 | 21404 | |
21405 | ||
21406 | if true; then | |
21407 | ENABLE_IDENT_TRUE= | |
21408 | ENABLE_IDENT_FALSE='#' | |
21409 | else | |
21410 | ENABLE_IDENT_TRUE='#' | |
21411 | ENABLE_IDENT_FALSE= | |
21412 | fi | |
ad21602a | 21413 | |
d5a00a1e | 21414 | else |
33f5f8b9 | 21415 | cat >>confdefs.h <<\_ACEOF |
d5a00a1e | 21416 | #define USE_IDENT 0 |
33f5f8b9 | 21417 | _ACEOF |
3898f57f | 21418 | |
8000a965 | 21419 | |
21420 | ||
21421 | if false; then | |
21422 | ENABLE_IDENT_TRUE= | |
21423 | ENABLE_IDENT_FALSE='#' | |
21424 | else | |
21425 | ENABLE_IDENT_TRUE='#' | |
21426 | ENABLE_IDENT_FALSE= | |
21427 | fi | |
ad21602a | 21428 | |
d5a00a1e | 21429 | fi |
3898f57f | 21430 | |
a2794549 | 21431 | |
21432 | ||
21433 | if false; then | |
21434 | USE_DNSSERVER_TRUE= | |
21435 | USE_DNSSERVER_FALSE='#' | |
21436 | else | |
21437 | USE_DNSSERVER_TRUE='#' | |
21438 | USE_DNSSERVER_FALSE= | |
21439 | fi | |
ad21602a | 21440 | |
3c573763 | 21441 | use_dnsserver= |
eb824054 | 21442 | # Check whether --enable-internal-dns or --disable-internal-dns was given. |
21443 | if test "${enable_internal_dns+set}" = set; then | |
21444 | enableval="$enable_internal_dns" | |
21445 | if test "$enableval" = "no" ; then | |
21446 | echo "Disabling Internal DNS queries" | |
3c573763 | 21447 | use_dnsserver="yes" |
21448 | fi | |
eb824054 | 21449 | |
33f5f8b9 | 21450 | fi; |
3c573763 | 21451 | if test "$use_dnsserver" = "yes"; then |
33f5f8b9 | 21452 | |
21453 | cat >>confdefs.h <<\_ACEOF | |
7b800d9f | 21454 | #define USE_DNSSERVERS 1 |
33f5f8b9 | 21455 | _ACEOF |
21456 | ||
eb824054 | 21457 | |
a2794549 | 21458 | |
21459 | if true; then | |
21460 | USE_DNSSERVER_TRUE= | |
21461 | USE_DNSSERVER_FALSE='#' | |
21462 | else | |
21463 | USE_DNSSERVER_TRUE='#' | |
21464 | USE_DNSSERVER_FALSE= | |
21465 | fi | |
ad21602a | 21466 | |
eb824054 | 21467 | fi |
21468 | ||
eb824054 | 21469 | # Check whether --enable-truncate or --disable-truncate was given. |
21470 | if test "${enable_truncate+set}" = set; then | |
21471 | enableval="$enable_truncate" | |
21472 | if test "$enableval" = "yes" ; then | |
21473 | echo "Enabling truncate instead of unlink" | |
33f5f8b9 | 21474 | |
21475 | cat >>confdefs.h <<\_ACEOF | |
eb824054 | 21476 | #define USE_TRUNCATE 1 |
33f5f8b9 | 21477 | _ACEOF |
eb824054 | 21478 | |
21479 | fi | |
21480 | ||
33f5f8b9 | 21481 | fi; |
eb824054 | 21482 | |
f388e9b4 | 21483 | # Check whether --enable-hostname-checks or --disable-hostname-checks was given. |
c8a31e86 | 21484 | if test "${enable_hostname_checks+set}" = set; then |
21485 | enableval="$enable_hostname_checks" | |
21486 | if test "$enableval" = "yes"; then | |
e344b46d | 21487 | echo "Enabling hostname sanity checks" |
c8a31e86 | 21488 | |
21489 | cat >>confdefs.h <<\_ACEOF | |
21490 | #define CHECK_HOSTNAMES 1 | |
21491 | _ACEOF | |
21492 | ||
f388e9b4 | 21493 | fi |
21494 | ||
21495 | fi; | |
c8a31e86 | 21496 | |
9bc73deb | 21497 | # Check whether --enable-underscores or --disable-underscores was given. |
21498 | if test "${enable_underscores+set}" = set; then | |
21499 | enableval="$enable_underscores" | |
21500 | if test "$enableval" = "yes" ; then | |
21501 | echo "Enabling the use of underscores in host names" | |
33f5f8b9 | 21502 | |
21503 | cat >>confdefs.h <<\_ACEOF | |
9bc73deb | 21504 | #define ALLOW_HOSTNAME_UNDERSCORES 1 |
33f5f8b9 | 21505 | _ACEOF |
9bc73deb | 21506 | |
21507 | fi | |
21508 | ||
33f5f8b9 | 21509 | fi; |
9bc73deb | 21510 | |
8e90adb6 | 21511 | # Check whether --enable-default-hostsfile or --disable-default-hostsfile was given. |
21512 | if test "${enable_default_hostsfile+set}" = set; then | |
21513 | enableval="$enable_default_hostsfile" | |
33f5f8b9 | 21514 | |
8e90adb6 | 21515 | if test "$enableval" != "none" ; then |
21516 | if test -f $enableval; then | |
21517 | OPT_DEFAULT_HOSTS=$enableval | |
21518 | else | |
21519 | echo "Warning Unable to find $enableval" | |
21520 | sleep 5 | |
21521 | fi | |
21522 | else | |
33f5f8b9 | 21523 | OPT_DEFAULT_HOSTS="none" |
8e90adb6 | 21524 | fi |
21525 | echo "Default hosts file set to: $enableval" | |
21526 | ||
21527 | else | |
21528 | OPT_DEFAULT_HOSTS="/etc/hosts" | |
33f5f8b9 | 21529 | fi; |
8e90adb6 | 21530 | |
21531 | ||
968bed6f | 21532 | # Check whether --enable-auth or --disable-auth was given. |
21533 | if test "${enable_auth+set}" = set; then | |
21534 | enableval="$enable_auth" | |
21535 | case $enableval in | |
21536 | yes) | |
6bf717ad | 21537 | for dir in $srcdir/src/auth/*; do |
21538 | module="`basename $dir`" | |
e825dd59 | 21539 | if test -d "$dir" && test "$module" != CVS; then |
6bf717ad | 21540 | AUTH_MODULES="$AUTH_MODULES $module" |
968bed6f | 21541 | fi |
21542 | done | |
21543 | ;; | |
21544 | no) | |
21545 | ;; | |
e825dd59 | 21546 | *) |
21547 | AUTH_MODULES="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`" | |
21548 | ;; | |
968bed6f | 21549 | esac |
21550 | ||
21551 | else | |
21552 | if test -z "$AUTH_MODULES"; then | |
4bf2a6c5 | 21553 | AUTH_MODULES="ntlm basic digest negotiate" |
968bed6f | 21554 | fi |
21555 | ||
33f5f8b9 | 21556 | fi; |
e825dd59 | 21557 | if test -n "$AUTH_MODULES"; then |
21558 | for module in $AUTH_MODULES; do | |
21559 | if test -d $srcdir/src/auth/$module; then | |
21560 | : | |
21561 | else | |
21562 | echo "ERROR: Auth scheme $module does not exists" | |
21563 | exit 1 | |
21564 | fi | |
b6926c60 | 21565 | eval AUTH_MODULE_${module}=yes |
e825dd59 | 21566 | done |
21567 | echo "Auth scheme modules built: $AUTH_MODULES" | |
21568 | AUTH_OBJS="auth/lib`echo $AUTH_MODULES|sed -e 's% %.a auth/lib%g'`.a" | |
21569 | AUTH_LIBS="`echo $AUTH_OBJS|sed -e 's%auth/%%g'`" | |
bb4a1cf7 | 21570 | else |
21571 | echo "Auth scheme modules built: None" | |
e825dd59 | 21572 | fi |
a33e1d91 | 21573 | AUTH_LINKOBJS= |
21574 | for module in $AUTH_MODULES; do | |
21575 | AUTH_LINKOBJS="$AUTH_LINKOBJS auth/${module}/${module}Scheme.o" | |
21576 | done | |
21577 | ||
968bed6f | 21578 | |
968bed6f | 21579 | |
968bed6f | 21580 | |
21581 | ||
b6926c60 | 21582 | if test -n "$AUTH_MODULE_basic"; then |
21583 | BASIC_AUTH_HELPERS="all" | |
21584 | fi | |
968bed6f | 21585 | # Check whether --enable-basic-auth-helpers or --disable-basic-auth-helpers was given. |
21586 | if test "${enable_basic_auth_helpers+set}" = set; then | |
21587 | enableval="$enable_basic_auth_helpers" | |
b7db09a3 | 21588 | case "$enableval" in |
33f5f8b9 | 21589 | yes) |
b6926c60 | 21590 | BASIC_AUTH_HELPERS="all" |
e825dd59 | 21591 | ;; |
b7db09a3 | 21592 | no) |
b6926c60 | 21593 | BASIC_AUTH_HELPERS="" |
e825dd59 | 21594 | ;; |
b7db09a3 | 21595 | *) |
b6926c60 | 21596 | if test -z "$AUTH_MODULE_basic"; then |
21597 | echo "WARNING: Basic auth helpers selected without the basic scheme enabled" | |
21598 | sleep 15 | |
21599 | fi | |
e825dd59 | 21600 | BASIC_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`" |
21601 | ;; | |
b7db09a3 | 21602 | esac |
21603 | ||
33f5f8b9 | 21604 | fi; |
b6926c60 | 21605 | if test "$BASIC_AUTH_HELPERS" = "all" ; then |
21606 | BASIC_AUTH_HELPERS="" | |
21607 | for dir in $srcdir/helpers/basic_auth/*; do | |
21608 | helper="`basename $dir`" | |
21609 | if test -f $dir/config.test && sh $dir/config.test "$@"; then | |
21610 | BASIC_AUTH_HELPERS="$BASIC_AUTH_HELPERS $helper" | |
21611 | fi | |
21612 | done | |
21613 | fi | |
fc83a946 | 21614 | if test -n "$BASIC_AUTH_HELPERS"; then |
d0b3b2fe | 21615 | for helper in $BASIC_AUTH_HELPERS; do |
e825dd59 | 21616 | if test -d $srcdir/helpers/basic_auth/$helper; then |
a33e1d91 | 21617 | case $helper in |
21618 | SASL) | |
21619 | require_sasl=yes | |
21620 | ;; | |
21621 | esac | |
d0b3b2fe | 21622 | else |
e825dd59 | 21623 | echo "ERROR: Basic auth helper $helper does not exists" |
21624 | exit 1 | |
d0b3b2fe | 21625 | fi |
21626 | done | |
fc83a946 | 21627 | echo "Basic auth helpers built: $BASIC_AUTH_HELPERS" |
b7db09a3 | 21628 | fi |
21629 | ||
21630 | ||
b6926c60 | 21631 | if test -n "$AUTH_MODULE_ntlm"; then |
21632 | NTLM_AUTH_HELPERS="all" | |
21633 | fi | |
968bed6f | 21634 | # Check whether --enable-ntlm-auth-helpers or --disable-ntlm-auth-helpers was given. |
21635 | if test "${enable_ntlm_auth_helpers+set}" = set; then | |
21636 | enableval="$enable_ntlm_auth_helpers" | |
21637 | case "$enableval" in | |
33f5f8b9 | 21638 | yes) |
b6926c60 | 21639 | NTLM_AUTH_HELPERS="all" |
e825dd59 | 21640 | ;; |
968bed6f | 21641 | no) |
b6926c60 | 21642 | NTLM_AUTH_HELPERS="" |
e825dd59 | 21643 | ;; |
968bed6f | 21644 | *) |
e825dd59 | 21645 | NTLM_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`" |
21646 | ;; | |
968bed6f | 21647 | esac |
21648 | ||
33f5f8b9 | 21649 | fi; |
b6926c60 | 21650 | if test "$NTLM_AUTH_HELPERS" = "all" ; then |
21651 | NTLM_AUTH_HELPERS="" | |
21652 | for dir in $srcdir/helpers/ntlm_auth/*; do | |
21653 | helper="`basename $dir`" | |
21654 | if test -f $dir/config.test && sh $dir/config.test "$@"; then | |
21655 | NTLM_AUTH_HELPERS="$NTLM_AUTH_HELPERS $helper" | |
21656 | fi | |
21657 | done | |
21658 | fi | |
968bed6f | 21659 | if test -n "$NTLM_AUTH_HELPERS"; then |
d0b3b2fe | 21660 | for helper in $NTLM_AUTH_HELPERS; do |
e825dd59 | 21661 | if test -d $srcdir/helpers/ntlm_auth/$helper; then |
21662 | : | |
d0b3b2fe | 21663 | else |
e825dd59 | 21664 | echo "ERROR: NTLM Auth helper $helper does not exists" |
21665 | exit 1 | |
d0b3b2fe | 21666 | fi |
21667 | done | |
968bed6f | 21668 | echo "NTLM auth helpers built: $NTLM_AUTH_HELPERS" |
21669 | fi | |
21670 | ||
21671 | ||
b6926c60 | 21672 | if test -n "$AUTH_MODULE_negotiate"; then |
21673 | NEGOTIATE_AUTH_HELPERS="all" | |
21674 | fi | |
ce4caa86 | 21675 | # Check whether --enable-negotiate-auth-helpers or --disable-negotiate-auth-helpers was given. |
21676 | if test "${enable_negotiate_auth_helpers+set}" = set; then | |
21677 | enableval="$enable_negotiate_auth_helpers" | |
21678 | case "$enableval" in | |
21679 | yes) | |
b6926c60 | 21680 | NEGOTIATE_AUTH_HELPERS="all" |
ce4caa86 | 21681 | ;; |
21682 | no) | |
b6926c60 | 21683 | NEGOTIATE_AUTH_HELPERS="" |
ce4caa86 | 21684 | ;; |
21685 | *) | |
21686 | NEGOTIATE_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`" | |
21687 | ;; | |
21688 | esac | |
21689 | ||
21690 | fi; | |
b6926c60 | 21691 | if test "$NEGOTIATE_AUTH_HELPERS" = "all" ; then |
21692 | NEGOTIATE_AUTH_HELPERS="" | |
21693 | for dir in $srcdir/helpers/negotiate_auth/*; do | |
21694 | helper="`basename $dir`" | |
21695 | if test -f $dir/config.test && sh $dir/config.test "$@"; then | |
21696 | NEGOTIATE_AUTH_HELPERS="$NEGOTIATE_AUTH_HELPERS $helper" | |
21697 | fi | |
21698 | done | |
21699 | fi | |
ce4caa86 | 21700 | if test -n "$NEGOTIATE_AUTH_HELPERS"; then |
21701 | for helper in $NEGOTIATE_AUTH_HELPERS; do | |
21702 | if test -d $srcdir/helpers/negotiate_auth/$helper; then | |
21703 | : | |
21704 | else | |
21705 | echo "ERROR: Negotiate Auth helper $helper does not exists" | |
21706 | exit 1 | |
21707 | fi | |
21708 | done | |
21709 | echo "Negotiate auth helpers built: $NEGOTIATE_AUTH_HELPERS" | |
21710 | fi | |
21711 | ||
21712 | ||
b6926c60 | 21713 | if test -n "$AUTH_MODULE_digest"; then |
21714 | DIGEST_AUTH_HELPERS=all | |
21715 | fi | |
96ef0ce9 | 21716 | # Check whether --enable-digest-auth-helpers or --disable-digest-auth-helpers was given. |
21717 | if test "${enable_digest_auth_helpers+set}" = set; then | |
21718 | enableval="$enable_digest_auth_helpers" | |
21719 | case "$enableval" in | |
21720 | yes) | |
b6926c60 | 21721 | DIGEST_AUTH_HELPERS="all" |
e825dd59 | 21722 | ;; |
96ef0ce9 | 21723 | no) |
b6926c60 | 21724 | DIGEST_AUTH_HELPERS="" |
e825dd59 | 21725 | ;; |
96ef0ce9 | 21726 | *) |
e825dd59 | 21727 | DIGEST_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`" |
21728 | ;; | |
96ef0ce9 | 21729 | esac |
21730 | ||
33f5f8b9 | 21731 | fi; |
b6926c60 | 21732 | if test "$DIGEST_AUTH_HELPERS" = "all" ; then |
21733 | DIGEST_AUTH_HELPERS="" | |
21734 | for dir in $srcdir/helpers/digest_auth/*; do | |
21735 | helper="`basename $dir`" | |
21736 | if test -f $dir/config.test && sh $dir/config.test "$@"; then | |
21737 | DIGEST_AUTH_HELPERS="$DIGEST_AUTH_HELPERS $helper" | |
21738 | fi | |
21739 | done | |
21740 | fi | |
96ef0ce9 | 21741 | if test -n "$DIGEST_AUTH_HELPERS"; then |
ca86b2d8 | 21742 | for helper in $DIGEST_AUTH_HELPERS; do |
21743 | if test -f $srcdir/helpers/digest_auth/$helper/Makefile.in; then | |
21744 | : | |
21745 | else | |
21746 | echo "ERROR: digest auth helper $helper does not exists" | |
21747 | exit 1 | |
21748 | fi | |
21749 | done | |
96ef0ce9 | 21750 | echo "Digest auth helpers built: $DIGEST_AUTH_HELPERS" |
21751 | fi | |
21752 | ||
968bed6f | 21753 | |
1aca689d | 21754 | # Check whether --enable-ntlm-fail-open or --disable-ntlm-fail-open was given. |
21755 | if test "${enable_ntlm_fail_open+set}" = set; then | |
21756 | enableval="$enable_ntlm_fail_open" | |
21757 | if test "$enableval" = "yes" ; then | |
33f5f8b9 | 21758 | |
21759 | cat >>confdefs.h <<\_ACEOF | |
1aca689d | 21760 | #define NTLM_FAIL_OPEN 1 |
33f5f8b9 | 21761 | _ACEOF |
1aca689d | 21762 | |
21763 | fi | |
21764 | ||
33f5f8b9 | 21765 | fi; |
1aca689d | 21766 | |
b6926c60 | 21767 | EXTERNAL_ACL_HELPERS=all |
ee07e408 | 21768 | # Check whether --enable-external-acl-helpers or --disable-external-acl-helpers was given. |
21769 | if test "${enable_external_acl_helpers+set}" = set; then | |
21770 | enableval="$enable_external_acl_helpers" | |
21771 | case "$enableval" in | |
21772 | yes) | |
b6926c60 | 21773 | EXTERNAL_ACL_HELPERS=all |
e825dd59 | 21774 | ;; |
ee07e408 | 21775 | no) |
b6926c60 | 21776 | EXTERNAL_ACL_HELPERS="" |
e825dd59 | 21777 | ;; |
ee07e408 | 21778 | *) |
e825dd59 | 21779 | EXTERNAL_ACL_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`" |
21780 | ;; | |
ee07e408 | 21781 | esac |
21782 | ||
33f5f8b9 | 21783 | fi; |
b6926c60 | 21784 | if test "$EXTERNAL_ACL_HELPERS" = "all" ; then |
7861e7c9 | 21785 | EXTERNAL_ACL_HELPERS="" |
b6926c60 | 21786 | for dir in $srcdir/helpers/external_acl/*; do |
21787 | helper="`basename $dir`" | |
21788 | if test -f $dir/config.test && sh $dir/config.test "$@"; then | |
21789 | EXTERNAL_ACL_HELPERS="$EXTERNAL_ACL_HELPERS $helper" | |
21790 | fi | |
21791 | done | |
21792 | fi | |
ee07e408 | 21793 | if test -n "$EXTERNAL_ACL_HELPERS"; then |
d0b3b2fe | 21794 | for helper in $EXTERNAL_ACL_HELPERS; do |
21795 | if test -f $srcdir/helpers/external_acl/$helper/Makefile.in; then | |
21796 | : | |
21797 | else | |
ca86b2d8 | 21798 | echo "ERROR: external acl helper $helper does not exists" |
d0b3b2fe | 21799 | exit 1 |
21800 | fi | |
21801 | done | |
ee07e408 | 21802 | echo "External acl helpers built: $EXTERNAL_ACL_HELPERS" |
21803 | fi | |
21804 | ||
21805 | ||
a33e1d91 | 21806 | |
00b2804c | 21807 | # Check whether --with-valgrind or --without-valgrind was given. |
21808 | if test "${with_valgrind+set}" = set; then | |
21809 | withval="$with_valgrind" | |
21810 | case $withval in | |
21811 | yes) | |
21812 | valgrind=1 | |
21813 | ;; | |
21814 | no) | |
21815 | valgrind= | |
21816 | ;; | |
21817 | *) | |
21818 | CPPFLAGS="$CPPFLAGS -I${enableval}/include" | |
21819 | valgrind=1 | |
21820 | ;; | |
21821 | esac | |
21822 | if test $valgrind; then | |
21823 | ||
21824 | cat >>confdefs.h <<\_ACEOF | |
21825 | #define WITH_VALGRIND 1 | |
21826 | _ACEOF | |
21827 | ||
21828 | echo "Valgrind debug support enabled" | |
21829 | fi | |
21830 | ||
21831 | fi; | |
21832 | ||
21833 | ||
a33e1d91 | 21834 | cat >>confdefs.h <<\_ACEOF |
21835 | #define DISABLE_POOLS 0 | |
21836 | _ACEOF | |
21837 | ||
d96ceb8e | 21838 | # Check whether --enable-mempools or --disable-mempools was given. |
21839 | if test "${enable_mempools+set}" = set; then | |
21840 | enableval="$enable_mempools" | |
21841 | if test "$enableval" = "no" ; then | |
21842 | echo "memPools disabled" | |
33f5f8b9 | 21843 | |
a33e1d91 | 21844 | cat >>confdefs.h <<\_ACEOF |
21845 | #define DISABLE_POOLS 1 | |
21846 | _ACEOF | |
21847 | ||
21848 | fi | |
21849 | ||
21850 | fi; | |
21851 | ||
21852 | # Check whether --enable-win32-service or --disable-win32-service was given. | |
21853 | if test "${enable_win32_service+set}" = set; then | |
21854 | enableval="$enable_win32_service" | |
21855 | if test "$enableval" = "yes" ; then | |
21856 | echo "Enabling WIN32 run service mode" | |
21857 | ||
21858 | cat >>confdefs.h <<\_ACEOF | |
21859 | #define USE_WIN32_SERVICE 1 | |
21860 | _ACEOF | |
21861 | ||
21862 | fi | |
21863 | ||
21864 | fi; | |
21865 | ||
21866 | ||
a33e1d91 | 21867 | if test "$require_sasl" = "yes"; then |
21868 | ||
21869 | ||
21870 | for ac_header in sasl/sasl.h sasl.h | |
21871 | do | |
21872 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
21873 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21874 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21875 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21876 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21878 | fi | |
21879 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21880 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21881 | else | |
21882 | # Is the header compilable? | |
21883 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
21884 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
21885 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 21886 | /* confdefs.h. */ |
21887 | _ACEOF | |
21888 | cat confdefs.h >>conftest.$ac_ext | |
21889 | cat >>conftest.$ac_ext <<_ACEOF | |
21890 | /* end confdefs.h. */ | |
21891 | $ac_includes_default | |
21892 | #include <$ac_header> | |
21893 | _ACEOF | |
21894 | rm -f conftest.$ac_objext | |
21895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 21896 | (eval $ac_compile) 2>conftest.er1 |
a33e1d91 | 21897 | ac_status=$? |
af3004ff | 21898 | grep -v '^ *+' conftest.er1 >conftest.err |
21899 | rm -f conftest.er1 | |
21900 | cat conftest.err >&5 | |
a33e1d91 | 21901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21902 | (exit $ac_status); } && | |
6263d81f | 21903 | { ac_try='test -z "$ac_c_werror_flag" |
21904 | || test ! -s conftest.err' | |
af3004ff | 21905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21906 | (eval $ac_try) 2>&5 | |
21907 | ac_status=$? | |
21908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21909 | (exit $ac_status); }; } && | |
21910 | { ac_try='test -s conftest.$ac_objext' | |
a33e1d91 | 21911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21912 | (eval $ac_try) 2>&5 | |
21913 | ac_status=$? | |
21914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21915 | (exit $ac_status); }; }; then | |
21916 | ac_header_compiler=yes | |
21917 | else | |
21918 | echo "$as_me: failed program was:" >&5 | |
21919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21920 | ||
21921 | ac_header_compiler=no | |
21922 | fi | |
af3004ff | 21923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a33e1d91 | 21924 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
21925 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21926 | ||
21927 | # Is the header present? | |
21928 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
21929 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
21930 | cat >conftest.$ac_ext <<_ACEOF | |
a33e1d91 | 21931 | /* confdefs.h. */ |
33f5f8b9 | 21932 | _ACEOF |
a33e1d91 | 21933 | cat confdefs.h >>conftest.$ac_ext |
21934 | cat >>conftest.$ac_ext <<_ACEOF | |
21935 | /* end confdefs.h. */ | |
21936 | #include <$ac_header> | |
21937 | _ACEOF | |
21938 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21939 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21940 | ac_status=$? | |
21941 | grep -v '^ *+' conftest.er1 >conftest.err | |
21942 | rm -f conftest.er1 | |
21943 | cat conftest.err >&5 | |
21944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21945 | (exit $ac_status); } >/dev/null; then | |
21946 | if test -s conftest.err; then | |
21947 | ac_cpp_err=$ac_c_preproc_warn_flag | |
af3004ff | 21948 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
a33e1d91 | 21949 | else |
21950 | ac_cpp_err= | |
d96ceb8e | 21951 | fi |
a33e1d91 | 21952 | else |
21953 | ac_cpp_err=yes | |
21954 | fi | |
21955 | if test -z "$ac_cpp_err"; then | |
21956 | ac_header_preproc=yes | |
21957 | else | |
21958 | echo "$as_me: failed program was:" >&5 | |
21959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d96ceb8e | 21960 | |
a33e1d91 | 21961 | ac_header_preproc=no |
21962 | fi | |
21963 | rm -f conftest.err conftest.$ac_ext | |
21964 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21965 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
d96ceb8e | 21966 | |
a33e1d91 | 21967 | # So? What about this header? |
af3004ff | 21968 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
21969 | yes:no: ) | |
a33e1d91 | 21970 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
21971 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
af3004ff | 21972 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
21973 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21974 | ac_header_preproc=yes | |
a33e1d91 | 21975 | ;; |
af3004ff | 21976 | no:yes:* ) |
a33e1d91 | 21977 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
21978 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
af3004ff | 21979 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
21980 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21981 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21982 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21983 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21984 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
a33e1d91 | 21985 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
21986 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
af3004ff | 21987 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
21988 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
a33e1d91 | 21989 | ( |
21990 | cat <<\_ASBOX | |
6e4fdb42 | 21991 | ## ----------------------------------------------- ## |
21992 | ## Report this to http://www.squid-cache.org/bugs/ ## | |
21993 | ## ----------------------------------------------- ## | |
a33e1d91 | 21994 | _ASBOX |
21995 | ) | | |
21996 | sed "s/^/$as_me: WARNING: /" >&2 | |
21997 | ;; | |
21998 | esac | |
21999 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22000 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22001 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22003 | else | |
af3004ff | 22004 | eval "$as_ac_Header=\$ac_header_preproc" |
a33e1d91 | 22005 | fi |
22006 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22007 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9e6ab3ce | 22008 | |
a33e1d91 | 22009 | fi |
22010 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22011 | cat >>confdefs.h <<_ACEOF | |
22012 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9e6ab3ce | 22013 | _ACEOF |
22014 | ||
a33e1d91 | 22015 | fi |
7f013c67 | 22016 | |
a33e1d91 | 22017 | done |
7f013c67 | 22018 | |
a33e1d91 | 22019 | if test "$ac_cv_header_sasl_sasl_h" = "yes"; then |
22020 | echo "using SASL2" | |
22021 | LIBSASL="-lsasl2" | |
22022 | else | |
22023 | if test "$ac_cv_header_sasl_h" = "yes"; then | |
22024 | echo "using SASL" | |
22025 | LIBSASL="-lsasl" | |
22026 | else | |
22027 | echo "ERROR: Neither SASL nor SASL2 found" | |
22028 | exit 1 | |
22029 | fi | |
22030 | fi | |
7f013c67 | 22031 | |
a33e1d91 | 22032 | fi |
7f013c67 | 22033 | |
fe0810ac | 22034 | # Check whether --enable-unlinkd or --disable-unlinkd was given. |
22035 | if test "${enable_unlinkd+set}" = set; then | |
22036 | enableval="$enable_unlinkd" | |
22037 | if test "$enableval" = "no" ; then | |
3c573763 | 22038 | use_unlinkd=no |
fe0810ac | 22039 | else |
3c573763 | 22040 | use_unlinkd=yes |
fe0810ac | 22041 | fi |
22042 | ||
22043 | else | |
33f5f8b9 | 22044 | |
fe0810ac | 22045 | # Here we should probably use some magic depending on the selected |
22046 | # storage models | |
3c573763 | 22047 | use_unlinkd=yes |
fe0810ac | 22048 | |
33f5f8b9 | 22049 | fi; |
3c573763 | 22050 | if test "$use_unlinkd" = "yes"; then |
fe0810ac | 22051 | echo "unlinkd enabled" |
33f5f8b9 | 22052 | |
22053 | cat >>confdefs.h <<\_ACEOF | |
fe0810ac | 22054 | #define USE_UNLINKD 1 |
33f5f8b9 | 22055 | _ACEOF |
22056 | ||
fe0810ac | 22057 | |
a2794549 | 22058 | |
22059 | if true; then | |
22060 | ENABLE_UNLINKD_TRUE= | |
22061 | ENABLE_UNLINKD_FALSE='#' | |
fe0810ac | 22062 | else |
a2794549 | 22063 | ENABLE_UNLINKD_TRUE='#' |
22064 | ENABLE_UNLINKD_FALSE= | |
fe0810ac | 22065 | fi |
ad21602a | 22066 | |
a2794549 | 22067 | else |
22068 | echo "unlinkd disabled" | |
33f5f8b9 | 22069 | |
fe0810ac | 22070 | |
a2794549 | 22071 | if false; then |
22072 | ENABLE_UNLINKD_TRUE= | |
22073 | ENABLE_UNLINKD_FALSE='#' | |
22074 | else | |
22075 | ENABLE_UNLINKD_TRUE='#' | |
22076 | ENABLE_UNLINKD_FALSE= | |
22077 | fi | |
ad21602a | 22078 | |
a2794549 | 22079 | fi |
fe0810ac | 22080 | |
22081 | # Check whether --enable-stacktraces or --disable-stacktraces was given. | |
22082 | if test "${enable_stacktraces+set}" = set; then | |
22083 | enableval="$enable_stacktraces" | |
22084 | if test "$enableval" = "yes" ; then | |
22085 | echo "Enabling automatic stack backtraces on fatal errors" | |
33f5f8b9 | 22086 | |
22087 | cat >>confdefs.h <<\_ACEOF | |
fe0810ac | 22088 | #define PRINT_STACK_TRACE 1 |
33f5f8b9 | 22089 | _ACEOF |
fe0810ac | 22090 | |
22091 | fi | |
22092 | ||
33f5f8b9 | 22093 | fi; |
fe0810ac | 22094 | |
88bfe092 | 22095 | |
22096 | ||
22097 | if false; then | |
22098 | ENABLE_XPROF_STATS_TRUE= | |
22099 | ENABLE_XPROF_STATS_FALSE='#' | |
22100 | else | |
22101 | ENABLE_XPROF_STATS_TRUE='#' | |
22102 | ENABLE_XPROF_STATS_FALSE= | |
22103 | fi | |
ad21602a | 22104 | |
88bfe092 | 22105 | # Check whether --enable-cpu-profiling or --disable-cpu-profiling was given. |
22106 | if test "${enable_cpu_profiling+set}" = set; then | |
22107 | enableval="$enable_cpu_profiling" | |
22108 | if test "$enableval" = "yes" ; then | |
22109 | echo "Enabling cpu-profiling" | |
33f5f8b9 | 22110 | |
22111 | cat >>confdefs.h <<\_ACEOF | |
88bfe092 | 22112 | #define USE_XPROF_STATS 1 |
33f5f8b9 | 22113 | _ACEOF |
22114 | ||
88bfe092 | 22115 | |
88bfe092 | 22116 | |
22117 | if true; then | |
22118 | ENABLE_XPROF_STATS_TRUE= | |
22119 | ENABLE_XPROF_STATS_FALSE='#' | |
22120 | else | |
22121 | ENABLE_XPROF_STATS_TRUE='#' | |
22122 | ENABLE_XPROF_STATS_FALSE= | |
22123 | fi | |
ad21602a | 22124 | |
88bfe092 | 22125 | fi |
22126 | ||
33f5f8b9 | 22127 | fi; |
88bfe092 | 22128 | |
53f16c78 | 22129 | # Check whether --enable-x_accelerator_vary or --disable-x_accelerator_vary was given. |
22130 | if test "${enable_x_accelerator_vary+set}" = set; then | |
22131 | enableval="$enable_x_accelerator_vary" | |
22132 | if test "$enableval" = "yes" ; then | |
22133 | echo "Enabling support for X-Accelerator-Vary" | |
33f5f8b9 | 22134 | |
22135 | cat >>confdefs.h <<\_ACEOF | |
53f16c78 | 22136 | #define X_ACCELERATOR_VARY 1 |
33f5f8b9 | 22137 | _ACEOF |
53f16c78 | 22138 | |
22139 | fi | |
22140 | ||
33f5f8b9 | 22141 | fi; |
53f16c78 | 22142 | |
22143 | ||
ba077dfb | 22144 | # Check whether --with-filedescriptors or --without-filedescriptors was given. |
22145 | if test "${with_filedescriptors+set}" = set; then | |
22146 | withval="$with_filedescriptors" | |
33f5f8b9 | 22147 | squid_filedescriptors_num=$withval |
22148 | fi; | |
ba077dfb | 22149 | |
8b5e106b | 22150 | # Extract the first word of "cppunit-config", so it can be a program name with args. |
22151 | set dummy cppunit-config; ac_word=$2 | |
22152 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
22153 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22154 | if test "${ac_cv_path_CPPUNITCONFIG+set}" = set; then | |
22155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22156 | else | |
22157 | case $CPPUNITCONFIG in | |
22158 | [\\/]* | ?:[\\/]*) | |
22159 | ac_cv_path_CPPUNITCONFIG="$CPPUNITCONFIG" # Let the user override the test with a path. | |
22160 | ;; | |
22161 | *) | |
22162 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22163 | for as_dir in $PATH | |
22164 | do | |
22165 | IFS=$as_save_IFS | |
22166 | test -z "$as_dir" && as_dir=. | |
22167 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22168 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22169 | ac_cv_path_CPPUNITCONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22170 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22171 | break 2 | |
22172 | fi | |
22173 | done | |
22174 | done | |
22175 | ||
22176 | test -z "$ac_cv_path_CPPUNITCONFIG" && ac_cv_path_CPPUNITCONFIG="false" | |
22177 | ;; | |
22178 | esac | |
22179 | fi | |
22180 | CPPUNITCONFIG=$ac_cv_path_CPPUNITCONFIG | |
22181 | ||
22182 | if test -n "$CPPUNITCONFIG"; then | |
22183 | echo "$as_me:$LINENO: result: $CPPUNITCONFIG" >&5 | |
22184 | echo "${ECHO_T}$CPPUNITCONFIG" >&6 | |
22185 | else | |
22186 | echo "$as_me:$LINENO: result: no" >&5 | |
22187 | echo "${ECHO_T}no" >&6 | |
22188 | fi | |
22189 | ||
22190 | if $CPPUNITCONFIG --help >/dev/null; then | |
a33e1d91 | 22191 | echo "using system installed cppunit" |
22192 | SQUID_CPPUNIT_DIR='' | |
8b5e106b | 22193 | SQUID_CPPUNIT_LIBS="`$CPPUNITCONFIG --libs`" |
22194 | SQUID_CPPUNIT_LA='' | |
22195 | SQUID_CPPUNIT_INC="`$CPPUNITCONFIG --cflags`" | |
22196 | else | |
22197 | SQUID_CPPUNIT_DIR='cppunit-1.10.0' | |
22198 | SQUID_CPPUNIT_LA='$(top_builddir)/lib/cppunit-1.10.0/src/cppunit/libcppunit.la' | |
22199 | SQUID_CPPUNIT_LIBS='$(SQUID_CPPUNIT_LA)' | |
22200 | SQUID_CPPUNIT_INC='-I$(top_builddir)/lib/cppunit-1.10.0/include -I $(top_srcdir)/lib/cppunit-1.10.0/include' | |
a33e1d91 | 22201 | fi |
22202 | ||
8b5e106b | 22203 | |
a33e1d91 | 22204 | # Check whether --with-cppunit-basedir or --without-cppunit-basedir was given. |
22205 | if test "${with_cppunit_basedir+set}" = set; then | |
22206 | withval="$with_cppunit_basedir" | |
22207 | if test -f $withval/include/cppunit/TestCase.h; then | |
22208 | echo "Using cppunit includes from $withval" | |
22209 | SQUID_CPPUNIT_INC="-I${withval}/include" | |
22210 | else | |
22211 | echo "ERROR: Cannot find cppunit at $withval" | |
22212 | exit 1 | |
22213 | fi | |
22214 | if test -f $withval/lib/libcppunit.la; then | |
22215 | echo "Using cppunit lib from $withval" | |
22216 | SQUID_CPPUNIT_LA="-I${withval}/lib/libcppunit.la" | |
8b5e106b | 22217 | SQUID_CPPUNIT_LIBS='$(SQUID_CPPUNIT_LA)' |
a33e1d91 | 22218 | else |
22219 | echo "ERROR: Cannot find cppunit at $withval" | |
22220 | exit 1 | |
22221 | fi | |
22222 | SQUID_CPPUNIT_DIR='' | |
22223 | ||
22224 | fi; | |
22225 | ||
22226 | ||
22227 | ||
22228 | ||
8b5e106b | 22229 | |
fd9aaa3e | 22230 | # Force some compilers to use ANSI features |
22231 | # | |
22232 | case "$host" in | |
22233 | alpha-dec-osf*) | |
22234 | if test "$ac_cv_prog_CC" = "cc" ; then | |
22235 | echo "adding '-std1' to cc args for $host" | |
22236 | CC="cc -std1"; | |
22237 | ac_cv_prog_CC="$CC" | |
22238 | fi | |
22239 | ;; | |
c68e9c6b | 22240 | *-hp-hpux*) |
22241 | if test "$ac_cv_prog_CC" = "cc" ; then | |
22242 | echo "adding '-Ae' to cc args for $host" | |
22243 | CC="cc -Ae"; | |
22244 | ac_cv_prog_CC="$CC" | |
22245 | fi | |
22246 | ;; | |
fd9aaa3e | 22247 | esac |
22248 | ||
33f5f8b9 | 22249 | ac_ext=c |
22250 | ac_cpp='$CPP $CPPFLAGS' | |
22251 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22252 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22253 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
22254 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
22255 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
090089c4 | 22256 | # On Suns, sometimes $CPP names a directory. |
22257 | if test -n "$CPP" && test -d "$CPP"; then | |
22258 | CPP= | |
22259 | fi | |
22260 | if test -z "$CPP"; then | |
33f5f8b9 | 22261 | if test "${ac_cv_prog_CPP+set}" = set; then |
22262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22263 | else | |
22264 | # Double quotes because CPP needs to be expanded | |
22265 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
22266 | do | |
22267 | ac_preproc_ok=false | |
22268 | for ac_c_preproc_warn_flag in '' yes | |
22269 | do | |
22270 | # Use a header file that comes with gcc, so configuring glibc | |
22271 | # with a fresh cross-compiler works. | |
ad21602a | 22272 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
22273 | # <limits.h> exists even on freestanding compilers. | |
090089c4 | 22274 | # On the NeXT, cc -E runs the code through the compiler's parser, |
33f5f8b9 | 22275 | # not just through cpp. "Syntax error" is here to catch this case. |
22276 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 22277 | /* confdefs.h. */ |
22278 | _ACEOF | |
22279 | cat confdefs.h >>conftest.$ac_ext | |
22280 | cat >>conftest.$ac_ext <<_ACEOF | |
22281 | /* end confdefs.h. */ | |
22282 | #ifdef __STDC__ | |
22283 | # include <limits.h> | |
22284 | #else | |
22285 | # include <assert.h> | |
22286 | #endif | |
af3004ff | 22287 | Syntax error |
33f5f8b9 | 22288 | _ACEOF |
22289 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22290 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22291 | ac_status=$? | |
ad21602a | 22292 | grep -v '^ *+' conftest.er1 >conftest.err |
33f5f8b9 | 22293 | rm -f conftest.er1 |
22294 | cat conftest.err >&5 | |
22295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22296 | (exit $ac_status); } >/dev/null; then | |
22297 | if test -s conftest.err; then | |
22298 | ac_cpp_err=$ac_c_preproc_warn_flag | |
af3004ff | 22299 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
33f5f8b9 | 22300 | else |
22301 | ac_cpp_err= | |
22302 | fi | |
22303 | else | |
22304 | ac_cpp_err=yes | |
22305 | fi | |
22306 | if test -z "$ac_cpp_err"; then | |
090089c4 | 22307 | : |
22308 | else | |
33f5f8b9 | 22309 | echo "$as_me: failed program was:" >&5 |
ad21602a | 22310 | sed 's/^/| /' conftest.$ac_ext >&5 |
22311 | ||
33f5f8b9 | 22312 | # Broken: fails on valid input. |
22313 | continue | |
22314 | fi | |
22315 | rm -f conftest.err conftest.$ac_ext | |
22316 | ||
22317 | # OK, works on sane cases. Now check whether non-existent headers | |
22318 | # can be detected and how. | |
22319 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 22320 | /* confdefs.h. */ |
22321 | _ACEOF | |
22322 | cat confdefs.h >>conftest.$ac_ext | |
22323 | cat >>conftest.$ac_ext <<_ACEOF | |
22324 | /* end confdefs.h. */ | |
33f5f8b9 | 22325 | #include <ac_nonexistent.h> |
22326 | _ACEOF | |
22327 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22328 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22329 | ac_status=$? | |
ad21602a | 22330 | grep -v '^ *+' conftest.er1 >conftest.err |
33f5f8b9 | 22331 | rm -f conftest.er1 |
22332 | cat conftest.err >&5 | |
22333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22334 | (exit $ac_status); } >/dev/null; then | |
22335 | if test -s conftest.err; then | |
22336 | ac_cpp_err=$ac_c_preproc_warn_flag | |
af3004ff | 22337 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
33f5f8b9 | 22338 | else |
22339 | ac_cpp_err= | |
22340 | fi | |
22341 | else | |
22342 | ac_cpp_err=yes | |
22343 | fi | |
22344 | if test -z "$ac_cpp_err"; then | |
22345 | # Broken: success on invalid input. | |
22346 | continue | |
b7db09a3 | 22347 | else |
33f5f8b9 | 22348 | echo "$as_me: failed program was:" >&5 |
ad21602a | 22349 | sed 's/^/| /' conftest.$ac_ext >&5 |
22350 | ||
33f5f8b9 | 22351 | # Passes both tests. |
22352 | ac_preproc_ok=: | |
22353 | break | |
22354 | fi | |
22355 | rm -f conftest.err conftest.$ac_ext | |
22356 | ||
22357 | done | |
22358 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22359 | rm -f conftest.err conftest.$ac_ext | |
22360 | if $ac_preproc_ok; then | |
22361 | break | |
22362 | fi | |
22363 | ||
22364 | done | |
22365 | ac_cv_prog_CPP=$CPP | |
22366 | ||
22367 | fi | |
22368 | CPP=$ac_cv_prog_CPP | |
22369 | else | |
22370 | ac_cv_prog_CPP=$CPP | |
22371 | fi | |
22372 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
22373 | echo "${ECHO_T}$CPP" >&6 | |
22374 | ac_preproc_ok=false | |
22375 | for ac_c_preproc_warn_flag in '' yes | |
22376 | do | |
22377 | # Use a header file that comes with gcc, so configuring glibc | |
22378 | # with a fresh cross-compiler works. | |
ad21602a | 22379 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
22380 | # <limits.h> exists even on freestanding compilers. | |
33f5f8b9 | 22381 | # On the NeXT, cc -E runs the code through the compiler's parser, |
22382 | # not just through cpp. "Syntax error" is here to catch this case. | |
22383 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 22384 | /* confdefs.h. */ |
22385 | _ACEOF | |
22386 | cat confdefs.h >>conftest.$ac_ext | |
22387 | cat >>conftest.$ac_ext <<_ACEOF | |
22388 | /* end confdefs.h. */ | |
22389 | #ifdef __STDC__ | |
22390 | # include <limits.h> | |
22391 | #else | |
22392 | # include <assert.h> | |
22393 | #endif | |
af3004ff | 22394 | Syntax error |
33f5f8b9 | 22395 | _ACEOF |
22396 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2475ee6d | 22397 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
33f5f8b9 | 22398 | ac_status=$? |
ad21602a | 22399 | grep -v '^ *+' conftest.er1 >conftest.err |
33f5f8b9 | 22400 | rm -f conftest.er1 |
22401 | cat conftest.err >&5 | |
22402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22403 | (exit $ac_status); } >/dev/null; then | |
22404 | if test -s conftest.err; then | |
22405 | ac_cpp_err=$ac_c_preproc_warn_flag | |
af3004ff | 22406 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
33f5f8b9 | 22407 | else |
22408 | ac_cpp_err= | |
22409 | fi | |
22410 | else | |
22411 | ac_cpp_err=yes | |
22412 | fi | |
22413 | if test -z "$ac_cpp_err"; then | |
090089c4 | 22414 | : |
22415 | else | |
33f5f8b9 | 22416 | echo "$as_me: failed program was:" >&5 |
ad21602a | 22417 | sed 's/^/| /' conftest.$ac_ext >&5 |
22418 | ||
33f5f8b9 | 22419 | # Broken: fails on valid input. |
22420 | continue | |
b7db09a3 | 22421 | fi |
33f5f8b9 | 22422 | rm -f conftest.err conftest.$ac_ext |
22423 | ||
22424 | # OK, works on sane cases. Now check whether non-existent headers | |
22425 | # can be detected and how. | |
22426 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 22427 | /* confdefs.h. */ |
22428 | _ACEOF | |
22429 | cat confdefs.h >>conftest.$ac_ext | |
22430 | cat >>conftest.$ac_ext <<_ACEOF | |
22431 | /* end confdefs.h. */ | |
33f5f8b9 | 22432 | #include <ac_nonexistent.h> |
22433 | _ACEOF | |
22434 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22435 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22436 | ac_status=$? | |
ad21602a | 22437 | grep -v '^ *+' conftest.er1 >conftest.err |
33f5f8b9 | 22438 | rm -f conftest.er1 |
22439 | cat conftest.err >&5 | |
22440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22441 | (exit $ac_status); } >/dev/null; then | |
22442 | if test -s conftest.err; then | |
22443 | ac_cpp_err=$ac_c_preproc_warn_flag | |
af3004ff | 22444 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
33f5f8b9 | 22445 | else |
22446 | ac_cpp_err= | |
22447 | fi | |
22448 | else | |
22449 | ac_cpp_err=yes | |
090089c4 | 22450 | fi |
33f5f8b9 | 22451 | if test -z "$ac_cpp_err"; then |
22452 | # Broken: success on invalid input. | |
22453 | continue | |
22454 | else | |
22455 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 22456 | sed 's/^/| /' conftest.$ac_ext >&5 |
22457 | ||
33f5f8b9 | 22458 | # Passes both tests. |
22459 | ac_preproc_ok=: | |
22460 | break | |
3f961930 | 22461 | fi |
33f5f8b9 | 22462 | rm -f conftest.err conftest.$ac_ext |
22463 | ||
22464 | done | |
22465 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
22466 | rm -f conftest.err conftest.$ac_ext | |
22467 | if $ac_preproc_ok; then | |
22468 | : | |
090089c4 | 22469 | else |
ad21602a | 22470 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
22471 | See \`config.log' for more details." >&5 | |
22472 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
22473 | See \`config.log' for more details." >&2;} | |
33f5f8b9 | 22474 | { (exit 1); exit 1; }; } |
090089c4 | 22475 | fi |
33f5f8b9 | 22476 | |
22477 | ac_ext=c | |
22478 | ac_cpp='$CPP $CPPFLAGS' | |
22479 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
22480 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
22481 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
090089c4 | 22482 | |
090089c4 | 22483 | # Find a good install program. We prefer a C program (faster), |
22484 | # so one script is as good as another. But avoid the broken or | |
22485 | # incompatible versions: | |
22486 | # SysV /etc/install, /usr/sbin/install | |
22487 | # SunOS /usr/etc/install | |
22488 | # IRIX /sbin/install | |
22489 | # AIX /bin/install | |
33f5f8b9 | 22490 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
b7db09a3 | 22491 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
090089c4 | 22492 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
22493 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
af3004ff | 22494 | # OS/2's system install, which has a completely different semantic |
090089c4 | 22495 | # ./install, which can be erroneously created by make from ./install.sh. |
33f5f8b9 | 22496 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
22497 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
090089c4 | 22498 | if test -z "$INSTALL"; then |
33f5f8b9 | 22499 | if test "${ac_cv_path_install+set}" = set; then |
22500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22501 | else | |
22502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22503 | for as_dir in $PATH | |
22504 | do | |
22505 | IFS=$as_save_IFS | |
22506 | test -z "$as_dir" && as_dir=. | |
22507 | # Account for people who put trailing slashes in PATH elements. | |
22508 | case $as_dir/ in | |
22509 | ./ | .// | /cC/* | \ | |
22510 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
af3004ff | 22511 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
33f5f8b9 | 22512 | /usr/ucb/* ) ;; |
22513 | *) | |
22514 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
22515 | # Don't use installbsd from OSF since it installs stuff as root | |
22516 | # by default. | |
22517 | for ac_prog in ginstall scoinst install; do | |
22518 | for ac_exec_ext in '' $ac_executable_extensions; do | |
af3004ff | 22519 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
22520 | if test $ac_prog = install && | |
22521 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
22522 | # AIX install. It has an incompatible calling convention. | |
22523 | : | |
22524 | elif test $ac_prog = install && | |
22525 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
22526 | # program-specific install script used by HP pwplus--don't use. | |
22527 | : | |
22528 | else | |
22529 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
22530 | break 3 | |
22531 | fi | |
22532 | fi | |
090089c4 | 22533 | done |
33f5f8b9 | 22534 | done |
22535 | ;; | |
22536 | esac | |
22537 | done | |
22538 | ||
090089c4 | 22539 | |
22540 | fi | |
22541 | if test "${ac_cv_path_install+set}" = set; then | |
33f5f8b9 | 22542 | INSTALL=$ac_cv_path_install |
090089c4 | 22543 | else |
22544 | # As a last resort, use the slow shell script. We don't cache a | |
22545 | # path for INSTALL within a source directory, because that will | |
22546 | # break other packages using the cache if that directory is | |
22547 | # removed, or if the path is relative. | |
33f5f8b9 | 22548 | INSTALL=$ac_install_sh |
090089c4 | 22549 | fi |
22550 | fi | |
33f5f8b9 | 22551 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
22552 | echo "${ECHO_T}$INSTALL" >&6 | |
090089c4 | 22553 | |
22554 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
22555 | # It thinks the first close brace ends the variable substitution. | |
22556 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
22557 | ||
33f5f8b9 | 22558 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
b7db09a3 | 22559 | |
090089c4 | 22560 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
22561 | ||
33f5f8b9 | 22562 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
22563 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
22564 | LN_S=$as_ln_s | |
22565 | if test "$LN_S" = "ln -s"; then | |
22566 | echo "$as_me:$LINENO: result: yes" >&5 | |
22567 | echo "${ECHO_T}yes" >&6 | |
090089c4 | 22568 | else |
33f5f8b9 | 22569 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
22570 | echo "${ECHO_T}no, using $LN_S" >&6 | |
090089c4 | 22571 | fi |
22572 | ||
81280a96 | 22573 | # Extract the first word of "sh", so it can be a program name with args. |
22574 | set dummy sh; ac_word=$2 | |
33f5f8b9 | 22575 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22576 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22577 | if test "${ac_cv_path_SH+set}" = set; then | |
22578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
81280a96 | 22579 | else |
33f5f8b9 | 22580 | case $SH in |
22581 | [\\/]* | ?:[\\/]*) | |
81280a96 | 22582 | ac_cv_path_SH="$SH" # Let the user override the test with a path. |
22583 | ;; | |
22584 | *) | |
33f5f8b9 | 22585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22586 | for as_dir in $PATH | |
22587 | do | |
22588 | IFS=$as_save_IFS | |
22589 | test -z "$as_dir" && as_dir=. | |
22590 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22591 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22592 | ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" | |
22593 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22594 | break 2 | |
22595 | fi | |
22596 | done | |
22597 | done | |
22598 | ||
81280a96 | 22599 | test -z "$ac_cv_path_SH" && ac_cv_path_SH="/bin/sh" |
22600 | ;; | |
22601 | esac | |
22602 | fi | |
33f5f8b9 | 22603 | SH=$ac_cv_path_SH |
22604 | ||
81280a96 | 22605 | if test -n "$SH"; then |
33f5f8b9 | 22606 | echo "$as_me:$LINENO: result: $SH" >&5 |
22607 | echo "${ECHO_T}$SH" >&6 | |
81280a96 | 22608 | else |
33f5f8b9 | 22609 | echo "$as_me:$LINENO: result: no" >&5 |
22610 | echo "${ECHO_T}no" >&6 | |
81280a96 | 22611 | fi |
22612 | ||
d9f67e6f | 22613 | # Extract the first word of "false", so it can be a program name with args. |
22614 | set dummy false; ac_word=$2 | |
33f5f8b9 | 22615 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22616 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22617 | if test "${ac_cv_path_FALSE+set}" = set; then | |
22618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d9f67e6f | 22619 | else |
33f5f8b9 | 22620 | case $FALSE in |
22621 | [\\/]* | ?:[\\/]*) | |
d9f67e6f | 22622 | ac_cv_path_FALSE="$FALSE" # Let the user override the test with a path. |
22623 | ;; | |
22624 | *) | |
33f5f8b9 | 22625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22626 | for as_dir in $PATH | |
22627 | do | |
22628 | IFS=$as_save_IFS | |
22629 | test -z "$as_dir" && as_dir=. | |
22630 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22631 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22632 | ac_cv_path_FALSE="$as_dir/$ac_word$ac_exec_ext" | |
22633 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22634 | break 2 | |
22635 | fi | |
22636 | done | |
22637 | done | |
22638 | ||
d9f67e6f | 22639 | test -z "$ac_cv_path_FALSE" && ac_cv_path_FALSE="/usr/bin/false" |
22640 | ;; | |
22641 | esac | |
22642 | fi | |
33f5f8b9 | 22643 | FALSE=$ac_cv_path_FALSE |
22644 | ||
d9f67e6f | 22645 | if test -n "$FALSE"; then |
33f5f8b9 | 22646 | echo "$as_me:$LINENO: result: $FALSE" >&5 |
22647 | echo "${ECHO_T}$FALSE" >&6 | |
d9f67e6f | 22648 | else |
33f5f8b9 | 22649 | echo "$as_me:$LINENO: result: no" >&5 |
22650 | echo "${ECHO_T}no" >&6 | |
d9f67e6f | 22651 | fi |
22652 | ||
22653 | # Extract the first word of "true", so it can be a program name with args. | |
22654 | set dummy true; ac_word=$2 | |
33f5f8b9 | 22655 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22656 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22657 | if test "${ac_cv_path_TRUE+set}" = set; then | |
22658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d9f67e6f | 22659 | else |
33f5f8b9 | 22660 | case $TRUE in |
22661 | [\\/]* | ?:[\\/]*) | |
d9f67e6f | 22662 | ac_cv_path_TRUE="$TRUE" # Let the user override the test with a path. |
22663 | ;; | |
22664 | *) | |
33f5f8b9 | 22665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22666 | for as_dir in $PATH | |
22667 | do | |
22668 | IFS=$as_save_IFS | |
22669 | test -z "$as_dir" && as_dir=. | |
22670 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22671 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22672 | ac_cv_path_TRUE="$as_dir/$ac_word$ac_exec_ext" | |
22673 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22674 | break 2 | |
22675 | fi | |
22676 | done | |
22677 | done | |
22678 | ||
d9f67e6f | 22679 | test -z "$ac_cv_path_TRUE" && ac_cv_path_TRUE="/usr/bin/true" |
22680 | ;; | |
22681 | esac | |
22682 | fi | |
33f5f8b9 | 22683 | TRUE=$ac_cv_path_TRUE |
22684 | ||
d9f67e6f | 22685 | if test -n "$TRUE"; then |
33f5f8b9 | 22686 | echo "$as_me:$LINENO: result: $TRUE" >&5 |
22687 | echo "${ECHO_T}$TRUE" >&6 | |
d9f67e6f | 22688 | else |
33f5f8b9 | 22689 | echo "$as_me:$LINENO: result: no" >&5 |
22690 | echo "${ECHO_T}no" >&6 | |
d9f67e6f | 22691 | fi |
22692 | ||
090089c4 | 22693 | # Extract the first word of "rm", so it can be a program name with args. |
22694 | set dummy rm; ac_word=$2 | |
33f5f8b9 | 22695 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22696 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22697 | if test "${ac_cv_path_RM+set}" = set; then | |
22698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
090089c4 | 22699 | else |
33f5f8b9 | 22700 | case $RM in |
22701 | [\\/]* | ?:[\\/]*) | |
090089c4 | 22702 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
22703 | ;; | |
22704 | *) | |
33f5f8b9 | 22705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22706 | for as_dir in $PATH | |
22707 | do | |
22708 | IFS=$as_save_IFS | |
22709 | test -z "$as_dir" && as_dir=. | |
22710 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22711 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22712 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | |
22713 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22714 | break 2 | |
22715 | fi | |
22716 | done | |
22717 | done | |
22718 | ||
d9f67e6f | 22719 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="$FALSE" |
090089c4 | 22720 | ;; |
22721 | esac | |
22722 | fi | |
33f5f8b9 | 22723 | RM=$ac_cv_path_RM |
22724 | ||
090089c4 | 22725 | if test -n "$RM"; then |
33f5f8b9 | 22726 | echo "$as_me:$LINENO: result: $RM" >&5 |
22727 | echo "${ECHO_T}$RM" >&6 | |
090089c4 | 22728 | else |
33f5f8b9 | 22729 | echo "$as_me:$LINENO: result: no" >&5 |
22730 | echo "${ECHO_T}no" >&6 | |
090089c4 | 22731 | fi |
22732 | ||
22733 | # Extract the first word of "mv", so it can be a program name with args. | |
22734 | set dummy mv; ac_word=$2 | |
33f5f8b9 | 22735 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22736 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22737 | if test "${ac_cv_path_MV+set}" = set; then | |
22738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
090089c4 | 22739 | else |
33f5f8b9 | 22740 | case $MV in |
22741 | [\\/]* | ?:[\\/]*) | |
090089c4 | 22742 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
22743 | ;; | |
22744 | *) | |
33f5f8b9 | 22745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22746 | for as_dir in $PATH | |
22747 | do | |
22748 | IFS=$as_save_IFS | |
22749 | test -z "$as_dir" && as_dir=. | |
22750 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22751 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22752 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" | |
22753 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22754 | break 2 | |
22755 | fi | |
22756 | done | |
22757 | done | |
22758 | ||
d9f67e6f | 22759 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="$FALSE" |
090089c4 | 22760 | ;; |
22761 | esac | |
22762 | fi | |
33f5f8b9 | 22763 | MV=$ac_cv_path_MV |
22764 | ||
090089c4 | 22765 | if test -n "$MV"; then |
33f5f8b9 | 22766 | echo "$as_me:$LINENO: result: $MV" >&5 |
22767 | echo "${ECHO_T}$MV" >&6 | |
090089c4 | 22768 | else |
33f5f8b9 | 22769 | echo "$as_me:$LINENO: result: no" >&5 |
22770 | echo "${ECHO_T}no" >&6 | |
090089c4 | 22771 | fi |
22772 | ||
22773 | # Extract the first word of "mkdir", so it can be a program name with args. | |
22774 | set dummy mkdir; ac_word=$2 | |
33f5f8b9 | 22775 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22776 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22777 | if test "${ac_cv_path_MKDIR+set}" = set; then | |
22778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
090089c4 | 22779 | else |
33f5f8b9 | 22780 | case $MKDIR in |
22781 | [\\/]* | ?:[\\/]*) | |
090089c4 | 22782 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. |
22783 | ;; | |
22784 | *) | |
33f5f8b9 | 22785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22786 | for as_dir in $PATH | |
22787 | do | |
22788 | IFS=$as_save_IFS | |
22789 | test -z "$as_dir" && as_dir=. | |
22790 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22791 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22792 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" | |
22793 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22794 | break 2 | |
22795 | fi | |
22796 | done | |
22797 | done | |
22798 | ||
d9f67e6f | 22799 | test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="$FALSE" |
090089c4 | 22800 | ;; |
22801 | esac | |
22802 | fi | |
33f5f8b9 | 22803 | MKDIR=$ac_cv_path_MKDIR |
22804 | ||
090089c4 | 22805 | if test -n "$MKDIR"; then |
33f5f8b9 | 22806 | echo "$as_me:$LINENO: result: $MKDIR" >&5 |
22807 | echo "${ECHO_T}$MKDIR" >&6 | |
090089c4 | 22808 | else |
33f5f8b9 | 22809 | echo "$as_me:$LINENO: result: no" >&5 |
22810 | echo "${ECHO_T}no" >&6 | |
090089c4 | 22811 | fi |
22812 | ||
22813 | # Extract the first word of "ln", so it can be a program name with args. | |
22814 | set dummy ln; ac_word=$2 | |
33f5f8b9 | 22815 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22816 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22817 | if test "${ac_cv_path_LN+set}" = set; then | |
22818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
090089c4 | 22819 | else |
33f5f8b9 | 22820 | case $LN in |
22821 | [\\/]* | ?:[\\/]*) | |
090089c4 | 22822 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
22823 | ;; | |
22824 | *) | |
33f5f8b9 | 22825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22826 | for as_dir in $PATH | |
22827 | do | |
22828 | IFS=$as_save_IFS | |
22829 | test -z "$as_dir" && as_dir=. | |
22830 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22831 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22832 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" | |
22833 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22834 | break 2 | |
22835 | fi | |
22836 | done | |
22837 | done | |
22838 | ||
090089c4 | 22839 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="cp" |
22840 | ;; | |
22841 | esac | |
22842 | fi | |
33f5f8b9 | 22843 | LN=$ac_cv_path_LN |
22844 | ||
090089c4 | 22845 | if test -n "$LN"; then |
33f5f8b9 | 22846 | echo "$as_me:$LINENO: result: $LN" >&5 |
22847 | echo "${ECHO_T}$LN" >&6 | |
090089c4 | 22848 | else |
33f5f8b9 | 22849 | echo "$as_me:$LINENO: result: no" >&5 |
22850 | echo "${ECHO_T}no" >&6 | |
090089c4 | 22851 | fi |
22852 | ||
090089c4 | 22853 | # Extract the first word of "perl", so it can be a program name with args. |
22854 | set dummy perl; ac_word=$2 | |
33f5f8b9 | 22855 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22856 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22857 | if test "${ac_cv_path_PERL+set}" = set; then | |
22858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
090089c4 | 22859 | else |
33f5f8b9 | 22860 | case $PERL in |
22861 | [\\/]* | ?:[\\/]*) | |
983061ed | 22862 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
090089c4 | 22863 | ;; |
22864 | *) | |
33f5f8b9 | 22865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22866 | for as_dir in $PATH | |
22867 | do | |
22868 | IFS=$as_save_IFS | |
22869 | test -z "$as_dir" && as_dir=. | |
22870 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22871 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22872 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | |
22873 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22874 | break 2 | |
22875 | fi | |
22876 | done | |
22877 | done | |
22878 | ||
4e9d8e26 | 22879 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none" |
090089c4 | 22880 | ;; |
22881 | esac | |
22882 | fi | |
33f5f8b9 | 22883 | PERL=$ac_cv_path_PERL |
22884 | ||
983061ed | 22885 | if test -n "$PERL"; then |
33f5f8b9 | 22886 | echo "$as_me:$LINENO: result: $PERL" >&5 |
22887 | echo "${ECHO_T}$PERL" >&6 | |
090089c4 | 22888 | else |
33f5f8b9 | 22889 | echo "$as_me:$LINENO: result: no" >&5 |
22890 | echo "${ECHO_T}no" >&6 | |
090089c4 | 22891 | fi |
22892 | ||
6ad85e8a | 22893 | # Extract the first word of "ar", so it can be a program name with args. |
22894 | set dummy ar; ac_word=$2 | |
33f5f8b9 | 22895 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22896 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22897 | if test "${ac_cv_path_AR+set}" = set; then | |
22898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6ad85e8a | 22899 | else |
33f5f8b9 | 22900 | case $AR in |
22901 | [\\/]* | ?:[\\/]*) | |
6ad85e8a | 22902 | ac_cv_path_AR="$AR" # Let the user override the test with a path. |
22903 | ;; | |
22904 | *) | |
33f5f8b9 | 22905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22906 | for as_dir in $PATH | |
22907 | do | |
22908 | IFS=$as_save_IFS | |
22909 | test -z "$as_dir" && as_dir=. | |
22910 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22911 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22912 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | |
22913 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22914 | break 2 | |
22915 | fi | |
22916 | done | |
22917 | done | |
22918 | ||
6ad85e8a | 22919 | test -z "$ac_cv_path_AR" && ac_cv_path_AR="$FALSE" |
22920 | ;; | |
22921 | esac | |
22922 | fi | |
33f5f8b9 | 22923 | AR=$ac_cv_path_AR |
22924 | ||
6ad85e8a | 22925 | if test -n "$AR"; then |
33f5f8b9 | 22926 | echo "$as_me:$LINENO: result: $AR" >&5 |
22927 | echo "${ECHO_T}$AR" >&6 | |
6ad85e8a | 22928 | else |
33f5f8b9 | 22929 | echo "$as_me:$LINENO: result: no" >&5 |
22930 | echo "${ECHO_T}no" >&6 | |
6ad85e8a | 22931 | fi |
22932 | ||
22933 | ||
4e9d8e26 | 22934 | if test "$ac_cv_path_PERL" = "none"; then |
22935 | echo "Perl is required to compile Squid" | |
22936 | echo "Please install Perl and then re-run configure" | |
22937 | exit 1 | |
22938 | fi | |
22939 | ||
6ad85e8a | 22940 | case "$host" in |
22941 | *-hp-hpux*) | |
22942 | echo "Disabling 'ranlib' for HP-UX..." | |
22943 | RANLIB=":" | |
22944 | ;; | |
22945 | esac | |
22946 | ||
22947 | AR_R="$AR r" | |
22948 | case "$host" in | |
22949 | *-next-nextstep3) | |
22950 | AR="libtool -o" | |
22951 | ;; | |
22952 | esac | |
090089c4 | 22953 | |
090089c4 | 22954 | |
33f5f8b9 | 22955 | |
22956 | ||
22957 | ||
22958 | ||
22959 | ||
090089c4 | 22960 | ac_header_dirent=no |
33f5f8b9 | 22961 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
22962 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
22963 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
22964 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
22965 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22967 | else | |
22968 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 22969 | /* confdefs.h. */ |
22970 | _ACEOF | |
22971 | cat confdefs.h >>conftest.$ac_ext | |
22972 | cat >>conftest.$ac_ext <<_ACEOF | |
22973 | /* end confdefs.h. */ | |
090089c4 | 22974 | #include <sys/types.h> |
22975 | #include <$ac_hdr> | |
33f5f8b9 | 22976 | |
33f5f8b9 | 22977 | int |
22978 | main () | |
22979 | { | |
22980 | if ((DIR *) 0) | |
22981 | return 0; | |
22982 | ; | |
22983 | return 0; | |
22984 | } | |
22985 | _ACEOF | |
22986 | rm -f conftest.$ac_objext | |
22987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 22988 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 22989 | ac_status=$? |
af3004ff | 22990 | grep -v '^ *+' conftest.er1 >conftest.err |
22991 | rm -f conftest.er1 | |
22992 | cat conftest.err >&5 | |
33f5f8b9 | 22993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22994 | (exit $ac_status); } && | |
6263d81f | 22995 | { ac_try='test -z "$ac_c_werror_flag" |
22996 | || test ! -s conftest.err' | |
af3004ff | 22997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22998 | (eval $ac_try) 2>&5 | |
22999 | ac_status=$? | |
23000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23001 | (exit $ac_status); }; } && | |
23002 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 23003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23004 | (eval $ac_try) 2>&5 | |
23005 | ac_status=$? | |
23006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23007 | (exit $ac_status); }; }; then | |
23008 | eval "$as_ac_Header=yes" | |
23009 | else | |
23010 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 23011 | sed 's/^/| /' conftest.$ac_ext >&5 |
23012 | ||
33f5f8b9 | 23013 | eval "$as_ac_Header=no" |
23014 | fi | |
af3004ff | 23015 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 23016 | fi |
23017 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
23018 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
23019 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
23020 | cat >>confdefs.h <<_ACEOF | |
23021 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
23022 | _ACEOF | |
23023 | ||
23024 | ac_header_dirent=$ac_hdr; break | |
090089c4 | 23025 | fi |
33f5f8b9 | 23026 | |
090089c4 | 23027 | done |
23028 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
23029 | if test $ac_header_dirent = dirent.h; then | |
33f5f8b9 | 23030 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
23031 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
23032 | if test "${ac_cv_search_opendir+set}" = set; then | |
23033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23034 | else | |
23035 | ac_func_search_save_LIBS=$LIBS | |
23036 | ac_cv_search_opendir=no | |
23037 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 23038 | /* confdefs.h. */ |
23039 | _ACEOF | |
23040 | cat confdefs.h >>conftest.$ac_ext | |
23041 | cat >>conftest.$ac_ext <<_ACEOF | |
23042 | /* end confdefs.h. */ | |
33f5f8b9 | 23043 | |
b65c7b0d | 23044 | /* Override any gcc2 internal prototype to avoid an error. */ |
33f5f8b9 | 23045 | #ifdef __cplusplus |
23046 | extern "C" | |
23047 | #endif | |
b65c7b0d | 23048 | /* We use char because int might match the return type of a gcc2 |
33f5f8b9 | 23049 | builtin and then its argument prototype would still apply. */ |
23050 | char opendir (); | |
33f5f8b9 | 23051 | int |
23052 | main () | |
23053 | { | |
23054 | opendir (); | |
23055 | ; | |
23056 | return 0; | |
23057 | } | |
23058 | _ACEOF | |
23059 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 23061 | (eval $ac_link) 2>conftest.er1 |
33f5f8b9 | 23062 | ac_status=$? |
af3004ff | 23063 | grep -v '^ *+' conftest.er1 >conftest.err |
23064 | rm -f conftest.er1 | |
23065 | cat conftest.err >&5 | |
33f5f8b9 | 23066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23067 | (exit $ac_status); } && | |
6263d81f | 23068 | { ac_try='test -z "$ac_c_werror_flag" |
23069 | || test ! -s conftest.err' | |
af3004ff | 23070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23071 | (eval $ac_try) 2>&5 | |
23072 | ac_status=$? | |
23073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23074 | (exit $ac_status); }; } && | |
23075 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 23076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23077 | (eval $ac_try) 2>&5 | |
23078 | ac_status=$? | |
23079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23080 | (exit $ac_status); }; }; then | |
23081 | ac_cv_search_opendir="none required" | |
23082 | else | |
23083 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 23084 | sed 's/^/| /' conftest.$ac_ext >&5 |
23085 | ||
33f5f8b9 | 23086 | fi |
af3004ff | 23087 | rm -f conftest.err conftest.$ac_objext \ |
23088 | conftest$ac_exeext conftest.$ac_ext | |
33f5f8b9 | 23089 | if test "$ac_cv_search_opendir" = no; then |
23090 | for ac_lib in dir; do | |
23091 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
23092 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 23093 | /* confdefs.h. */ |
23094 | _ACEOF | |
23095 | cat confdefs.h >>conftest.$ac_ext | |
23096 | cat >>conftest.$ac_ext <<_ACEOF | |
23097 | /* end confdefs.h. */ | |
b65c7b0d | 23098 | |
33f5f8b9 | 23099 | /* Override any gcc2 internal prototype to avoid an error. */ |
23100 | #ifdef __cplusplus | |
23101 | extern "C" | |
23102 | #endif | |
23103 | /* We use char because int might match the return type of a gcc2 | |
23104 | builtin and then its argument prototype would still apply. */ | |
23105 | char opendir (); | |
33f5f8b9 | 23106 | int |
23107 | main () | |
23108 | { | |
23109 | opendir (); | |
23110 | ; | |
23111 | return 0; | |
23112 | } | |
23113 | _ACEOF | |
23114 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23115 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 23116 | (eval $ac_link) 2>conftest.er1 |
33f5f8b9 | 23117 | ac_status=$? |
af3004ff | 23118 | grep -v '^ *+' conftest.er1 >conftest.err |
23119 | rm -f conftest.er1 | |
23120 | cat conftest.err >&5 | |
33f5f8b9 | 23121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23122 | (exit $ac_status); } && | |
6263d81f | 23123 | { ac_try='test -z "$ac_c_werror_flag" |
23124 | || test ! -s conftest.err' | |
af3004ff | 23125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23126 | (eval $ac_try) 2>&5 | |
23127 | ac_status=$? | |
23128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23129 | (exit $ac_status); }; } && | |
23130 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 23131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23132 | (eval $ac_try) 2>&5 | |
23133 | ac_status=$? | |
23134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23135 | (exit $ac_status); }; }; then | |
23136 | ac_cv_search_opendir="-l$ac_lib" | |
23137 | break | |
23138 | else | |
23139 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 23140 | sed 's/^/| /' conftest.$ac_ext >&5 |
23141 | ||
33f5f8b9 | 23142 | fi |
af3004ff | 23143 | rm -f conftest.err conftest.$ac_objext \ |
23144 | conftest$ac_exeext conftest.$ac_ext | |
33f5f8b9 | 23145 | done |
090089c4 | 23146 | fi |
33f5f8b9 | 23147 | LIBS=$ac_func_search_save_LIBS |
23148 | fi | |
23149 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
23150 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
23151 | if test "$ac_cv_search_opendir" != no; then | |
23152 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
23153 | ||
3f961930 | 23154 | fi |
dd0004a0 | 23155 | |
090089c4 | 23156 | else |
33f5f8b9 | 23157 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
23158 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
23159 | if test "${ac_cv_search_opendir+set}" = set; then | |
23160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
090089c4 | 23161 | else |
33f5f8b9 | 23162 | ac_func_search_save_LIBS=$LIBS |
23163 | ac_cv_search_opendir=no | |
23164 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 23165 | /* confdefs.h. */ |
23166 | _ACEOF | |
23167 | cat confdefs.h >>conftest.$ac_ext | |
23168 | cat >>conftest.$ac_ext <<_ACEOF | |
23169 | /* end confdefs.h. */ | |
33f5f8b9 | 23170 | |
b65c7b0d | 23171 | /* Override any gcc2 internal prototype to avoid an error. */ |
33f5f8b9 | 23172 | #ifdef __cplusplus |
23173 | extern "C" | |
23174 | #endif | |
b65c7b0d | 23175 | /* We use char because int might match the return type of a gcc2 |
33f5f8b9 | 23176 | builtin and then its argument prototype would still apply. */ |
23177 | char opendir (); | |
33f5f8b9 | 23178 | int |
23179 | main () | |
23180 | { | |
23181 | opendir (); | |
23182 | ; | |
23183 | return 0; | |
23184 | } | |
23185 | _ACEOF | |
23186 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23187 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 23188 | (eval $ac_link) 2>conftest.er1 |
33f5f8b9 | 23189 | ac_status=$? |
af3004ff | 23190 | grep -v '^ *+' conftest.er1 >conftest.err |
23191 | rm -f conftest.er1 | |
23192 | cat conftest.err >&5 | |
33f5f8b9 | 23193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23194 | (exit $ac_status); } && | |
6263d81f | 23195 | { ac_try='test -z "$ac_c_werror_flag" |
23196 | || test ! -s conftest.err' | |
af3004ff | 23197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23198 | (eval $ac_try) 2>&5 | |
23199 | ac_status=$? | |
23200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23201 | (exit $ac_status); }; } && | |
23202 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 23203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23204 | (eval $ac_try) 2>&5 | |
23205 | ac_status=$? | |
23206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23207 | (exit $ac_status); }; }; then | |
23208 | ac_cv_search_opendir="none required" | |
23209 | else | |
23210 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 23211 | sed 's/^/| /' conftest.$ac_ext >&5 |
23212 | ||
33f5f8b9 | 23213 | fi |
af3004ff | 23214 | rm -f conftest.err conftest.$ac_objext \ |
23215 | conftest$ac_exeext conftest.$ac_ext | |
33f5f8b9 | 23216 | if test "$ac_cv_search_opendir" = no; then |
23217 | for ac_lib in x; do | |
23218 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
23219 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 23220 | /* confdefs.h. */ |
23221 | _ACEOF | |
23222 | cat confdefs.h >>conftest.$ac_ext | |
23223 | cat >>conftest.$ac_ext <<_ACEOF | |
23224 | /* end confdefs.h. */ | |
b65c7b0d | 23225 | |
33f5f8b9 | 23226 | /* Override any gcc2 internal prototype to avoid an error. */ |
23227 | #ifdef __cplusplus | |
23228 | extern "C" | |
23229 | #endif | |
23230 | /* We use char because int might match the return type of a gcc2 | |
23231 | builtin and then its argument prototype would still apply. */ | |
23232 | char opendir (); | |
33f5f8b9 | 23233 | int |
23234 | main () | |
23235 | { | |
23236 | opendir (); | |
23237 | ; | |
23238 | return 0; | |
23239 | } | |
23240 | _ACEOF | |
23241 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23242 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 23243 | (eval $ac_link) 2>conftest.er1 |
33f5f8b9 | 23244 | ac_status=$? |
af3004ff | 23245 | grep -v '^ *+' conftest.er1 >conftest.err |
23246 | rm -f conftest.er1 | |
23247 | cat conftest.err >&5 | |
33f5f8b9 | 23248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23249 | (exit $ac_status); } && | |
6263d81f | 23250 | { ac_try='test -z "$ac_c_werror_flag" |
23251 | || test ! -s conftest.err' | |
af3004ff | 23252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23253 | (eval $ac_try) 2>&5 | |
23254 | ac_status=$? | |
23255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23256 | (exit $ac_status); }; } && | |
23257 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 23258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23259 | (eval $ac_try) 2>&5 | |
23260 | ac_status=$? | |
23261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23262 | (exit $ac_status); }; }; then | |
23263 | ac_cv_search_opendir="-l$ac_lib" | |
23264 | break | |
23265 | else | |
23266 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 23267 | sed 's/^/| /' conftest.$ac_ext >&5 |
23268 | ||
33f5f8b9 | 23269 | fi |
af3004ff | 23270 | rm -f conftest.err conftest.$ac_objext \ |
23271 | conftest$ac_exeext conftest.$ac_ext | |
33f5f8b9 | 23272 | done |
090089c4 | 23273 | fi |
33f5f8b9 | 23274 | LIBS=$ac_func_search_save_LIBS |
23275 | fi | |
23276 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
23277 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
23278 | if test "$ac_cv_search_opendir" != no; then | |
23279 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
23280 | ||
090089c4 | 23281 | fi |
23282 | ||
3f961930 | 23283 | fi |
b65c7b0d | 23284 | |
33f5f8b9 | 23285 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
23286 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
23287 | if test "${ac_cv_header_stdc+set}" = set; then | |
23288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
090089c4 | 23289 | else |
33f5f8b9 | 23290 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 23291 | /* confdefs.h. */ |
23292 | _ACEOF | |
23293 | cat confdefs.h >>conftest.$ac_ext | |
23294 | cat >>conftest.$ac_ext <<_ACEOF | |
23295 | /* end confdefs.h. */ | |
090089c4 | 23296 | #include <stdlib.h> |
23297 | #include <stdarg.h> | |
23298 | #include <string.h> | |
23299 | #include <float.h> | |
33f5f8b9 | 23300 | |
ad21602a | 23301 | int |
23302 | main () | |
23303 | { | |
23304 | ||
23305 | ; | |
23306 | return 0; | |
23307 | } | |
33f5f8b9 | 23308 | _ACEOF |
ad21602a | 23309 | rm -f conftest.$ac_objext |
23310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 23311 | (eval $ac_compile) 2>conftest.er1 |
658d5a21 | 23312 | ac_status=$? |
af3004ff | 23313 | grep -v '^ *+' conftest.er1 >conftest.err |
23314 | rm -f conftest.er1 | |
23315 | cat conftest.err >&5 | |
658d5a21 | 23316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ad21602a | 23317 | (exit $ac_status); } && |
6263d81f | 23318 | { ac_try='test -z "$ac_c_werror_flag" |
23319 | || test ! -s conftest.err' | |
af3004ff | 23320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23321 | (eval $ac_try) 2>&5 | |
23322 | ac_status=$? | |
23323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23324 | (exit $ac_status); }; } && | |
23325 | { ac_try='test -s conftest.$ac_objext' | |
ad21602a | 23326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23327 | (eval $ac_try) 2>&5 | |
23328 | ac_status=$? | |
23329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23330 | (exit $ac_status); }; }; then | |
090089c4 | 23331 | ac_cv_header_stdc=yes |
23332 | else | |
33f5f8b9 | 23333 | echo "$as_me: failed program was:" >&5 |
ad21602a | 23334 | sed 's/^/| /' conftest.$ac_ext >&5 |
23335 | ||
23336 | ac_cv_header_stdc=no | |
090089c4 | 23337 | fi |
af3004ff | 23338 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
090089c4 | 23339 | |
23340 | if test $ac_cv_header_stdc = yes; then | |
23341 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
33f5f8b9 | 23342 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 23343 | /* confdefs.h. */ |
23344 | _ACEOF | |
23345 | cat confdefs.h >>conftest.$ac_ext | |
23346 | cat >>conftest.$ac_ext <<_ACEOF | |
23347 | /* end confdefs.h. */ | |
090089c4 | 23348 | #include <string.h> |
33f5f8b9 | 23349 | |
23350 | _ACEOF | |
090089c4 | 23351 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad21602a | 23352 | $EGREP "memchr" >/dev/null 2>&1; then |
090089c4 | 23353 | : |
23354 | else | |
090089c4 | 23355 | ac_cv_header_stdc=no |
23356 | fi | |
23357 | rm -f conftest* | |
23358 | ||
23359 | fi | |
23360 | ||
23361 | if test $ac_cv_header_stdc = yes; then | |
23362 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
33f5f8b9 | 23363 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 23364 | /* confdefs.h. */ |
23365 | _ACEOF | |
23366 | cat confdefs.h >>conftest.$ac_ext | |
23367 | cat >>conftest.$ac_ext <<_ACEOF | |
23368 | /* end confdefs.h. */ | |
090089c4 | 23369 | #include <stdlib.h> |
33f5f8b9 | 23370 | |
23371 | _ACEOF | |
090089c4 | 23372 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad21602a | 23373 | $EGREP "free" >/dev/null 2>&1; then |
090089c4 | 23374 | : |
23375 | else | |
090089c4 | 23376 | ac_cv_header_stdc=no |
23377 | fi | |
23378 | rm -f conftest* | |
23379 | ||
23380 | fi | |
23381 | ||
23382 | if test $ac_cv_header_stdc = yes; then | |
23383 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
33f5f8b9 | 23384 | if test "$cross_compiling" = yes; then |
090089c4 | 23385 | : |
23386 | else | |
33f5f8b9 | 23387 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 23388 | /* confdefs.h. */ |
23389 | _ACEOF | |
23390 | cat confdefs.h >>conftest.$ac_ext | |
23391 | cat >>conftest.$ac_ext <<_ACEOF | |
23392 | /* end confdefs.h. */ | |
090089c4 | 23393 | #include <ctype.h> |
33f5f8b9 | 23394 | #if ((' ' & 0x0FF) == 0x020) |
23395 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
23396 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
23397 | #else | |
ad21602a | 23398 | # define ISLOWER(c) \ |
af3004ff | 23399 | (('a' <= (c) && (c) <= 'i') \ |
23400 | || ('j' <= (c) && (c) <= 'r') \ | |
23401 | || ('s' <= (c) && (c) <= 'z')) | |
33f5f8b9 | 23402 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
23403 | #endif | |
3f961930 | 23404 | |
33f5f8b9 | 23405 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
23406 | int | |
23407 | main () | |
23408 | { | |
23409 | int i; | |
23410 | for (i = 0; i < 256; i++) | |
23411 | if (XOR (islower (i), ISLOWER (i)) | |
af3004ff | 23412 | || toupper (i) != TOUPPER (i)) |
33f5f8b9 | 23413 | exit(2); |
23414 | exit (0); | |
23415 | } | |
23416 | _ACEOF | |
23417 | rm -f conftest$ac_exeext | |
23418 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23419 | (eval $ac_link) 2>&5 | |
23420 | ac_status=$? | |
23421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23422 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
23423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23424 | (eval $ac_try) 2>&5 | |
23425 | ac_status=$? | |
23426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23427 | (exit $ac_status); }; }; then | |
090089c4 | 23428 | : |
23429 | else | |
33f5f8b9 | 23430 | echo "$as_me: program exited with status $ac_status" >&5 |
23431 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 23432 | sed 's/^/| /' conftest.$ac_ext >&5 |
23433 | ||
33f5f8b9 | 23434 | ( exit $ac_status ) |
23435 | ac_cv_header_stdc=no | |
090089c4 | 23436 | fi |
af3004ff | 23437 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b1e77ec1 | 23438 | fi |
090089c4 | 23439 | fi |
23440 | fi | |
33f5f8b9 | 23441 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
23442 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3f961930 | 23443 | if test $ac_cv_header_stdc = yes; then |
a33e1d91 | 23444 | |
23445 | cat >>confdefs.h <<\_ACEOF | |
23446 | #define STDC_HEADERS 1 | |
33f5f8b9 | 23447 | _ACEOF |
23448 | ||
23449 | fi | |
23450 | ||
33f5f8b9 | 23451 | |
23452 | ||
23453 | ||
23454 | ||
23455 | ||
23456 | ||
23457 | ||
23458 | ||
23459 | ||
23460 | ||
23461 | ||
23462 | ||
23463 | ||
23464 | ||
23465 | ||
23466 | ||
23467 | ||
23468 | ||
23469 | ||
23470 | ||
23471 | ||
23472 | ||
23473 | ||
23474 | ||
23475 | ||
23476 | ||
23477 | ||
23478 | ||
23479 | ||
23480 | ||
23481 | ||
23482 | ||
23483 | ||
23484 | ||
23485 | ||
23486 | ||
23487 | ||
23488 | ||
23489 | ||
23490 | ||
23491 | ||
23492 | ||
23493 | ||
23494 | ||
23495 | ||
23496 | ||
23497 | ||
23498 | ||
23499 | ||
23500 | ||
23501 | ||
23502 | ||
23503 | ||
23504 | ||
23505 | ||
23506 | ||
23507 | ||
23508 | ||
23509 | ||
23510 | ||
23511 | ||
23512 | ||
23513 | ||
23514 | ||
23515 | ||
23516 | ||
33f5f8b9 | 23517 | |
23518 | ||
23519 | ||
f9576890 | 23520 | |
23521 | ||
a54a73b0 | 23522 | |
02d05ccb | 23523 | |
abae1390 | 23524 | |
1c4c11ab | 23525 | |
23526 | ||
b6205de8 | 23527 | |
5bd2db13 | 23528 | |
9465011f | 23529 | |
33f5f8b9 | 23530 | |
23531 | ||
23532 | for ac_header in \ | |
23533 | arpa/inet.h \ | |
23534 | arpa/nameser.h \ | |
23535 | assert.h \ | |
23536 | bstring.h \ | |
23537 | crypt.h \ | |
23538 | ctype.h \ | |
23539 | errno.h \ | |
23540 | execinfo.h \ | |
23541 | fcntl.h \ | |
02d05ccb | 23542 | fnmatch.h \ |
33f5f8b9 | 23543 | getopt.h \ |
23544 | gnumalloc.h \ | |
23545 | grp.h \ | |
23546 | ip_compat.h \ | |
23547 | ip_fil_compat.h \ | |
23548 | ip_fil.h \ | |
23549 | ip_nat.h \ | |
b6205de8 | 23550 | ipl.h \ |
33f5f8b9 | 23551 | libc.h \ |
23552 | limits.h \ | |
33f5f8b9 | 23553 | malloc.h \ |
23554 | math.h \ | |
23555 | memory.h \ | |
23556 | mount.h \ | |
33f5f8b9 | 23557 | net/pfvar.h \ |
23558 | netdb.h \ | |
33f5f8b9 | 23559 | netinet/in.h \ |
23560 | netinet/tcp.h \ | |
33f5f8b9 | 23561 | netinet/ip_fil_compat.h \ |
33f5f8b9 | 23562 | openssl/err.h \ |
23563 | openssl/md5.h \ | |
23564 | openssl/ssl.h \ | |
a54a73b0 | 23565 | openssl/engine.h \ |
9465011f | 23566 | paths.h \ |
33f5f8b9 | 23567 | poll.h \ |
23568 | pwd.h \ | |
5bd2db13 | 23569 | shadow.h \ |
33f5f8b9 | 23570 | regex.h \ |
33f5f8b9 | 23571 | sched.h \ |
23572 | signal.h \ | |
23573 | stdarg.h \ | |
23574 | stddef.h \ | |
30a4f2a8 | 23575 | stdio.h \ |
db40ae20 | 23576 | stdlib.h \ |
23577 | string.h \ | |
23578 | strings.h \ | |
6a771064 | 23579 | sys/bitypes.h \ |
f9576890 | 23580 | sys/bswap.h \ |
23581 | sys/endian.h \ | |
db40ae20 | 23582 | sys/file.h \ |
5cafc1d6 | 23583 | sys/ioctl.h \ |
30a4f2a8 | 23584 | sys/param.h \ |
abae1390 | 23585 | sys/prctl.h \ |
77e4c0c9 | 23586 | sys/msg.h \ |
30a4f2a8 | 23587 | sys/resource.h \ |
db40ae20 | 23588 | sys/select.h\ |
30a4f2a8 | 23589 | sys/socket.h \ |
23590 | sys/stat.h \ | |
b075cbb1 | 23591 | sys/statvfs.h \ |
3c641669 | 23592 | syscall.h \ |
30a4f2a8 | 23593 | sys/syscall.h \ |
db40ae20 | 23594 | sys/time.h \ |
23595 | sys/types.h \ | |
30a4f2a8 | 23596 | sys/un.h \ |
b075cbb1 | 23597 | sys/vfs.h \ |
30a4f2a8 | 23598 | sys/wait.h \ |
db40ae20 | 23599 | syslog.h \ |
30a4f2a8 | 23600 | time.h \ |
23601 | unistd.h \ | |
3c641669 | 23602 | utime.h \ |
30a4f2a8 | 23603 | varargs.h \ |
77d6bd88 | 23604 | byteswap.h \ |
23605 | glib.h \ | |
60d096f4 | 23606 | stdint.h \ |
23607 | inttypes.h \ | |
3c641669 | 23608 | grp.h \ |
23609 | nss_common.h \ | |
1c4c11ab | 23610 | nss.h \ |
23611 | db.h \ | |
23612 | db_185.h | |
db40ae20 | 23613 | |
090089c4 | 23614 | do |
33f5f8b9 | 23615 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
23616 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23617 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23618 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
23619 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23620 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23621 | fi | |
23622 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
23623 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
23624 | else | |
23625 | # Is the header compilable? | |
23626 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23627 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
23628 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 23629 | /* confdefs.h. */ |
23630 | _ACEOF | |
23631 | cat confdefs.h >>conftest.$ac_ext | |
23632 | cat >>conftest.$ac_ext <<_ACEOF | |
23633 | /* end confdefs.h. */ | |
33f5f8b9 | 23634 | $ac_includes_default |
23635 | #include <$ac_header> | |
23636 | _ACEOF | |
23637 | rm -f conftest.$ac_objext | |
23638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 23639 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 23640 | ac_status=$? |
af3004ff | 23641 | grep -v '^ *+' conftest.er1 >conftest.err |
23642 | rm -f conftest.er1 | |
23643 | cat conftest.err >&5 | |
33f5f8b9 | 23644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23645 | (exit $ac_status); } && | |
6263d81f | 23646 | { ac_try='test -z "$ac_c_werror_flag" |
23647 | || test ! -s conftest.err' | |
af3004ff | 23648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23649 | (eval $ac_try) 2>&5 | |
23650 | ac_status=$? | |
23651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23652 | (exit $ac_status); }; } && | |
23653 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 23654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23655 | (eval $ac_try) 2>&5 | |
23656 | ac_status=$? | |
23657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23658 | (exit $ac_status); }; }; then | |
23659 | ac_header_compiler=yes | |
23660 | else | |
23661 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 23662 | sed 's/^/| /' conftest.$ac_ext >&5 |
23663 | ||
33f5f8b9 | 23664 | ac_header_compiler=no |
23665 | fi | |
af3004ff | 23666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 23667 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23668 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
23669 | ||
23670 | # Is the header present? | |
23671 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
23672 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
23673 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 23674 | /* confdefs.h. */ |
23675 | _ACEOF | |
23676 | cat confdefs.h >>conftest.$ac_ext | |
23677 | cat >>conftest.$ac_ext <<_ACEOF | |
23678 | /* end confdefs.h. */ | |
33f5f8b9 | 23679 | #include <$ac_header> |
23680 | _ACEOF | |
23681 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23682 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23683 | ac_status=$? | |
ad21602a | 23684 | grep -v '^ *+' conftest.er1 >conftest.err |
33f5f8b9 | 23685 | rm -f conftest.er1 |
23686 | cat conftest.err >&5 | |
23687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23688 | (exit $ac_status); } >/dev/null; then | |
23689 | if test -s conftest.err; then | |
23690 | ac_cpp_err=$ac_c_preproc_warn_flag | |
af3004ff | 23691 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
33f5f8b9 | 23692 | else |
23693 | ac_cpp_err= | |
23694 | fi | |
23695 | else | |
23696 | ac_cpp_err=yes | |
23697 | fi | |
23698 | if test -z "$ac_cpp_err"; then | |
23699 | ac_header_preproc=yes | |
23700 | else | |
23701 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 23702 | sed 's/^/| /' conftest.$ac_ext >&5 |
23703 | ||
33f5f8b9 | 23704 | ac_header_preproc=no |
23705 | fi | |
23706 | rm -f conftest.err conftest.$ac_ext | |
23707 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
23708 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
23709 | ||
23710 | # So? What about this header? | |
af3004ff | 23711 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
23712 | yes:no: ) | |
33f5f8b9 | 23713 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
23714 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
af3004ff | 23715 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
23716 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
23717 | ac_header_preproc=yes | |
ad21602a | 23718 | ;; |
af3004ff | 23719 | no:yes:* ) |
33f5f8b9 | 23720 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
23721 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
af3004ff | 23722 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
23723 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
23724 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
23725 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
23726 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
23727 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
33f5f8b9 | 23728 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
ad21602a | 23729 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
af3004ff | 23730 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
23731 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
ad21602a | 23732 | ( |
23733 | cat <<\_ASBOX | |
6e4fdb42 | 23734 | ## ----------------------------------------------- ## |
23735 | ## Report this to http://www.squid-cache.org/bugs/ ## | |
23736 | ## ----------------------------------------------- ## | |
ad21602a | 23737 | _ASBOX |
23738 | ) | | |
23739 | sed "s/^/$as_me: WARNING: /" >&2 | |
23740 | ;; | |
33f5f8b9 | 23741 | esac |
23742 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23743 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
23744 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23745 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23746 | else | |
af3004ff | 23747 | eval "$as_ac_Header=\$ac_header_preproc" |
aee0606f | 23748 | fi |
33f5f8b9 | 23749 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
23750 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
23751 | ||
b65c7b0d | 23752 | fi |
33f5f8b9 | 23753 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
23754 | cat >>confdefs.h <<_ACEOF | |
23755 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
23756 | _ACEOF | |
23757 | ||
aee0606f | 23758 | fi |
33f5f8b9 | 23759 | |
23760 | done | |
23761 | ||
23762 | ||
5a3237b0 | 23763 | |
23764 | for ac_header in linux/netfilter_ipv4.h | |
23765 | do | |
23766 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
23767 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23768 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
23769 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23771 | else | |
23772 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 23773 | /* confdefs.h. */ |
23774 | _ACEOF | |
23775 | cat confdefs.h >>conftest.$ac_ext | |
23776 | cat >>conftest.$ac_ext <<_ACEOF | |
23777 | /* end confdefs.h. */ | |
5a3237b0 | 23778 | |
23779 | /* What a mess.. many systems have added the (now standard) bit types | |
23780 | * in their own ways, so we need to scan a wide variety of headers to | |
23781 | * find them.. | |
23782 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
23783 | */ | |
23784 | #if HAVE_SYS_TYPES_H | |
23785 | #include <sys/types.h> | |
23786 | #endif | |
23787 | #if STDC_HEADERS | |
23788 | #include <stdlib.h> | |
23789 | #include <stddef.h> | |
23790 | #endif | |
23791 | #if HAVE_INTTYPES_H | |
23792 | #include <inttypes.h> | |
23793 | #endif | |
23794 | #if HAVE_SYS_BITYPES_H | |
23795 | #include <sys/bitypes.h> | |
23796 | #endif | |
11e71ab8 | 23797 | #if HAVE_SYS_SELECT_H |
23798 | #include <sys/select.h> | |
23799 | #endif | |
5a3237b0 | 23800 | |
23801 | #if HAVE_LIMITS_H | |
23802 | #include <limits.h> | |
23803 | #endif | |
23804 | ||
23805 | ||
23806 | #include <$ac_header> | |
23807 | _ACEOF | |
23808 | rm -f conftest.$ac_objext | |
23809 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 23810 | (eval $ac_compile) 2>conftest.er1 |
5a3237b0 | 23811 | ac_status=$? |
af3004ff | 23812 | grep -v '^ *+' conftest.er1 >conftest.err |
23813 | rm -f conftest.er1 | |
23814 | cat conftest.err >&5 | |
5a3237b0 | 23815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23816 | (exit $ac_status); } && | |
6263d81f | 23817 | { ac_try='test -z "$ac_c_werror_flag" |
23818 | || test ! -s conftest.err' | |
af3004ff | 23819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23820 | (eval $ac_try) 2>&5 | |
23821 | ac_status=$? | |
23822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23823 | (exit $ac_status); }; } && | |
23824 | { ac_try='test -s conftest.$ac_objext' | |
5a3237b0 | 23825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23826 | (eval $ac_try) 2>&5 | |
23827 | ac_status=$? | |
23828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23829 | (exit $ac_status); }; }; then | |
23830 | eval "$as_ac_Header=yes" | |
23831 | else | |
23832 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 23833 | sed 's/^/| /' conftest.$ac_ext >&5 |
23834 | ||
5a3237b0 | 23835 | eval "$as_ac_Header=no" |
23836 | fi | |
af3004ff | 23837 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5a3237b0 | 23838 | fi |
23839 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
23840 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
23841 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
23842 | cat >>confdefs.h <<_ACEOF | |
23843 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
23844 | _ACEOF | |
23845 | ||
23846 | fi | |
23847 | ||
23848 | done | |
23849 | ||
23850 | ||
23851 | ||
23852 | ||
23853 | ||
23854 | ||
23855 | ||
77e4c0c9 | 23856 | |
23857 | ||
b6205de8 | 23858 | |
5a3237b0 | 23859 | for ac_header in net/if.h \ |
23860 | netinet/if_ether.h\ | |
23861 | netinet/ip_compat.h\ | |
23862 | netinet/ip_fil.h\ | |
77e4c0c9 | 23863 | netinet/ip_nat.h\ |
b6205de8 | 23864 | netinet/ipl.h \ |
77e4c0c9 | 23865 | sys/mount.h\ |
23866 | resolv.h | |
5a3237b0 | 23867 | do |
23868 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
23869 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23870 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
23871 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23873 | else | |
23874 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 23875 | /* confdefs.h. */ |
23876 | _ACEOF | |
23877 | cat confdefs.h >>conftest.$ac_ext | |
23878 | cat >>conftest.$ac_ext <<_ACEOF | |
23879 | /* end confdefs.h. */ | |
5a3237b0 | 23880 | |
23881 | ||
23882 | /* What a mess.. many systems have added the (now standard) bit types | |
23883 | * in their own ways, so we need to scan a wide variety of headers to | |
23884 | * find them.. | |
23885 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
23886 | */ | |
23887 | #if HAVE_SYS_TYPES_H | |
23888 | #include <sys/types.h> | |
23889 | #endif | |
23890 | #if STDC_HEADERS | |
23891 | #include <stdlib.h> | |
23892 | #include <stddef.h> | |
23893 | #endif | |
23894 | #if HAVE_INTTYPES_H | |
23895 | #include <inttypes.h> | |
23896 | #endif | |
23897 | #if HAVE_SYS_BITYPES_H | |
23898 | #include <sys/bitypes.h> | |
23899 | #endif | |
11e71ab8 | 23900 | #if HAVE_SYS_SELECT_H |
23901 | #include <sys/select.h> | |
23902 | #endif | |
5a3237b0 | 23903 | |
621dffc6 | 23904 | #if HAVE_SYS_TIME_H |
23905 | #include <sys/time.h> | |
23906 | #endif | |
5a3237b0 | 23907 | #if HAVE_SYS_SOCKET_H |
23908 | #include <sys/socket.h> | |
23909 | #endif | |
23910 | #if HAVE_NETINET_IN_H | |
23911 | #include <netinet/in.h> | |
23912 | #endif | |
23913 | #if HAVE_NETINET_IP_COMPAT_H | |
23914 | #include <netinet/ip_compat.h> | |
23915 | #endif | |
5a3237b0 | 23916 | #if HAVE_NET_IF_H |
23917 | #include <net/if.h> | |
23918 | #endif | |
621dffc6 | 23919 | #if HAVE_NETINET_IP_FIL_H |
23920 | #include <netinet/ip_fil.h> | |
23921 | #endif | |
77e4c0c9 | 23922 | #if HAVE_SYS_PARAM_H |
23923 | #include <sys/param.h> | |
23924 | #endif | |
5a3237b0 | 23925 | |
23926 | ||
23927 | #include <$ac_header> | |
23928 | _ACEOF | |
23929 | rm -f conftest.$ac_objext | |
23930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 23931 | (eval $ac_compile) 2>conftest.er1 |
5a3237b0 | 23932 | ac_status=$? |
af3004ff | 23933 | grep -v '^ *+' conftest.er1 >conftest.err |
23934 | rm -f conftest.er1 | |
23935 | cat conftest.err >&5 | |
5a3237b0 | 23936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23937 | (exit $ac_status); } && | |
6263d81f | 23938 | { ac_try='test -z "$ac_c_werror_flag" |
23939 | || test ! -s conftest.err' | |
af3004ff | 23940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23941 | (eval $ac_try) 2>&5 | |
23942 | ac_status=$? | |
23943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23944 | (exit $ac_status); }; } && | |
23945 | { ac_try='test -s conftest.$ac_objext' | |
5a3237b0 | 23946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23947 | (eval $ac_try) 2>&5 | |
23948 | ac_status=$? | |
23949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23950 | (exit $ac_status); }; }; then | |
23951 | eval "$as_ac_Header=yes" | |
23952 | else | |
23953 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 23954 | sed 's/^/| /' conftest.$ac_ext >&5 |
23955 | ||
5a3237b0 | 23956 | eval "$as_ac_Header=no" |
23957 | fi | |
af3004ff | 23958 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
332dafa2 | 23959 | fi |
23960 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
23961 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
23962 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
23963 | cat >>confdefs.h <<_ACEOF | |
23964 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
23965 | _ACEOF | |
4016808a | 23966 | |
23967 | fi | |
6693af0d | 23968 | |
23969 | done | |
23970 | ||
23971 | ||
286bd1fc | 23972 | |
23973 | for ac_header in libxml/parser.h | |
23974 | do | |
23975 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
23976 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23977 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
23978 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
23979 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
23980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23981 | fi | |
23982 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
23983 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
23984 | else | |
23985 | # Is the header compilable? | |
23986 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
23987 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
23988 | cat >conftest.$ac_ext <<_ACEOF | |
23989 | /* confdefs.h. */ | |
23990 | _ACEOF | |
23991 | cat confdefs.h >>conftest.$ac_ext | |
23992 | cat >>conftest.$ac_ext <<_ACEOF | |
23993 | /* end confdefs.h. */ | |
23994 | $ac_includes_default | |
23995 | #include <$ac_header> | |
23996 | _ACEOF | |
23997 | rm -f conftest.$ac_objext | |
23998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23999 | (eval $ac_compile) 2>conftest.er1 | |
24000 | ac_status=$? | |
24001 | grep -v '^ *+' conftest.er1 >conftest.err | |
24002 | rm -f conftest.er1 | |
24003 | cat conftest.err >&5 | |
24004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24005 | (exit $ac_status); } && | |
6263d81f | 24006 | { ac_try='test -z "$ac_c_werror_flag" |
24007 | || test ! -s conftest.err' | |
286bd1fc | 24008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24009 | (eval $ac_try) 2>&5 | |
24010 | ac_status=$? | |
24011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24012 | (exit $ac_status); }; } && | |
24013 | { ac_try='test -s conftest.$ac_objext' | |
24014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24015 | (eval $ac_try) 2>&5 | |
24016 | ac_status=$? | |
24017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24018 | (exit $ac_status); }; }; then | |
24019 | ac_header_compiler=yes | |
24020 | else | |
24021 | echo "$as_me: failed program was:" >&5 | |
24022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24023 | ||
24024 | ac_header_compiler=no | |
24025 | fi | |
24026 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
24027 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24028 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24029 | ||
24030 | # Is the header present? | |
24031 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
24032 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
24033 | cat >conftest.$ac_ext <<_ACEOF | |
24034 | /* confdefs.h. */ | |
24035 | _ACEOF | |
24036 | cat confdefs.h >>conftest.$ac_ext | |
24037 | cat >>conftest.$ac_ext <<_ACEOF | |
24038 | /* end confdefs.h. */ | |
24039 | #include <$ac_header> | |
24040 | _ACEOF | |
24041 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24042 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24043 | ac_status=$? | |
24044 | grep -v '^ *+' conftest.er1 >conftest.err | |
24045 | rm -f conftest.er1 | |
24046 | cat conftest.err >&5 | |
24047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24048 | (exit $ac_status); } >/dev/null; then | |
24049 | if test -s conftest.err; then | |
24050 | ac_cpp_err=$ac_c_preproc_warn_flag | |
24051 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
24052 | else | |
24053 | ac_cpp_err= | |
24054 | fi | |
24055 | else | |
24056 | ac_cpp_err=yes | |
24057 | fi | |
24058 | if test -z "$ac_cpp_err"; then | |
24059 | ac_header_preproc=yes | |
24060 | else | |
24061 | echo "$as_me: failed program was:" >&5 | |
24062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24063 | ||
24064 | ac_header_preproc=no | |
24065 | fi | |
24066 | rm -f conftest.err conftest.$ac_ext | |
24067 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24068 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24069 | ||
24070 | # So? What about this header? | |
24071 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
24072 | yes:no: ) | |
24073 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24074 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24075 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
24076 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
24077 | ac_header_preproc=yes | |
24078 | ;; | |
24079 | no:yes:* ) | |
24080 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
24081 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
24082 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
24083 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
24084 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
24085 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
24086 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
24087 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
24088 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
24089 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
24090 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
24091 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
24092 | ( | |
24093 | cat <<\_ASBOX | |
6e4fdb42 | 24094 | ## ----------------------------------------------- ## |
24095 | ## Report this to http://www.squid-cache.org/bugs/ ## | |
24096 | ## ----------------------------------------------- ## | |
286bd1fc | 24097 | _ASBOX |
24098 | ) | | |
24099 | sed "s/^/$as_me: WARNING: /" >&2 | |
24100 | ;; | |
24101 | esac | |
24102 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24103 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
24104 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24106 | else | |
24107 | eval "$as_ac_Header=\$ac_header_preproc" | |
24108 | fi | |
24109 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
24110 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
24111 | ||
24112 | fi | |
24113 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
24114 | cat >>confdefs.h <<_ACEOF | |
24115 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
24116 | _ACEOF | |
24117 | ||
24118 | else | |
24119 | ||
24120 | SAVED_CPPFLAGS="$CPPFLAGS" | |
24121 | CPPFLAGS="-I/usr/include/libxml2 $CPPFLAGS" | |
24122 | unset ac_cv_header_libxml_parser_h | |
24123 | ||
24124 | for ac_header in libxml/parser.h | |
24125 | do | |
24126 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
24127 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24128 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24129 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
24130 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24132 | fi | |
24133 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
24134 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
24135 | else | |
24136 | # Is the header compilable? | |
24137 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
24138 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
24139 | cat >conftest.$ac_ext <<_ACEOF | |
24140 | /* confdefs.h. */ | |
24141 | _ACEOF | |
24142 | cat confdefs.h >>conftest.$ac_ext | |
24143 | cat >>conftest.$ac_ext <<_ACEOF | |
24144 | /* end confdefs.h. */ | |
24145 | $ac_includes_default | |
24146 | #include <$ac_header> | |
24147 | _ACEOF | |
24148 | rm -f conftest.$ac_objext | |
24149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24150 | (eval $ac_compile) 2>conftest.er1 | |
24151 | ac_status=$? | |
24152 | grep -v '^ *+' conftest.er1 >conftest.err | |
24153 | rm -f conftest.er1 | |
24154 | cat conftest.err >&5 | |
24155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24156 | (exit $ac_status); } && | |
6263d81f | 24157 | { ac_try='test -z "$ac_c_werror_flag" |
24158 | || test ! -s conftest.err' | |
286bd1fc | 24159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24160 | (eval $ac_try) 2>&5 | |
24161 | ac_status=$? | |
24162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24163 | (exit $ac_status); }; } && | |
24164 | { ac_try='test -s conftest.$ac_objext' | |
24165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24166 | (eval $ac_try) 2>&5 | |
24167 | ac_status=$? | |
24168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24169 | (exit $ac_status); }; }; then | |
24170 | ac_header_compiler=yes | |
24171 | else | |
24172 | echo "$as_me: failed program was:" >&5 | |
24173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24174 | ||
24175 | ac_header_compiler=no | |
24176 | fi | |
24177 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
24178 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24179 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24180 | ||
24181 | # Is the header present? | |
24182 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
24183 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
24184 | cat >conftest.$ac_ext <<_ACEOF | |
24185 | /* confdefs.h. */ | |
24186 | _ACEOF | |
24187 | cat confdefs.h >>conftest.$ac_ext | |
24188 | cat >>conftest.$ac_ext <<_ACEOF | |
24189 | /* end confdefs.h. */ | |
24190 | #include <$ac_header> | |
24191 | _ACEOF | |
24192 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24193 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24194 | ac_status=$? | |
24195 | grep -v '^ *+' conftest.er1 >conftest.err | |
24196 | rm -f conftest.er1 | |
24197 | cat conftest.err >&5 | |
24198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24199 | (exit $ac_status); } >/dev/null; then | |
24200 | if test -s conftest.err; then | |
24201 | ac_cpp_err=$ac_c_preproc_warn_flag | |
24202 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
24203 | else | |
24204 | ac_cpp_err= | |
24205 | fi | |
24206 | else | |
24207 | ac_cpp_err=yes | |
24208 | fi | |
24209 | if test -z "$ac_cpp_err"; then | |
24210 | ac_header_preproc=yes | |
24211 | else | |
24212 | echo "$as_me: failed program was:" >&5 | |
24213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24214 | ||
24215 | ac_header_preproc=no | |
24216 | fi | |
24217 | rm -f conftest.err conftest.$ac_ext | |
24218 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24219 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24220 | ||
24221 | # So? What about this header? | |
24222 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
24223 | yes:no: ) | |
24224 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24225 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24226 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
24227 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
24228 | ac_header_preproc=yes | |
24229 | ;; | |
24230 | no:yes:* ) | |
24231 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
24232 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
24233 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
24234 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
24235 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
24236 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
24237 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
24238 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
24239 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
24240 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
24241 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
24242 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
24243 | ( | |
24244 | cat <<\_ASBOX | |
6e4fdb42 | 24245 | ## ----------------------------------------------- ## |
24246 | ## Report this to http://www.squid-cache.org/bugs/ ## | |
24247 | ## ----------------------------------------------- ## | |
286bd1fc | 24248 | _ASBOX |
24249 | ) | | |
24250 | sed "s/^/$as_me: WARNING: /" >&2 | |
24251 | ;; | |
24252 | esac | |
24253 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
24254 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
24255 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
24256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24257 | else | |
24258 | eval "$as_ac_Header=\$ac_header_preproc" | |
24259 | fi | |
24260 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
24261 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
24262 | ||
24263 | fi | |
24264 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
24265 | cat >>confdefs.h <<_ACEOF | |
24266 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
24267 | _ACEOF | |
24268 | ||
24269 | else | |
24270 | ||
24271 | CPPFLAGS="$SAVED_CPPFLAGS" | |
24272 | ||
24273 | fi | |
24274 | ||
24275 | done | |
24276 | ||
24277 | ||
24278 | fi | |
24279 | ||
24280 | done | |
24281 | ||
24282 | ||
33f5f8b9 | 24283 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
24284 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
24285 | if test "${ac_cv_c_const+set}" = set; then | |
24286 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24287 | else | |
24288 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 24289 | /* confdefs.h. */ |
24290 | _ACEOF | |
24291 | cat confdefs.h >>conftest.$ac_ext | |
24292 | cat >>conftest.$ac_ext <<_ACEOF | |
24293 | /* end confdefs.h. */ | |
aee0606f | 24294 | |
33f5f8b9 | 24295 | int |
24296 | main () | |
24297 | { | |
24298 | /* FIXME: Include the comments suggested by Paul. */ | |
24299 | #ifndef __cplusplus | |
24300 | /* Ultrix mips cc rejects this. */ | |
24301 | typedef int charset[2]; | |
24302 | const charset x; | |
24303 | /* SunOS 4.1.1 cc rejects this. */ | |
24304 | char const *const *ccp; | |
24305 | char **p; | |
24306 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
24307 | struct point {int x, y;}; | |
24308 | static struct point const zero = {0,0}; | |
24309 | /* AIX XL C 1.02.0.0 rejects this. | |
24310 | It does not let you subtract one const X* pointer from another in | |
24311 | an arm of an if-expression whose if-part is not a constant | |
24312 | expression */ | |
24313 | const char *g = "string"; | |
24314 | ccp = &g + (g ? g-g : 0); | |
24315 | /* HPUX 7.0 cc rejects these. */ | |
24316 | ++ccp; | |
24317 | p = (char**) ccp; | |
24318 | ccp = (char const *const *) p; | |
24319 | { /* SCO 3.2v4 cc rejects this. */ | |
24320 | char *t; | |
24321 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
24322 | ||
24323 | *t++ = 0; | |
24324 | } | |
24325 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
24326 | int x[] = {25, 17}; | |
24327 | const int *foo = &x[0]; | |
24328 | ++foo; | |
24329 | } | |
24330 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
24331 | typedef const int *iptr; | |
24332 | iptr p = 0; | |
24333 | ++p; | |
24334 | } | |
24335 | { /* AIX XL C 1.02.0.0 rejects this saying | |
24336 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
24337 | struct s { int j; const int *ap[3]; }; | |
24338 | struct s *b; b->j = 5; | |
24339 | } | |
24340 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
24341 | const int foo = 10; | |
24342 | } | |
24343 | #endif | |
b65c7b0d | 24344 | |
33f5f8b9 | 24345 | ; |
24346 | return 0; | |
24347 | } | |
24348 | _ACEOF | |
24349 | rm -f conftest.$ac_objext | |
24350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 24351 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 24352 | ac_status=$? |
af3004ff | 24353 | grep -v '^ *+' conftest.er1 >conftest.err |
24354 | rm -f conftest.er1 | |
24355 | cat conftest.err >&5 | |
33f5f8b9 | 24356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24357 | (exit $ac_status); } && | |
6263d81f | 24358 | { ac_try='test -z "$ac_c_werror_flag" |
24359 | || test ! -s conftest.err' | |
af3004ff | 24360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24361 | (eval $ac_try) 2>&5 | |
24362 | ac_status=$? | |
24363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24364 | (exit $ac_status); }; } && | |
24365 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 24366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24367 | (eval $ac_try) 2>&5 | |
24368 | ac_status=$? | |
24369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24370 | (exit $ac_status); }; }; then | |
b65c7b0d | 24371 | ac_cv_c_const=yes |
24372 | else | |
33f5f8b9 | 24373 | echo "$as_me: failed program was:" >&5 |
ad21602a | 24374 | sed 's/^/| /' conftest.$ac_ext >&5 |
24375 | ||
33f5f8b9 | 24376 | ac_cv_c_const=no |
b65c7b0d | 24377 | fi |
af3004ff | 24378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b65c7b0d | 24379 | fi |
33f5f8b9 | 24380 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
24381 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
3f961930 | 24382 | if test $ac_cv_c_const = no; then |
33f5f8b9 | 24383 | |
24384 | cat >>confdefs.h <<\_ACEOF | |
24385 | #define const | |
24386 | _ACEOF | |
aee0606f | 24387 | |
24388 | fi | |
24389 | ||
33f5f8b9 | 24390 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
24391 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
24392 | if test "${ac_cv_c_bigendian+set}" = set; then | |
24393 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cbc2450f | 24394 | else |
33f5f8b9 | 24395 | # See if sys/param.h defines the BYTE_ORDER macro. |
24396 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 24397 | /* confdefs.h. */ |
24398 | _ACEOF | |
24399 | cat confdefs.h >>conftest.$ac_ext | |
24400 | cat >>conftest.$ac_ext <<_ACEOF | |
24401 | /* end confdefs.h. */ | |
cbc2450f | 24402 | #include <sys/types.h> |
24403 | #include <sys/param.h> | |
cbc2450f | 24404 | |
33f5f8b9 | 24405 | int |
24406 | main () | |
24407 | { | |
cbc2450f | 24408 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
24409 | bogus endian macros | |
24410 | #endif | |
33f5f8b9 | 24411 | |
24412 | ; | |
24413 | return 0; | |
24414 | } | |
24415 | _ACEOF | |
24416 | rm -f conftest.$ac_objext | |
24417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 24418 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 24419 | ac_status=$? |
af3004ff | 24420 | grep -v '^ *+' conftest.er1 >conftest.err |
24421 | rm -f conftest.er1 | |
24422 | cat conftest.err >&5 | |
33f5f8b9 | 24423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24424 | (exit $ac_status); } && | |
6263d81f | 24425 | { ac_try='test -z "$ac_c_werror_flag" |
24426 | || test ! -s conftest.err' | |
af3004ff | 24427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24428 | (eval $ac_try) 2>&5 | |
24429 | ac_status=$? | |
24430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24431 | (exit $ac_status); }; } && | |
24432 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 24433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24434 | (eval $ac_try) 2>&5 | |
24435 | ac_status=$? | |
24436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24437 | (exit $ac_status); }; }; then | |
cbc2450f | 24438 | # It does; now see whether it defined to BIG_ENDIAN or not. |
33f5f8b9 | 24439 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 24440 | /* confdefs.h. */ |
24441 | _ACEOF | |
24442 | cat confdefs.h >>conftest.$ac_ext | |
24443 | cat >>conftest.$ac_ext <<_ACEOF | |
24444 | /* end confdefs.h. */ | |
cbc2450f | 24445 | #include <sys/types.h> |
24446 | #include <sys/param.h> | |
cbc2450f | 24447 | |
33f5f8b9 | 24448 | int |
24449 | main () | |
24450 | { | |
cbc2450f | 24451 | #if BYTE_ORDER != BIG_ENDIAN |
24452 | not big endian | |
24453 | #endif | |
33f5f8b9 | 24454 | |
24455 | ; | |
24456 | return 0; | |
24457 | } | |
24458 | _ACEOF | |
24459 | rm -f conftest.$ac_objext | |
24460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 24461 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 24462 | ac_status=$? |
af3004ff | 24463 | grep -v '^ *+' conftest.er1 >conftest.err |
24464 | rm -f conftest.er1 | |
24465 | cat conftest.err >&5 | |
33f5f8b9 | 24466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24467 | (exit $ac_status); } && | |
6263d81f | 24468 | { ac_try='test -z "$ac_c_werror_flag" |
24469 | || test ! -s conftest.err' | |
af3004ff | 24470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24471 | (eval $ac_try) 2>&5 | |
24472 | ac_status=$? | |
24473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24474 | (exit $ac_status); }; } && | |
24475 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 24476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24477 | (eval $ac_try) 2>&5 | |
24478 | ac_status=$? | |
24479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24480 | (exit $ac_status); }; }; then | |
cbc2450f | 24481 | ac_cv_c_bigendian=yes |
24482 | else | |
33f5f8b9 | 24483 | echo "$as_me: failed program was:" >&5 |
ad21602a | 24484 | sed 's/^/| /' conftest.$ac_ext >&5 |
24485 | ||
33f5f8b9 | 24486 | ac_cv_c_bigendian=no |
b65c7b0d | 24487 | fi |
af3004ff | 24488 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b65c7b0d | 24489 | else |
33f5f8b9 | 24490 | echo "$as_me: failed program was:" >&5 |
ad21602a | 24491 | sed 's/^/| /' conftest.$ac_ext >&5 |
24492 | ||
33f5f8b9 | 24493 | # It does not; compile a test program. |
3f961930 | 24494 | if test "$cross_compiling" = yes; then |
ad21602a | 24495 | # try to guess the endianness by grepping values into an object file |
33f5f8b9 | 24496 | ac_cv_c_bigendian=unknown |
24497 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 24498 | /* confdefs.h. */ |
24499 | _ACEOF | |
24500 | cat confdefs.h >>conftest.$ac_ext | |
24501 | cat >>conftest.$ac_ext <<_ACEOF | |
24502 | /* end confdefs.h. */ | |
33f5f8b9 | 24503 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
24504 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
24505 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
24506 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
24507 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
24508 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
33f5f8b9 | 24509 | int |
24510 | main () | |
24511 | { | |
24512 | _ascii (); _ebcdic (); | |
24513 | ; | |
24514 | return 0; | |
24515 | } | |
24516 | _ACEOF | |
24517 | rm -f conftest.$ac_objext | |
24518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 24519 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 24520 | ac_status=$? |
af3004ff | 24521 | grep -v '^ *+' conftest.er1 >conftest.err |
24522 | rm -f conftest.er1 | |
24523 | cat conftest.err >&5 | |
33f5f8b9 | 24524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24525 | (exit $ac_status); } && | |
6263d81f | 24526 | { ac_try='test -z "$ac_c_werror_flag" |
24527 | || test ! -s conftest.err' | |
af3004ff | 24528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24529 | (eval $ac_try) 2>&5 | |
24530 | ac_status=$? | |
24531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24532 | (exit $ac_status); }; } && | |
24533 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 24534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24535 | (eval $ac_try) 2>&5 | |
24536 | ac_status=$? | |
24537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24538 | (exit $ac_status); }; }; then | |
ad21602a | 24539 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
33f5f8b9 | 24540 | ac_cv_c_bigendian=yes |
24541 | fi | |
ad21602a | 24542 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
33f5f8b9 | 24543 | if test "$ac_cv_c_bigendian" = unknown; then |
24544 | ac_cv_c_bigendian=no | |
24545 | else | |
24546 | # finding both strings is unlikely to happen, but who knows? | |
24547 | ac_cv_c_bigendian=unknown | |
24548 | fi | |
24549 | fi | |
24550 | else | |
24551 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 24552 | sed 's/^/| /' conftest.$ac_ext >&5 |
24553 | ||
33f5f8b9 | 24554 | fi |
af3004ff | 24555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cbc2450f | 24556 | else |
33f5f8b9 | 24557 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 24558 | /* confdefs.h. */ |
24559 | _ACEOF | |
24560 | cat confdefs.h >>conftest.$ac_ext | |
24561 | cat >>conftest.$ac_ext <<_ACEOF | |
24562 | /* end confdefs.h. */ | |
33f5f8b9 | 24563 | int |
24564 | main () | |
24565 | { | |
cbc2450f | 24566 | /* Are we little or big endian? From Harbison&Steele. */ |
24567 | union | |
24568 | { | |
24569 | long l; | |
24570 | char c[sizeof (long)]; | |
24571 | } u; | |
24572 | u.l = 1; | |
24573 | exit (u.c[sizeof (long) - 1] == 1); | |
24574 | } | |
33f5f8b9 | 24575 | _ACEOF |
24576 | rm -f conftest$ac_exeext | |
24577 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24578 | (eval $ac_link) 2>&5 | |
24579 | ac_status=$? | |
24580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24581 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
24582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24583 | (eval $ac_try) 2>&5 | |
24584 | ac_status=$? | |
24585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24586 | (exit $ac_status); }; }; then | |
cbc2450f | 24587 | ac_cv_c_bigendian=no |
24588 | else | |
33f5f8b9 | 24589 | echo "$as_me: program exited with status $ac_status" >&5 |
24590 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 24591 | sed 's/^/| /' conftest.$ac_ext >&5 |
24592 | ||
33f5f8b9 | 24593 | ( exit $ac_status ) |
24594 | ac_cv_c_bigendian=yes | |
cbc2450f | 24595 | fi |
af3004ff | 24596 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
cbc2450f | 24597 | fi |
cbc2450f | 24598 | fi |
af3004ff | 24599 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
cbc2450f | 24600 | fi |
33f5f8b9 | 24601 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
24602 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
24603 | case $ac_cv_c_bigendian in | |
24604 | yes) | |
cbc2450f | 24605 | |
33f5f8b9 | 24606 | cat >>confdefs.h <<\_ACEOF |
cbc2450f | 24607 | #define WORDS_BIGENDIAN 1 |
33f5f8b9 | 24608 | _ACEOF |
24609 | ;; | |
24610 | no) | |
24611 | ;; | |
24612 | *) | |
ad21602a | 24613 | { { echo "$as_me:$LINENO: error: unknown endianness |
33f5f8b9 | 24614 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
ad21602a | 24615 | echo "$as_me: error: unknown endianness |
33f5f8b9 | 24616 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
24617 | { (exit 1); exit 1; }; } ;; | |
24618 | esac | |
cbc2450f | 24619 | |
aee0606f | 24620 | |
33f5f8b9 | 24621 | echo "$as_me:$LINENO: checking if ANSI prototypes work" >&5 |
24622 | echo $ECHO_N "checking if ANSI prototypes work... $ECHO_C" >&6 | |
24623 | if test "${ac_cv_have_ansi_prototypes+set}" = set; then | |
24624 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c51415d | 24625 | else |
33f5f8b9 | 24626 | |
24627 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 24628 | /* confdefs.h. */ |
24629 | _ACEOF | |
24630 | cat confdefs.h >>conftest.$ac_ext | |
24631 | cat >>conftest.$ac_ext <<_ACEOF | |
24632 | /* end confdefs.h. */ | |
8cca06da | 24633 | int foo(char *); int foo (char *bar) {return 1;} |
33f5f8b9 | 24634 | int |
24635 | main () | |
24636 | { | |
8cca06da | 24637 | foo("bar") |
33f5f8b9 | 24638 | ; |
24639 | return 0; | |
24640 | } | |
24641 | _ACEOF | |
24642 | rm -f conftest.$ac_objext | |
24643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 24644 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 24645 | ac_status=$? |
af3004ff | 24646 | grep -v '^ *+' conftest.er1 >conftest.err |
24647 | rm -f conftest.er1 | |
24648 | cat conftest.err >&5 | |
33f5f8b9 | 24649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24650 | (exit $ac_status); } && | |
6263d81f | 24651 | { ac_try='test -z "$ac_c_werror_flag" |
24652 | || test ! -s conftest.err' | |
af3004ff | 24653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24654 | (eval $ac_try) 2>&5 | |
24655 | ac_status=$? | |
24656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24657 | (exit $ac_status); }; } && | |
24658 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 24659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24660 | (eval $ac_try) 2>&5 | |
24661 | ac_status=$? | |
24662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24663 | (exit $ac_status); }; }; then | |
5c51415d | 24664 | ac_cv_have_ansi_prototypes="yes" |
20a50bb9 | 24665 | else |
33f5f8b9 | 24666 | echo "$as_me: failed program was:" >&5 |
ad21602a | 24667 | sed 's/^/| /' conftest.$ac_ext >&5 |
24668 | ||
33f5f8b9 | 24669 | ac_cv_have_ansi_prototypes="no" |
20a50bb9 | 24670 | fi |
af3004ff | 24671 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
20a50bb9 | 24672 | |
5c51415d | 24673 | fi |
33f5f8b9 | 24674 | echo "$as_me:$LINENO: result: $ac_cv_have_ansi_prototypes" >&5 |
24675 | echo "${ECHO_T}$ac_cv_have_ansi_prototypes" >&6 | |
5c51415d | 24676 | if test $ac_cv_have_ansi_prototypes = "yes" ; then |
33f5f8b9 | 24677 | |
24678 | cat >>confdefs.h <<\_ACEOF | |
5c51415d | 24679 | #define HAVE_ANSI_PROTOTYPES 1 |
33f5f8b9 | 24680 | _ACEOF |
5c51415d | 24681 | |
24682 | fi | |
24683 | ||
33f5f8b9 | 24684 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
24685 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 | |
24686 | if test "${ac_cv_struct_tm+set}" = set; then | |
24687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c51415d | 24688 | else |
33f5f8b9 | 24689 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 24690 | /* confdefs.h. */ |
24691 | _ACEOF | |
24692 | cat confdefs.h >>conftest.$ac_ext | |
24693 | cat >>conftest.$ac_ext <<_ACEOF | |
24694 | /* end confdefs.h. */ | |
33f5f8b9 | 24695 | #include <sys/types.h> |
46c883ed | 24696 | #include <time.h> |
46c883ed | 24697 | |
33f5f8b9 | 24698 | int |
24699 | main () | |
24700 | { | |
24701 | struct tm *tp; tp->tm_sec; | |
24702 | ; | |
24703 | return 0; | |
24704 | } | |
24705 | _ACEOF | |
24706 | rm -f conftest.$ac_objext | |
24707 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 24708 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 24709 | ac_status=$? |
af3004ff | 24710 | grep -v '^ *+' conftest.er1 >conftest.err |
24711 | rm -f conftest.er1 | |
24712 | cat conftest.err >&5 | |
33f5f8b9 | 24713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24714 | (exit $ac_status); } && | |
6263d81f | 24715 | { ac_try='test -z "$ac_c_werror_flag" |
24716 | || test ! -s conftest.err' | |
af3004ff | 24717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24718 | (eval $ac_try) 2>&5 | |
24719 | ac_status=$? | |
24720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24721 | (exit $ac_status); }; } && | |
24722 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 24723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24724 | (eval $ac_try) 2>&5 | |
24725 | ac_status=$? | |
24726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24727 | (exit $ac_status); }; }; then | |
24728 | ac_cv_struct_tm=time.h | |
24729 | else | |
24730 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 24731 | sed 's/^/| /' conftest.$ac_ext >&5 |
24732 | ||
33f5f8b9 | 24733 | ac_cv_struct_tm=sys/time.h |
24734 | fi | |
af3004ff | 24735 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 24736 | fi |
24737 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 | |
24738 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 | |
24739 | if test $ac_cv_struct_tm = sys/time.h; then | |
24740 | ||
24741 | cat >>confdefs.h <<\_ACEOF | |
24742 | #define TM_IN_SYS_TIME 1 | |
24743 | _ACEOF | |
24744 | ||
24745 | fi | |
24746 | ||
24747 | echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5 | |
24748 | echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6 | |
24749 | if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then | |
24750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24751 | else | |
24752 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 24753 | /* confdefs.h. */ |
24754 | _ACEOF | |
24755 | cat confdefs.h >>conftest.$ac_ext | |
24756 | cat >>conftest.$ac_ext <<_ACEOF | |
24757 | /* end confdefs.h. */ | |
33f5f8b9 | 24758 | |
24759 | #if TM_IN_SYS_TIME | |
24760 | #if HAVE_SYS_TIME_H | |
24761 | #include <sys/time.h> | |
24762 | #endif | |
24763 | #elif HAVE_TIME_H | |
24764 | #include <time.h> | |
24765 | #endif | |
24766 | ||
24767 | ||
658d5a21 | 24768 | int |
24769 | main () | |
24770 | { | |
24771 | static struct tm ac_aggr; | |
8b036616 | 24772 | if (ac_aggr.tm_gmtoff) |
658d5a21 | 24773 | return 0; |
24774 | ; | |
24775 | return 0; | |
24776 | } | |
24777 | _ACEOF | |
24778 | rm -f conftest.$ac_objext | |
24779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 24780 | (eval $ac_compile) 2>conftest.er1 |
658d5a21 | 24781 | ac_status=$? |
af3004ff | 24782 | grep -v '^ *+' conftest.er1 >conftest.err |
24783 | rm -f conftest.er1 | |
24784 | cat conftest.err >&5 | |
658d5a21 | 24785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24786 | (exit $ac_status); } && | |
6263d81f | 24787 | { ac_try='test -z "$ac_c_werror_flag" |
24788 | || test ! -s conftest.err' | |
af3004ff | 24789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24790 | (eval $ac_try) 2>&5 | |
24791 | ac_status=$? | |
24792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24793 | (exit $ac_status); }; } && | |
24794 | { ac_try='test -s conftest.$ac_objext' | |
658d5a21 | 24795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24796 | (eval $ac_try) 2>&5 | |
24797 | ac_status=$? | |
24798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24799 | (exit $ac_status); }; }; then | |
24800 | ac_cv_member_struct_tm_tm_gmtoff=yes | |
24801 | else | |
24802 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 24803 | sed 's/^/| /' conftest.$ac_ext >&5 |
3f961930 | 24804 | |
ad21602a | 24805 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 24806 | /* confdefs.h. */ |
24807 | _ACEOF | |
24808 | cat confdefs.h >>conftest.$ac_ext | |
24809 | cat >>conftest.$ac_ext <<_ACEOF | |
24810 | /* end confdefs.h. */ | |
33f5f8b9 | 24811 | |
ad21602a | 24812 | #if TM_IN_SYS_TIME |
24813 | #if HAVE_SYS_TIME_H | |
24814 | #include <sys/time.h> | |
33f5f8b9 | 24815 | #endif |
ad21602a | 24816 | #elif HAVE_TIME_H |
24817 | #include <time.h> | |
24818 | #endif | |
24819 | ||
24820 | ||
24821 | int | |
24822 | main () | |
24823 | { | |
24824 | static struct tm ac_aggr; | |
24825 | if (sizeof ac_aggr.tm_gmtoff) | |
24826 | return 0; | |
24827 | ; | |
24828 | return 0; | |
24829 | } | |
24830 | _ACEOF | |
24831 | rm -f conftest.$ac_objext | |
24832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 24833 | (eval $ac_compile) 2>conftest.er1 |
ad21602a | 24834 | ac_status=$? |
af3004ff | 24835 | grep -v '^ *+' conftest.er1 >conftest.err |
24836 | rm -f conftest.er1 | |
24837 | cat conftest.err >&5 | |
ad21602a | 24838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24839 | (exit $ac_status); } && | |
6263d81f | 24840 | { ac_try='test -z "$ac_c_werror_flag" |
24841 | || test ! -s conftest.err' | |
af3004ff | 24842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24843 | (eval $ac_try) 2>&5 | |
24844 | ac_status=$? | |
24845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24846 | (exit $ac_status); }; } && | |
24847 | { ac_try='test -s conftest.$ac_objext' | |
ad21602a | 24848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24849 | (eval $ac_try) 2>&5 | |
24850 | ac_status=$? | |
24851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24852 | (exit $ac_status); }; }; then | |
24853 | ac_cv_member_struct_tm_tm_gmtoff=yes | |
24854 | else | |
24855 | echo "$as_me: failed program was:" >&5 | |
24856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24857 | ||
24858 | ac_cv_member_struct_tm_tm_gmtoff=no | |
24859 | fi | |
af3004ff | 24860 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad21602a | 24861 | fi |
af3004ff | 24862 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad21602a | 24863 | fi |
24864 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5 | |
24865 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6 | |
24866 | if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then | |
24867 | ||
24868 | cat >>confdefs.h <<_ACEOF | |
24869 | #define HAVE_STRUCT_TM_TM_GMTOFF 1 | |
24870 | _ACEOF | |
24871 | ||
24872 | ||
24873 | fi | |
24874 | ||
24875 | ||
24876 | echo "$as_me:$LINENO: checking for struct mallinfo" >&5 | |
24877 | echo $ECHO_N "checking for struct mallinfo... $ECHO_C" >&6 | |
24878 | if test "${ac_cv_type_struct_mallinfo+set}" = set; then | |
24879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24880 | else | |
24881 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 24882 | /* confdefs.h. */ |
24883 | _ACEOF | |
24884 | cat confdefs.h >>conftest.$ac_ext | |
24885 | cat >>conftest.$ac_ext <<_ACEOF | |
24886 | /* end confdefs.h. */ | |
24887 | ||
24888 | #if HAVE_SYS_TYPES_H | |
24889 | #include <sys/types.h> | |
24890 | #endif | |
24891 | #if HAVE_MALLOC_H | |
24892 | #include <malloc.h> | |
eb824054 | 24893 | #endif |
3f961930 | 24894 | |
33f5f8b9 | 24895 | int |
24896 | main () | |
24897 | { | |
24898 | if ((struct mallinfo *) 0) | |
24899 | return 0; | |
24900 | if (sizeof (struct mallinfo)) | |
0eb0a2df | 24901 | return 0; |
b67e2c8c | 24902 | ; |
24903 | return 0; | |
24904 | } | |
24905 | _ACEOF | |
24906 | rm -f conftest.$ac_objext | |
24907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 24908 | (eval $ac_compile) 2>conftest.er1 |
b67e2c8c | 24909 | ac_status=$? |
af3004ff | 24910 | grep -v '^ *+' conftest.er1 >conftest.err |
24911 | rm -f conftest.er1 | |
24912 | cat conftest.err >&5 | |
b67e2c8c | 24913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24914 | (exit $ac_status); } && | |
6263d81f | 24915 | { ac_try='test -z "$ac_c_werror_flag" |
24916 | || test ! -s conftest.err' | |
af3004ff | 24917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24918 | (eval $ac_try) 2>&5 | |
24919 | ac_status=$? | |
24920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24921 | (exit $ac_status); }; } && | |
24922 | { ac_try='test -s conftest.$ac_objext' | |
b67e2c8c | 24923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24924 | (eval $ac_try) 2>&5 | |
24925 | ac_status=$? | |
24926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24927 | (exit $ac_status); }; }; then | |
0eb0a2df | 24928 | ac_cv_type_struct_mallinfo=yes |
b67e2c8c | 24929 | else |
24930 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 24931 | sed 's/^/| /' conftest.$ac_ext >&5 |
24932 | ||
0eb0a2df | 24933 | ac_cv_type_struct_mallinfo=no |
24934 | fi | |
af3004ff | 24935 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
0eb0a2df | 24936 | fi |
24937 | echo "$as_me:$LINENO: result: $ac_cv_type_struct_mallinfo" >&5 | |
24938 | echo "${ECHO_T}$ac_cv_type_struct_mallinfo" >&6 | |
24939 | if test $ac_cv_type_struct_mallinfo = yes; then | |
33f5f8b9 | 24940 | |
0eb0a2df | 24941 | cat >>confdefs.h <<\_ACEOF |
24942 | #define HAVE_STRUCT_MALLINFO 1 | |
b67e2c8c | 24943 | _ACEOF |
0eb0a2df | 24944 | |
24945 | fi | |
24946 | ||
24947 | ||
24948 | echo "$as_me:$LINENO: checking for struct mallinfo.mxfast" >&5 | |
24949 | echo $ECHO_N "checking for struct mallinfo.mxfast... $ECHO_C" >&6 | |
24950 | if test "${ac_cv_member_struct_mallinfo_mxfast+set}" = set; then | |
24951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24952 | else | |
24953 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 24954 | /* confdefs.h. */ |
24955 | _ACEOF | |
24956 | cat confdefs.h >>conftest.$ac_ext | |
24957 | cat >>conftest.$ac_ext <<_ACEOF | |
24958 | /* end confdefs.h. */ | |
33f5f8b9 | 24959 | |
24960 | #if HAVE_SYS_TYPES_H | |
46c883ed | 24961 | #include <sys/types.h> |
33f5f8b9 | 24962 | #endif |
24963 | #if HAVE_MALLOC_H | |
090089c4 | 24964 | #include <malloc.h> |
33f5f8b9 | 24965 | #endif |
090089c4 | 24966 | |
658d5a21 | 24967 | int |
24968 | main () | |
24969 | { | |
24970 | static struct mallinfo ac_aggr; | |
8b036616 | 24971 | if (ac_aggr.mxfast) |
658d5a21 | 24972 | return 0; |
24973 | ; | |
24974 | return 0; | |
24975 | } | |
24976 | _ACEOF | |
24977 | rm -f conftest.$ac_objext | |
24978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 24979 | (eval $ac_compile) 2>conftest.er1 |
658d5a21 | 24980 | ac_status=$? |
af3004ff | 24981 | grep -v '^ *+' conftest.er1 >conftest.err |
24982 | rm -f conftest.er1 | |
24983 | cat conftest.err >&5 | |
658d5a21 | 24984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24985 | (exit $ac_status); } && | |
6263d81f | 24986 | { ac_try='test -z "$ac_c_werror_flag" |
24987 | || test ! -s conftest.err' | |
af3004ff | 24988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24989 | (eval $ac_try) 2>&5 | |
24990 | ac_status=$? | |
24991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24992 | (exit $ac_status); }; } && | |
24993 | { ac_try='test -s conftest.$ac_objext' | |
658d5a21 | 24994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24995 | (eval $ac_try) 2>&5 | |
24996 | ac_status=$? | |
24997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24998 | (exit $ac_status); }; }; then | |
24999 | ac_cv_member_struct_mallinfo_mxfast=yes | |
25000 | else | |
25001 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 25002 | sed 's/^/| /' conftest.$ac_ext >&5 |
25003 | ||
25004 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 25005 | /* confdefs.h. */ |
25006 | _ACEOF | |
25007 | cat confdefs.h >>conftest.$ac_ext | |
25008 | cat >>conftest.$ac_ext <<_ACEOF | |
25009 | /* end confdefs.h. */ | |
25010 | ||
25011 | #if HAVE_SYS_TYPES_H | |
25012 | #include <sys/types.h> | |
25013 | #endif | |
25014 | #if HAVE_MALLOC_H | |
25015 | #include <malloc.h> | |
25016 | #endif | |
25017 | ||
25018 | int | |
25019 | main () | |
25020 | { | |
25021 | static struct mallinfo ac_aggr; | |
25022 | if (sizeof ac_aggr.mxfast) | |
25023 | return 0; | |
25024 | ; | |
25025 | return 0; | |
25026 | } | |
25027 | _ACEOF | |
25028 | rm -f conftest.$ac_objext | |
25029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 25030 | (eval $ac_compile) 2>conftest.er1 |
ad21602a | 25031 | ac_status=$? |
af3004ff | 25032 | grep -v '^ *+' conftest.er1 >conftest.err |
25033 | rm -f conftest.er1 | |
25034 | cat conftest.err >&5 | |
ad21602a | 25035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25036 | (exit $ac_status); } && | |
6263d81f | 25037 | { ac_try='test -z "$ac_c_werror_flag" |
25038 | || test ! -s conftest.err' | |
af3004ff | 25039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25040 | (eval $ac_try) 2>&5 | |
25041 | ac_status=$? | |
25042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25043 | (exit $ac_status); }; } && | |
25044 | { ac_try='test -s conftest.$ac_objext' | |
ad21602a | 25045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25046 | (eval $ac_try) 2>&5 | |
25047 | ac_status=$? | |
25048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25049 | (exit $ac_status); }; }; then | |
25050 | ac_cv_member_struct_mallinfo_mxfast=yes | |
25051 | else | |
25052 | echo "$as_me: failed program was:" >&5 | |
25053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25054 | ||
33f5f8b9 | 25055 | ac_cv_member_struct_mallinfo_mxfast=no |
25056 | fi | |
af3004ff | 25057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5c51415d | 25058 | fi |
af3004ff | 25059 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad21602a | 25060 | fi |
33f5f8b9 | 25061 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_mallinfo_mxfast" >&5 |
25062 | echo "${ECHO_T}$ac_cv_member_struct_mallinfo_mxfast" >&6 | |
25063 | if test $ac_cv_member_struct_mallinfo_mxfast = yes; then | |
25064 | ||
25065 | cat >>confdefs.h <<_ACEOF | |
25066 | #define HAVE_STRUCT_MALLINFO_MXFAST 1 | |
25067 | _ACEOF | |
3f961930 | 25068 | |
5c51415d | 25069 | |
25070 | fi | |
25071 | ||
33f5f8b9 | 25072 | |
795c3ae0 | 25073 | case "$host_os" in |
25074 | mingw|mingw32) | |
25075 | cat >>confdefs.h <<\_ACEOF | |
25076 | #define HAVE_STRUCT_RUSAGE 1 | |
25077 | _ACEOF | |
25078 | ||
25079 | ac_cv_func_getrusage='yes' | |
61f45daa | 25080 | echo "Using own rusage on Windows." |
795c3ae0 | 25081 | ;; |
25082 | *) | |
25083 | echo "$as_me:$LINENO: checking for struct rusage" >&5 | |
33f5f8b9 | 25084 | echo $ECHO_N "checking for struct rusage... $ECHO_C" >&6 |
25085 | if test "${ac_cv_type_struct_rusage+set}" = set; then | |
25086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b54a6789 | 25087 | else |
33f5f8b9 | 25088 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 25089 | /* confdefs.h. */ |
25090 | _ACEOF | |
25091 | cat confdefs.h >>conftest.$ac_ext | |
25092 | cat >>conftest.$ac_ext <<_ACEOF | |
25093 | /* end confdefs.h. */ | |
b54a6789 | 25094 | |
8ff51bba | 25095 | #if HAVE_SYS_TIME_H |
25096 | #include <sys/time.h> | |
25097 | #endif | |
b54a6789 | 25098 | #if HAVE_SYS_RESOURCE_H |
25099 | #include <sys/resource.h> | |
25100 | #endif | |
3f961930 | 25101 | |
33f5f8b9 | 25102 | int |
25103 | main () | |
25104 | { | |
25105 | if ((struct rusage *) 0) | |
25106 | return 0; | |
25107 | if (sizeof (struct rusage)) | |
25108 | return 0; | |
25109 | ; | |
25110 | return 0; | |
25111 | } | |
25112 | _ACEOF | |
25113 | rm -f conftest.$ac_objext | |
25114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 25115 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 25116 | ac_status=$? |
af3004ff | 25117 | grep -v '^ *+' conftest.er1 >conftest.err |
25118 | rm -f conftest.er1 | |
25119 | cat conftest.err >&5 | |
33f5f8b9 | 25120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25121 | (exit $ac_status); } && | |
6263d81f | 25122 | { ac_try='test -z "$ac_c_werror_flag" |
25123 | || test ! -s conftest.err' | |
af3004ff | 25124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25125 | (eval $ac_try) 2>&5 | |
25126 | ac_status=$? | |
25127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25128 | (exit $ac_status); }; } && | |
25129 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 25130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25131 | (eval $ac_try) 2>&5 | |
25132 | ac_status=$? | |
25133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25134 | (exit $ac_status); }; }; then | |
25135 | ac_cv_type_struct_rusage=yes | |
25136 | else | |
25137 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 25138 | sed 's/^/| /' conftest.$ac_ext >&5 |
25139 | ||
33f5f8b9 | 25140 | ac_cv_type_struct_rusage=no |
25141 | fi | |
af3004ff | 25142 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 25143 | fi |
25144 | echo "$as_me:$LINENO: result: $ac_cv_type_struct_rusage" >&5 | |
25145 | echo "${ECHO_T}$ac_cv_type_struct_rusage" >&6 | |
25146 | if test $ac_cv_type_struct_rusage = yes; then | |
25147 | ||
dd0004a0 | 25148 | cat >>confdefs.h <<\_ACEOF |
25149 | #define HAVE_STRUCT_RUSAGE 1 | |
2f44bd34 | 25150 | _ACEOF |
dd0004a0 | 25151 | |
25152 | fi | |
25153 | ||
795c3ae0 | 25154 | ;; |
25155 | esac | |
dd0004a0 | 25156 | |
25157 | echo "$as_me:$LINENO: checking for struct iphdr.ip_hl" >&5 | |
25158 | echo $ECHO_N "checking for struct iphdr.ip_hl... $ECHO_C" >&6 | |
25159 | if test "${ac_cv_member_struct_iphdr_ip_hl+set}" = set; then | |
25160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25161 | else | |
25162 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 25163 | /* confdefs.h. */ |
25164 | _ACEOF | |
25165 | cat confdefs.h >>conftest.$ac_ext | |
25166 | cat >>conftest.$ac_ext <<_ACEOF | |
25167 | /* end confdefs.h. */ | |
33f5f8b9 | 25168 | |
25169 | #if HAVE_SYS_TYPES_H | |
a025a745 | 25170 | #include <sys/types.h> |
33f5f8b9 | 25171 | #endif |
a025a745 | 25172 | #include <netinet/in.h> |
25173 | #include <netinet/in_systm.h> | |
25174 | #include <netinet/ip.h> | |
509e66c9 | 25175 | #if defined (__linux__) || defined (__CYGWIN__) |
6ad85e8a | 25176 | #define ip_hl ihl |
25177 | #endif | |
25178 | #ifndef __linux__ | |
509e66c9 | 25179 | #ifndef __CYGWIN__ |
6ad85e8a | 25180 | #define iphdr ip |
25181 | #endif | |
509e66c9 | 25182 | #endif |
33f5f8b9 | 25183 | |
658d5a21 | 25184 | int |
25185 | main () | |
25186 | { | |
25187 | static struct iphdr ac_aggr; | |
8b036616 | 25188 | if (ac_aggr.ip_hl) |
658d5a21 | 25189 | return 0; |
25190 | ; | |
25191 | return 0; | |
25192 | } | |
25193 | _ACEOF | |
25194 | rm -f conftest.$ac_objext | |
25195 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 25196 | (eval $ac_compile) 2>conftest.er1 |
658d5a21 | 25197 | ac_status=$? |
af3004ff | 25198 | grep -v '^ *+' conftest.er1 >conftest.err |
25199 | rm -f conftest.er1 | |
25200 | cat conftest.err >&5 | |
658d5a21 | 25201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25202 | (exit $ac_status); } && | |
6263d81f | 25203 | { ac_try='test -z "$ac_c_werror_flag" |
25204 | || test ! -s conftest.err' | |
af3004ff | 25205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25206 | (eval $ac_try) 2>&5 | |
25207 | ac_status=$? | |
25208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25209 | (exit $ac_status); }; } && | |
25210 | { ac_try='test -s conftest.$ac_objext' | |
658d5a21 | 25211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25212 | (eval $ac_try) 2>&5 | |
25213 | ac_status=$? | |
25214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25215 | (exit $ac_status); }; }; then | |
25216 | ac_cv_member_struct_iphdr_ip_hl=yes | |
25217 | else | |
25218 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 25219 | sed 's/^/| /' conftest.$ac_ext >&5 |
25220 | ||
25221 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 25222 | /* confdefs.h. */ |
25223 | _ACEOF | |
25224 | cat confdefs.h >>conftest.$ac_ext | |
25225 | cat >>conftest.$ac_ext <<_ACEOF | |
25226 | /* end confdefs.h. */ | |
25227 | ||
25228 | #if HAVE_SYS_TYPES_H | |
25229 | #include <sys/types.h> | |
25230 | #endif | |
25231 | #include <netinet/in.h> | |
25232 | #include <netinet/in_systm.h> | |
25233 | #include <netinet/ip.h> | |
25234 | #if defined (__linux__) || defined (__CYGWIN__) | |
25235 | #define ip_hl ihl | |
25236 | #endif | |
25237 | #ifndef __linux__ | |
25238 | #ifndef __CYGWIN__ | |
25239 | #define iphdr ip | |
25240 | #endif | |
25241 | #endif | |
25242 | ||
25243 | int | |
25244 | main () | |
25245 | { | |
25246 | static struct iphdr ac_aggr; | |
25247 | if (sizeof ac_aggr.ip_hl) | |
25248 | return 0; | |
25249 | ; | |
25250 | return 0; | |
25251 | } | |
25252 | _ACEOF | |
25253 | rm -f conftest.$ac_objext | |
25254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 25255 | (eval $ac_compile) 2>conftest.er1 |
ad21602a | 25256 | ac_status=$? |
af3004ff | 25257 | grep -v '^ *+' conftest.er1 >conftest.err |
25258 | rm -f conftest.er1 | |
25259 | cat conftest.err >&5 | |
ad21602a | 25260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25261 | (exit $ac_status); } && | |
6263d81f | 25262 | { ac_try='test -z "$ac_c_werror_flag" |
25263 | || test ! -s conftest.err' | |
af3004ff | 25264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25265 | (eval $ac_try) 2>&5 | |
25266 | ac_status=$? | |
25267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25268 | (exit $ac_status); }; } && | |
25269 | { ac_try='test -s conftest.$ac_objext' | |
ad21602a | 25270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25271 | (eval $ac_try) 2>&5 | |
25272 | ac_status=$? | |
25273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25274 | (exit $ac_status); }; }; then | |
25275 | ac_cv_member_struct_iphdr_ip_hl=yes | |
25276 | else | |
25277 | echo "$as_me: failed program was:" >&5 | |
25278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25279 | ||
33f5f8b9 | 25280 | ac_cv_member_struct_iphdr_ip_hl=no |
a025a745 | 25281 | fi |
af3004ff | 25282 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5c51415d | 25283 | fi |
af3004ff | 25284 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ad21602a | 25285 | fi |
33f5f8b9 | 25286 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_iphdr_ip_hl" >&5 |
25287 | echo "${ECHO_T}$ac_cv_member_struct_iphdr_ip_hl" >&6 | |
25288 | if test $ac_cv_member_struct_iphdr_ip_hl = yes; then | |
25289 | ||
25290 | cat >>confdefs.h <<_ACEOF | |
25291 | #define HAVE_STRUCT_IPHDR_IP_HL 1 | |
25292 | _ACEOF | |
3f961930 | 25293 | |
b65c7b0d | 25294 | |
77d6bd88 | 25295 | fi |
b65c7b0d | 25296 | |
33f5f8b9 | 25297 | |
25298 | echo "$as_me:$LINENO: checking for void *" >&5 | |
25299 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
25300 | if test "${ac_cv_type_void_p+set}" = set; then | |
25301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b65c7b0d | 25302 | else |
33f5f8b9 | 25303 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 25304 | /* confdefs.h. */ |
25305 | _ACEOF | |
25306 | cat confdefs.h >>conftest.$ac_ext | |
25307 | cat >>conftest.$ac_ext <<_ACEOF | |
25308 | /* end confdefs.h. */ | |
33f5f8b9 | 25309 | $ac_includes_default |
33f5f8b9 | 25310 | int |
25311 | main () | |
25312 | { | |
25313 | if ((void * *) 0) | |
25314 | return 0; | |
25315 | if (sizeof (void *)) | |
25316 | return 0; | |
25317 | ; | |
25318 | return 0; | |
25319 | } | |
25320 | _ACEOF | |
25321 | rm -f conftest.$ac_objext | |
25322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 25323 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 25324 | ac_status=$? |
af3004ff | 25325 | grep -v '^ *+' conftest.er1 >conftest.err |
25326 | rm -f conftest.er1 | |
25327 | cat conftest.err >&5 | |
33f5f8b9 | 25328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25329 | (exit $ac_status); } && | |
6263d81f | 25330 | { ac_try='test -z "$ac_c_werror_flag" |
25331 | || test ! -s conftest.err' | |
af3004ff | 25332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25333 | (eval $ac_try) 2>&5 | |
25334 | ac_status=$? | |
25335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25336 | (exit $ac_status); }; } && | |
25337 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 25338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25339 | (eval $ac_try) 2>&5 | |
25340 | ac_status=$? | |
25341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25342 | (exit $ac_status); }; }; then | |
25343 | ac_cv_type_void_p=yes | |
25344 | else | |
25345 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 25346 | sed 's/^/| /' conftest.$ac_ext >&5 |
25347 | ||
33f5f8b9 | 25348 | ac_cv_type_void_p=no |
25349 | fi | |
af3004ff | 25350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 25351 | fi |
25352 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
25353 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
25354 | ||
25355 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
25356 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
25357 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
25358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25359 | else | |
25360 | if test "$ac_cv_type_void_p" = yes; then | |
25361 | # The cast to unsigned long works around a bug in the HP C Compiler | |
25362 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
25363 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
25364 | # This bug is HP SR number 8606223364. | |
b65c7b0d | 25365 | if test "$cross_compiling" = yes; then |
33f5f8b9 | 25366 | # Depending upon the size, compute the lo and hi bounds. |
25367 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 25368 | /* confdefs.h. */ |
25369 | _ACEOF | |
25370 | cat confdefs.h >>conftest.$ac_ext | |
25371 | cat >>conftest.$ac_ext <<_ACEOF | |
25372 | /* end confdefs.h. */ | |
33f5f8b9 | 25373 | $ac_includes_default |
33f5f8b9 | 25374 | int |
25375 | main () | |
25376 | { | |
25377 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
25378 | test_array [0] = 0 | |
25379 | ||
25380 | ; | |
25381 | return 0; | |
25382 | } | |
25383 | _ACEOF | |
25384 | rm -f conftest.$ac_objext | |
25385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 25386 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 25387 | ac_status=$? |
af3004ff | 25388 | grep -v '^ *+' conftest.er1 >conftest.err |
25389 | rm -f conftest.er1 | |
25390 | cat conftest.err >&5 | |
33f5f8b9 | 25391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25392 | (exit $ac_status); } && | |
6263d81f | 25393 | { ac_try='test -z "$ac_c_werror_flag" |
25394 | || test ! -s conftest.err' | |
af3004ff | 25395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25396 | (eval $ac_try) 2>&5 | |
25397 | ac_status=$? | |
25398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25399 | (exit $ac_status); }; } && | |
25400 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 25401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25402 | (eval $ac_try) 2>&5 | |
25403 | ac_status=$? | |
25404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25405 | (exit $ac_status); }; }; then | |
25406 | ac_lo=0 ac_mid=0 | |
25407 | while :; do | |
25408 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 25409 | /* confdefs.h. */ |
25410 | _ACEOF | |
25411 | cat confdefs.h >>conftest.$ac_ext | |
25412 | cat >>conftest.$ac_ext <<_ACEOF | |
25413 | /* end confdefs.h. */ | |
33f5f8b9 | 25414 | $ac_includes_default |
33f5f8b9 | 25415 | int |
25416 | main () | |
25417 | { | |
25418 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
25419 | test_array [0] = 0 | |
25420 | ||
25421 | ; | |
25422 | return 0; | |
25423 | } | |
25424 | _ACEOF | |
25425 | rm -f conftest.$ac_objext | |
25426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 25427 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 25428 | ac_status=$? |
af3004ff | 25429 | grep -v '^ *+' conftest.er1 >conftest.err |
25430 | rm -f conftest.er1 | |
25431 | cat conftest.err >&5 | |
33f5f8b9 | 25432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25433 | (exit $ac_status); } && | |
6263d81f | 25434 | { ac_try='test -z "$ac_c_werror_flag" |
25435 | || test ! -s conftest.err' | |
af3004ff | 25436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25437 | (eval $ac_try) 2>&5 | |
25438 | ac_status=$? | |
25439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25440 | (exit $ac_status); }; } && | |
25441 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 25442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25443 | (eval $ac_try) 2>&5 | |
25444 | ac_status=$? | |
25445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25446 | (exit $ac_status); }; }; then | |
25447 | ac_hi=$ac_mid; break | |
25448 | else | |
25449 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 25450 | sed 's/^/| /' conftest.$ac_ext >&5 |
25451 | ||
33f5f8b9 | 25452 | ac_lo=`expr $ac_mid + 1` |
af3004ff | 25453 | if test $ac_lo -le $ac_mid; then |
25454 | ac_lo= ac_hi= | |
25455 | break | |
25456 | fi | |
25457 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
33f5f8b9 | 25458 | fi |
af3004ff | 25459 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 25460 | done |
b65c7b0d | 25461 | else |
33f5f8b9 | 25462 | echo "$as_me: failed program was:" >&5 |
ad21602a | 25463 | sed 's/^/| /' conftest.$ac_ext >&5 |
25464 | ||
33f5f8b9 | 25465 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 25466 | /* confdefs.h. */ |
25467 | _ACEOF | |
25468 | cat confdefs.h >>conftest.$ac_ext | |
25469 | cat >>conftest.$ac_ext <<_ACEOF | |
25470 | /* end confdefs.h. */ | |
33f5f8b9 | 25471 | $ac_includes_default |
33f5f8b9 | 25472 | int |
25473 | main () | |
b65c7b0d | 25474 | { |
33f5f8b9 | 25475 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
25476 | test_array [0] = 0 | |
25477 | ||
25478 | ; | |
25479 | return 0; | |
b65c7b0d | 25480 | } |
33f5f8b9 | 25481 | _ACEOF |
25482 | rm -f conftest.$ac_objext | |
25483 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 25484 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 25485 | ac_status=$? |
af3004ff | 25486 | grep -v '^ *+' conftest.er1 >conftest.err |
25487 | rm -f conftest.er1 | |
25488 | cat conftest.err >&5 | |
33f5f8b9 | 25489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25490 | (exit $ac_status); } && | |
6263d81f | 25491 | { ac_try='test -z "$ac_c_werror_flag" |
25492 | || test ! -s conftest.err' | |
af3004ff | 25493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25494 | (eval $ac_try) 2>&5 | |
25495 | ac_status=$? | |
25496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25497 | (exit $ac_status); }; } && | |
25498 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 25499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25500 | (eval $ac_try) 2>&5 | |
25501 | ac_status=$? | |
25502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25503 | (exit $ac_status); }; }; then | |
25504 | ac_hi=-1 ac_mid=-1 | |
25505 | while :; do | |
25506 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 25507 | /* confdefs.h. */ |
25508 | _ACEOF | |
25509 | cat confdefs.h >>conftest.$ac_ext | |
25510 | cat >>conftest.$ac_ext <<_ACEOF | |
25511 | /* end confdefs.h. */ | |
33f5f8b9 | 25512 | $ac_includes_default |
33f5f8b9 | 25513 | int |
25514 | main () | |
25515 | { | |
25516 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
25517 | test_array [0] = 0 | |
25518 | ||
25519 | ; | |
25520 | return 0; | |
25521 | } | |
25522 | _ACEOF | |
25523 | rm -f conftest.$ac_objext | |
25524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 25525 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 25526 | ac_status=$? |
af3004ff | 25527 | grep -v '^ *+' conftest.er1 >conftest.err |
25528 | rm -f conftest.er1 | |
25529 | cat conftest.err >&5 | |
33f5f8b9 | 25530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25531 | (exit $ac_status); } && | |
6263d81f | 25532 | { ac_try='test -z "$ac_c_werror_flag" |
25533 | || test ! -s conftest.err' | |
af3004ff | 25534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25535 | (eval $ac_try) 2>&5 | |
25536 | ac_status=$? | |
25537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25538 | (exit $ac_status); }; } && | |
25539 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 25540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25541 | (eval $ac_try) 2>&5 | |
25542 | ac_status=$? | |
25543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25544 | (exit $ac_status); }; }; then | |
25545 | ac_lo=$ac_mid; break | |
25546 | else | |
25547 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 25548 | sed 's/^/| /' conftest.$ac_ext >&5 |
25549 | ||
33f5f8b9 | 25550 | ac_hi=`expr '(' $ac_mid ')' - 1` |
af3004ff | 25551 | if test $ac_mid -le $ac_hi; then |
25552 | ac_lo= ac_hi= | |
25553 | break | |
25554 | fi | |
25555 | ac_mid=`expr 2 '*' $ac_mid` | |
33f5f8b9 | 25556 | fi |
af3004ff | 25557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 25558 | done |
b65c7b0d | 25559 | else |
33f5f8b9 | 25560 | echo "$as_me: failed program was:" >&5 |
ad21602a | 25561 | sed 's/^/| /' conftest.$ac_ext >&5 |
25562 | ||
33f5f8b9 | 25563 | ac_lo= ac_hi= |
b65c7b0d | 25564 | fi |
af3004ff | 25565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b65c7b0d | 25566 | fi |
af3004ff | 25567 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 25568 | # Binary search between lo and hi bounds. |
25569 | while test "x$ac_lo" != "x$ac_hi"; do | |
25570 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
25571 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 25572 | /* confdefs.h. */ |
25573 | _ACEOF | |
25574 | cat confdefs.h >>conftest.$ac_ext | |
25575 | cat >>conftest.$ac_ext <<_ACEOF | |
25576 | /* end confdefs.h. */ | |
33f5f8b9 | 25577 | $ac_includes_default |
33f5f8b9 | 25578 | int |
25579 | main () | |
25580 | { | |
25581 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
25582 | test_array [0] = 0 | |
3f961930 | 25583 | |
33f5f8b9 | 25584 | ; |
25585 | return 0; | |
25586 | } | |
25587 | _ACEOF | |
25588 | rm -f conftest.$ac_objext | |
25589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 25590 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 25591 | ac_status=$? |
af3004ff | 25592 | grep -v '^ *+' conftest.er1 >conftest.err |
25593 | rm -f conftest.er1 | |
25594 | cat conftest.err >&5 | |
33f5f8b9 | 25595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25596 | (exit $ac_status); } && | |
6263d81f | 25597 | { ac_try='test -z "$ac_c_werror_flag" |
25598 | || test ! -s conftest.err' | |
af3004ff | 25599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25600 | (eval $ac_try) 2>&5 | |
25601 | ac_status=$? | |
25602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25603 | (exit $ac_status); }; } && | |
25604 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 25605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25606 | (eval $ac_try) 2>&5 | |
25607 | ac_status=$? | |
25608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25609 | (exit $ac_status); }; }; then | |
25610 | ac_hi=$ac_mid | |
25611 | else | |
25612 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 25613 | sed 's/^/| /' conftest.$ac_ext >&5 |
25614 | ||
33f5f8b9 | 25615 | ac_lo=`expr '(' $ac_mid ')' + 1` |
25616 | fi | |
af3004ff | 25617 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 25618 | done |
25619 | case $ac_lo in | |
25620 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
ad21602a | 25621 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
25622 | See \`config.log' for more details." >&5 | |
25623 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
25624 | See \`config.log' for more details." >&2;} | |
33f5f8b9 | 25625 | { (exit 1); exit 1; }; } ;; |
25626 | esac | |
77d6bd88 | 25627 | else |
25628 | if test "$cross_compiling" = yes; then | |
6263d81f | 25629 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
25630 | See \`config.log' for more details." >&5 | |
25631 | echo "$as_me: error: cannot run test program while cross compiling | |
25632 | See \`config.log' for more details." >&2;} | |
33f5f8b9 | 25633 | { (exit 1); exit 1; }; } |
77d6bd88 | 25634 | else |
33f5f8b9 | 25635 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 25636 | /* confdefs.h. */ |
25637 | _ACEOF | |
25638 | cat confdefs.h >>conftest.$ac_ext | |
25639 | cat >>conftest.$ac_ext <<_ACEOF | |
25640 | /* end confdefs.h. */ | |
33f5f8b9 | 25641 | $ac_includes_default |
25642 | long longval () { return (long) (sizeof (void *)); } | |
25643 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
77d6bd88 | 25644 | #include <stdio.h> |
33f5f8b9 | 25645 | #include <stdlib.h> |
33f5f8b9 | 25646 | int |
25647 | main () | |
77d6bd88 | 25648 | { |
33f5f8b9 | 25649 | |
25650 | FILE *f = fopen ("conftest.val", "w"); | |
25651 | if (! f) | |
25652 | exit (1); | |
25653 | if (((long) (sizeof (void *))) < 0) | |
25654 | { | |
25655 | long i = longval (); | |
25656 | if (i != ((long) (sizeof (void *)))) | |
25657 | exit (1); | |
25658 | fprintf (f, "%ld\n", i); | |
25659 | } | |
25660 | else | |
25661 | { | |
25662 | unsigned long i = ulongval (); | |
25663 | if (i != ((long) (sizeof (void *)))) | |
25664 | exit (1); | |
25665 | fprintf (f, "%lu\n", i); | |
25666 | } | |
25667 | exit (ferror (f) || fclose (f) != 0); | |
25668 | ||
25669 | ; | |
25670 | return 0; | |
77d6bd88 | 25671 | } |
33f5f8b9 | 25672 | _ACEOF |
25673 | rm -f conftest$ac_exeext | |
25674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25675 | (eval $ac_link) 2>&5 | |
25676 | ac_status=$? | |
25677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25678 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
25679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25680 | (eval $ac_try) 2>&5 | |
25681 | ac_status=$? | |
25682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25683 | (exit $ac_status); }; }; then | |
25684 | ac_cv_sizeof_void_p=`cat conftest.val` | |
25685 | else | |
25686 | echo "$as_me: program exited with status $ac_status" >&5 | |
25687 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 25688 | sed 's/^/| /' conftest.$ac_ext >&5 |
25689 | ||
33f5f8b9 | 25690 | ( exit $ac_status ) |
ad21602a | 25691 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
25692 | See \`config.log' for more details." >&5 | |
25693 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
25694 | See \`config.log' for more details." >&2;} | |
33f5f8b9 | 25695 | { (exit 1); exit 1; }; } |
25696 | fi | |
af3004ff | 25697 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 25698 | fi |
25699 | fi | |
25700 | rm -f conftest.val | |
77d6bd88 | 25701 | else |
33f5f8b9 | 25702 | ac_cv_sizeof_void_p=0 |
77d6bd88 | 25703 | fi |
77d6bd88 | 25704 | fi |
33f5f8b9 | 25705 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
25706 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
25707 | cat >>confdefs.h <<_ACEOF | |
25708 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
25709 | _ACEOF | |
b65c7b0d | 25710 | |
b1e77ec1 | 25711 | |
3f961930 | 25712 | |
9c05977a | 25713 | echo "$as_me:$LINENO: checking for int8_t" >&5 |
25714 | echo $ECHO_N "checking for int8_t... $ECHO_C" >&6 | |
25715 | if test "${ac_cv_type_int8_t+set}" = set; then | |
25716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25717 | else | |
25718 | cat >conftest.$ac_ext <<_ACEOF | |
25719 | /* confdefs.h. */ | |
25720 | _ACEOF | |
25721 | cat confdefs.h >>conftest.$ac_ext | |
25722 | cat >>conftest.$ac_ext <<_ACEOF | |
25723 | /* end confdefs.h. */ | |
25724 | ||
25725 | /* What a mess.. many systems have added the (now standard) bit types | |
25726 | * in their own ways, so we need to scan a wide variety of headers to | |
25727 | * find them.. | |
25728 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
25729 | */ | |
25730 | #if HAVE_SYS_TYPES_H | |
25731 | #include <sys/types.h> | |
25732 | #endif | |
25733 | #if STDC_HEADERS | |
25734 | #include <stdlib.h> | |
25735 | #include <stddef.h> | |
25736 | #endif | |
25737 | #if HAVE_INTTYPES_H | |
25738 | #include <inttypes.h> | |
25739 | #endif | |
25740 | #if HAVE_SYS_BITYPES_H | |
25741 | #include <sys/bitypes.h> | |
25742 | #endif | |
25743 | #if HAVE_SYS_SELECT_H | |
25744 | #include <sys/select.h> | |
25745 | #endif | |
25746 | ||
25747 | ||
25748 | int | |
25749 | main () | |
25750 | { | |
25751 | if ((int8_t *) 0) | |
25752 | return 0; | |
25753 | if (sizeof (int8_t)) | |
25754 | return 0; | |
25755 | ; | |
25756 | return 0; | |
25757 | } | |
25758 | _ACEOF | |
25759 | rm -f conftest.$ac_objext | |
25760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25761 | (eval $ac_compile) 2>conftest.er1 | |
25762 | ac_status=$? | |
25763 | grep -v '^ *+' conftest.er1 >conftest.err | |
25764 | rm -f conftest.er1 | |
25765 | cat conftest.err >&5 | |
25766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25767 | (exit $ac_status); } && | |
25768 | { ac_try='test -z "$ac_c_werror_flag" | |
25769 | || test ! -s conftest.err' | |
25770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25771 | (eval $ac_try) 2>&5 | |
25772 | ac_status=$? | |
25773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25774 | (exit $ac_status); }; } && | |
25775 | { ac_try='test -s conftest.$ac_objext' | |
25776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25777 | (eval $ac_try) 2>&5 | |
25778 | ac_status=$? | |
25779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25780 | (exit $ac_status); }; }; then | |
25781 | ac_cv_type_int8_t=yes | |
25782 | else | |
25783 | echo "$as_me: failed program was:" >&5 | |
25784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25785 | ||
25786 | ac_cv_type_int8_t=no | |
25787 | fi | |
25788 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
25789 | fi | |
25790 | echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 | |
25791 | echo "${ECHO_T}$ac_cv_type_int8_t" >&6 | |
25792 | if test $ac_cv_type_int8_t = yes; then | |
25793 | ||
25794 | echo "$as_me:$LINENO: checking for int8_t" >&5 | |
25795 | echo $ECHO_N "checking for int8_t... $ECHO_C" >&6 | |
25796 | if test "${ac_cv_type_int8_t+set}" = set; then | |
25797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25798 | else | |
25799 | cat >conftest.$ac_ext <<_ACEOF | |
25800 | /* confdefs.h. */ | |
25801 | _ACEOF | |
25802 | cat confdefs.h >>conftest.$ac_ext | |
25803 | cat >>conftest.$ac_ext <<_ACEOF | |
25804 | /* end confdefs.h. */ | |
25805 | ||
25806 | #include <stdio.h> | |
25807 | ||
25808 | /* What a mess.. many systems have added the (now standard) bit types | |
25809 | * in their own ways, so we need to scan a wide variety of headers to | |
25810 | * find them.. | |
25811 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
25812 | */ | |
25813 | #if HAVE_SYS_TYPES_H | |
25814 | #include <sys/types.h> | |
25815 | #endif | |
25816 | #if STDC_HEADERS | |
25817 | #include <stdlib.h> | |
25818 | #include <stddef.h> | |
25819 | #endif | |
25820 | #if HAVE_INTTYPES_H | |
25821 | #include <inttypes.h> | |
25822 | #endif | |
25823 | #if HAVE_SYS_BITYPES_H | |
25824 | #include <sys/bitypes.h> | |
25825 | #endif | |
25826 | #if HAVE_SYS_SELECT_H | |
25827 | #include <sys/select.h> | |
25828 | #endif | |
25829 | ||
25830 | ||
25831 | ||
25832 | int | |
25833 | main () | |
25834 | { | |
25835 | if ((int8_t *) 0) | |
25836 | return 0; | |
25837 | if (sizeof (int8_t)) | |
25838 | return 0; | |
25839 | ; | |
25840 | return 0; | |
25841 | } | |
25842 | _ACEOF | |
25843 | rm -f conftest.$ac_objext | |
25844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25845 | (eval $ac_compile) 2>conftest.er1 | |
25846 | ac_status=$? | |
25847 | grep -v '^ *+' conftest.er1 >conftest.err | |
25848 | rm -f conftest.er1 | |
25849 | cat conftest.err >&5 | |
25850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25851 | (exit $ac_status); } && | |
25852 | { ac_try='test -z "$ac_c_werror_flag" | |
25853 | || test ! -s conftest.err' | |
25854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25855 | (eval $ac_try) 2>&5 | |
25856 | ac_status=$? | |
25857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25858 | (exit $ac_status); }; } && | |
25859 | { ac_try='test -s conftest.$ac_objext' | |
25860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25861 | (eval $ac_try) 2>&5 | |
25862 | ac_status=$? | |
25863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25864 | (exit $ac_status); }; }; then | |
25865 | ac_cv_type_int8_t=yes | |
25866 | else | |
25867 | echo "$as_me: failed program was:" >&5 | |
25868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25869 | ||
25870 | ac_cv_type_int8_t=no | |
25871 | fi | |
25872 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
25873 | fi | |
25874 | echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 | |
25875 | echo "${ECHO_T}$ac_cv_type_int8_t" >&6 | |
25876 | ||
25877 | echo "$as_me:$LINENO: checking size of int8_t" >&5 | |
25878 | echo $ECHO_N "checking size of int8_t... $ECHO_C" >&6 | |
25879 | if test "${ac_cv_sizeof_int8_t+set}" = set; then | |
25880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25881 | else | |
25882 | if test "$ac_cv_type_int8_t" = yes; then | |
25883 | # The cast to unsigned long works around a bug in the HP C Compiler | |
25884 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
25885 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
25886 | # This bug is HP SR number 8606223364. | |
25887 | if test "$cross_compiling" = yes; then | |
25888 | # Depending upon the size, compute the lo and hi bounds. | |
25889 | cat >conftest.$ac_ext <<_ACEOF | |
25890 | /* confdefs.h. */ | |
25891 | _ACEOF | |
25892 | cat confdefs.h >>conftest.$ac_ext | |
25893 | cat >>conftest.$ac_ext <<_ACEOF | |
25894 | /* end confdefs.h. */ | |
25895 | ||
25896 | #include <stdio.h> | |
25897 | ||
25898 | /* What a mess.. many systems have added the (now standard) bit types | |
25899 | * in their own ways, so we need to scan a wide variety of headers to | |
25900 | * find them.. | |
25901 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
25902 | */ | |
25903 | #if HAVE_SYS_TYPES_H | |
25904 | #include <sys/types.h> | |
25905 | #endif | |
25906 | #if STDC_HEADERS | |
25907 | #include <stdlib.h> | |
25908 | #include <stddef.h> | |
25909 | #endif | |
25910 | #if HAVE_INTTYPES_H | |
25911 | #include <inttypes.h> | |
25912 | #endif | |
25913 | #if HAVE_SYS_BITYPES_H | |
25914 | #include <sys/bitypes.h> | |
25915 | #endif | |
25916 | #if HAVE_SYS_SELECT_H | |
25917 | #include <sys/select.h> | |
25918 | #endif | |
25919 | ||
25920 | ||
25921 | ||
25922 | int | |
25923 | main () | |
25924 | { | |
25925 | static int test_array [1 - 2 * !(((long) (sizeof (int8_t))) >= 0)]; | |
25926 | test_array [0] = 0 | |
25927 | ||
25928 | ; | |
25929 | return 0; | |
25930 | } | |
25931 | _ACEOF | |
25932 | rm -f conftest.$ac_objext | |
25933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25934 | (eval $ac_compile) 2>conftest.er1 | |
25935 | ac_status=$? | |
25936 | grep -v '^ *+' conftest.er1 >conftest.err | |
25937 | rm -f conftest.er1 | |
25938 | cat conftest.err >&5 | |
25939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25940 | (exit $ac_status); } && | |
25941 | { ac_try='test -z "$ac_c_werror_flag" | |
25942 | || test ! -s conftest.err' | |
25943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25944 | (eval $ac_try) 2>&5 | |
25945 | ac_status=$? | |
25946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25947 | (exit $ac_status); }; } && | |
25948 | { ac_try='test -s conftest.$ac_objext' | |
25949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25950 | (eval $ac_try) 2>&5 | |
25951 | ac_status=$? | |
25952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25953 | (exit $ac_status); }; }; then | |
25954 | ac_lo=0 ac_mid=0 | |
25955 | while :; do | |
25956 | cat >conftest.$ac_ext <<_ACEOF | |
25957 | /* confdefs.h. */ | |
25958 | _ACEOF | |
25959 | cat confdefs.h >>conftest.$ac_ext | |
25960 | cat >>conftest.$ac_ext <<_ACEOF | |
25961 | /* end confdefs.h. */ | |
25962 | ||
25963 | #include <stdio.h> | |
25964 | ||
25965 | /* What a mess.. many systems have added the (now standard) bit types | |
25966 | * in their own ways, so we need to scan a wide variety of headers to | |
25967 | * find them.. | |
25968 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
25969 | */ | |
25970 | #if HAVE_SYS_TYPES_H | |
25971 | #include <sys/types.h> | |
25972 | #endif | |
25973 | #if STDC_HEADERS | |
25974 | #include <stdlib.h> | |
25975 | #include <stddef.h> | |
25976 | #endif | |
25977 | #if HAVE_INTTYPES_H | |
25978 | #include <inttypes.h> | |
25979 | #endif | |
25980 | #if HAVE_SYS_BITYPES_H | |
25981 | #include <sys/bitypes.h> | |
25982 | #endif | |
25983 | #if HAVE_SYS_SELECT_H | |
25984 | #include <sys/select.h> | |
25985 | #endif | |
25986 | ||
25987 | ||
25988 | ||
25989 | int | |
25990 | main () | |
25991 | { | |
25992 | static int test_array [1 - 2 * !(((long) (sizeof (int8_t))) <= $ac_mid)]; | |
25993 | test_array [0] = 0 | |
25994 | ||
25995 | ; | |
25996 | return 0; | |
25997 | } | |
25998 | _ACEOF | |
25999 | rm -f conftest.$ac_objext | |
26000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26001 | (eval $ac_compile) 2>conftest.er1 | |
26002 | ac_status=$? | |
26003 | grep -v '^ *+' conftest.er1 >conftest.err | |
26004 | rm -f conftest.er1 | |
26005 | cat conftest.err >&5 | |
26006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26007 | (exit $ac_status); } && | |
26008 | { ac_try='test -z "$ac_c_werror_flag" | |
26009 | || test ! -s conftest.err' | |
26010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26011 | (eval $ac_try) 2>&5 | |
26012 | ac_status=$? | |
26013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26014 | (exit $ac_status); }; } && | |
26015 | { ac_try='test -s conftest.$ac_objext' | |
26016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26017 | (eval $ac_try) 2>&5 | |
26018 | ac_status=$? | |
26019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26020 | (exit $ac_status); }; }; then | |
26021 | ac_hi=$ac_mid; break | |
26022 | else | |
26023 | echo "$as_me: failed program was:" >&5 | |
26024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26025 | ||
26026 | ac_lo=`expr $ac_mid + 1` | |
26027 | if test $ac_lo -le $ac_mid; then | |
26028 | ac_lo= ac_hi= | |
26029 | break | |
26030 | fi | |
26031 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
26032 | fi | |
26033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26034 | done | |
26035 | else | |
26036 | echo "$as_me: failed program was:" >&5 | |
26037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26038 | ||
26039 | cat >conftest.$ac_ext <<_ACEOF | |
26040 | /* confdefs.h. */ | |
26041 | _ACEOF | |
26042 | cat confdefs.h >>conftest.$ac_ext | |
26043 | cat >>conftest.$ac_ext <<_ACEOF | |
26044 | /* end confdefs.h. */ | |
26045 | ||
26046 | #include <stdio.h> | |
26047 | ||
26048 | /* What a mess.. many systems have added the (now standard) bit types | |
26049 | * in their own ways, so we need to scan a wide variety of headers to | |
26050 | * find them.. | |
26051 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
26052 | */ | |
26053 | #if HAVE_SYS_TYPES_H | |
26054 | #include <sys/types.h> | |
26055 | #endif | |
26056 | #if STDC_HEADERS | |
26057 | #include <stdlib.h> | |
26058 | #include <stddef.h> | |
26059 | #endif | |
26060 | #if HAVE_INTTYPES_H | |
26061 | #include <inttypes.h> | |
26062 | #endif | |
26063 | #if HAVE_SYS_BITYPES_H | |
26064 | #include <sys/bitypes.h> | |
26065 | #endif | |
26066 | #if HAVE_SYS_SELECT_H | |
26067 | #include <sys/select.h> | |
26068 | #endif | |
26069 | ||
26070 | ||
26071 | ||
26072 | int | |
26073 | main () | |
26074 | { | |
26075 | static int test_array [1 - 2 * !(((long) (sizeof (int8_t))) < 0)]; | |
26076 | test_array [0] = 0 | |
26077 | ||
26078 | ; | |
26079 | return 0; | |
26080 | } | |
26081 | _ACEOF | |
26082 | rm -f conftest.$ac_objext | |
26083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26084 | (eval $ac_compile) 2>conftest.er1 | |
26085 | ac_status=$? | |
26086 | grep -v '^ *+' conftest.er1 >conftest.err | |
26087 | rm -f conftest.er1 | |
26088 | cat conftest.err >&5 | |
26089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26090 | (exit $ac_status); } && | |
26091 | { ac_try='test -z "$ac_c_werror_flag" | |
26092 | || test ! -s conftest.err' | |
26093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26094 | (eval $ac_try) 2>&5 | |
26095 | ac_status=$? | |
26096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26097 | (exit $ac_status); }; } && | |
26098 | { ac_try='test -s conftest.$ac_objext' | |
26099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26100 | (eval $ac_try) 2>&5 | |
26101 | ac_status=$? | |
26102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26103 | (exit $ac_status); }; }; then | |
26104 | ac_hi=-1 ac_mid=-1 | |
26105 | while :; do | |
26106 | cat >conftest.$ac_ext <<_ACEOF | |
26107 | /* confdefs.h. */ | |
26108 | _ACEOF | |
26109 | cat confdefs.h >>conftest.$ac_ext | |
26110 | cat >>conftest.$ac_ext <<_ACEOF | |
26111 | /* end confdefs.h. */ | |
26112 | ||
26113 | #include <stdio.h> | |
26114 | ||
26115 | /* What a mess.. many systems have added the (now standard) bit types | |
26116 | * in their own ways, so we need to scan a wide variety of headers to | |
26117 | * find them.. | |
26118 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
26119 | */ | |
26120 | #if HAVE_SYS_TYPES_H | |
26121 | #include <sys/types.h> | |
26122 | #endif | |
26123 | #if STDC_HEADERS | |
26124 | #include <stdlib.h> | |
26125 | #include <stddef.h> | |
26126 | #endif | |
26127 | #if HAVE_INTTYPES_H | |
26128 | #include <inttypes.h> | |
26129 | #endif | |
26130 | #if HAVE_SYS_BITYPES_H | |
26131 | #include <sys/bitypes.h> | |
26132 | #endif | |
26133 | #if HAVE_SYS_SELECT_H | |
26134 | #include <sys/select.h> | |
26135 | #endif | |
26136 | ||
26137 | ||
26138 | ||
26139 | int | |
26140 | main () | |
26141 | { | |
26142 | static int test_array [1 - 2 * !(((long) (sizeof (int8_t))) >= $ac_mid)]; | |
26143 | test_array [0] = 0 | |
26144 | ||
26145 | ; | |
26146 | return 0; | |
26147 | } | |
26148 | _ACEOF | |
26149 | rm -f conftest.$ac_objext | |
26150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26151 | (eval $ac_compile) 2>conftest.er1 | |
26152 | ac_status=$? | |
26153 | grep -v '^ *+' conftest.er1 >conftest.err | |
26154 | rm -f conftest.er1 | |
26155 | cat conftest.err >&5 | |
26156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26157 | (exit $ac_status); } && | |
26158 | { ac_try='test -z "$ac_c_werror_flag" | |
26159 | || test ! -s conftest.err' | |
26160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26161 | (eval $ac_try) 2>&5 | |
26162 | ac_status=$? | |
26163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26164 | (exit $ac_status); }; } && | |
26165 | { ac_try='test -s conftest.$ac_objext' | |
26166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26167 | (eval $ac_try) 2>&5 | |
26168 | ac_status=$? | |
26169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26170 | (exit $ac_status); }; }; then | |
26171 | ac_lo=$ac_mid; break | |
26172 | else | |
26173 | echo "$as_me: failed program was:" >&5 | |
26174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26175 | ||
26176 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
26177 | if test $ac_mid -le $ac_hi; then | |
26178 | ac_lo= ac_hi= | |
26179 | break | |
26180 | fi | |
26181 | ac_mid=`expr 2 '*' $ac_mid` | |
26182 | fi | |
26183 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26184 | done | |
26185 | else | |
26186 | echo "$as_me: failed program was:" >&5 | |
26187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26188 | ||
26189 | ac_lo= ac_hi= | |
26190 | fi | |
26191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26192 | fi | |
26193 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26194 | # Binary search between lo and hi bounds. | |
26195 | while test "x$ac_lo" != "x$ac_hi"; do | |
26196 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
26197 | cat >conftest.$ac_ext <<_ACEOF | |
26198 | /* confdefs.h. */ | |
26199 | _ACEOF | |
26200 | cat confdefs.h >>conftest.$ac_ext | |
26201 | cat >>conftest.$ac_ext <<_ACEOF | |
26202 | /* end confdefs.h. */ | |
26203 | ||
26204 | #include <stdio.h> | |
26205 | ||
26206 | /* What a mess.. many systems have added the (now standard) bit types | |
26207 | * in their own ways, so we need to scan a wide variety of headers to | |
26208 | * find them.. | |
26209 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
26210 | */ | |
26211 | #if HAVE_SYS_TYPES_H | |
26212 | #include <sys/types.h> | |
26213 | #endif | |
26214 | #if STDC_HEADERS | |
26215 | #include <stdlib.h> | |
26216 | #include <stddef.h> | |
26217 | #endif | |
26218 | #if HAVE_INTTYPES_H | |
26219 | #include <inttypes.h> | |
26220 | #endif | |
26221 | #if HAVE_SYS_BITYPES_H | |
26222 | #include <sys/bitypes.h> | |
26223 | #endif | |
26224 | #if HAVE_SYS_SELECT_H | |
26225 | #include <sys/select.h> | |
26226 | #endif | |
26227 | ||
26228 | ||
26229 | ||
26230 | int | |
26231 | main () | |
26232 | { | |
26233 | static int test_array [1 - 2 * !(((long) (sizeof (int8_t))) <= $ac_mid)]; | |
26234 | test_array [0] = 0 | |
26235 | ||
26236 | ; | |
26237 | return 0; | |
26238 | } | |
26239 | _ACEOF | |
26240 | rm -f conftest.$ac_objext | |
26241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26242 | (eval $ac_compile) 2>conftest.er1 | |
26243 | ac_status=$? | |
26244 | grep -v '^ *+' conftest.er1 >conftest.err | |
26245 | rm -f conftest.er1 | |
26246 | cat conftest.err >&5 | |
26247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26248 | (exit $ac_status); } && | |
26249 | { ac_try='test -z "$ac_c_werror_flag" | |
26250 | || test ! -s conftest.err' | |
26251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26252 | (eval $ac_try) 2>&5 | |
26253 | ac_status=$? | |
26254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26255 | (exit $ac_status); }; } && | |
26256 | { ac_try='test -s conftest.$ac_objext' | |
26257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26258 | (eval $ac_try) 2>&5 | |
26259 | ac_status=$? | |
26260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26261 | (exit $ac_status); }; }; then | |
26262 | ac_hi=$ac_mid | |
26263 | else | |
26264 | echo "$as_me: failed program was:" >&5 | |
26265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26266 | ||
26267 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
26268 | fi | |
26269 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26270 | done | |
26271 | case $ac_lo in | |
26272 | ?*) ac_cv_sizeof_int8_t=$ac_lo;; | |
26273 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int8_t), 77 | |
26274 | See \`config.log' for more details." >&5 | |
26275 | echo "$as_me: error: cannot compute sizeof (int8_t), 77 | |
26276 | See \`config.log' for more details." >&2;} | |
26277 | { (exit 1); exit 1; }; } ;; | |
26278 | esac | |
26279 | else | |
26280 | if test "$cross_compiling" = yes; then | |
26281 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
26282 | See \`config.log' for more details." >&5 | |
26283 | echo "$as_me: error: cannot run test program while cross compiling | |
26284 | See \`config.log' for more details." >&2;} | |
26285 | { (exit 1); exit 1; }; } | |
26286 | else | |
26287 | cat >conftest.$ac_ext <<_ACEOF | |
26288 | /* confdefs.h. */ | |
26289 | _ACEOF | |
26290 | cat confdefs.h >>conftest.$ac_ext | |
26291 | cat >>conftest.$ac_ext <<_ACEOF | |
26292 | /* end confdefs.h. */ | |
26293 | ||
26294 | #include <stdio.h> | |
26295 | ||
26296 | /* What a mess.. many systems have added the (now standard) bit types | |
26297 | * in their own ways, so we need to scan a wide variety of headers to | |
26298 | * find them.. | |
26299 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
26300 | */ | |
26301 | #if HAVE_SYS_TYPES_H | |
26302 | #include <sys/types.h> | |
26303 | #endif | |
26304 | #if STDC_HEADERS | |
26305 | #include <stdlib.h> | |
26306 | #include <stddef.h> | |
26307 | #endif | |
26308 | #if HAVE_INTTYPES_H | |
26309 | #include <inttypes.h> | |
26310 | #endif | |
26311 | #if HAVE_SYS_BITYPES_H | |
26312 | #include <sys/bitypes.h> | |
26313 | #endif | |
26314 | #if HAVE_SYS_SELECT_H | |
26315 | #include <sys/select.h> | |
26316 | #endif | |
26317 | ||
26318 | ||
26319 | ||
26320 | long longval () { return (long) (sizeof (int8_t)); } | |
26321 | unsigned long ulongval () { return (long) (sizeof (int8_t)); } | |
26322 | #include <stdio.h> | |
26323 | #include <stdlib.h> | |
26324 | int | |
26325 | main () | |
26326 | { | |
26327 | ||
26328 | FILE *f = fopen ("conftest.val", "w"); | |
26329 | if (! f) | |
26330 | exit (1); | |
26331 | if (((long) (sizeof (int8_t))) < 0) | |
26332 | { | |
26333 | long i = longval (); | |
26334 | if (i != ((long) (sizeof (int8_t)))) | |
26335 | exit (1); | |
26336 | fprintf (f, "%ld\n", i); | |
26337 | } | |
26338 | else | |
26339 | { | |
26340 | unsigned long i = ulongval (); | |
26341 | if (i != ((long) (sizeof (int8_t)))) | |
26342 | exit (1); | |
26343 | fprintf (f, "%lu\n", i); | |
26344 | } | |
26345 | exit (ferror (f) || fclose (f) != 0); | |
26346 | ||
26347 | ; | |
26348 | return 0; | |
26349 | } | |
26350 | _ACEOF | |
26351 | rm -f conftest$ac_exeext | |
26352 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26353 | (eval $ac_link) 2>&5 | |
26354 | ac_status=$? | |
26355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26356 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
26357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26358 | (eval $ac_try) 2>&5 | |
26359 | ac_status=$? | |
26360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26361 | (exit $ac_status); }; }; then | |
26362 | ac_cv_sizeof_int8_t=`cat conftest.val` | |
26363 | else | |
26364 | echo "$as_me: program exited with status $ac_status" >&5 | |
26365 | echo "$as_me: failed program was:" >&5 | |
26366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26367 | ||
26368 | ( exit $ac_status ) | |
26369 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int8_t), 77 | |
26370 | See \`config.log' for more details." >&5 | |
26371 | echo "$as_me: error: cannot compute sizeof (int8_t), 77 | |
26372 | See \`config.log' for more details." >&2;} | |
26373 | { (exit 1); exit 1; }; } | |
26374 | fi | |
26375 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
26376 | fi | |
26377 | fi | |
26378 | rm -f conftest.val | |
26379 | else | |
26380 | ac_cv_sizeof_int8_t=0 | |
26381 | fi | |
26382 | fi | |
26383 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int8_t" >&5 | |
26384 | echo "${ECHO_T}$ac_cv_sizeof_int8_t" >&6 | |
26385 | cat >>confdefs.h <<_ACEOF | |
26386 | #define SIZEOF_INT8_T $ac_cv_sizeof_int8_t | |
26387 | _ACEOF | |
26388 | ||
26389 | ||
26390 | ||
26391 | cat >>confdefs.h <<\_ACEOF | |
26392 | #define HAVE_INT8_T 1 | |
26393 | _ACEOF | |
26394 | ||
26395 | ||
26396 | fi | |
26397 | ||
26398 | ||
26399 | echo "$as_me:$LINENO: checking for char" >&5 | |
26400 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
26401 | if test "${ac_cv_type_char+set}" = set; then | |
26402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26403 | else | |
26404 | cat >conftest.$ac_ext <<_ACEOF | |
26405 | /* confdefs.h. */ | |
26406 | _ACEOF | |
26407 | cat confdefs.h >>conftest.$ac_ext | |
26408 | cat >>conftest.$ac_ext <<_ACEOF | |
26409 | /* end confdefs.h. */ | |
26410 | ||
26411 | /* What a mess.. many systems have added the (now standard) bit types | |
26412 | * in their own ways, so we need to scan a wide variety of headers to | |
26413 | * find them.. | |
26414 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
26415 | */ | |
26416 | #if HAVE_SYS_TYPES_H | |
26417 | #include <sys/types.h> | |
26418 | #endif | |
26419 | #if STDC_HEADERS | |
26420 | #include <stdlib.h> | |
26421 | #include <stddef.h> | |
26422 | #endif | |
26423 | #if HAVE_INTTYPES_H | |
26424 | #include <inttypes.h> | |
26425 | #endif | |
26426 | #if HAVE_SYS_BITYPES_H | |
26427 | #include <sys/bitypes.h> | |
26428 | #endif | |
26429 | #if HAVE_SYS_SELECT_H | |
26430 | #include <sys/select.h> | |
26431 | #endif | |
26432 | ||
26433 | ||
26434 | int | |
26435 | main () | |
26436 | { | |
26437 | if ((char *) 0) | |
26438 | return 0; | |
26439 | if (sizeof (char)) | |
26440 | return 0; | |
26441 | ; | |
26442 | return 0; | |
26443 | } | |
26444 | _ACEOF | |
26445 | rm -f conftest.$ac_objext | |
26446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26447 | (eval $ac_compile) 2>conftest.er1 | |
26448 | ac_status=$? | |
26449 | grep -v '^ *+' conftest.er1 >conftest.err | |
26450 | rm -f conftest.er1 | |
26451 | cat conftest.err >&5 | |
26452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26453 | (exit $ac_status); } && | |
26454 | { ac_try='test -z "$ac_c_werror_flag" | |
26455 | || test ! -s conftest.err' | |
26456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26457 | (eval $ac_try) 2>&5 | |
26458 | ac_status=$? | |
26459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26460 | (exit $ac_status); }; } && | |
26461 | { ac_try='test -s conftest.$ac_objext' | |
26462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26463 | (eval $ac_try) 2>&5 | |
26464 | ac_status=$? | |
26465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26466 | (exit $ac_status); }; }; then | |
26467 | ac_cv_type_char=yes | |
26468 | else | |
26469 | echo "$as_me: failed program was:" >&5 | |
26470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26471 | ||
26472 | ac_cv_type_char=no | |
26473 | fi | |
26474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26475 | fi | |
26476 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
26477 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
26478 | if test $ac_cv_type_char = yes; then | |
26479 | ||
26480 | echo "$as_me:$LINENO: checking for char" >&5 | |
26481 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
26482 | if test "${ac_cv_type_char+set}" = set; then | |
26483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26484 | else | |
26485 | cat >conftest.$ac_ext <<_ACEOF | |
26486 | /* confdefs.h. */ | |
26487 | _ACEOF | |
26488 | cat confdefs.h >>conftest.$ac_ext | |
26489 | cat >>conftest.$ac_ext <<_ACEOF | |
26490 | /* end confdefs.h. */ | |
26491 | ||
26492 | #include <stdio.h> | |
26493 | ||
26494 | /* What a mess.. many systems have added the (now standard) bit types | |
26495 | * in their own ways, so we need to scan a wide variety of headers to | |
26496 | * find them.. | |
26497 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
26498 | */ | |
26499 | #if HAVE_SYS_TYPES_H | |
26500 | #include <sys/types.h> | |
26501 | #endif | |
26502 | #if STDC_HEADERS | |
26503 | #include <stdlib.h> | |
26504 | #include <stddef.h> | |
26505 | #endif | |
26506 | #if HAVE_INTTYPES_H | |
26507 | #include <inttypes.h> | |
26508 | #endif | |
26509 | #if HAVE_SYS_BITYPES_H | |
26510 | #include <sys/bitypes.h> | |
26511 | #endif | |
26512 | #if HAVE_SYS_SELECT_H | |
26513 | #include <sys/select.h> | |
26514 | #endif | |
26515 | ||
26516 | ||
26517 | ||
26518 | int | |
26519 | main () | |
26520 | { | |
26521 | if ((char *) 0) | |
26522 | return 0; | |
26523 | if (sizeof (char)) | |
26524 | return 0; | |
26525 | ; | |
26526 | return 0; | |
26527 | } | |
26528 | _ACEOF | |
26529 | rm -f conftest.$ac_objext | |
26530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26531 | (eval $ac_compile) 2>conftest.er1 | |
26532 | ac_status=$? | |
26533 | grep -v '^ *+' conftest.er1 >conftest.err | |
26534 | rm -f conftest.er1 | |
26535 | cat conftest.err >&5 | |
26536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26537 | (exit $ac_status); } && | |
26538 | { ac_try='test -z "$ac_c_werror_flag" | |
26539 | || test ! -s conftest.err' | |
26540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26541 | (eval $ac_try) 2>&5 | |
26542 | ac_status=$? | |
26543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26544 | (exit $ac_status); }; } && | |
26545 | { ac_try='test -s conftest.$ac_objext' | |
26546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26547 | (eval $ac_try) 2>&5 | |
26548 | ac_status=$? | |
26549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26550 | (exit $ac_status); }; }; then | |
26551 | ac_cv_type_char=yes | |
26552 | else | |
26553 | echo "$as_me: failed program was:" >&5 | |
26554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26555 | ||
26556 | ac_cv_type_char=no | |
26557 | fi | |
26558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26559 | fi | |
26560 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
26561 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
26562 | ||
26563 | echo "$as_me:$LINENO: checking size of char" >&5 | |
26564 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
26565 | if test "${ac_cv_sizeof_char+set}" = set; then | |
26566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26567 | else | |
26568 | if test "$ac_cv_type_char" = yes; then | |
26569 | # The cast to unsigned long works around a bug in the HP C Compiler | |
26570 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
26571 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
26572 | # This bug is HP SR number 8606223364. | |
26573 | if test "$cross_compiling" = yes; then | |
26574 | # Depending upon the size, compute the lo and hi bounds. | |
26575 | cat >conftest.$ac_ext <<_ACEOF | |
26576 | /* confdefs.h. */ | |
26577 | _ACEOF | |
26578 | cat confdefs.h >>conftest.$ac_ext | |
26579 | cat >>conftest.$ac_ext <<_ACEOF | |
26580 | /* end confdefs.h. */ | |
26581 | ||
26582 | #include <stdio.h> | |
26583 | ||
26584 | /* What a mess.. many systems have added the (now standard) bit types | |
26585 | * in their own ways, so we need to scan a wide variety of headers to | |
26586 | * find them.. | |
26587 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
26588 | */ | |
26589 | #if HAVE_SYS_TYPES_H | |
26590 | #include <sys/types.h> | |
26591 | #endif | |
26592 | #if STDC_HEADERS | |
26593 | #include <stdlib.h> | |
26594 | #include <stddef.h> | |
26595 | #endif | |
26596 | #if HAVE_INTTYPES_H | |
26597 | #include <inttypes.h> | |
26598 | #endif | |
26599 | #if HAVE_SYS_BITYPES_H | |
26600 | #include <sys/bitypes.h> | |
26601 | #endif | |
26602 | #if HAVE_SYS_SELECT_H | |
26603 | #include <sys/select.h> | |
26604 | #endif | |
26605 | ||
26606 | ||
26607 | ||
26608 | int | |
26609 | main () | |
26610 | { | |
26611 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
26612 | test_array [0] = 0 | |
26613 | ||
26614 | ; | |
26615 | return 0; | |
26616 | } | |
26617 | _ACEOF | |
26618 | rm -f conftest.$ac_objext | |
26619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26620 | (eval $ac_compile) 2>conftest.er1 | |
26621 | ac_status=$? | |
26622 | grep -v '^ *+' conftest.er1 >conftest.err | |
26623 | rm -f conftest.er1 | |
26624 | cat conftest.err >&5 | |
26625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26626 | (exit $ac_status); } && | |
26627 | { ac_try='test -z "$ac_c_werror_flag" | |
26628 | || test ! -s conftest.err' | |
26629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26630 | (eval $ac_try) 2>&5 | |
26631 | ac_status=$? | |
26632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26633 | (exit $ac_status); }; } && | |
26634 | { ac_try='test -s conftest.$ac_objext' | |
26635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26636 | (eval $ac_try) 2>&5 | |
26637 | ac_status=$? | |
26638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26639 | (exit $ac_status); }; }; then | |
26640 | ac_lo=0 ac_mid=0 | |
26641 | while :; do | |
26642 | cat >conftest.$ac_ext <<_ACEOF | |
26643 | /* confdefs.h. */ | |
26644 | _ACEOF | |
26645 | cat confdefs.h >>conftest.$ac_ext | |
26646 | cat >>conftest.$ac_ext <<_ACEOF | |
26647 | /* end confdefs.h. */ | |
26648 | ||
26649 | #include <stdio.h> | |
26650 | ||
26651 | /* What a mess.. many systems have added the (now standard) bit types | |
26652 | * in their own ways, so we need to scan a wide variety of headers to | |
26653 | * find them.. | |
26654 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
26655 | */ | |
26656 | #if HAVE_SYS_TYPES_H | |
26657 | #include <sys/types.h> | |
26658 | #endif | |
26659 | #if STDC_HEADERS | |
26660 | #include <stdlib.h> | |
26661 | #include <stddef.h> | |
26662 | #endif | |
26663 | #if HAVE_INTTYPES_H | |
26664 | #include <inttypes.h> | |
26665 | #endif | |
26666 | #if HAVE_SYS_BITYPES_H | |
26667 | #include <sys/bitypes.h> | |
26668 | #endif | |
26669 | #if HAVE_SYS_SELECT_H | |
26670 | #include <sys/select.h> | |
26671 | #endif | |
26672 | ||
26673 | ||
26674 | ||
26675 | int | |
26676 | main () | |
26677 | { | |
26678 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
26679 | test_array [0] = 0 | |
26680 | ||
26681 | ; | |
26682 | return 0; | |
26683 | } | |
26684 | _ACEOF | |
26685 | rm -f conftest.$ac_objext | |
26686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26687 | (eval $ac_compile) 2>conftest.er1 | |
26688 | ac_status=$? | |
26689 | grep -v '^ *+' conftest.er1 >conftest.err | |
26690 | rm -f conftest.er1 | |
26691 | cat conftest.err >&5 | |
26692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26693 | (exit $ac_status); } && | |
26694 | { ac_try='test -z "$ac_c_werror_flag" | |
26695 | || test ! -s conftest.err' | |
26696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26697 | (eval $ac_try) 2>&5 | |
26698 | ac_status=$? | |
26699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26700 | (exit $ac_status); }; } && | |
26701 | { ac_try='test -s conftest.$ac_objext' | |
26702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26703 | (eval $ac_try) 2>&5 | |
26704 | ac_status=$? | |
26705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26706 | (exit $ac_status); }; }; then | |
26707 | ac_hi=$ac_mid; break | |
26708 | else | |
26709 | echo "$as_me: failed program was:" >&5 | |
26710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26711 | ||
26712 | ac_lo=`expr $ac_mid + 1` | |
26713 | if test $ac_lo -le $ac_mid; then | |
26714 | ac_lo= ac_hi= | |
26715 | break | |
26716 | fi | |
26717 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
26718 | fi | |
26719 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26720 | done | |
26721 | else | |
26722 | echo "$as_me: failed program was:" >&5 | |
26723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26724 | ||
26725 | cat >conftest.$ac_ext <<_ACEOF | |
26726 | /* confdefs.h. */ | |
26727 | _ACEOF | |
26728 | cat confdefs.h >>conftest.$ac_ext | |
26729 | cat >>conftest.$ac_ext <<_ACEOF | |
26730 | /* end confdefs.h. */ | |
26731 | ||
26732 | #include <stdio.h> | |
26733 | ||
26734 | /* What a mess.. many systems have added the (now standard) bit types | |
26735 | * in their own ways, so we need to scan a wide variety of headers to | |
26736 | * find them.. | |
26737 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
26738 | */ | |
26739 | #if HAVE_SYS_TYPES_H | |
26740 | #include <sys/types.h> | |
26741 | #endif | |
26742 | #if STDC_HEADERS | |
26743 | #include <stdlib.h> | |
26744 | #include <stddef.h> | |
26745 | #endif | |
26746 | #if HAVE_INTTYPES_H | |
26747 | #include <inttypes.h> | |
26748 | #endif | |
26749 | #if HAVE_SYS_BITYPES_H | |
26750 | #include <sys/bitypes.h> | |
26751 | #endif | |
26752 | #if HAVE_SYS_SELECT_H | |
26753 | #include <sys/select.h> | |
26754 | #endif | |
26755 | ||
26756 | ||
26757 | ||
26758 | int | |
26759 | main () | |
26760 | { | |
26761 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
26762 | test_array [0] = 0 | |
26763 | ||
26764 | ; | |
26765 | return 0; | |
26766 | } | |
26767 | _ACEOF | |
26768 | rm -f conftest.$ac_objext | |
26769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26770 | (eval $ac_compile) 2>conftest.er1 | |
26771 | ac_status=$? | |
26772 | grep -v '^ *+' conftest.er1 >conftest.err | |
26773 | rm -f conftest.er1 | |
26774 | cat conftest.err >&5 | |
26775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26776 | (exit $ac_status); } && | |
26777 | { ac_try='test -z "$ac_c_werror_flag" | |
26778 | || test ! -s conftest.err' | |
26779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26780 | (eval $ac_try) 2>&5 | |
26781 | ac_status=$? | |
26782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26783 | (exit $ac_status); }; } && | |
26784 | { ac_try='test -s conftest.$ac_objext' | |
26785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26786 | (eval $ac_try) 2>&5 | |
26787 | ac_status=$? | |
26788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26789 | (exit $ac_status); }; }; then | |
26790 | ac_hi=-1 ac_mid=-1 | |
26791 | while :; do | |
26792 | cat >conftest.$ac_ext <<_ACEOF | |
26793 | /* confdefs.h. */ | |
26794 | _ACEOF | |
26795 | cat confdefs.h >>conftest.$ac_ext | |
26796 | cat >>conftest.$ac_ext <<_ACEOF | |
26797 | /* end confdefs.h. */ | |
26798 | ||
26799 | #include <stdio.h> | |
26800 | ||
26801 | /* What a mess.. many systems have added the (now standard) bit types | |
26802 | * in their own ways, so we need to scan a wide variety of headers to | |
26803 | * find them.. | |
26804 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
26805 | */ | |
26806 | #if HAVE_SYS_TYPES_H | |
26807 | #include <sys/types.h> | |
26808 | #endif | |
26809 | #if STDC_HEADERS | |
26810 | #include <stdlib.h> | |
26811 | #include <stddef.h> | |
26812 | #endif | |
26813 | #if HAVE_INTTYPES_H | |
26814 | #include <inttypes.h> | |
26815 | #endif | |
26816 | #if HAVE_SYS_BITYPES_H | |
26817 | #include <sys/bitypes.h> | |
26818 | #endif | |
26819 | #if HAVE_SYS_SELECT_H | |
26820 | #include <sys/select.h> | |
26821 | #endif | |
26822 | ||
26823 | ||
26824 | ||
26825 | int | |
26826 | main () | |
26827 | { | |
26828 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
26829 | test_array [0] = 0 | |
26830 | ||
26831 | ; | |
26832 | return 0; | |
26833 | } | |
26834 | _ACEOF | |
26835 | rm -f conftest.$ac_objext | |
26836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26837 | (eval $ac_compile) 2>conftest.er1 | |
26838 | ac_status=$? | |
26839 | grep -v '^ *+' conftest.er1 >conftest.err | |
26840 | rm -f conftest.er1 | |
26841 | cat conftest.err >&5 | |
26842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26843 | (exit $ac_status); } && | |
26844 | { ac_try='test -z "$ac_c_werror_flag" | |
26845 | || test ! -s conftest.err' | |
26846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26847 | (eval $ac_try) 2>&5 | |
26848 | ac_status=$? | |
26849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26850 | (exit $ac_status); }; } && | |
26851 | { ac_try='test -s conftest.$ac_objext' | |
26852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26853 | (eval $ac_try) 2>&5 | |
26854 | ac_status=$? | |
26855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26856 | (exit $ac_status); }; }; then | |
26857 | ac_lo=$ac_mid; break | |
26858 | else | |
26859 | echo "$as_me: failed program was:" >&5 | |
26860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26861 | ||
26862 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
26863 | if test $ac_mid -le $ac_hi; then | |
26864 | ac_lo= ac_hi= | |
26865 | break | |
26866 | fi | |
26867 | ac_mid=`expr 2 '*' $ac_mid` | |
26868 | fi | |
26869 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26870 | done | |
26871 | else | |
26872 | echo "$as_me: failed program was:" >&5 | |
26873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26874 | ||
26875 | ac_lo= ac_hi= | |
26876 | fi | |
26877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26878 | fi | |
26879 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26880 | # Binary search between lo and hi bounds. | |
26881 | while test "x$ac_lo" != "x$ac_hi"; do | |
26882 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
26883 | cat >conftest.$ac_ext <<_ACEOF | |
26884 | /* confdefs.h. */ | |
26885 | _ACEOF | |
26886 | cat confdefs.h >>conftest.$ac_ext | |
26887 | cat >>conftest.$ac_ext <<_ACEOF | |
26888 | /* end confdefs.h. */ | |
26889 | ||
26890 | #include <stdio.h> | |
26891 | ||
26892 | /* What a mess.. many systems have added the (now standard) bit types | |
26893 | * in their own ways, so we need to scan a wide variety of headers to | |
26894 | * find them.. | |
26895 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
26896 | */ | |
26897 | #if HAVE_SYS_TYPES_H | |
26898 | #include <sys/types.h> | |
26899 | #endif | |
26900 | #if STDC_HEADERS | |
26901 | #include <stdlib.h> | |
26902 | #include <stddef.h> | |
26903 | #endif | |
26904 | #if HAVE_INTTYPES_H | |
26905 | #include <inttypes.h> | |
26906 | #endif | |
26907 | #if HAVE_SYS_BITYPES_H | |
26908 | #include <sys/bitypes.h> | |
26909 | #endif | |
26910 | #if HAVE_SYS_SELECT_H | |
26911 | #include <sys/select.h> | |
26912 | #endif | |
26913 | ||
26914 | ||
26915 | ||
26916 | int | |
26917 | main () | |
26918 | { | |
26919 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
26920 | test_array [0] = 0 | |
26921 | ||
26922 | ; | |
26923 | return 0; | |
26924 | } | |
26925 | _ACEOF | |
26926 | rm -f conftest.$ac_objext | |
26927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26928 | (eval $ac_compile) 2>conftest.er1 | |
26929 | ac_status=$? | |
26930 | grep -v '^ *+' conftest.er1 >conftest.err | |
26931 | rm -f conftest.er1 | |
26932 | cat conftest.err >&5 | |
26933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26934 | (exit $ac_status); } && | |
26935 | { ac_try='test -z "$ac_c_werror_flag" | |
26936 | || test ! -s conftest.err' | |
26937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26938 | (eval $ac_try) 2>&5 | |
26939 | ac_status=$? | |
26940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26941 | (exit $ac_status); }; } && | |
26942 | { ac_try='test -s conftest.$ac_objext' | |
26943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26944 | (eval $ac_try) 2>&5 | |
26945 | ac_status=$? | |
26946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26947 | (exit $ac_status); }; }; then | |
26948 | ac_hi=$ac_mid | |
26949 | else | |
26950 | echo "$as_me: failed program was:" >&5 | |
26951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26952 | ||
26953 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
26954 | fi | |
26955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
26956 | done | |
26957 | case $ac_lo in | |
26958 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
26959 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
26960 | See \`config.log' for more details." >&5 | |
26961 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
26962 | See \`config.log' for more details." >&2;} | |
26963 | { (exit 1); exit 1; }; } ;; | |
26964 | esac | |
26965 | else | |
26966 | if test "$cross_compiling" = yes; then | |
26967 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
26968 | See \`config.log' for more details." >&5 | |
26969 | echo "$as_me: error: cannot run test program while cross compiling | |
26970 | See \`config.log' for more details." >&2;} | |
26971 | { (exit 1); exit 1; }; } | |
26972 | else | |
26973 | cat >conftest.$ac_ext <<_ACEOF | |
26974 | /* confdefs.h. */ | |
26975 | _ACEOF | |
26976 | cat confdefs.h >>conftest.$ac_ext | |
26977 | cat >>conftest.$ac_ext <<_ACEOF | |
26978 | /* end confdefs.h. */ | |
26979 | ||
26980 | #include <stdio.h> | |
26981 | ||
26982 | /* What a mess.. many systems have added the (now standard) bit types | |
26983 | * in their own ways, so we need to scan a wide variety of headers to | |
26984 | * find them.. | |
26985 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
26986 | */ | |
26987 | #if HAVE_SYS_TYPES_H | |
26988 | #include <sys/types.h> | |
26989 | #endif | |
26990 | #if STDC_HEADERS | |
26991 | #include <stdlib.h> | |
26992 | #include <stddef.h> | |
26993 | #endif | |
26994 | #if HAVE_INTTYPES_H | |
26995 | #include <inttypes.h> | |
26996 | #endif | |
26997 | #if HAVE_SYS_BITYPES_H | |
26998 | #include <sys/bitypes.h> | |
26999 | #endif | |
27000 | #if HAVE_SYS_SELECT_H | |
27001 | #include <sys/select.h> | |
27002 | #endif | |
27003 | ||
27004 | ||
27005 | ||
27006 | long longval () { return (long) (sizeof (char)); } | |
27007 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
27008 | #include <stdio.h> | |
27009 | #include <stdlib.h> | |
27010 | int | |
27011 | main () | |
27012 | { | |
27013 | ||
27014 | FILE *f = fopen ("conftest.val", "w"); | |
27015 | if (! f) | |
27016 | exit (1); | |
27017 | if (((long) (sizeof (char))) < 0) | |
27018 | { | |
27019 | long i = longval (); | |
27020 | if (i != ((long) (sizeof (char)))) | |
27021 | exit (1); | |
27022 | fprintf (f, "%ld\n", i); | |
27023 | } | |
27024 | else | |
27025 | { | |
27026 | unsigned long i = ulongval (); | |
27027 | if (i != ((long) (sizeof (char)))) | |
27028 | exit (1); | |
27029 | fprintf (f, "%lu\n", i); | |
27030 | } | |
27031 | exit (ferror (f) || fclose (f) != 0); | |
27032 | ||
27033 | ; | |
27034 | return 0; | |
27035 | } | |
27036 | _ACEOF | |
27037 | rm -f conftest$ac_exeext | |
27038 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27039 | (eval $ac_link) 2>&5 | |
27040 | ac_status=$? | |
27041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27042 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
27043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27044 | (eval $ac_try) 2>&5 | |
27045 | ac_status=$? | |
27046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27047 | (exit $ac_status); }; }; then | |
27048 | ac_cv_sizeof_char=`cat conftest.val` | |
27049 | else | |
27050 | echo "$as_me: program exited with status $ac_status" >&5 | |
27051 | echo "$as_me: failed program was:" >&5 | |
27052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27053 | ||
27054 | ( exit $ac_status ) | |
27055 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
27056 | See \`config.log' for more details." >&5 | |
27057 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
27058 | See \`config.log' for more details." >&2;} | |
27059 | { (exit 1); exit 1; }; } | |
27060 | fi | |
27061 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
27062 | fi | |
27063 | fi | |
27064 | rm -f conftest.val | |
27065 | else | |
27066 | ac_cv_sizeof_char=0 | |
27067 | fi | |
27068 | fi | |
27069 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
27070 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
27071 | cat >>confdefs.h <<_ACEOF | |
27072 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
27073 | _ACEOF | |
27074 | ||
27075 | ||
27076 | ||
27077 | cat >>confdefs.h <<\_ACEOF | |
27078 | #define HAVE_CHAR 1 | |
27079 | _ACEOF | |
27080 | ||
27081 | ||
27082 | fi | |
27083 | ||
27084 | ||
27085 | echo "$as_me:$LINENO: checking for u_int8_t" >&5 | |
27086 | echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6 | |
27087 | if test "${ac_cv_type_u_int8_t+set}" = set; then | |
27088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27089 | else | |
27090 | cat >conftest.$ac_ext <<_ACEOF | |
27091 | /* confdefs.h. */ | |
27092 | _ACEOF | |
27093 | cat confdefs.h >>conftest.$ac_ext | |
27094 | cat >>conftest.$ac_ext <<_ACEOF | |
27095 | /* end confdefs.h. */ | |
27096 | ||
27097 | /* What a mess.. many systems have added the (now standard) bit types | |
27098 | * in their own ways, so we need to scan a wide variety of headers to | |
27099 | * find them.. | |
27100 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
27101 | */ | |
27102 | #if HAVE_SYS_TYPES_H | |
27103 | #include <sys/types.h> | |
27104 | #endif | |
27105 | #if STDC_HEADERS | |
27106 | #include <stdlib.h> | |
27107 | #include <stddef.h> | |
27108 | #endif | |
27109 | #if HAVE_INTTYPES_H | |
27110 | #include <inttypes.h> | |
27111 | #endif | |
27112 | #if HAVE_SYS_BITYPES_H | |
27113 | #include <sys/bitypes.h> | |
27114 | #endif | |
27115 | #if HAVE_SYS_SELECT_H | |
27116 | #include <sys/select.h> | |
27117 | #endif | |
27118 | ||
27119 | ||
27120 | int | |
27121 | main () | |
27122 | { | |
27123 | if ((u_int8_t *) 0) | |
27124 | return 0; | |
27125 | if (sizeof (u_int8_t)) | |
27126 | return 0; | |
27127 | ; | |
27128 | return 0; | |
27129 | } | |
27130 | _ACEOF | |
27131 | rm -f conftest.$ac_objext | |
27132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27133 | (eval $ac_compile) 2>conftest.er1 | |
27134 | ac_status=$? | |
27135 | grep -v '^ *+' conftest.er1 >conftest.err | |
27136 | rm -f conftest.er1 | |
27137 | cat conftest.err >&5 | |
27138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27139 | (exit $ac_status); } && | |
27140 | { ac_try='test -z "$ac_c_werror_flag" | |
27141 | || test ! -s conftest.err' | |
27142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27143 | (eval $ac_try) 2>&5 | |
27144 | ac_status=$? | |
27145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27146 | (exit $ac_status); }; } && | |
27147 | { ac_try='test -s conftest.$ac_objext' | |
27148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27149 | (eval $ac_try) 2>&5 | |
27150 | ac_status=$? | |
27151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27152 | (exit $ac_status); }; }; then | |
27153 | ac_cv_type_u_int8_t=yes | |
27154 | else | |
27155 | echo "$as_me: failed program was:" >&5 | |
27156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27157 | ||
27158 | ac_cv_type_u_int8_t=no | |
27159 | fi | |
27160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27161 | fi | |
27162 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5 | |
27163 | echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6 | |
27164 | if test $ac_cv_type_u_int8_t = yes; then | |
27165 | ||
27166 | echo "$as_me:$LINENO: checking for u_int8_t" >&5 | |
27167 | echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6 | |
27168 | if test "${ac_cv_type_u_int8_t+set}" = set; then | |
27169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27170 | else | |
27171 | cat >conftest.$ac_ext <<_ACEOF | |
27172 | /* confdefs.h. */ | |
27173 | _ACEOF | |
27174 | cat confdefs.h >>conftest.$ac_ext | |
27175 | cat >>conftest.$ac_ext <<_ACEOF | |
27176 | /* end confdefs.h. */ | |
27177 | ||
27178 | #include <stdio.h> | |
27179 | ||
27180 | /* What a mess.. many systems have added the (now standard) bit types | |
27181 | * in their own ways, so we need to scan a wide variety of headers to | |
27182 | * find them.. | |
27183 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
27184 | */ | |
27185 | #if HAVE_SYS_TYPES_H | |
27186 | #include <sys/types.h> | |
27187 | #endif | |
27188 | #if STDC_HEADERS | |
27189 | #include <stdlib.h> | |
27190 | #include <stddef.h> | |
27191 | #endif | |
27192 | #if HAVE_INTTYPES_H | |
27193 | #include <inttypes.h> | |
27194 | #endif | |
27195 | #if HAVE_SYS_BITYPES_H | |
27196 | #include <sys/bitypes.h> | |
27197 | #endif | |
27198 | #if HAVE_SYS_SELECT_H | |
27199 | #include <sys/select.h> | |
27200 | #endif | |
27201 | ||
27202 | ||
27203 | ||
27204 | int | |
27205 | main () | |
27206 | { | |
27207 | if ((u_int8_t *) 0) | |
27208 | return 0; | |
27209 | if (sizeof (u_int8_t)) | |
27210 | return 0; | |
27211 | ; | |
27212 | return 0; | |
27213 | } | |
27214 | _ACEOF | |
27215 | rm -f conftest.$ac_objext | |
27216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27217 | (eval $ac_compile) 2>conftest.er1 | |
27218 | ac_status=$? | |
27219 | grep -v '^ *+' conftest.er1 >conftest.err | |
27220 | rm -f conftest.er1 | |
27221 | cat conftest.err >&5 | |
27222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27223 | (exit $ac_status); } && | |
27224 | { ac_try='test -z "$ac_c_werror_flag" | |
27225 | || test ! -s conftest.err' | |
27226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27227 | (eval $ac_try) 2>&5 | |
27228 | ac_status=$? | |
27229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27230 | (exit $ac_status); }; } && | |
27231 | { ac_try='test -s conftest.$ac_objext' | |
27232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27233 | (eval $ac_try) 2>&5 | |
27234 | ac_status=$? | |
27235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27236 | (exit $ac_status); }; }; then | |
27237 | ac_cv_type_u_int8_t=yes | |
27238 | else | |
27239 | echo "$as_me: failed program was:" >&5 | |
27240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27241 | ||
27242 | ac_cv_type_u_int8_t=no | |
27243 | fi | |
27244 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27245 | fi | |
27246 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5 | |
27247 | echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6 | |
27248 | ||
27249 | echo "$as_me:$LINENO: checking size of u_int8_t" >&5 | |
27250 | echo $ECHO_N "checking size of u_int8_t... $ECHO_C" >&6 | |
27251 | if test "${ac_cv_sizeof_u_int8_t+set}" = set; then | |
27252 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27253 | else | |
27254 | if test "$ac_cv_type_u_int8_t" = yes; then | |
27255 | # The cast to unsigned long works around a bug in the HP C Compiler | |
27256 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
27257 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
27258 | # This bug is HP SR number 8606223364. | |
27259 | if test "$cross_compiling" = yes; then | |
27260 | # Depending upon the size, compute the lo and hi bounds. | |
27261 | cat >conftest.$ac_ext <<_ACEOF | |
27262 | /* confdefs.h. */ | |
27263 | _ACEOF | |
27264 | cat confdefs.h >>conftest.$ac_ext | |
27265 | cat >>conftest.$ac_ext <<_ACEOF | |
27266 | /* end confdefs.h. */ | |
27267 | ||
27268 | #include <stdio.h> | |
27269 | ||
27270 | /* What a mess.. many systems have added the (now standard) bit types | |
27271 | * in their own ways, so we need to scan a wide variety of headers to | |
27272 | * find them.. | |
27273 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
27274 | */ | |
27275 | #if HAVE_SYS_TYPES_H | |
27276 | #include <sys/types.h> | |
27277 | #endif | |
27278 | #if STDC_HEADERS | |
27279 | #include <stdlib.h> | |
27280 | #include <stddef.h> | |
27281 | #endif | |
27282 | #if HAVE_INTTYPES_H | |
27283 | #include <inttypes.h> | |
27284 | #endif | |
27285 | #if HAVE_SYS_BITYPES_H | |
27286 | #include <sys/bitypes.h> | |
27287 | #endif | |
27288 | #if HAVE_SYS_SELECT_H | |
27289 | #include <sys/select.h> | |
27290 | #endif | |
27291 | ||
27292 | ||
27293 | ||
27294 | int | |
27295 | main () | |
27296 | { | |
27297 | static int test_array [1 - 2 * !(((long) (sizeof (u_int8_t))) >= 0)]; | |
27298 | test_array [0] = 0 | |
27299 | ||
27300 | ; | |
27301 | return 0; | |
27302 | } | |
27303 | _ACEOF | |
27304 | rm -f conftest.$ac_objext | |
27305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27306 | (eval $ac_compile) 2>conftest.er1 | |
27307 | ac_status=$? | |
27308 | grep -v '^ *+' conftest.er1 >conftest.err | |
27309 | rm -f conftest.er1 | |
27310 | cat conftest.err >&5 | |
27311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27312 | (exit $ac_status); } && | |
27313 | { ac_try='test -z "$ac_c_werror_flag" | |
27314 | || test ! -s conftest.err' | |
27315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27316 | (eval $ac_try) 2>&5 | |
27317 | ac_status=$? | |
27318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27319 | (exit $ac_status); }; } && | |
27320 | { ac_try='test -s conftest.$ac_objext' | |
27321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27322 | (eval $ac_try) 2>&5 | |
27323 | ac_status=$? | |
27324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27325 | (exit $ac_status); }; }; then | |
27326 | ac_lo=0 ac_mid=0 | |
27327 | while :; do | |
27328 | cat >conftest.$ac_ext <<_ACEOF | |
27329 | /* confdefs.h. */ | |
27330 | _ACEOF | |
27331 | cat confdefs.h >>conftest.$ac_ext | |
27332 | cat >>conftest.$ac_ext <<_ACEOF | |
27333 | /* end confdefs.h. */ | |
27334 | ||
27335 | #include <stdio.h> | |
27336 | ||
27337 | /* What a mess.. many systems have added the (now standard) bit types | |
27338 | * in their own ways, so we need to scan a wide variety of headers to | |
27339 | * find them.. | |
27340 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
27341 | */ | |
27342 | #if HAVE_SYS_TYPES_H | |
27343 | #include <sys/types.h> | |
27344 | #endif | |
27345 | #if STDC_HEADERS | |
27346 | #include <stdlib.h> | |
27347 | #include <stddef.h> | |
27348 | #endif | |
27349 | #if HAVE_INTTYPES_H | |
27350 | #include <inttypes.h> | |
27351 | #endif | |
27352 | #if HAVE_SYS_BITYPES_H | |
27353 | #include <sys/bitypes.h> | |
27354 | #endif | |
27355 | #if HAVE_SYS_SELECT_H | |
27356 | #include <sys/select.h> | |
27357 | #endif | |
27358 | ||
27359 | ||
27360 | ||
27361 | int | |
27362 | main () | |
27363 | { | |
27364 | static int test_array [1 - 2 * !(((long) (sizeof (u_int8_t))) <= $ac_mid)]; | |
27365 | test_array [0] = 0 | |
27366 | ||
27367 | ; | |
27368 | return 0; | |
27369 | } | |
27370 | _ACEOF | |
27371 | rm -f conftest.$ac_objext | |
27372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27373 | (eval $ac_compile) 2>conftest.er1 | |
27374 | ac_status=$? | |
27375 | grep -v '^ *+' conftest.er1 >conftest.err | |
27376 | rm -f conftest.er1 | |
27377 | cat conftest.err >&5 | |
27378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27379 | (exit $ac_status); } && | |
27380 | { ac_try='test -z "$ac_c_werror_flag" | |
27381 | || test ! -s conftest.err' | |
27382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27383 | (eval $ac_try) 2>&5 | |
27384 | ac_status=$? | |
27385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27386 | (exit $ac_status); }; } && | |
27387 | { ac_try='test -s conftest.$ac_objext' | |
27388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27389 | (eval $ac_try) 2>&5 | |
27390 | ac_status=$? | |
27391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27392 | (exit $ac_status); }; }; then | |
27393 | ac_hi=$ac_mid; break | |
27394 | else | |
27395 | echo "$as_me: failed program was:" >&5 | |
27396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27397 | ||
27398 | ac_lo=`expr $ac_mid + 1` | |
27399 | if test $ac_lo -le $ac_mid; then | |
27400 | ac_lo= ac_hi= | |
27401 | break | |
27402 | fi | |
27403 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
27404 | fi | |
27405 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27406 | done | |
27407 | else | |
27408 | echo "$as_me: failed program was:" >&5 | |
27409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27410 | ||
27411 | cat >conftest.$ac_ext <<_ACEOF | |
27412 | /* confdefs.h. */ | |
27413 | _ACEOF | |
27414 | cat confdefs.h >>conftest.$ac_ext | |
27415 | cat >>conftest.$ac_ext <<_ACEOF | |
27416 | /* end confdefs.h. */ | |
27417 | ||
27418 | #include <stdio.h> | |
27419 | ||
27420 | /* What a mess.. many systems have added the (now standard) bit types | |
27421 | * in their own ways, so we need to scan a wide variety of headers to | |
27422 | * find them.. | |
27423 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
27424 | */ | |
27425 | #if HAVE_SYS_TYPES_H | |
27426 | #include <sys/types.h> | |
27427 | #endif | |
27428 | #if STDC_HEADERS | |
27429 | #include <stdlib.h> | |
27430 | #include <stddef.h> | |
27431 | #endif | |
27432 | #if HAVE_INTTYPES_H | |
27433 | #include <inttypes.h> | |
27434 | #endif | |
27435 | #if HAVE_SYS_BITYPES_H | |
27436 | #include <sys/bitypes.h> | |
27437 | #endif | |
27438 | #if HAVE_SYS_SELECT_H | |
27439 | #include <sys/select.h> | |
27440 | #endif | |
27441 | ||
27442 | ||
27443 | ||
27444 | int | |
27445 | main () | |
27446 | { | |
27447 | static int test_array [1 - 2 * !(((long) (sizeof (u_int8_t))) < 0)]; | |
27448 | test_array [0] = 0 | |
27449 | ||
27450 | ; | |
27451 | return 0; | |
27452 | } | |
27453 | _ACEOF | |
27454 | rm -f conftest.$ac_objext | |
27455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27456 | (eval $ac_compile) 2>conftest.er1 | |
27457 | ac_status=$? | |
27458 | grep -v '^ *+' conftest.er1 >conftest.err | |
27459 | rm -f conftest.er1 | |
27460 | cat conftest.err >&5 | |
27461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27462 | (exit $ac_status); } && | |
27463 | { ac_try='test -z "$ac_c_werror_flag" | |
27464 | || test ! -s conftest.err' | |
27465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27466 | (eval $ac_try) 2>&5 | |
27467 | ac_status=$? | |
27468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27469 | (exit $ac_status); }; } && | |
27470 | { ac_try='test -s conftest.$ac_objext' | |
27471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27472 | (eval $ac_try) 2>&5 | |
27473 | ac_status=$? | |
27474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27475 | (exit $ac_status); }; }; then | |
27476 | ac_hi=-1 ac_mid=-1 | |
27477 | while :; do | |
27478 | cat >conftest.$ac_ext <<_ACEOF | |
27479 | /* confdefs.h. */ | |
27480 | _ACEOF | |
27481 | cat confdefs.h >>conftest.$ac_ext | |
27482 | cat >>conftest.$ac_ext <<_ACEOF | |
27483 | /* end confdefs.h. */ | |
27484 | ||
27485 | #include <stdio.h> | |
27486 | ||
27487 | /* What a mess.. many systems have added the (now standard) bit types | |
27488 | * in their own ways, so we need to scan a wide variety of headers to | |
27489 | * find them.. | |
27490 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
27491 | */ | |
27492 | #if HAVE_SYS_TYPES_H | |
27493 | #include <sys/types.h> | |
27494 | #endif | |
27495 | #if STDC_HEADERS | |
27496 | #include <stdlib.h> | |
27497 | #include <stddef.h> | |
27498 | #endif | |
27499 | #if HAVE_INTTYPES_H | |
27500 | #include <inttypes.h> | |
27501 | #endif | |
27502 | #if HAVE_SYS_BITYPES_H | |
27503 | #include <sys/bitypes.h> | |
27504 | #endif | |
27505 | #if HAVE_SYS_SELECT_H | |
27506 | #include <sys/select.h> | |
27507 | #endif | |
27508 | ||
27509 | ||
27510 | ||
27511 | int | |
27512 | main () | |
27513 | { | |
27514 | static int test_array [1 - 2 * !(((long) (sizeof (u_int8_t))) >= $ac_mid)]; | |
27515 | test_array [0] = 0 | |
27516 | ||
27517 | ; | |
27518 | return 0; | |
27519 | } | |
27520 | _ACEOF | |
27521 | rm -f conftest.$ac_objext | |
27522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27523 | (eval $ac_compile) 2>conftest.er1 | |
27524 | ac_status=$? | |
27525 | grep -v '^ *+' conftest.er1 >conftest.err | |
27526 | rm -f conftest.er1 | |
27527 | cat conftest.err >&5 | |
27528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27529 | (exit $ac_status); } && | |
27530 | { ac_try='test -z "$ac_c_werror_flag" | |
27531 | || test ! -s conftest.err' | |
27532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27533 | (eval $ac_try) 2>&5 | |
27534 | ac_status=$? | |
27535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27536 | (exit $ac_status); }; } && | |
27537 | { ac_try='test -s conftest.$ac_objext' | |
27538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27539 | (eval $ac_try) 2>&5 | |
27540 | ac_status=$? | |
27541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27542 | (exit $ac_status); }; }; then | |
27543 | ac_lo=$ac_mid; break | |
27544 | else | |
27545 | echo "$as_me: failed program was:" >&5 | |
27546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27547 | ||
27548 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
27549 | if test $ac_mid -le $ac_hi; then | |
27550 | ac_lo= ac_hi= | |
27551 | break | |
27552 | fi | |
27553 | ac_mid=`expr 2 '*' $ac_mid` | |
27554 | fi | |
27555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27556 | done | |
27557 | else | |
27558 | echo "$as_me: failed program was:" >&5 | |
27559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27560 | ||
27561 | ac_lo= ac_hi= | |
27562 | fi | |
27563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27564 | fi | |
27565 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27566 | # Binary search between lo and hi bounds. | |
27567 | while test "x$ac_lo" != "x$ac_hi"; do | |
27568 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
27569 | cat >conftest.$ac_ext <<_ACEOF | |
27570 | /* confdefs.h. */ | |
27571 | _ACEOF | |
27572 | cat confdefs.h >>conftest.$ac_ext | |
27573 | cat >>conftest.$ac_ext <<_ACEOF | |
27574 | /* end confdefs.h. */ | |
27575 | ||
27576 | #include <stdio.h> | |
27577 | ||
27578 | /* What a mess.. many systems have added the (now standard) bit types | |
27579 | * in their own ways, so we need to scan a wide variety of headers to | |
27580 | * find them.. | |
27581 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
27582 | */ | |
27583 | #if HAVE_SYS_TYPES_H | |
27584 | #include <sys/types.h> | |
27585 | #endif | |
27586 | #if STDC_HEADERS | |
27587 | #include <stdlib.h> | |
27588 | #include <stddef.h> | |
27589 | #endif | |
27590 | #if HAVE_INTTYPES_H | |
27591 | #include <inttypes.h> | |
27592 | #endif | |
27593 | #if HAVE_SYS_BITYPES_H | |
27594 | #include <sys/bitypes.h> | |
27595 | #endif | |
27596 | #if HAVE_SYS_SELECT_H | |
27597 | #include <sys/select.h> | |
27598 | #endif | |
27599 | ||
27600 | ||
27601 | ||
27602 | int | |
27603 | main () | |
27604 | { | |
27605 | static int test_array [1 - 2 * !(((long) (sizeof (u_int8_t))) <= $ac_mid)]; | |
27606 | test_array [0] = 0 | |
27607 | ||
27608 | ; | |
27609 | return 0; | |
27610 | } | |
27611 | _ACEOF | |
27612 | rm -f conftest.$ac_objext | |
27613 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27614 | (eval $ac_compile) 2>conftest.er1 | |
27615 | ac_status=$? | |
27616 | grep -v '^ *+' conftest.er1 >conftest.err | |
27617 | rm -f conftest.er1 | |
27618 | cat conftest.err >&5 | |
27619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27620 | (exit $ac_status); } && | |
27621 | { ac_try='test -z "$ac_c_werror_flag" | |
27622 | || test ! -s conftest.err' | |
27623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27624 | (eval $ac_try) 2>&5 | |
27625 | ac_status=$? | |
27626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27627 | (exit $ac_status); }; } && | |
27628 | { ac_try='test -s conftest.$ac_objext' | |
27629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27630 | (eval $ac_try) 2>&5 | |
27631 | ac_status=$? | |
27632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27633 | (exit $ac_status); }; }; then | |
27634 | ac_hi=$ac_mid | |
27635 | else | |
27636 | echo "$as_me: failed program was:" >&5 | |
27637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27638 | ||
27639 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
27640 | fi | |
27641 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27642 | done | |
27643 | case $ac_lo in | |
27644 | ?*) ac_cv_sizeof_u_int8_t=$ac_lo;; | |
27645 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int8_t), 77 | |
27646 | See \`config.log' for more details." >&5 | |
27647 | echo "$as_me: error: cannot compute sizeof (u_int8_t), 77 | |
27648 | See \`config.log' for more details." >&2;} | |
27649 | { (exit 1); exit 1; }; } ;; | |
27650 | esac | |
27651 | else | |
27652 | if test "$cross_compiling" = yes; then | |
27653 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
27654 | See \`config.log' for more details." >&5 | |
27655 | echo "$as_me: error: cannot run test program while cross compiling | |
27656 | See \`config.log' for more details." >&2;} | |
27657 | { (exit 1); exit 1; }; } | |
27658 | else | |
27659 | cat >conftest.$ac_ext <<_ACEOF | |
27660 | /* confdefs.h. */ | |
27661 | _ACEOF | |
27662 | cat confdefs.h >>conftest.$ac_ext | |
27663 | cat >>conftest.$ac_ext <<_ACEOF | |
27664 | /* end confdefs.h. */ | |
27665 | ||
27666 | #include <stdio.h> | |
27667 | ||
27668 | /* What a mess.. many systems have added the (now standard) bit types | |
27669 | * in their own ways, so we need to scan a wide variety of headers to | |
27670 | * find them.. | |
27671 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
27672 | */ | |
27673 | #if HAVE_SYS_TYPES_H | |
27674 | #include <sys/types.h> | |
27675 | #endif | |
27676 | #if STDC_HEADERS | |
27677 | #include <stdlib.h> | |
27678 | #include <stddef.h> | |
27679 | #endif | |
27680 | #if HAVE_INTTYPES_H | |
27681 | #include <inttypes.h> | |
27682 | #endif | |
27683 | #if HAVE_SYS_BITYPES_H | |
27684 | #include <sys/bitypes.h> | |
27685 | #endif | |
27686 | #if HAVE_SYS_SELECT_H | |
27687 | #include <sys/select.h> | |
27688 | #endif | |
27689 | ||
27690 | ||
27691 | ||
27692 | long longval () { return (long) (sizeof (u_int8_t)); } | |
27693 | unsigned long ulongval () { return (long) (sizeof (u_int8_t)); } | |
27694 | #include <stdio.h> | |
27695 | #include <stdlib.h> | |
27696 | int | |
27697 | main () | |
27698 | { | |
27699 | ||
27700 | FILE *f = fopen ("conftest.val", "w"); | |
27701 | if (! f) | |
27702 | exit (1); | |
27703 | if (((long) (sizeof (u_int8_t))) < 0) | |
27704 | { | |
27705 | long i = longval (); | |
27706 | if (i != ((long) (sizeof (u_int8_t)))) | |
27707 | exit (1); | |
27708 | fprintf (f, "%ld\n", i); | |
27709 | } | |
27710 | else | |
27711 | { | |
27712 | unsigned long i = ulongval (); | |
27713 | if (i != ((long) (sizeof (u_int8_t)))) | |
27714 | exit (1); | |
27715 | fprintf (f, "%lu\n", i); | |
27716 | } | |
27717 | exit (ferror (f) || fclose (f) != 0); | |
27718 | ||
27719 | ; | |
27720 | return 0; | |
27721 | } | |
27722 | _ACEOF | |
27723 | rm -f conftest$ac_exeext | |
27724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27725 | (eval $ac_link) 2>&5 | |
27726 | ac_status=$? | |
27727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27728 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
27729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27730 | (eval $ac_try) 2>&5 | |
27731 | ac_status=$? | |
27732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27733 | (exit $ac_status); }; }; then | |
27734 | ac_cv_sizeof_u_int8_t=`cat conftest.val` | |
27735 | else | |
27736 | echo "$as_me: program exited with status $ac_status" >&5 | |
27737 | echo "$as_me: failed program was:" >&5 | |
27738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27739 | ||
27740 | ( exit $ac_status ) | |
27741 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int8_t), 77 | |
27742 | See \`config.log' for more details." >&5 | |
27743 | echo "$as_me: error: cannot compute sizeof (u_int8_t), 77 | |
27744 | See \`config.log' for more details." >&2;} | |
27745 | { (exit 1); exit 1; }; } | |
27746 | fi | |
27747 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
27748 | fi | |
27749 | fi | |
27750 | rm -f conftest.val | |
27751 | else | |
27752 | ac_cv_sizeof_u_int8_t=0 | |
27753 | fi | |
27754 | fi | |
27755 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int8_t" >&5 | |
27756 | echo "${ECHO_T}$ac_cv_sizeof_u_int8_t" >&6 | |
27757 | cat >>confdefs.h <<_ACEOF | |
27758 | #define SIZEOF_U_INT8_T $ac_cv_sizeof_u_int8_t | |
27759 | _ACEOF | |
27760 | ||
27761 | ||
27762 | ||
27763 | cat >>confdefs.h <<\_ACEOF | |
27764 | #define HAVE_U_INT8_T 1 | |
27765 | _ACEOF | |
27766 | ||
27767 | ||
27768 | fi | |
27769 | ||
27770 | ||
27771 | echo "$as_me:$LINENO: checking for uint8_t" >&5 | |
27772 | echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6 | |
27773 | if test "${ac_cv_type_uint8_t+set}" = set; then | |
27774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27775 | else | |
27776 | cat >conftest.$ac_ext <<_ACEOF | |
27777 | /* confdefs.h. */ | |
27778 | _ACEOF | |
27779 | cat confdefs.h >>conftest.$ac_ext | |
27780 | cat >>conftest.$ac_ext <<_ACEOF | |
27781 | /* end confdefs.h. */ | |
27782 | ||
27783 | /* What a mess.. many systems have added the (now standard) bit types | |
27784 | * in their own ways, so we need to scan a wide variety of headers to | |
27785 | * find them.. | |
27786 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
27787 | */ | |
27788 | #if HAVE_SYS_TYPES_H | |
27789 | #include <sys/types.h> | |
27790 | #endif | |
27791 | #if STDC_HEADERS | |
27792 | #include <stdlib.h> | |
27793 | #include <stddef.h> | |
27794 | #endif | |
27795 | #if HAVE_INTTYPES_H | |
27796 | #include <inttypes.h> | |
27797 | #endif | |
27798 | #if HAVE_SYS_BITYPES_H | |
27799 | #include <sys/bitypes.h> | |
27800 | #endif | |
27801 | #if HAVE_SYS_SELECT_H | |
27802 | #include <sys/select.h> | |
27803 | #endif | |
27804 | ||
27805 | ||
27806 | int | |
27807 | main () | |
27808 | { | |
27809 | if ((uint8_t *) 0) | |
27810 | return 0; | |
27811 | if (sizeof (uint8_t)) | |
27812 | return 0; | |
27813 | ; | |
27814 | return 0; | |
27815 | } | |
27816 | _ACEOF | |
27817 | rm -f conftest.$ac_objext | |
27818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27819 | (eval $ac_compile) 2>conftest.er1 | |
27820 | ac_status=$? | |
27821 | grep -v '^ *+' conftest.er1 >conftest.err | |
27822 | rm -f conftest.er1 | |
27823 | cat conftest.err >&5 | |
27824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27825 | (exit $ac_status); } && | |
27826 | { ac_try='test -z "$ac_c_werror_flag" | |
27827 | || test ! -s conftest.err' | |
27828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27829 | (eval $ac_try) 2>&5 | |
27830 | ac_status=$? | |
27831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27832 | (exit $ac_status); }; } && | |
27833 | { ac_try='test -s conftest.$ac_objext' | |
27834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27835 | (eval $ac_try) 2>&5 | |
27836 | ac_status=$? | |
27837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27838 | (exit $ac_status); }; }; then | |
27839 | ac_cv_type_uint8_t=yes | |
27840 | else | |
27841 | echo "$as_me: failed program was:" >&5 | |
27842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27843 | ||
27844 | ac_cv_type_uint8_t=no | |
27845 | fi | |
27846 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27847 | fi | |
27848 | echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 | |
27849 | echo "${ECHO_T}$ac_cv_type_uint8_t" >&6 | |
27850 | if test $ac_cv_type_uint8_t = yes; then | |
27851 | ||
27852 | echo "$as_me:$LINENO: checking for uint8_t" >&5 | |
27853 | echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6 | |
27854 | if test "${ac_cv_type_uint8_t+set}" = set; then | |
27855 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27856 | else | |
27857 | cat >conftest.$ac_ext <<_ACEOF | |
27858 | /* confdefs.h. */ | |
27859 | _ACEOF | |
27860 | cat confdefs.h >>conftest.$ac_ext | |
27861 | cat >>conftest.$ac_ext <<_ACEOF | |
27862 | /* end confdefs.h. */ | |
27863 | ||
27864 | #include <stdio.h> | |
27865 | ||
27866 | /* What a mess.. many systems have added the (now standard) bit types | |
27867 | * in their own ways, so we need to scan a wide variety of headers to | |
27868 | * find them.. | |
27869 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
27870 | */ | |
27871 | #if HAVE_SYS_TYPES_H | |
27872 | #include <sys/types.h> | |
27873 | #endif | |
27874 | #if STDC_HEADERS | |
27875 | #include <stdlib.h> | |
27876 | #include <stddef.h> | |
27877 | #endif | |
27878 | #if HAVE_INTTYPES_H | |
27879 | #include <inttypes.h> | |
27880 | #endif | |
27881 | #if HAVE_SYS_BITYPES_H | |
27882 | #include <sys/bitypes.h> | |
27883 | #endif | |
27884 | #if HAVE_SYS_SELECT_H | |
27885 | #include <sys/select.h> | |
27886 | #endif | |
27887 | ||
27888 | ||
27889 | ||
27890 | int | |
27891 | main () | |
27892 | { | |
27893 | if ((uint8_t *) 0) | |
27894 | return 0; | |
27895 | if (sizeof (uint8_t)) | |
27896 | return 0; | |
27897 | ; | |
27898 | return 0; | |
27899 | } | |
27900 | _ACEOF | |
27901 | rm -f conftest.$ac_objext | |
27902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27903 | (eval $ac_compile) 2>conftest.er1 | |
27904 | ac_status=$? | |
27905 | grep -v '^ *+' conftest.er1 >conftest.err | |
27906 | rm -f conftest.er1 | |
27907 | cat conftest.err >&5 | |
27908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27909 | (exit $ac_status); } && | |
27910 | { ac_try='test -z "$ac_c_werror_flag" | |
27911 | || test ! -s conftest.err' | |
27912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27913 | (eval $ac_try) 2>&5 | |
27914 | ac_status=$? | |
27915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27916 | (exit $ac_status); }; } && | |
27917 | { ac_try='test -s conftest.$ac_objext' | |
27918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27919 | (eval $ac_try) 2>&5 | |
27920 | ac_status=$? | |
27921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27922 | (exit $ac_status); }; }; then | |
27923 | ac_cv_type_uint8_t=yes | |
27924 | else | |
27925 | echo "$as_me: failed program was:" >&5 | |
27926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27927 | ||
27928 | ac_cv_type_uint8_t=no | |
27929 | fi | |
27930 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
27931 | fi | |
27932 | echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 | |
27933 | echo "${ECHO_T}$ac_cv_type_uint8_t" >&6 | |
27934 | ||
27935 | echo "$as_me:$LINENO: checking size of uint8_t" >&5 | |
27936 | echo $ECHO_N "checking size of uint8_t... $ECHO_C" >&6 | |
27937 | if test "${ac_cv_sizeof_uint8_t+set}" = set; then | |
27938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27939 | else | |
27940 | if test "$ac_cv_type_uint8_t" = yes; then | |
27941 | # The cast to unsigned long works around a bug in the HP C Compiler | |
27942 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
27943 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
27944 | # This bug is HP SR number 8606223364. | |
27945 | if test "$cross_compiling" = yes; then | |
27946 | # Depending upon the size, compute the lo and hi bounds. | |
27947 | cat >conftest.$ac_ext <<_ACEOF | |
27948 | /* confdefs.h. */ | |
27949 | _ACEOF | |
27950 | cat confdefs.h >>conftest.$ac_ext | |
27951 | cat >>conftest.$ac_ext <<_ACEOF | |
27952 | /* end confdefs.h. */ | |
27953 | ||
27954 | #include <stdio.h> | |
27955 | ||
27956 | /* What a mess.. many systems have added the (now standard) bit types | |
27957 | * in their own ways, so we need to scan a wide variety of headers to | |
27958 | * find them.. | |
27959 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
27960 | */ | |
27961 | #if HAVE_SYS_TYPES_H | |
27962 | #include <sys/types.h> | |
27963 | #endif | |
27964 | #if STDC_HEADERS | |
27965 | #include <stdlib.h> | |
27966 | #include <stddef.h> | |
27967 | #endif | |
27968 | #if HAVE_INTTYPES_H | |
27969 | #include <inttypes.h> | |
27970 | #endif | |
27971 | #if HAVE_SYS_BITYPES_H | |
27972 | #include <sys/bitypes.h> | |
27973 | #endif | |
27974 | #if HAVE_SYS_SELECT_H | |
27975 | #include <sys/select.h> | |
27976 | #endif | |
27977 | ||
27978 | ||
27979 | ||
27980 | int | |
27981 | main () | |
27982 | { | |
27983 | static int test_array [1 - 2 * !(((long) (sizeof (uint8_t))) >= 0)]; | |
27984 | test_array [0] = 0 | |
27985 | ||
27986 | ; | |
27987 | return 0; | |
27988 | } | |
27989 | _ACEOF | |
27990 | rm -f conftest.$ac_objext | |
27991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27992 | (eval $ac_compile) 2>conftest.er1 | |
27993 | ac_status=$? | |
27994 | grep -v '^ *+' conftest.er1 >conftest.err | |
27995 | rm -f conftest.er1 | |
27996 | cat conftest.err >&5 | |
27997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27998 | (exit $ac_status); } && | |
27999 | { ac_try='test -z "$ac_c_werror_flag" | |
28000 | || test ! -s conftest.err' | |
28001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28002 | (eval $ac_try) 2>&5 | |
28003 | ac_status=$? | |
28004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28005 | (exit $ac_status); }; } && | |
28006 | { ac_try='test -s conftest.$ac_objext' | |
28007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28008 | (eval $ac_try) 2>&5 | |
28009 | ac_status=$? | |
28010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28011 | (exit $ac_status); }; }; then | |
28012 | ac_lo=0 ac_mid=0 | |
28013 | while :; do | |
28014 | cat >conftest.$ac_ext <<_ACEOF | |
28015 | /* confdefs.h. */ | |
28016 | _ACEOF | |
28017 | cat confdefs.h >>conftest.$ac_ext | |
28018 | cat >>conftest.$ac_ext <<_ACEOF | |
28019 | /* end confdefs.h. */ | |
28020 | ||
28021 | #include <stdio.h> | |
28022 | ||
28023 | /* What a mess.. many systems have added the (now standard) bit types | |
28024 | * in their own ways, so we need to scan a wide variety of headers to | |
28025 | * find them.. | |
28026 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
28027 | */ | |
28028 | #if HAVE_SYS_TYPES_H | |
28029 | #include <sys/types.h> | |
28030 | #endif | |
28031 | #if STDC_HEADERS | |
28032 | #include <stdlib.h> | |
28033 | #include <stddef.h> | |
28034 | #endif | |
28035 | #if HAVE_INTTYPES_H | |
28036 | #include <inttypes.h> | |
28037 | #endif | |
28038 | #if HAVE_SYS_BITYPES_H | |
28039 | #include <sys/bitypes.h> | |
28040 | #endif | |
28041 | #if HAVE_SYS_SELECT_H | |
28042 | #include <sys/select.h> | |
28043 | #endif | |
28044 | ||
28045 | ||
28046 | ||
28047 | int | |
28048 | main () | |
28049 | { | |
28050 | static int test_array [1 - 2 * !(((long) (sizeof (uint8_t))) <= $ac_mid)]; | |
28051 | test_array [0] = 0 | |
28052 | ||
28053 | ; | |
28054 | return 0; | |
28055 | } | |
28056 | _ACEOF | |
28057 | rm -f conftest.$ac_objext | |
28058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28059 | (eval $ac_compile) 2>conftest.er1 | |
28060 | ac_status=$? | |
28061 | grep -v '^ *+' conftest.er1 >conftest.err | |
28062 | rm -f conftest.er1 | |
28063 | cat conftest.err >&5 | |
28064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28065 | (exit $ac_status); } && | |
28066 | { ac_try='test -z "$ac_c_werror_flag" | |
28067 | || test ! -s conftest.err' | |
28068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28069 | (eval $ac_try) 2>&5 | |
28070 | ac_status=$? | |
28071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28072 | (exit $ac_status); }; } && | |
28073 | { ac_try='test -s conftest.$ac_objext' | |
28074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28075 | (eval $ac_try) 2>&5 | |
28076 | ac_status=$? | |
28077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28078 | (exit $ac_status); }; }; then | |
28079 | ac_hi=$ac_mid; break | |
28080 | else | |
28081 | echo "$as_me: failed program was:" >&5 | |
28082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28083 | ||
28084 | ac_lo=`expr $ac_mid + 1` | |
28085 | if test $ac_lo -le $ac_mid; then | |
28086 | ac_lo= ac_hi= | |
28087 | break | |
28088 | fi | |
28089 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
28090 | fi | |
28091 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28092 | done | |
28093 | else | |
28094 | echo "$as_me: failed program was:" >&5 | |
28095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28096 | ||
28097 | cat >conftest.$ac_ext <<_ACEOF | |
28098 | /* confdefs.h. */ | |
28099 | _ACEOF | |
28100 | cat confdefs.h >>conftest.$ac_ext | |
28101 | cat >>conftest.$ac_ext <<_ACEOF | |
28102 | /* end confdefs.h. */ | |
28103 | ||
28104 | #include <stdio.h> | |
28105 | ||
28106 | /* What a mess.. many systems have added the (now standard) bit types | |
28107 | * in their own ways, so we need to scan a wide variety of headers to | |
28108 | * find them.. | |
28109 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
28110 | */ | |
28111 | #if HAVE_SYS_TYPES_H | |
28112 | #include <sys/types.h> | |
28113 | #endif | |
28114 | #if STDC_HEADERS | |
28115 | #include <stdlib.h> | |
28116 | #include <stddef.h> | |
28117 | #endif | |
28118 | #if HAVE_INTTYPES_H | |
28119 | #include <inttypes.h> | |
28120 | #endif | |
28121 | #if HAVE_SYS_BITYPES_H | |
28122 | #include <sys/bitypes.h> | |
28123 | #endif | |
28124 | #if HAVE_SYS_SELECT_H | |
28125 | #include <sys/select.h> | |
28126 | #endif | |
28127 | ||
28128 | ||
28129 | ||
28130 | int | |
28131 | main () | |
28132 | { | |
28133 | static int test_array [1 - 2 * !(((long) (sizeof (uint8_t))) < 0)]; | |
28134 | test_array [0] = 0 | |
28135 | ||
28136 | ; | |
28137 | return 0; | |
28138 | } | |
28139 | _ACEOF | |
28140 | rm -f conftest.$ac_objext | |
28141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28142 | (eval $ac_compile) 2>conftest.er1 | |
28143 | ac_status=$? | |
28144 | grep -v '^ *+' conftest.er1 >conftest.err | |
28145 | rm -f conftest.er1 | |
28146 | cat conftest.err >&5 | |
28147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28148 | (exit $ac_status); } && | |
28149 | { ac_try='test -z "$ac_c_werror_flag" | |
28150 | || test ! -s conftest.err' | |
28151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28152 | (eval $ac_try) 2>&5 | |
28153 | ac_status=$? | |
28154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28155 | (exit $ac_status); }; } && | |
28156 | { ac_try='test -s conftest.$ac_objext' | |
28157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28158 | (eval $ac_try) 2>&5 | |
28159 | ac_status=$? | |
28160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28161 | (exit $ac_status); }; }; then | |
28162 | ac_hi=-1 ac_mid=-1 | |
28163 | while :; do | |
28164 | cat >conftest.$ac_ext <<_ACEOF | |
28165 | /* confdefs.h. */ | |
28166 | _ACEOF | |
28167 | cat confdefs.h >>conftest.$ac_ext | |
28168 | cat >>conftest.$ac_ext <<_ACEOF | |
28169 | /* end confdefs.h. */ | |
28170 | ||
28171 | #include <stdio.h> | |
28172 | ||
28173 | /* What a mess.. many systems have added the (now standard) bit types | |
28174 | * in their own ways, so we need to scan a wide variety of headers to | |
28175 | * find them.. | |
28176 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
28177 | */ | |
28178 | #if HAVE_SYS_TYPES_H | |
28179 | #include <sys/types.h> | |
28180 | #endif | |
28181 | #if STDC_HEADERS | |
28182 | #include <stdlib.h> | |
28183 | #include <stddef.h> | |
28184 | #endif | |
28185 | #if HAVE_INTTYPES_H | |
28186 | #include <inttypes.h> | |
28187 | #endif | |
28188 | #if HAVE_SYS_BITYPES_H | |
28189 | #include <sys/bitypes.h> | |
28190 | #endif | |
28191 | #if HAVE_SYS_SELECT_H | |
28192 | #include <sys/select.h> | |
28193 | #endif | |
28194 | ||
28195 | ||
28196 | ||
28197 | int | |
28198 | main () | |
28199 | { | |
28200 | static int test_array [1 - 2 * !(((long) (sizeof (uint8_t))) >= $ac_mid)]; | |
28201 | test_array [0] = 0 | |
28202 | ||
28203 | ; | |
28204 | return 0; | |
28205 | } | |
28206 | _ACEOF | |
28207 | rm -f conftest.$ac_objext | |
28208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28209 | (eval $ac_compile) 2>conftest.er1 | |
28210 | ac_status=$? | |
28211 | grep -v '^ *+' conftest.er1 >conftest.err | |
28212 | rm -f conftest.er1 | |
28213 | cat conftest.err >&5 | |
28214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28215 | (exit $ac_status); } && | |
28216 | { ac_try='test -z "$ac_c_werror_flag" | |
28217 | || test ! -s conftest.err' | |
28218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28219 | (eval $ac_try) 2>&5 | |
28220 | ac_status=$? | |
28221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28222 | (exit $ac_status); }; } && | |
28223 | { ac_try='test -s conftest.$ac_objext' | |
28224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28225 | (eval $ac_try) 2>&5 | |
28226 | ac_status=$? | |
28227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28228 | (exit $ac_status); }; }; then | |
28229 | ac_lo=$ac_mid; break | |
28230 | else | |
28231 | echo "$as_me: failed program was:" >&5 | |
28232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28233 | ||
28234 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
28235 | if test $ac_mid -le $ac_hi; then | |
28236 | ac_lo= ac_hi= | |
28237 | break | |
28238 | fi | |
28239 | ac_mid=`expr 2 '*' $ac_mid` | |
28240 | fi | |
28241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28242 | done | |
28243 | else | |
28244 | echo "$as_me: failed program was:" >&5 | |
28245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28246 | ||
28247 | ac_lo= ac_hi= | |
28248 | fi | |
28249 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28250 | fi | |
28251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28252 | # Binary search between lo and hi bounds. | |
28253 | while test "x$ac_lo" != "x$ac_hi"; do | |
28254 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
28255 | cat >conftest.$ac_ext <<_ACEOF | |
28256 | /* confdefs.h. */ | |
28257 | _ACEOF | |
28258 | cat confdefs.h >>conftest.$ac_ext | |
28259 | cat >>conftest.$ac_ext <<_ACEOF | |
28260 | /* end confdefs.h. */ | |
28261 | ||
28262 | #include <stdio.h> | |
28263 | ||
28264 | /* What a mess.. many systems have added the (now standard) bit types | |
28265 | * in their own ways, so we need to scan a wide variety of headers to | |
28266 | * find them.. | |
28267 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
28268 | */ | |
28269 | #if HAVE_SYS_TYPES_H | |
28270 | #include <sys/types.h> | |
28271 | #endif | |
28272 | #if STDC_HEADERS | |
28273 | #include <stdlib.h> | |
28274 | #include <stddef.h> | |
28275 | #endif | |
28276 | #if HAVE_INTTYPES_H | |
28277 | #include <inttypes.h> | |
28278 | #endif | |
28279 | #if HAVE_SYS_BITYPES_H | |
28280 | #include <sys/bitypes.h> | |
28281 | #endif | |
28282 | #if HAVE_SYS_SELECT_H | |
28283 | #include <sys/select.h> | |
28284 | #endif | |
28285 | ||
28286 | ||
28287 | ||
28288 | int | |
28289 | main () | |
28290 | { | |
28291 | static int test_array [1 - 2 * !(((long) (sizeof (uint8_t))) <= $ac_mid)]; | |
28292 | test_array [0] = 0 | |
28293 | ||
28294 | ; | |
28295 | return 0; | |
28296 | } | |
28297 | _ACEOF | |
28298 | rm -f conftest.$ac_objext | |
28299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28300 | (eval $ac_compile) 2>conftest.er1 | |
28301 | ac_status=$? | |
28302 | grep -v '^ *+' conftest.er1 >conftest.err | |
28303 | rm -f conftest.er1 | |
28304 | cat conftest.err >&5 | |
28305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28306 | (exit $ac_status); } && | |
28307 | { ac_try='test -z "$ac_c_werror_flag" | |
28308 | || test ! -s conftest.err' | |
28309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28310 | (eval $ac_try) 2>&5 | |
28311 | ac_status=$? | |
28312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28313 | (exit $ac_status); }; } && | |
28314 | { ac_try='test -s conftest.$ac_objext' | |
28315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28316 | (eval $ac_try) 2>&5 | |
28317 | ac_status=$? | |
28318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28319 | (exit $ac_status); }; }; then | |
28320 | ac_hi=$ac_mid | |
28321 | else | |
28322 | echo "$as_me: failed program was:" >&5 | |
28323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28324 | ||
28325 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
28326 | fi | |
28327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
28328 | done | |
28329 | case $ac_lo in | |
28330 | ?*) ac_cv_sizeof_uint8_t=$ac_lo;; | |
28331 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint8_t), 77 | |
28332 | See \`config.log' for more details." >&5 | |
28333 | echo "$as_me: error: cannot compute sizeof (uint8_t), 77 | |
28334 | See \`config.log' for more details." >&2;} | |
28335 | { (exit 1); exit 1; }; } ;; | |
28336 | esac | |
28337 | else | |
28338 | if test "$cross_compiling" = yes; then | |
28339 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
28340 | See \`config.log' for more details." >&5 | |
28341 | echo "$as_me: error: cannot run test program while cross compiling | |
28342 | See \`config.log' for more details." >&2;} | |
28343 | { (exit 1); exit 1; }; } | |
28344 | else | |
28345 | cat >conftest.$ac_ext <<_ACEOF | |
28346 | /* confdefs.h. */ | |
28347 | _ACEOF | |
28348 | cat confdefs.h >>conftest.$ac_ext | |
28349 | cat >>conftest.$ac_ext <<_ACEOF | |
28350 | /* end confdefs.h. */ | |
28351 | ||
28352 | #include <stdio.h> | |
28353 | ||
28354 | /* What a mess.. many systems have added the (now standard) bit types | |
28355 | * in their own ways, so we need to scan a wide variety of headers to | |
28356 | * find them.. | |
28357 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
28358 | */ | |
28359 | #if HAVE_SYS_TYPES_H | |
28360 | #include <sys/types.h> | |
28361 | #endif | |
28362 | #if STDC_HEADERS | |
28363 | #include <stdlib.h> | |
28364 | #include <stddef.h> | |
28365 | #endif | |
28366 | #if HAVE_INTTYPES_H | |
28367 | #include <inttypes.h> | |
28368 | #endif | |
28369 | #if HAVE_SYS_BITYPES_H | |
28370 | #include <sys/bitypes.h> | |
28371 | #endif | |
28372 | #if HAVE_SYS_SELECT_H | |
28373 | #include <sys/select.h> | |
28374 | #endif | |
28375 | ||
28376 | ||
28377 | ||
28378 | long longval () { return (long) (sizeof (uint8_t)); } | |
28379 | unsigned long ulongval () { return (long) (sizeof (uint8_t)); } | |
28380 | #include <stdio.h> | |
28381 | #include <stdlib.h> | |
28382 | int | |
28383 | main () | |
28384 | { | |
28385 | ||
28386 | FILE *f = fopen ("conftest.val", "w"); | |
28387 | if (! f) | |
28388 | exit (1); | |
28389 | if (((long) (sizeof (uint8_t))) < 0) | |
28390 | { | |
28391 | long i = longval (); | |
28392 | if (i != ((long) (sizeof (uint8_t)))) | |
28393 | exit (1); | |
28394 | fprintf (f, "%ld\n", i); | |
28395 | } | |
28396 | else | |
28397 | { | |
28398 | unsigned long i = ulongval (); | |
28399 | if (i != ((long) (sizeof (uint8_t)))) | |
28400 | exit (1); | |
28401 | fprintf (f, "%lu\n", i); | |
28402 | } | |
28403 | exit (ferror (f) || fclose (f) != 0); | |
28404 | ||
28405 | ; | |
28406 | return 0; | |
28407 | } | |
28408 | _ACEOF | |
28409 | rm -f conftest$ac_exeext | |
28410 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28411 | (eval $ac_link) 2>&5 | |
28412 | ac_status=$? | |
28413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28414 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
28415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28416 | (eval $ac_try) 2>&5 | |
28417 | ac_status=$? | |
28418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28419 | (exit $ac_status); }; }; then | |
28420 | ac_cv_sizeof_uint8_t=`cat conftest.val` | |
28421 | else | |
28422 | echo "$as_me: program exited with status $ac_status" >&5 | |
28423 | echo "$as_me: failed program was:" >&5 | |
28424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28425 | ||
28426 | ( exit $ac_status ) | |
28427 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint8_t), 77 | |
28428 | See \`config.log' for more details." >&5 | |
28429 | echo "$as_me: error: cannot compute sizeof (uint8_t), 77 | |
28430 | See \`config.log' for more details." >&2;} | |
28431 | { (exit 1); exit 1; }; } | |
28432 | fi | |
28433 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
28434 | fi | |
28435 | fi | |
28436 | rm -f conftest.val | |
28437 | else | |
28438 | ac_cv_sizeof_uint8_t=0 | |
28439 | fi | |
28440 | fi | |
28441 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint8_t" >&5 | |
28442 | echo "${ECHO_T}$ac_cv_sizeof_uint8_t" >&6 | |
28443 | cat >>confdefs.h <<_ACEOF | |
28444 | #define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t | |
28445 | _ACEOF | |
28446 | ||
28447 | ||
28448 | ||
28449 | cat >>confdefs.h <<\_ACEOF | |
28450 | #define HAVE_UINT8_T 1 | |
28451 | _ACEOF | |
28452 | ||
28453 | ||
28454 | fi | |
28455 | ||
28456 | ||
33f5f8b9 | 28457 | echo "$as_me:$LINENO: checking for int16_t" >&5 |
28458 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 | |
28459 | if test "${ac_cv_type_int16_t+set}" = set; then | |
28460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b65c7b0d | 28461 | else |
33f5f8b9 | 28462 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 28463 | /* confdefs.h. */ |
28464 | _ACEOF | |
28465 | cat confdefs.h >>conftest.$ac_ext | |
28466 | cat >>conftest.$ac_ext <<_ACEOF | |
28467 | /* end confdefs.h. */ | |
33f5f8b9 | 28468 | |
28469 | /* What a mess.. many systems have added the (now standard) bit types | |
28470 | * in their own ways, so we need to scan a wide variety of headers to | |
28471 | * find them.. | |
28472 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
28473 | */ | |
28474 | #if HAVE_SYS_TYPES_H | |
28475 | #include <sys/types.h> | |
28476 | #endif | |
28477 | #if STDC_HEADERS | |
28478 | #include <stdlib.h> | |
28479 | #include <stddef.h> | |
28480 | #endif | |
28481 | #if HAVE_INTTYPES_H | |
28482 | #include <inttypes.h> | |
28483 | #endif | |
28484 | #if HAVE_SYS_BITYPES_H | |
28485 | #include <sys/bitypes.h> | |
28486 | #endif | |
11e71ab8 | 28487 | #if HAVE_SYS_SELECT_H |
28488 | #include <sys/select.h> | |
28489 | #endif | |
33f5f8b9 | 28490 | |
28491 | ||
33f5f8b9 | 28492 | int |
28493 | main () | |
b65c7b0d | 28494 | { |
33f5f8b9 | 28495 | if ((int16_t *) 0) |
28496 | return 0; | |
28497 | if (sizeof (int16_t)) | |
28498 | return 0; | |
28499 | ; | |
28500 | return 0; | |
b65c7b0d | 28501 | } |
33f5f8b9 | 28502 | _ACEOF |
28503 | rm -f conftest.$ac_objext | |
28504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 28505 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 28506 | ac_status=$? |
af3004ff | 28507 | grep -v '^ *+' conftest.er1 >conftest.err |
28508 | rm -f conftest.er1 | |
28509 | cat conftest.err >&5 | |
33f5f8b9 | 28510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28511 | (exit $ac_status); } && | |
6263d81f | 28512 | { ac_try='test -z "$ac_c_werror_flag" |
28513 | || test ! -s conftest.err' | |
af3004ff | 28514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28515 | (eval $ac_try) 2>&5 | |
28516 | ac_status=$? | |
28517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28518 | (exit $ac_status); }; } && | |
28519 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 28520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28521 | (eval $ac_try) 2>&5 | |
28522 | ac_status=$? | |
28523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28524 | (exit $ac_status); }; }; then | |
28525 | ac_cv_type_int16_t=yes | |
b65c7b0d | 28526 | else |
33f5f8b9 | 28527 | echo "$as_me: failed program was:" >&5 |
ad21602a | 28528 | sed 's/^/| /' conftest.$ac_ext >&5 |
28529 | ||
33f5f8b9 | 28530 | ac_cv_type_int16_t=no |
090089c4 | 28531 | fi |
af3004ff | 28532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b65c7b0d | 28533 | fi |
33f5f8b9 | 28534 | echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 |
28535 | echo "${ECHO_T}$ac_cv_type_int16_t" >&6 | |
28536 | if test $ac_cv_type_int16_t = yes; then | |
28537 | ||
ca732765 | 28538 | echo "$as_me:$LINENO: checking for int16_t" >&5 |
28539 | echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 | |
28540 | if test "${ac_cv_type_int16_t+set}" = set; then | |
33f5f8b9 | 28541 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
28542 | else | |
28543 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 28544 | /* confdefs.h. */ |
28545 | _ACEOF | |
28546 | cat confdefs.h >>conftest.$ac_ext | |
28547 | cat >>conftest.$ac_ext <<_ACEOF | |
28548 | /* end confdefs.h. */ | |
b65c7b0d | 28549 | |
a6edf800 | 28550 | #include <stdio.h> |
28551 | ||
33f5f8b9 | 28552 | /* What a mess.. many systems have added the (now standard) bit types |
28553 | * in their own ways, so we need to scan a wide variety of headers to | |
28554 | * find them.. | |
28555 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
28556 | */ | |
28557 | #if HAVE_SYS_TYPES_H | |
28558 | #include <sys/types.h> | |
28559 | #endif | |
28560 | #if STDC_HEADERS | |
28561 | #include <stdlib.h> | |
28562 | #include <stddef.h> | |
28563 | #endif | |
28564 | #if HAVE_INTTYPES_H | |
28565 | #include <inttypes.h> | |
28566 | #endif | |
28567 | #if HAVE_SYS_BITYPES_H | |
28568 | #include <sys/bitypes.h> | |
28569 | #endif | |
11e71ab8 | 28570 | #if HAVE_SYS_SELECT_H |
28571 | #include <sys/select.h> | |
28572 | #endif | |
b65c7b0d | 28573 | |
3f961930 | 28574 | |
a6edf800 | 28575 | |
33f5f8b9 | 28576 | int |
28577 | main () | |
28578 | { | |
ca732765 | 28579 | if ((int16_t *) 0) |
33f5f8b9 | 28580 | return 0; |
ca732765 | 28581 | if (sizeof (int16_t)) |
33f5f8b9 | 28582 | return 0; |
28583 | ; | |
28584 | return 0; | |
28585 | } | |
28586 | _ACEOF | |
28587 | rm -f conftest.$ac_objext | |
28588 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 28589 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 28590 | ac_status=$? |
af3004ff | 28591 | grep -v '^ *+' conftest.er1 >conftest.err |
28592 | rm -f conftest.er1 | |
28593 | cat conftest.err >&5 | |
33f5f8b9 | 28594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28595 | (exit $ac_status); } && | |
6263d81f | 28596 | { ac_try='test -z "$ac_c_werror_flag" |
28597 | || test ! -s conftest.err' | |
af3004ff | 28598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28599 | (eval $ac_try) 2>&5 | |
28600 | ac_status=$? | |
28601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28602 | (exit $ac_status); }; } && | |
28603 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 28604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28605 | (eval $ac_try) 2>&5 | |
28606 | ac_status=$? | |
28607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28608 | (exit $ac_status); }; }; then | |
ca732765 | 28609 | ac_cv_type_int16_t=yes |
33f5f8b9 | 28610 | else |
28611 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 28612 | sed 's/^/| /' conftest.$ac_ext >&5 |
28613 | ||
ca732765 | 28614 | ac_cv_type_int16_t=no |
33f5f8b9 | 28615 | fi |
af3004ff | 28616 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 28617 | fi |
ca732765 | 28618 | echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 |
28619 | echo "${ECHO_T}$ac_cv_type_int16_t" >&6 | |
33f5f8b9 | 28620 | |
ca732765 | 28621 | echo "$as_me:$LINENO: checking size of int16_t" >&5 |
28622 | echo $ECHO_N "checking size of int16_t... $ECHO_C" >&6 | |
28623 | if test "${ac_cv_sizeof_int16_t+set}" = set; then | |
33f5f8b9 | 28624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
28625 | else | |
ca732765 | 28626 | if test "$ac_cv_type_int16_t" = yes; then |
33f5f8b9 | 28627 | # The cast to unsigned long works around a bug in the HP C Compiler |
28628 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
28629 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
28630 | # This bug is HP SR number 8606223364. | |
77d6bd88 | 28631 | if test "$cross_compiling" = yes; then |
33f5f8b9 | 28632 | # Depending upon the size, compute the lo and hi bounds. |
28633 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 28634 | /* confdefs.h. */ |
28635 | _ACEOF | |
28636 | cat confdefs.h >>conftest.$ac_ext | |
28637 | cat >>conftest.$ac_ext <<_ACEOF | |
28638 | /* end confdefs.h. */ | |
33f5f8b9 | 28639 | |
a6edf800 | 28640 | #include <stdio.h> |
28641 | ||
33f5f8b9 | 28642 | /* What a mess.. many systems have added the (now standard) bit types |
28643 | * in their own ways, so we need to scan a wide variety of headers to | |
28644 | * find them.. | |
28645 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
28646 | */ | |
28647 | #if HAVE_SYS_TYPES_H | |
28648 | #include <sys/types.h> | |
28649 | #endif | |
28650 | #if STDC_HEADERS | |
28651 | #include <stdlib.h> | |
28652 | #include <stddef.h> | |
28653 | #endif | |
28654 | #if HAVE_INTTYPES_H | |
28655 | #include <inttypes.h> | |
28656 | #endif | |
28657 | #if HAVE_SYS_BITYPES_H | |
28658 | #include <sys/bitypes.h> | |
28659 | #endif | |
11e71ab8 | 28660 | #if HAVE_SYS_SELECT_H |
28661 | #include <sys/select.h> | |
28662 | #endif | |
33f5f8b9 | 28663 | |
28664 | ||
a6edf800 | 28665 | |
33f5f8b9 | 28666 | int |
28667 | main () | |
28668 | { | |
ca732765 | 28669 | static int test_array [1 - 2 * !(((long) (sizeof (int16_t))) >= 0)]; |
33f5f8b9 | 28670 | test_array [0] = 0 |
28671 | ||
28672 | ; | |
28673 | return 0; | |
28674 | } | |
28675 | _ACEOF | |
28676 | rm -f conftest.$ac_objext | |
28677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 28678 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 28679 | ac_status=$? |
af3004ff | 28680 | grep -v '^ *+' conftest.er1 >conftest.err |
28681 | rm -f conftest.er1 | |
28682 | cat conftest.err >&5 | |
33f5f8b9 | 28683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28684 | (exit $ac_status); } && | |
6263d81f | 28685 | { ac_try='test -z "$ac_c_werror_flag" |
28686 | || test ! -s conftest.err' | |
af3004ff | 28687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28688 | (eval $ac_try) 2>&5 | |
28689 | ac_status=$? | |
28690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28691 | (exit $ac_status); }; } && | |
28692 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 28693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28694 | (eval $ac_try) 2>&5 | |
28695 | ac_status=$? | |
28696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28697 | (exit $ac_status); }; }; then | |
28698 | ac_lo=0 ac_mid=0 | |
28699 | while :; do | |
28700 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 28701 | /* confdefs.h. */ |
28702 | _ACEOF | |
28703 | cat confdefs.h >>conftest.$ac_ext | |
28704 | cat >>conftest.$ac_ext <<_ACEOF | |
28705 | /* end confdefs.h. */ | |
33f5f8b9 | 28706 | |
a6edf800 | 28707 | #include <stdio.h> |
28708 | ||
33f5f8b9 | 28709 | /* What a mess.. many systems have added the (now standard) bit types |
28710 | * in their own ways, so we need to scan a wide variety of headers to | |
28711 | * find them.. | |
28712 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
28713 | */ | |
28714 | #if HAVE_SYS_TYPES_H | |
28715 | #include <sys/types.h> | |
28716 | #endif | |
28717 | #if STDC_HEADERS | |
28718 | #include <stdlib.h> | |
28719 | #include <stddef.h> | |
28720 | #endif | |
28721 | #if HAVE_INTTYPES_H | |
28722 | #include <inttypes.h> | |
28723 | #endif | |
28724 | #if HAVE_SYS_BITYPES_H | |
28725 | #include <sys/bitypes.h> | |
28726 | #endif | |
11e71ab8 | 28727 | #if HAVE_SYS_SELECT_H |
28728 | #include <sys/select.h> | |
28729 | #endif | |
33f5f8b9 | 28730 | |
28731 | ||
a6edf800 | 28732 | |
33f5f8b9 | 28733 | int |
28734 | main () | |
28735 | { | |
ca732765 | 28736 | static int test_array [1 - 2 * !(((long) (sizeof (int16_t))) <= $ac_mid)]; |
33f5f8b9 | 28737 | test_array [0] = 0 |
28738 | ||
28739 | ; | |
28740 | return 0; | |
28741 | } | |
28742 | _ACEOF | |
28743 | rm -f conftest.$ac_objext | |
28744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 28745 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 28746 | ac_status=$? |
af3004ff | 28747 | grep -v '^ *+' conftest.er1 >conftest.err |
28748 | rm -f conftest.er1 | |
28749 | cat conftest.err >&5 | |
33f5f8b9 | 28750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28751 | (exit $ac_status); } && | |
6263d81f | 28752 | { ac_try='test -z "$ac_c_werror_flag" |
28753 | || test ! -s conftest.err' | |
af3004ff | 28754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28755 | (eval $ac_try) 2>&5 | |
28756 | ac_status=$? | |
28757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28758 | (exit $ac_status); }; } && | |
28759 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 28760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28761 | (eval $ac_try) 2>&5 | |
28762 | ac_status=$? | |
28763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28764 | (exit $ac_status); }; }; then | |
28765 | ac_hi=$ac_mid; break | |
28766 | else | |
28767 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 28768 | sed 's/^/| /' conftest.$ac_ext >&5 |
28769 | ||
33f5f8b9 | 28770 | ac_lo=`expr $ac_mid + 1` |
af3004ff | 28771 | if test $ac_lo -le $ac_mid; then |
28772 | ac_lo= ac_hi= | |
28773 | break | |
28774 | fi | |
28775 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
33f5f8b9 | 28776 | fi |
af3004ff | 28777 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 28778 | done |
28779 | else | |
28780 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 28781 | sed 's/^/| /' conftest.$ac_ext >&5 |
28782 | ||
33f5f8b9 | 28783 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 28784 | /* confdefs.h. */ |
28785 | _ACEOF | |
28786 | cat confdefs.h >>conftest.$ac_ext | |
28787 | cat >>conftest.$ac_ext <<_ACEOF | |
28788 | /* end confdefs.h. */ | |
33f5f8b9 | 28789 | |
a6edf800 | 28790 | #include <stdio.h> |
28791 | ||
33f5f8b9 | 28792 | /* What a mess.. many systems have added the (now standard) bit types |
28793 | * in their own ways, so we need to scan a wide variety of headers to | |
28794 | * find them.. | |
28795 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
28796 | */ | |
28797 | #if HAVE_SYS_TYPES_H | |
28798 | #include <sys/types.h> | |
28799 | #endif | |
28800 | #if STDC_HEADERS | |
28801 | #include <stdlib.h> | |
28802 | #include <stddef.h> | |
28803 | #endif | |
28804 | #if HAVE_INTTYPES_H | |
28805 | #include <inttypes.h> | |
28806 | #endif | |
28807 | #if HAVE_SYS_BITYPES_H | |
28808 | #include <sys/bitypes.h> | |
28809 | #endif | |
11e71ab8 | 28810 | #if HAVE_SYS_SELECT_H |
28811 | #include <sys/select.h> | |
28812 | #endif | |
33f5f8b9 | 28813 | |
28814 | ||
a6edf800 | 28815 | |
33f5f8b9 | 28816 | int |
28817 | main () | |
28818 | { | |
ca732765 | 28819 | static int test_array [1 - 2 * !(((long) (sizeof (int16_t))) < 0)]; |
33f5f8b9 | 28820 | test_array [0] = 0 |
28821 | ||
28822 | ; | |
28823 | return 0; | |
28824 | } | |
28825 | _ACEOF | |
28826 | rm -f conftest.$ac_objext | |
28827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 28828 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 28829 | ac_status=$? |
af3004ff | 28830 | grep -v '^ *+' conftest.er1 >conftest.err |
28831 | rm -f conftest.er1 | |
28832 | cat conftest.err >&5 | |
33f5f8b9 | 28833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28834 | (exit $ac_status); } && | |
6263d81f | 28835 | { ac_try='test -z "$ac_c_werror_flag" |
28836 | || test ! -s conftest.err' | |
af3004ff | 28837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28838 | (eval $ac_try) 2>&5 | |
28839 | ac_status=$? | |
28840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28841 | (exit $ac_status); }; } && | |
28842 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 28843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28844 | (eval $ac_try) 2>&5 | |
28845 | ac_status=$? | |
28846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28847 | (exit $ac_status); }; }; then | |
28848 | ac_hi=-1 ac_mid=-1 | |
28849 | while :; do | |
28850 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 28851 | /* confdefs.h. */ |
28852 | _ACEOF | |
28853 | cat confdefs.h >>conftest.$ac_ext | |
28854 | cat >>conftest.$ac_ext <<_ACEOF | |
28855 | /* end confdefs.h. */ | |
33f5f8b9 | 28856 | |
a6edf800 | 28857 | #include <stdio.h> |
28858 | ||
33f5f8b9 | 28859 | /* What a mess.. many systems have added the (now standard) bit types |
28860 | * in their own ways, so we need to scan a wide variety of headers to | |
28861 | * find them.. | |
28862 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
28863 | */ | |
28864 | #if HAVE_SYS_TYPES_H | |
28865 | #include <sys/types.h> | |
28866 | #endif | |
28867 | #if STDC_HEADERS | |
28868 | #include <stdlib.h> | |
28869 | #include <stddef.h> | |
28870 | #endif | |
28871 | #if HAVE_INTTYPES_H | |
28872 | #include <inttypes.h> | |
28873 | #endif | |
28874 | #if HAVE_SYS_BITYPES_H | |
28875 | #include <sys/bitypes.h> | |
28876 | #endif | |
11e71ab8 | 28877 | #if HAVE_SYS_SELECT_H |
28878 | #include <sys/select.h> | |
28879 | #endif | |
33f5f8b9 | 28880 | |
28881 | ||
a6edf800 | 28882 | |
33f5f8b9 | 28883 | int |
28884 | main () | |
28885 | { | |
ca732765 | 28886 | static int test_array [1 - 2 * !(((long) (sizeof (int16_t))) >= $ac_mid)]; |
33f5f8b9 | 28887 | test_array [0] = 0 |
28888 | ||
28889 | ; | |
28890 | return 0; | |
28891 | } | |
28892 | _ACEOF | |
28893 | rm -f conftest.$ac_objext | |
28894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 28895 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 28896 | ac_status=$? |
af3004ff | 28897 | grep -v '^ *+' conftest.er1 >conftest.err |
28898 | rm -f conftest.er1 | |
28899 | cat conftest.err >&5 | |
33f5f8b9 | 28900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28901 | (exit $ac_status); } && | |
6263d81f | 28902 | { ac_try='test -z "$ac_c_werror_flag" |
28903 | || test ! -s conftest.err' | |
af3004ff | 28904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28905 | (eval $ac_try) 2>&5 | |
28906 | ac_status=$? | |
28907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28908 | (exit $ac_status); }; } && | |
28909 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 28910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28911 | (eval $ac_try) 2>&5 | |
28912 | ac_status=$? | |
28913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28914 | (exit $ac_status); }; }; then | |
28915 | ac_lo=$ac_mid; break | |
28916 | else | |
28917 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 28918 | sed 's/^/| /' conftest.$ac_ext >&5 |
28919 | ||
33f5f8b9 | 28920 | ac_hi=`expr '(' $ac_mid ')' - 1` |
af3004ff | 28921 | if test $ac_mid -le $ac_hi; then |
28922 | ac_lo= ac_hi= | |
28923 | break | |
28924 | fi | |
28925 | ac_mid=`expr 2 '*' $ac_mid` | |
33f5f8b9 | 28926 | fi |
af3004ff | 28927 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 28928 | done |
28929 | else | |
28930 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 28931 | sed 's/^/| /' conftest.$ac_ext >&5 |
28932 | ||
33f5f8b9 | 28933 | ac_lo= ac_hi= |
28934 | fi | |
af3004ff | 28935 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 28936 | fi |
af3004ff | 28937 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 28938 | # Binary search between lo and hi bounds. |
28939 | while test "x$ac_lo" != "x$ac_hi"; do | |
28940 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
28941 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 28942 | /* confdefs.h. */ |
28943 | _ACEOF | |
28944 | cat confdefs.h >>conftest.$ac_ext | |
28945 | cat >>conftest.$ac_ext <<_ACEOF | |
28946 | /* end confdefs.h. */ | |
33f5f8b9 | 28947 | |
a6edf800 | 28948 | #include <stdio.h> |
28949 | ||
33f5f8b9 | 28950 | /* What a mess.. many systems have added the (now standard) bit types |
28951 | * in their own ways, so we need to scan a wide variety of headers to | |
28952 | * find them.. | |
28953 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
28954 | */ | |
28955 | #if HAVE_SYS_TYPES_H | |
28956 | #include <sys/types.h> | |
28957 | #endif | |
28958 | #if STDC_HEADERS | |
28959 | #include <stdlib.h> | |
28960 | #include <stddef.h> | |
28961 | #endif | |
28962 | #if HAVE_INTTYPES_H | |
28963 | #include <inttypes.h> | |
28964 | #endif | |
28965 | #if HAVE_SYS_BITYPES_H | |
28966 | #include <sys/bitypes.h> | |
28967 | #endif | |
11e71ab8 | 28968 | #if HAVE_SYS_SELECT_H |
28969 | #include <sys/select.h> | |
28970 | #endif | |
33f5f8b9 | 28971 | |
28972 | ||
a6edf800 | 28973 | |
33f5f8b9 | 28974 | int |
28975 | main () | |
28976 | { | |
ca732765 | 28977 | static int test_array [1 - 2 * !(((long) (sizeof (int16_t))) <= $ac_mid)]; |
33f5f8b9 | 28978 | test_array [0] = 0 |
28979 | ||
28980 | ; | |
28981 | return 0; | |
28982 | } | |
28983 | _ACEOF | |
28984 | rm -f conftest.$ac_objext | |
28985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 28986 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 28987 | ac_status=$? |
af3004ff | 28988 | grep -v '^ *+' conftest.er1 >conftest.err |
28989 | rm -f conftest.er1 | |
28990 | cat conftest.err >&5 | |
33f5f8b9 | 28991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28992 | (exit $ac_status); } && | |
6263d81f | 28993 | { ac_try='test -z "$ac_c_werror_flag" |
28994 | || test ! -s conftest.err' | |
af3004ff | 28995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28996 | (eval $ac_try) 2>&5 | |
28997 | ac_status=$? | |
28998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28999 | (exit $ac_status); }; } && | |
29000 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 29001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29002 | (eval $ac_try) 2>&5 | |
29003 | ac_status=$? | |
29004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29005 | (exit $ac_status); }; }; then | |
29006 | ac_hi=$ac_mid | |
29007 | else | |
29008 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 29009 | sed 's/^/| /' conftest.$ac_ext >&5 |
29010 | ||
33f5f8b9 | 29011 | ac_lo=`expr '(' $ac_mid ')' + 1` |
29012 | fi | |
af3004ff | 29013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 29014 | done |
29015 | case $ac_lo in | |
ca732765 | 29016 | ?*) ac_cv_sizeof_int16_t=$ac_lo;; |
29017 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int16_t), 77 | |
ad21602a | 29018 | See \`config.log' for more details." >&5 |
ca732765 | 29019 | echo "$as_me: error: cannot compute sizeof (int16_t), 77 |
ad21602a | 29020 | See \`config.log' for more details." >&2;} |
33f5f8b9 | 29021 | { (exit 1); exit 1; }; } ;; |
29022 | esac | |
29023 | else | |
29024 | if test "$cross_compiling" = yes; then | |
6263d81f | 29025 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
29026 | See \`config.log' for more details." >&5 | |
29027 | echo "$as_me: error: cannot run test program while cross compiling | |
29028 | See \`config.log' for more details." >&2;} | |
33f5f8b9 | 29029 | { (exit 1); exit 1; }; } |
29030 | else | |
29031 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 29032 | /* confdefs.h. */ |
29033 | _ACEOF | |
29034 | cat confdefs.h >>conftest.$ac_ext | |
29035 | cat >>conftest.$ac_ext <<_ACEOF | |
29036 | /* end confdefs.h. */ | |
33f5f8b9 | 29037 | |
a6edf800 | 29038 | #include <stdio.h> |
29039 | ||
33f5f8b9 | 29040 | /* What a mess.. many systems have added the (now standard) bit types |
29041 | * in their own ways, so we need to scan a wide variety of headers to | |
29042 | * find them.. | |
29043 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
29044 | */ | |
29045 | #if HAVE_SYS_TYPES_H | |
29046 | #include <sys/types.h> | |
29047 | #endif | |
29048 | #if STDC_HEADERS | |
29049 | #include <stdlib.h> | |
29050 | #include <stddef.h> | |
29051 | #endif | |
29052 | #if HAVE_INTTYPES_H | |
29053 | #include <inttypes.h> | |
29054 | #endif | |
29055 | #if HAVE_SYS_BITYPES_H | |
29056 | #include <sys/bitypes.h> | |
29057 | #endif | |
11e71ab8 | 29058 | #if HAVE_SYS_SELECT_H |
29059 | #include <sys/select.h> | |
29060 | #endif | |
33f5f8b9 | 29061 | |
29062 | ||
a6edf800 | 29063 | |
ca732765 | 29064 | long longval () { return (long) (sizeof (int16_t)); } |
29065 | unsigned long ulongval () { return (long) (sizeof (int16_t)); } | |
33f5f8b9 | 29066 | #include <stdio.h> |
29067 | #include <stdlib.h> | |
33f5f8b9 | 29068 | int |
29069 | main () | |
29070 | { | |
29071 | ||
29072 | FILE *f = fopen ("conftest.val", "w"); | |
29073 | if (! f) | |
29074 | exit (1); | |
ca732765 | 29075 | if (((long) (sizeof (int16_t))) < 0) |
33f5f8b9 | 29076 | { |
29077 | long i = longval (); | |
ca732765 | 29078 | if (i != ((long) (sizeof (int16_t)))) |
33f5f8b9 | 29079 | exit (1); |
29080 | fprintf (f, "%ld\n", i); | |
29081 | } | |
29082 | else | |
29083 | { | |
29084 | unsigned long i = ulongval (); | |
ca732765 | 29085 | if (i != ((long) (sizeof (int16_t)))) |
33f5f8b9 | 29086 | exit (1); |
29087 | fprintf (f, "%lu\n", i); | |
29088 | } | |
29089 | exit (ferror (f) || fclose (f) != 0); | |
29090 | ||
29091 | ; | |
29092 | return 0; | |
29093 | } | |
29094 | _ACEOF | |
29095 | rm -f conftest$ac_exeext | |
29096 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29097 | (eval $ac_link) 2>&5 | |
29098 | ac_status=$? | |
29099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29100 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
29101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29102 | (eval $ac_try) 2>&5 | |
29103 | ac_status=$? | |
29104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29105 | (exit $ac_status); }; }; then | |
ca732765 | 29106 | ac_cv_sizeof_int16_t=`cat conftest.val` |
33f5f8b9 | 29107 | else |
29108 | echo "$as_me: program exited with status $ac_status" >&5 | |
29109 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 29110 | sed 's/^/| /' conftest.$ac_ext >&5 |
29111 | ||
33f5f8b9 | 29112 | ( exit $ac_status ) |
ca732765 | 29113 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int16_t), 77 |
ad21602a | 29114 | See \`config.log' for more details." >&5 |
ca732765 | 29115 | echo "$as_me: error: cannot compute sizeof (int16_t), 77 |
ad21602a | 29116 | See \`config.log' for more details." >&2;} |
33f5f8b9 | 29117 | { (exit 1); exit 1; }; } |
29118 | fi | |
af3004ff | 29119 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 29120 | fi |
29121 | fi | |
29122 | rm -f conftest.val | |
29123 | else | |
ca732765 | 29124 | ac_cv_sizeof_int16_t=0 |
33f5f8b9 | 29125 | fi |
29126 | fi | |
ca732765 | 29127 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int16_t" >&5 |
29128 | echo "${ECHO_T}$ac_cv_sizeof_int16_t" >&6 | |
33f5f8b9 | 29129 | cat >>confdefs.h <<_ACEOF |
ca732765 | 29130 | #define SIZEOF_INT16_T $ac_cv_sizeof_int16_t |
33f5f8b9 | 29131 | _ACEOF |
29132 | ||
29133 | ||
29134 | ||
29135 | cat >>confdefs.h <<\_ACEOF | |
ca732765 | 29136 | #define HAVE_INT16_T 1 |
33f5f8b9 | 29137 | _ACEOF |
29138 | ||
29139 | ||
29140 | fi | |
29141 | ||
29142 | ||
ca732765 | 29143 | echo "$as_me:$LINENO: checking for short" >&5 |
29144 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
29145 | if test "${ac_cv_type_short+set}" = set; then | |
33f5f8b9 | 29146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
29147 | else | |
29148 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 29149 | /* confdefs.h. */ |
29150 | _ACEOF | |
29151 | cat confdefs.h >>conftest.$ac_ext | |
29152 | cat >>conftest.$ac_ext <<_ACEOF | |
29153 | /* end confdefs.h. */ | |
33f5f8b9 | 29154 | |
29155 | /* What a mess.. many systems have added the (now standard) bit types | |
29156 | * in their own ways, so we need to scan a wide variety of headers to | |
29157 | * find them.. | |
29158 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
29159 | */ | |
29160 | #if HAVE_SYS_TYPES_H | |
29161 | #include <sys/types.h> | |
29162 | #endif | |
29163 | #if STDC_HEADERS | |
29164 | #include <stdlib.h> | |
29165 | #include <stddef.h> | |
29166 | #endif | |
29167 | #if HAVE_INTTYPES_H | |
29168 | #include <inttypes.h> | |
29169 | #endif | |
29170 | #if HAVE_SYS_BITYPES_H | |
29171 | #include <sys/bitypes.h> | |
29172 | #endif | |
11e71ab8 | 29173 | #if HAVE_SYS_SELECT_H |
29174 | #include <sys/select.h> | |
29175 | #endif | |
33f5f8b9 | 29176 | |
29177 | ||
33f5f8b9 | 29178 | int |
29179 | main () | |
29180 | { | |
ca732765 | 29181 | if ((short *) 0) |
33f5f8b9 | 29182 | return 0; |
ca732765 | 29183 | if (sizeof (short)) |
33f5f8b9 | 29184 | return 0; |
29185 | ; | |
29186 | return 0; | |
29187 | } | |
29188 | _ACEOF | |
29189 | rm -f conftest.$ac_objext | |
29190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 29191 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 29192 | ac_status=$? |
af3004ff | 29193 | grep -v '^ *+' conftest.er1 >conftest.err |
29194 | rm -f conftest.er1 | |
29195 | cat conftest.err >&5 | |
33f5f8b9 | 29196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29197 | (exit $ac_status); } && | |
6263d81f | 29198 | { ac_try='test -z "$ac_c_werror_flag" |
29199 | || test ! -s conftest.err' | |
af3004ff | 29200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29201 | (eval $ac_try) 2>&5 | |
29202 | ac_status=$? | |
29203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29204 | (exit $ac_status); }; } && | |
29205 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 29206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29207 | (eval $ac_try) 2>&5 | |
29208 | ac_status=$? | |
29209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29210 | (exit $ac_status); }; }; then | |
ca732765 | 29211 | ac_cv_type_short=yes |
33f5f8b9 | 29212 | else |
29213 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 29214 | sed 's/^/| /' conftest.$ac_ext >&5 |
29215 | ||
ca732765 | 29216 | ac_cv_type_short=no |
33f5f8b9 | 29217 | fi |
af3004ff | 29218 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 29219 | fi |
ca732765 | 29220 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
29221 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
29222 | if test $ac_cv_type_short = yes; then | |
33f5f8b9 | 29223 | |
ca732765 | 29224 | echo "$as_me:$LINENO: checking for short" >&5 |
29225 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
29226 | if test "${ac_cv_type_short+set}" = set; then | |
33f5f8b9 | 29227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
29228 | else | |
29229 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 29230 | /* confdefs.h. */ |
29231 | _ACEOF | |
29232 | cat confdefs.h >>conftest.$ac_ext | |
29233 | cat >>conftest.$ac_ext <<_ACEOF | |
29234 | /* end confdefs.h. */ | |
33f5f8b9 | 29235 | |
a6edf800 | 29236 | #include <stdio.h> |
29237 | ||
33f5f8b9 | 29238 | /* What a mess.. many systems have added the (now standard) bit types |
29239 | * in their own ways, so we need to scan a wide variety of headers to | |
29240 | * find them.. | |
29241 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
29242 | */ | |
29243 | #if HAVE_SYS_TYPES_H | |
29244 | #include <sys/types.h> | |
29245 | #endif | |
29246 | #if STDC_HEADERS | |
29247 | #include <stdlib.h> | |
29248 | #include <stddef.h> | |
29249 | #endif | |
29250 | #if HAVE_INTTYPES_H | |
29251 | #include <inttypes.h> | |
29252 | #endif | |
29253 | #if HAVE_SYS_BITYPES_H | |
29254 | #include <sys/bitypes.h> | |
29255 | #endif | |
11e71ab8 | 29256 | #if HAVE_SYS_SELECT_H |
29257 | #include <sys/select.h> | |
29258 | #endif | |
33f5f8b9 | 29259 | |
29260 | ||
a6edf800 | 29261 | |
33f5f8b9 | 29262 | int |
29263 | main () | |
29264 | { | |
ca732765 | 29265 | if ((short *) 0) |
33f5f8b9 | 29266 | return 0; |
ca732765 | 29267 | if (sizeof (short)) |
33f5f8b9 | 29268 | return 0; |
29269 | ; | |
29270 | return 0; | |
29271 | } | |
29272 | _ACEOF | |
29273 | rm -f conftest.$ac_objext | |
29274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 29275 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 29276 | ac_status=$? |
af3004ff | 29277 | grep -v '^ *+' conftest.er1 >conftest.err |
29278 | rm -f conftest.er1 | |
29279 | cat conftest.err >&5 | |
33f5f8b9 | 29280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29281 | (exit $ac_status); } && | |
6263d81f | 29282 | { ac_try='test -z "$ac_c_werror_flag" |
29283 | || test ! -s conftest.err' | |
af3004ff | 29284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29285 | (eval $ac_try) 2>&5 | |
29286 | ac_status=$? | |
29287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29288 | (exit $ac_status); }; } && | |
29289 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 29290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29291 | (eval $ac_try) 2>&5 | |
29292 | ac_status=$? | |
29293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29294 | (exit $ac_status); }; }; then | |
ca732765 | 29295 | ac_cv_type_short=yes |
33f5f8b9 | 29296 | else |
29297 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 29298 | sed 's/^/| /' conftest.$ac_ext >&5 |
29299 | ||
ca732765 | 29300 | ac_cv_type_short=no |
33f5f8b9 | 29301 | fi |
af3004ff | 29302 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 29303 | fi |
ca732765 | 29304 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
29305 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
33f5f8b9 | 29306 | |
ca732765 | 29307 | echo "$as_me:$LINENO: checking size of short" >&5 |
29308 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
29309 | if test "${ac_cv_sizeof_short+set}" = set; then | |
33f5f8b9 | 29310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
29311 | else | |
ca732765 | 29312 | if test "$ac_cv_type_short" = yes; then |
33f5f8b9 | 29313 | # The cast to unsigned long works around a bug in the HP C Compiler |
29314 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
29315 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
29316 | # This bug is HP SR number 8606223364. | |
29317 | if test "$cross_compiling" = yes; then | |
29318 | # Depending upon the size, compute the lo and hi bounds. | |
29319 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 29320 | /* confdefs.h. */ |
29321 | _ACEOF | |
29322 | cat confdefs.h >>conftest.$ac_ext | |
29323 | cat >>conftest.$ac_ext <<_ACEOF | |
29324 | /* end confdefs.h. */ | |
33f5f8b9 | 29325 | |
a6edf800 | 29326 | #include <stdio.h> |
29327 | ||
33f5f8b9 | 29328 | /* What a mess.. many systems have added the (now standard) bit types |
29329 | * in their own ways, so we need to scan a wide variety of headers to | |
29330 | * find them.. | |
29331 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
29332 | */ | |
29333 | #if HAVE_SYS_TYPES_H | |
29334 | #include <sys/types.h> | |
29335 | #endif | |
29336 | #if STDC_HEADERS | |
29337 | #include <stdlib.h> | |
29338 | #include <stddef.h> | |
29339 | #endif | |
29340 | #if HAVE_INTTYPES_H | |
29341 | #include <inttypes.h> | |
29342 | #endif | |
29343 | #if HAVE_SYS_BITYPES_H | |
29344 | #include <sys/bitypes.h> | |
29345 | #endif | |
11e71ab8 | 29346 | #if HAVE_SYS_SELECT_H |
29347 | #include <sys/select.h> | |
29348 | #endif | |
33f5f8b9 | 29349 | |
29350 | ||
a6edf800 | 29351 | |
33f5f8b9 | 29352 | int |
29353 | main () | |
29354 | { | |
ca732765 | 29355 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
33f5f8b9 | 29356 | test_array [0] = 0 |
29357 | ||
29358 | ; | |
29359 | return 0; | |
29360 | } | |
29361 | _ACEOF | |
29362 | rm -f conftest.$ac_objext | |
29363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 29364 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 29365 | ac_status=$? |
af3004ff | 29366 | grep -v '^ *+' conftest.er1 >conftest.err |
29367 | rm -f conftest.er1 | |
29368 | cat conftest.err >&5 | |
33f5f8b9 | 29369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29370 | (exit $ac_status); } && | |
6263d81f | 29371 | { ac_try='test -z "$ac_c_werror_flag" |
29372 | || test ! -s conftest.err' | |
af3004ff | 29373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29374 | (eval $ac_try) 2>&5 | |
29375 | ac_status=$? | |
29376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29377 | (exit $ac_status); }; } && | |
29378 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 29379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29380 | (eval $ac_try) 2>&5 | |
29381 | ac_status=$? | |
29382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29383 | (exit $ac_status); }; }; then | |
29384 | ac_lo=0 ac_mid=0 | |
29385 | while :; do | |
29386 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 29387 | /* confdefs.h. */ |
29388 | _ACEOF | |
29389 | cat confdefs.h >>conftest.$ac_ext | |
29390 | cat >>conftest.$ac_ext <<_ACEOF | |
29391 | /* end confdefs.h. */ | |
33f5f8b9 | 29392 | |
a6edf800 | 29393 | #include <stdio.h> |
29394 | ||
33f5f8b9 | 29395 | /* What a mess.. many systems have added the (now standard) bit types |
29396 | * in their own ways, so we need to scan a wide variety of headers to | |
29397 | * find them.. | |
29398 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
29399 | */ | |
29400 | #if HAVE_SYS_TYPES_H | |
29401 | #include <sys/types.h> | |
29402 | #endif | |
29403 | #if STDC_HEADERS | |
29404 | #include <stdlib.h> | |
29405 | #include <stddef.h> | |
29406 | #endif | |
29407 | #if HAVE_INTTYPES_H | |
29408 | #include <inttypes.h> | |
29409 | #endif | |
29410 | #if HAVE_SYS_BITYPES_H | |
29411 | #include <sys/bitypes.h> | |
29412 | #endif | |
11e71ab8 | 29413 | #if HAVE_SYS_SELECT_H |
29414 | #include <sys/select.h> | |
29415 | #endif | |
33f5f8b9 | 29416 | |
29417 | ||
a6edf800 | 29418 | |
33f5f8b9 | 29419 | int |
29420 | main () | |
29421 | { | |
ca732765 | 29422 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
33f5f8b9 | 29423 | test_array [0] = 0 |
29424 | ||
29425 | ; | |
29426 | return 0; | |
29427 | } | |
29428 | _ACEOF | |
29429 | rm -f conftest.$ac_objext | |
29430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 29431 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 29432 | ac_status=$? |
af3004ff | 29433 | grep -v '^ *+' conftest.er1 >conftest.err |
29434 | rm -f conftest.er1 | |
29435 | cat conftest.err >&5 | |
33f5f8b9 | 29436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29437 | (exit $ac_status); } && | |
6263d81f | 29438 | { ac_try='test -z "$ac_c_werror_flag" |
29439 | || test ! -s conftest.err' | |
af3004ff | 29440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29441 | (eval $ac_try) 2>&5 | |
29442 | ac_status=$? | |
29443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29444 | (exit $ac_status); }; } && | |
29445 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 29446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29447 | (eval $ac_try) 2>&5 | |
29448 | ac_status=$? | |
29449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29450 | (exit $ac_status); }; }; then | |
29451 | ac_hi=$ac_mid; break | |
29452 | else | |
29453 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 29454 | sed 's/^/| /' conftest.$ac_ext >&5 |
29455 | ||
33f5f8b9 | 29456 | ac_lo=`expr $ac_mid + 1` |
af3004ff | 29457 | if test $ac_lo -le $ac_mid; then |
29458 | ac_lo= ac_hi= | |
29459 | break | |
29460 | fi | |
29461 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
33f5f8b9 | 29462 | fi |
af3004ff | 29463 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 29464 | done |
29465 | else | |
29466 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 29467 | sed 's/^/| /' conftest.$ac_ext >&5 |
29468 | ||
33f5f8b9 | 29469 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 29470 | /* confdefs.h. */ |
29471 | _ACEOF | |
29472 | cat confdefs.h >>conftest.$ac_ext | |
29473 | cat >>conftest.$ac_ext <<_ACEOF | |
29474 | /* end confdefs.h. */ | |
33f5f8b9 | 29475 | |
a6edf800 | 29476 | #include <stdio.h> |
29477 | ||
33f5f8b9 | 29478 | /* What a mess.. many systems have added the (now standard) bit types |
29479 | * in their own ways, so we need to scan a wide variety of headers to | |
29480 | * find them.. | |
29481 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
29482 | */ | |
29483 | #if HAVE_SYS_TYPES_H | |
29484 | #include <sys/types.h> | |
29485 | #endif | |
29486 | #if STDC_HEADERS | |
29487 | #include <stdlib.h> | |
29488 | #include <stddef.h> | |
29489 | #endif | |
29490 | #if HAVE_INTTYPES_H | |
29491 | #include <inttypes.h> | |
29492 | #endif | |
29493 | #if HAVE_SYS_BITYPES_H | |
29494 | #include <sys/bitypes.h> | |
29495 | #endif | |
11e71ab8 | 29496 | #if HAVE_SYS_SELECT_H |
29497 | #include <sys/select.h> | |
29498 | #endif | |
33f5f8b9 | 29499 | |
29500 | ||
a6edf800 | 29501 | |
33f5f8b9 | 29502 | int |
29503 | main () | |
29504 | { | |
ca732765 | 29505 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
33f5f8b9 | 29506 | test_array [0] = 0 |
29507 | ||
29508 | ; | |
29509 | return 0; | |
29510 | } | |
29511 | _ACEOF | |
29512 | rm -f conftest.$ac_objext | |
29513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 29514 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 29515 | ac_status=$? |
af3004ff | 29516 | grep -v '^ *+' conftest.er1 >conftest.err |
29517 | rm -f conftest.er1 | |
29518 | cat conftest.err >&5 | |
33f5f8b9 | 29519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29520 | (exit $ac_status); } && | |
6263d81f | 29521 | { ac_try='test -z "$ac_c_werror_flag" |
29522 | || test ! -s conftest.err' | |
af3004ff | 29523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29524 | (eval $ac_try) 2>&5 | |
29525 | ac_status=$? | |
29526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29527 | (exit $ac_status); }; } && | |
29528 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 29529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29530 | (eval $ac_try) 2>&5 | |
29531 | ac_status=$? | |
29532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29533 | (exit $ac_status); }; }; then | |
29534 | ac_hi=-1 ac_mid=-1 | |
29535 | while :; do | |
29536 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 29537 | /* confdefs.h. */ |
29538 | _ACEOF | |
29539 | cat confdefs.h >>conftest.$ac_ext | |
29540 | cat >>conftest.$ac_ext <<_ACEOF | |
29541 | /* end confdefs.h. */ | |
33f5f8b9 | 29542 | |
a6edf800 | 29543 | #include <stdio.h> |
29544 | ||
33f5f8b9 | 29545 | /* What a mess.. many systems have added the (now standard) bit types |
29546 | * in their own ways, so we need to scan a wide variety of headers to | |
29547 | * find them.. | |
29548 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
29549 | */ | |
29550 | #if HAVE_SYS_TYPES_H | |
29551 | #include <sys/types.h> | |
29552 | #endif | |
29553 | #if STDC_HEADERS | |
29554 | #include <stdlib.h> | |
29555 | #include <stddef.h> | |
29556 | #endif | |
29557 | #if HAVE_INTTYPES_H | |
29558 | #include <inttypes.h> | |
29559 | #endif | |
29560 | #if HAVE_SYS_BITYPES_H | |
29561 | #include <sys/bitypes.h> | |
29562 | #endif | |
11e71ab8 | 29563 | #if HAVE_SYS_SELECT_H |
29564 | #include <sys/select.h> | |
29565 | #endif | |
33f5f8b9 | 29566 | |
29567 | ||
a6edf800 | 29568 | |
33f5f8b9 | 29569 | int |
29570 | main () | |
29571 | { | |
ca732765 | 29572 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
33f5f8b9 | 29573 | test_array [0] = 0 |
29574 | ||
29575 | ; | |
29576 | return 0; | |
29577 | } | |
29578 | _ACEOF | |
29579 | rm -f conftest.$ac_objext | |
29580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 29581 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 29582 | ac_status=$? |
af3004ff | 29583 | grep -v '^ *+' conftest.er1 >conftest.err |
29584 | rm -f conftest.er1 | |
29585 | cat conftest.err >&5 | |
33f5f8b9 | 29586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29587 | (exit $ac_status); } && | |
6263d81f | 29588 | { ac_try='test -z "$ac_c_werror_flag" |
29589 | || test ! -s conftest.err' | |
af3004ff | 29590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29591 | (eval $ac_try) 2>&5 | |
29592 | ac_status=$? | |
29593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29594 | (exit $ac_status); }; } && | |
29595 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 29596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29597 | (eval $ac_try) 2>&5 | |
29598 | ac_status=$? | |
29599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29600 | (exit $ac_status); }; }; then | |
29601 | ac_lo=$ac_mid; break | |
29602 | else | |
29603 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 29604 | sed 's/^/| /' conftest.$ac_ext >&5 |
29605 | ||
33f5f8b9 | 29606 | ac_hi=`expr '(' $ac_mid ')' - 1` |
af3004ff | 29607 | if test $ac_mid -le $ac_hi; then |
29608 | ac_lo= ac_hi= | |
29609 | break | |
29610 | fi | |
29611 | ac_mid=`expr 2 '*' $ac_mid` | |
33f5f8b9 | 29612 | fi |
af3004ff | 29613 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 29614 | done |
29615 | else | |
29616 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 29617 | sed 's/^/| /' conftest.$ac_ext >&5 |
29618 | ||
33f5f8b9 | 29619 | ac_lo= ac_hi= |
29620 | fi | |
af3004ff | 29621 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 29622 | fi |
af3004ff | 29623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 29624 | # Binary search between lo and hi bounds. |
29625 | while test "x$ac_lo" != "x$ac_hi"; do | |
29626 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
29627 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 29628 | /* confdefs.h. */ |
29629 | _ACEOF | |
29630 | cat confdefs.h >>conftest.$ac_ext | |
29631 | cat >>conftest.$ac_ext <<_ACEOF | |
29632 | /* end confdefs.h. */ | |
33f5f8b9 | 29633 | |
a6edf800 | 29634 | #include <stdio.h> |
29635 | ||
33f5f8b9 | 29636 | /* What a mess.. many systems have added the (now standard) bit types |
29637 | * in their own ways, so we need to scan a wide variety of headers to | |
29638 | * find them.. | |
29639 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
29640 | */ | |
29641 | #if HAVE_SYS_TYPES_H | |
29642 | #include <sys/types.h> | |
29643 | #endif | |
29644 | #if STDC_HEADERS | |
29645 | #include <stdlib.h> | |
29646 | #include <stddef.h> | |
29647 | #endif | |
29648 | #if HAVE_INTTYPES_H | |
29649 | #include <inttypes.h> | |
29650 | #endif | |
2f44bd34 | 29651 | #if HAVE_SYS_BITYPES_H |
29652 | #include <sys/bitypes.h> | |
0eb0a2df | 29653 | #endif |
11e71ab8 | 29654 | #if HAVE_SYS_SELECT_H |
29655 | #include <sys/select.h> | |
29656 | #endif | |
dd0004a0 | 29657 | |
29658 | ||
29659 | ||
33f5f8b9 | 29660 | int |
29661 | main () | |
29662 | { | |
ca732765 | 29663 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
33f5f8b9 | 29664 | test_array [0] = 0 |
29665 | ||
29666 | ; | |
29667 | return 0; | |
29668 | } | |
29669 | _ACEOF | |
29670 | rm -f conftest.$ac_objext | |
29671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 29672 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 29673 | ac_status=$? |
af3004ff | 29674 | grep -v '^ *+' conftest.er1 >conftest.err |
29675 | rm -f conftest.er1 | |
29676 | cat conftest.err >&5 | |
33f5f8b9 | 29677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29678 | (exit $ac_status); } && | |
6263d81f | 29679 | { ac_try='test -z "$ac_c_werror_flag" |
29680 | || test ! -s conftest.err' | |
af3004ff | 29681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29682 | (eval $ac_try) 2>&5 | |
29683 | ac_status=$? | |
29684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29685 | (exit $ac_status); }; } && | |
29686 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 29687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29688 | (eval $ac_try) 2>&5 | |
29689 | ac_status=$? | |
29690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29691 | (exit $ac_status); }; }; then | |
29692 | ac_hi=$ac_mid | |
29693 | else | |
29694 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 29695 | sed 's/^/| /' conftest.$ac_ext >&5 |
29696 | ||
33f5f8b9 | 29697 | ac_lo=`expr '(' $ac_mid ')' + 1` |
29698 | fi | |
af3004ff | 29699 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 29700 | done |
29701 | case $ac_lo in | |
ca732765 | 29702 | ?*) ac_cv_sizeof_short=$ac_lo;; |
29703 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
ad21602a | 29704 | See \`config.log' for more details." >&5 |
ca732765 | 29705 | echo "$as_me: error: cannot compute sizeof (short), 77 |
ad21602a | 29706 | See \`config.log' for more details." >&2;} |
33f5f8b9 | 29707 | { (exit 1); exit 1; }; } ;; |
29708 | esac | |
29709 | else | |
29710 | if test "$cross_compiling" = yes; then | |
6263d81f | 29711 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
29712 | See \`config.log' for more details." >&5 | |
29713 | echo "$as_me: error: cannot run test program while cross compiling | |
29714 | See \`config.log' for more details." >&2;} | |
33f5f8b9 | 29715 | { (exit 1); exit 1; }; } |
29716 | else | |
29717 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 29718 | /* confdefs.h. */ |
29719 | _ACEOF | |
29720 | cat confdefs.h >>conftest.$ac_ext | |
29721 | cat >>conftest.$ac_ext <<_ACEOF | |
29722 | /* end confdefs.h. */ | |
33f5f8b9 | 29723 | |
a6edf800 | 29724 | #include <stdio.h> |
29725 | ||
33f5f8b9 | 29726 | /* What a mess.. many systems have added the (now standard) bit types |
29727 | * in their own ways, so we need to scan a wide variety of headers to | |
29728 | * find them.. | |
29729 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
29730 | */ | |
29731 | #if HAVE_SYS_TYPES_H | |
29732 | #include <sys/types.h> | |
29733 | #endif | |
29734 | #if STDC_HEADERS | |
29735 | #include <stdlib.h> | |
29736 | #include <stddef.h> | |
29737 | #endif | |
29738 | #if HAVE_INTTYPES_H | |
29739 | #include <inttypes.h> | |
29740 | #endif | |
29741 | #if HAVE_SYS_BITYPES_H | |
29742 | #include <sys/bitypes.h> | |
29743 | #endif | |
11e71ab8 | 29744 | #if HAVE_SYS_SELECT_H |
29745 | #include <sys/select.h> | |
29746 | #endif | |
33f5f8b9 | 29747 | |
29748 | ||
a6edf800 | 29749 | |
ca732765 | 29750 | long longval () { return (long) (sizeof (short)); } |
29751 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
33f5f8b9 | 29752 | #include <stdio.h> |
29753 | #include <stdlib.h> | |
33f5f8b9 | 29754 | int |
29755 | main () | |
29756 | { | |
29757 | ||
29758 | FILE *f = fopen ("conftest.val", "w"); | |
29759 | if (! f) | |
29760 | exit (1); | |
ca732765 | 29761 | if (((long) (sizeof (short))) < 0) |
33f5f8b9 | 29762 | { |
29763 | long i = longval (); | |
ca732765 | 29764 | if (i != ((long) (sizeof (short)))) |
33f5f8b9 | 29765 | exit (1); |
29766 | fprintf (f, "%ld\n", i); | |
29767 | } | |
29768 | else | |
29769 | { | |
29770 | unsigned long i = ulongval (); | |
ca732765 | 29771 | if (i != ((long) (sizeof (short)))) |
33f5f8b9 | 29772 | exit (1); |
29773 | fprintf (f, "%lu\n", i); | |
29774 | } | |
29775 | exit (ferror (f) || fclose (f) != 0); | |
29776 | ||
29777 | ; | |
29778 | return 0; | |
29779 | } | |
29780 | _ACEOF | |
29781 | rm -f conftest$ac_exeext | |
29782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29783 | (eval $ac_link) 2>&5 | |
29784 | ac_status=$? | |
29785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29786 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
29787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29788 | (eval $ac_try) 2>&5 | |
29789 | ac_status=$? | |
29790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29791 | (exit $ac_status); }; }; then | |
ca732765 | 29792 | ac_cv_sizeof_short=`cat conftest.val` |
33f5f8b9 | 29793 | else |
29794 | echo "$as_me: program exited with status $ac_status" >&5 | |
29795 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 29796 | sed 's/^/| /' conftest.$ac_ext >&5 |
29797 | ||
33f5f8b9 | 29798 | ( exit $ac_status ) |
ca732765 | 29799 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
ad21602a | 29800 | See \`config.log' for more details." >&5 |
ca732765 | 29801 | echo "$as_me: error: cannot compute sizeof (short), 77 |
ad21602a | 29802 | See \`config.log' for more details." >&2;} |
33f5f8b9 | 29803 | { (exit 1); exit 1; }; } |
29804 | fi | |
af3004ff | 29805 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 29806 | fi |
29807 | fi | |
29808 | rm -f conftest.val | |
29809 | else | |
ca732765 | 29810 | ac_cv_sizeof_short=0 |
33f5f8b9 | 29811 | fi |
29812 | fi | |
ca732765 | 29813 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
29814 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
33f5f8b9 | 29815 | cat >>confdefs.h <<_ACEOF |
ca732765 | 29816 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
33f5f8b9 | 29817 | _ACEOF |
29818 | ||
29819 | ||
29820 | ||
29821 | cat >>confdefs.h <<\_ACEOF | |
ca732765 | 29822 | #define HAVE_SHORT 1 |
33f5f8b9 | 29823 | _ACEOF |
29824 | ||
29825 | ||
29826 | fi | |
29827 | ||
29828 | ||
ca732765 | 29829 | echo "$as_me:$LINENO: checking for int" >&5 |
29830 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
29831 | if test "${ac_cv_type_int+set}" = set; then | |
33f5f8b9 | 29832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
29833 | else | |
29834 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 29835 | /* confdefs.h. */ |
29836 | _ACEOF | |
29837 | cat confdefs.h >>conftest.$ac_ext | |
29838 | cat >>conftest.$ac_ext <<_ACEOF | |
29839 | /* end confdefs.h. */ | |
33f5f8b9 | 29840 | |
29841 | /* What a mess.. many systems have added the (now standard) bit types | |
29842 | * in their own ways, so we need to scan a wide variety of headers to | |
29843 | * find them.. | |
29844 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
29845 | */ | |
29846 | #if HAVE_SYS_TYPES_H | |
29847 | #include <sys/types.h> | |
29848 | #endif | |
29849 | #if STDC_HEADERS | |
29850 | #include <stdlib.h> | |
29851 | #include <stddef.h> | |
29852 | #endif | |
29853 | #if HAVE_INTTYPES_H | |
29854 | #include <inttypes.h> | |
29855 | #endif | |
29856 | #if HAVE_SYS_BITYPES_H | |
29857 | #include <sys/bitypes.h> | |
29858 | #endif | |
11e71ab8 | 29859 | #if HAVE_SYS_SELECT_H |
29860 | #include <sys/select.h> | |
29861 | #endif | |
33f5f8b9 | 29862 | |
29863 | ||
33f5f8b9 | 29864 | int |
29865 | main () | |
29866 | { | |
ca732765 | 29867 | if ((int *) 0) |
33f5f8b9 | 29868 | return 0; |
ca732765 | 29869 | if (sizeof (int)) |
33f5f8b9 | 29870 | return 0; |
29871 | ; | |
29872 | return 0; | |
29873 | } | |
29874 | _ACEOF | |
29875 | rm -f conftest.$ac_objext | |
29876 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 29877 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 29878 | ac_status=$? |
af3004ff | 29879 | grep -v '^ *+' conftest.er1 >conftest.err |
29880 | rm -f conftest.er1 | |
29881 | cat conftest.err >&5 | |
33f5f8b9 | 29882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29883 | (exit $ac_status); } && | |
6263d81f | 29884 | { ac_try='test -z "$ac_c_werror_flag" |
29885 | || test ! -s conftest.err' | |
af3004ff | 29886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29887 | (eval $ac_try) 2>&5 | |
29888 | ac_status=$? | |
29889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29890 | (exit $ac_status); }; } && | |
29891 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 29892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29893 | (eval $ac_try) 2>&5 | |
29894 | ac_status=$? | |
29895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29896 | (exit $ac_status); }; }; then | |
ca732765 | 29897 | ac_cv_type_int=yes |
33f5f8b9 | 29898 | else |
29899 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 29900 | sed 's/^/| /' conftest.$ac_ext >&5 |
29901 | ||
ca732765 | 29902 | ac_cv_type_int=no |
33f5f8b9 | 29903 | fi |
af3004ff | 29904 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 29905 | fi |
ca732765 | 29906 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
29907 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
29908 | if test $ac_cv_type_int = yes; then | |
33f5f8b9 | 29909 | |
ca732765 | 29910 | echo "$as_me:$LINENO: checking for int" >&5 |
29911 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
29912 | if test "${ac_cv_type_int+set}" = set; then | |
33f5f8b9 | 29913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
29914 | else | |
29915 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 29916 | /* confdefs.h. */ |
29917 | _ACEOF | |
29918 | cat confdefs.h >>conftest.$ac_ext | |
29919 | cat >>conftest.$ac_ext <<_ACEOF | |
29920 | /* end confdefs.h. */ | |
33f5f8b9 | 29921 | |
ca732765 | 29922 | #include <stdio.h> |
29923 | ||
33f5f8b9 | 29924 | /* What a mess.. many systems have added the (now standard) bit types |
29925 | * in their own ways, so we need to scan a wide variety of headers to | |
29926 | * find them.. | |
29927 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
29928 | */ | |
29929 | #if HAVE_SYS_TYPES_H | |
29930 | #include <sys/types.h> | |
29931 | #endif | |
29932 | #if STDC_HEADERS | |
29933 | #include <stdlib.h> | |
29934 | #include <stddef.h> | |
29935 | #endif | |
29936 | #if HAVE_INTTYPES_H | |
29937 | #include <inttypes.h> | |
29938 | #endif | |
29939 | #if HAVE_SYS_BITYPES_H | |
29940 | #include <sys/bitypes.h> | |
29941 | #endif | |
11e71ab8 | 29942 | #if HAVE_SYS_SELECT_H |
29943 | #include <sys/select.h> | |
29944 | #endif | |
33f5f8b9 | 29945 | |
29946 | ||
ca732765 | 29947 | |
33f5f8b9 | 29948 | int |
29949 | main () | |
29950 | { | |
ca732765 | 29951 | if ((int *) 0) |
33f5f8b9 | 29952 | return 0; |
ca732765 | 29953 | if (sizeof (int)) |
33f5f8b9 | 29954 | return 0; |
29955 | ; | |
29956 | return 0; | |
29957 | } | |
29958 | _ACEOF | |
29959 | rm -f conftest.$ac_objext | |
29960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 29961 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 29962 | ac_status=$? |
af3004ff | 29963 | grep -v '^ *+' conftest.er1 >conftest.err |
29964 | rm -f conftest.er1 | |
29965 | cat conftest.err >&5 | |
33f5f8b9 | 29966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29967 | (exit $ac_status); } && | |
6263d81f | 29968 | { ac_try='test -z "$ac_c_werror_flag" |
29969 | || test ! -s conftest.err' | |
af3004ff | 29970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29971 | (eval $ac_try) 2>&5 | |
29972 | ac_status=$? | |
29973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29974 | (exit $ac_status); }; } && | |
29975 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 29976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29977 | (eval $ac_try) 2>&5 | |
29978 | ac_status=$? | |
29979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29980 | (exit $ac_status); }; }; then | |
ca732765 | 29981 | ac_cv_type_int=yes |
33f5f8b9 | 29982 | else |
29983 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 29984 | sed 's/^/| /' conftest.$ac_ext >&5 |
29985 | ||
ca732765 | 29986 | ac_cv_type_int=no |
33f5f8b9 | 29987 | fi |
af3004ff | 29988 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 29989 | fi |
ca732765 | 29990 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
29991 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
33f5f8b9 | 29992 | |
ca732765 | 29993 | echo "$as_me:$LINENO: checking size of int" >&5 |
29994 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
29995 | if test "${ac_cv_sizeof_int+set}" = set; then | |
33f5f8b9 | 29996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
29997 | else | |
ca732765 | 29998 | if test "$ac_cv_type_int" = yes; then |
29999 | # The cast to unsigned long works around a bug in the HP C Compiler | |
30000 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
30001 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
30002 | # This bug is HP SR number 8606223364. | |
30003 | if test "$cross_compiling" = yes; then | |
30004 | # Depending upon the size, compute the lo and hi bounds. | |
30005 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 30006 | /* confdefs.h. */ |
30007 | _ACEOF | |
30008 | cat confdefs.h >>conftest.$ac_ext | |
30009 | cat >>conftest.$ac_ext <<_ACEOF | |
30010 | /* end confdefs.h. */ | |
33f5f8b9 | 30011 | |
ca732765 | 30012 | #include <stdio.h> |
30013 | ||
33f5f8b9 | 30014 | /* What a mess.. many systems have added the (now standard) bit types |
30015 | * in their own ways, so we need to scan a wide variety of headers to | |
30016 | * find them.. | |
30017 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
30018 | */ | |
30019 | #if HAVE_SYS_TYPES_H | |
30020 | #include <sys/types.h> | |
30021 | #endif | |
30022 | #if STDC_HEADERS | |
30023 | #include <stdlib.h> | |
30024 | #include <stddef.h> | |
30025 | #endif | |
30026 | #if HAVE_INTTYPES_H | |
30027 | #include <inttypes.h> | |
30028 | #endif | |
30029 | #if HAVE_SYS_BITYPES_H | |
30030 | #include <sys/bitypes.h> | |
30031 | #endif | |
11e71ab8 | 30032 | #if HAVE_SYS_SELECT_H |
30033 | #include <sys/select.h> | |
30034 | #endif | |
33f5f8b9 | 30035 | |
30036 | ||
ca732765 | 30037 | |
33f5f8b9 | 30038 | int |
30039 | main () | |
30040 | { | |
ca732765 | 30041 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
30042 | test_array [0] = 0 | |
30043 | ||
33f5f8b9 | 30044 | ; |
30045 | return 0; | |
30046 | } | |
30047 | _ACEOF | |
30048 | rm -f conftest.$ac_objext | |
30049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 30050 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 30051 | ac_status=$? |
af3004ff | 30052 | grep -v '^ *+' conftest.er1 >conftest.err |
30053 | rm -f conftest.er1 | |
30054 | cat conftest.err >&5 | |
33f5f8b9 | 30055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30056 | (exit $ac_status); } && | |
6263d81f | 30057 | { ac_try='test -z "$ac_c_werror_flag" |
30058 | || test ! -s conftest.err' | |
af3004ff | 30059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30060 | (eval $ac_try) 2>&5 | |
30061 | ac_status=$? | |
30062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30063 | (exit $ac_status); }; } && | |
30064 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 30065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30066 | (eval $ac_try) 2>&5 | |
30067 | ac_status=$? | |
30068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30069 | (exit $ac_status); }; }; then | |
ca732765 | 30070 | ac_lo=0 ac_mid=0 |
30071 | while :; do | |
30072 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 30073 | /* confdefs.h. */ |
30074 | _ACEOF | |
30075 | cat confdefs.h >>conftest.$ac_ext | |
30076 | cat >>conftest.$ac_ext <<_ACEOF | |
30077 | /* end confdefs.h. */ | |
33f5f8b9 | 30078 | |
ca732765 | 30079 | #include <stdio.h> |
30080 | ||
33f5f8b9 | 30081 | /* What a mess.. many systems have added the (now standard) bit types |
30082 | * in their own ways, so we need to scan a wide variety of headers to | |
30083 | * find them.. | |
30084 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
30085 | */ | |
30086 | #if HAVE_SYS_TYPES_H | |
30087 | #include <sys/types.h> | |
30088 | #endif | |
30089 | #if STDC_HEADERS | |
30090 | #include <stdlib.h> | |
30091 | #include <stddef.h> | |
30092 | #endif | |
30093 | #if HAVE_INTTYPES_H | |
30094 | #include <inttypes.h> | |
30095 | #endif | |
30096 | #if HAVE_SYS_BITYPES_H | |
30097 | #include <sys/bitypes.h> | |
30098 | #endif | |
11e71ab8 | 30099 | #if HAVE_SYS_SELECT_H |
30100 | #include <sys/select.h> | |
30101 | #endif | |
33f5f8b9 | 30102 | |
30103 | ||
ca732765 | 30104 | |
33f5f8b9 | 30105 | int |
30106 | main () | |
30107 | { | |
ca732765 | 30108 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
30109 | test_array [0] = 0 | |
30110 | ||
33f5f8b9 | 30111 | ; |
30112 | return 0; | |
30113 | } | |
30114 | _ACEOF | |
30115 | rm -f conftest.$ac_objext | |
30116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 30117 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 30118 | ac_status=$? |
af3004ff | 30119 | grep -v '^ *+' conftest.er1 >conftest.err |
30120 | rm -f conftest.er1 | |
30121 | cat conftest.err >&5 | |
33f5f8b9 | 30122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30123 | (exit $ac_status); } && | |
6263d81f | 30124 | { ac_try='test -z "$ac_c_werror_flag" |
30125 | || test ! -s conftest.err' | |
af3004ff | 30126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30127 | (eval $ac_try) 2>&5 | |
30128 | ac_status=$? | |
30129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30130 | (exit $ac_status); }; } && | |
30131 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 30132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30133 | (eval $ac_try) 2>&5 | |
30134 | ac_status=$? | |
30135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30136 | (exit $ac_status); }; }; then | |
ca732765 | 30137 | ac_hi=$ac_mid; break |
33f5f8b9 | 30138 | else |
30139 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 30140 | sed 's/^/| /' conftest.$ac_ext >&5 |
30141 | ||
ca732765 | 30142 | ac_lo=`expr $ac_mid + 1` |
30143 | if test $ac_lo -le $ac_mid; then | |
30144 | ac_lo= ac_hi= | |
30145 | break | |
30146 | fi | |
30147 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
33f5f8b9 | 30148 | fi |
af3004ff | 30149 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ca732765 | 30150 | done |
33f5f8b9 | 30151 | else |
ca732765 | 30152 | echo "$as_me: failed program was:" >&5 |
30153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30154 | ||
30155 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 30156 | /* confdefs.h. */ |
30157 | _ACEOF | |
30158 | cat confdefs.h >>conftest.$ac_ext | |
30159 | cat >>conftest.$ac_ext <<_ACEOF | |
30160 | /* end confdefs.h. */ | |
33f5f8b9 | 30161 | |
a6edf800 | 30162 | #include <stdio.h> |
30163 | ||
33f5f8b9 | 30164 | /* What a mess.. many systems have added the (now standard) bit types |
30165 | * in their own ways, so we need to scan a wide variety of headers to | |
30166 | * find them.. | |
30167 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
30168 | */ | |
30169 | #if HAVE_SYS_TYPES_H | |
30170 | #include <sys/types.h> | |
30171 | #endif | |
30172 | #if STDC_HEADERS | |
30173 | #include <stdlib.h> | |
30174 | #include <stddef.h> | |
30175 | #endif | |
30176 | #if HAVE_INTTYPES_H | |
30177 | #include <inttypes.h> | |
30178 | #endif | |
30179 | #if HAVE_SYS_BITYPES_H | |
30180 | #include <sys/bitypes.h> | |
30181 | #endif | |
11e71ab8 | 30182 | #if HAVE_SYS_SELECT_H |
30183 | #include <sys/select.h> | |
30184 | #endif | |
33f5f8b9 | 30185 | |
30186 | ||
a6edf800 | 30187 | |
33f5f8b9 | 30188 | int |
30189 | main () | |
30190 | { | |
ca732765 | 30191 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
30192 | test_array [0] = 0 | |
30193 | ||
33f5f8b9 | 30194 | ; |
30195 | return 0; | |
30196 | } | |
30197 | _ACEOF | |
30198 | rm -f conftest.$ac_objext | |
30199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 30200 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 30201 | ac_status=$? |
af3004ff | 30202 | grep -v '^ *+' conftest.er1 >conftest.err |
30203 | rm -f conftest.er1 | |
30204 | cat conftest.err >&5 | |
33f5f8b9 | 30205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30206 | (exit $ac_status); } && | |
6263d81f | 30207 | { ac_try='test -z "$ac_c_werror_flag" |
30208 | || test ! -s conftest.err' | |
af3004ff | 30209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30210 | (eval $ac_try) 2>&5 | |
30211 | ac_status=$? | |
30212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30213 | (exit $ac_status); }; } && | |
30214 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 30215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30216 | (eval $ac_try) 2>&5 | |
30217 | ac_status=$? | |
30218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30219 | (exit $ac_status); }; }; then | |
ca732765 | 30220 | ac_hi=-1 ac_mid=-1 |
30221 | while :; do | |
30222 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 30223 | /* confdefs.h. */ |
30224 | _ACEOF | |
30225 | cat confdefs.h >>conftest.$ac_ext | |
30226 | cat >>conftest.$ac_ext <<_ACEOF | |
30227 | /* end confdefs.h. */ | |
33f5f8b9 | 30228 | |
a6edf800 | 30229 | #include <stdio.h> |
30230 | ||
33f5f8b9 | 30231 | /* What a mess.. many systems have added the (now standard) bit types |
30232 | * in their own ways, so we need to scan a wide variety of headers to | |
30233 | * find them.. | |
30234 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
30235 | */ | |
30236 | #if HAVE_SYS_TYPES_H | |
30237 | #include <sys/types.h> | |
30238 | #endif | |
30239 | #if STDC_HEADERS | |
30240 | #include <stdlib.h> | |
30241 | #include <stddef.h> | |
30242 | #endif | |
30243 | #if HAVE_INTTYPES_H | |
30244 | #include <inttypes.h> | |
30245 | #endif | |
30246 | #if HAVE_SYS_BITYPES_H | |
30247 | #include <sys/bitypes.h> | |
30248 | #endif | |
11e71ab8 | 30249 | #if HAVE_SYS_SELECT_H |
30250 | #include <sys/select.h> | |
30251 | #endif | |
33f5f8b9 | 30252 | |
30253 | ||
a6edf800 | 30254 | |
33f5f8b9 | 30255 | int |
30256 | main () | |
30257 | { | |
ca732765 | 30258 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
33f5f8b9 | 30259 | test_array [0] = 0 |
30260 | ||
30261 | ; | |
30262 | return 0; | |
30263 | } | |
30264 | _ACEOF | |
30265 | rm -f conftest.$ac_objext | |
30266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 30267 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 30268 | ac_status=$? |
af3004ff | 30269 | grep -v '^ *+' conftest.er1 >conftest.err |
30270 | rm -f conftest.er1 | |
30271 | cat conftest.err >&5 | |
33f5f8b9 | 30272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30273 | (exit $ac_status); } && | |
6263d81f | 30274 | { ac_try='test -z "$ac_c_werror_flag" |
30275 | || test ! -s conftest.err' | |
af3004ff | 30276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30277 | (eval $ac_try) 2>&5 | |
30278 | ac_status=$? | |
30279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30280 | (exit $ac_status); }; } && | |
30281 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 30282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30283 | (eval $ac_try) 2>&5 | |
30284 | ac_status=$? | |
30285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30286 | (exit $ac_status); }; }; then | |
ca732765 | 30287 | ac_lo=$ac_mid; break |
30288 | else | |
30289 | echo "$as_me: failed program was:" >&5 | |
30290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30291 | ||
30292 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
30293 | if test $ac_mid -le $ac_hi; then | |
30294 | ac_lo= ac_hi= | |
30295 | break | |
30296 | fi | |
30297 | ac_mid=`expr 2 '*' $ac_mid` | |
30298 | fi | |
30299 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30300 | done | |
30301 | else | |
30302 | echo "$as_me: failed program was:" >&5 | |
30303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30304 | ||
30305 | ac_lo= ac_hi= | |
30306 | fi | |
30307 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30308 | fi | |
30309 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30310 | # Binary search between lo and hi bounds. | |
30311 | while test "x$ac_lo" != "x$ac_hi"; do | |
30312 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
30313 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 30314 | /* confdefs.h. */ |
30315 | _ACEOF | |
30316 | cat confdefs.h >>conftest.$ac_ext | |
30317 | cat >>conftest.$ac_ext <<_ACEOF | |
30318 | /* end confdefs.h. */ | |
33f5f8b9 | 30319 | |
a6edf800 | 30320 | #include <stdio.h> |
30321 | ||
33f5f8b9 | 30322 | /* What a mess.. many systems have added the (now standard) bit types |
30323 | * in their own ways, so we need to scan a wide variety of headers to | |
30324 | * find them.. | |
30325 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
30326 | */ | |
30327 | #if HAVE_SYS_TYPES_H | |
30328 | #include <sys/types.h> | |
30329 | #endif | |
30330 | #if STDC_HEADERS | |
30331 | #include <stdlib.h> | |
30332 | #include <stddef.h> | |
30333 | #endif | |
30334 | #if HAVE_INTTYPES_H | |
30335 | #include <inttypes.h> | |
30336 | #endif | |
30337 | #if HAVE_SYS_BITYPES_H | |
30338 | #include <sys/bitypes.h> | |
30339 | #endif | |
11e71ab8 | 30340 | #if HAVE_SYS_SELECT_H |
30341 | #include <sys/select.h> | |
30342 | #endif | |
33f5f8b9 | 30343 | |
30344 | ||
a6edf800 | 30345 | |
33f5f8b9 | 30346 | int |
30347 | main () | |
30348 | { | |
ca732765 | 30349 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
33f5f8b9 | 30350 | test_array [0] = 0 |
30351 | ||
30352 | ; | |
30353 | return 0; | |
30354 | } | |
30355 | _ACEOF | |
30356 | rm -f conftest.$ac_objext | |
30357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 30358 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 30359 | ac_status=$? |
af3004ff | 30360 | grep -v '^ *+' conftest.er1 >conftest.err |
30361 | rm -f conftest.er1 | |
30362 | cat conftest.err >&5 | |
33f5f8b9 | 30363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30364 | (exit $ac_status); } && | |
6263d81f | 30365 | { ac_try='test -z "$ac_c_werror_flag" |
30366 | || test ! -s conftest.err' | |
af3004ff | 30367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30368 | (eval $ac_try) 2>&5 | |
30369 | ac_status=$? | |
30370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30371 | (exit $ac_status); }; } && | |
30372 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 30373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30374 | (eval $ac_try) 2>&5 | |
30375 | ac_status=$? | |
30376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30377 | (exit $ac_status); }; }; then | |
ca732765 | 30378 | ac_hi=$ac_mid |
33f5f8b9 | 30379 | else |
30380 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 30381 | sed 's/^/| /' conftest.$ac_ext >&5 |
30382 | ||
ca732765 | 30383 | ac_lo=`expr '(' $ac_mid ')' + 1` |
33f5f8b9 | 30384 | fi |
af3004ff | 30385 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ca732765 | 30386 | done |
30387 | case $ac_lo in | |
30388 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
30389 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
30390 | See \`config.log' for more details." >&5 | |
30391 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
30392 | See \`config.log' for more details." >&2;} | |
30393 | { (exit 1); exit 1; }; } ;; | |
30394 | esac | |
33f5f8b9 | 30395 | else |
ca732765 | 30396 | if test "$cross_compiling" = yes; then |
30397 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
30398 | See \`config.log' for more details." >&5 | |
30399 | echo "$as_me: error: cannot run test program while cross compiling | |
30400 | See \`config.log' for more details." >&2;} | |
30401 | { (exit 1); exit 1; }; } | |
30402 | else | |
30403 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 30404 | /* confdefs.h. */ |
30405 | _ACEOF | |
30406 | cat confdefs.h >>conftest.$ac_ext | |
30407 | cat >>conftest.$ac_ext <<_ACEOF | |
30408 | /* end confdefs.h. */ | |
33f5f8b9 | 30409 | |
a6edf800 | 30410 | #include <stdio.h> |
30411 | ||
33f5f8b9 | 30412 | /* What a mess.. many systems have added the (now standard) bit types |
30413 | * in their own ways, so we need to scan a wide variety of headers to | |
30414 | * find them.. | |
30415 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
30416 | */ | |
30417 | #if HAVE_SYS_TYPES_H | |
30418 | #include <sys/types.h> | |
30419 | #endif | |
30420 | #if STDC_HEADERS | |
30421 | #include <stdlib.h> | |
30422 | #include <stddef.h> | |
30423 | #endif | |
30424 | #if HAVE_INTTYPES_H | |
30425 | #include <inttypes.h> | |
30426 | #endif | |
30427 | #if HAVE_SYS_BITYPES_H | |
30428 | #include <sys/bitypes.h> | |
30429 | #endif | |
11e71ab8 | 30430 | #if HAVE_SYS_SELECT_H |
30431 | #include <sys/select.h> | |
30432 | #endif | |
33f5f8b9 | 30433 | |
30434 | ||
a6edf800 | 30435 | |
ca732765 | 30436 | long longval () { return (long) (sizeof (int)); } |
30437 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
30438 | #include <stdio.h> | |
30439 | #include <stdlib.h> | |
33f5f8b9 | 30440 | int |
30441 | main () | |
30442 | { | |
33f5f8b9 | 30443 | |
ca732765 | 30444 | FILE *f = fopen ("conftest.val", "w"); |
30445 | if (! f) | |
30446 | exit (1); | |
30447 | if (((long) (sizeof (int))) < 0) | |
30448 | { | |
30449 | long i = longval (); | |
30450 | if (i != ((long) (sizeof (int)))) | |
30451 | exit (1); | |
30452 | fprintf (f, "%ld\n", i); | |
30453 | } | |
30454 | else | |
30455 | { | |
30456 | unsigned long i = ulongval (); | |
30457 | if (i != ((long) (sizeof (int)))) | |
30458 | exit (1); | |
30459 | fprintf (f, "%lu\n", i); | |
30460 | } | |
30461 | exit (ferror (f) || fclose (f) != 0); | |
30462 | ||
30463 | ; | |
30464 | return 0; | |
30465 | } | |
30466 | _ACEOF | |
30467 | rm -f conftest$ac_exeext | |
30468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30469 | (eval $ac_link) 2>&5 | |
af3004ff | 30470 | ac_status=$? |
30471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ca732765 | 30472 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
33f5f8b9 | 30473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30474 | (eval $ac_try) 2>&5 | |
30475 | ac_status=$? | |
30476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30477 | (exit $ac_status); }; }; then | |
ca732765 | 30478 | ac_cv_sizeof_int=`cat conftest.val` |
30479 | else | |
30480 | echo "$as_me: program exited with status $ac_status" >&5 | |
30481 | echo "$as_me: failed program was:" >&5 | |
30482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30483 | ||
30484 | ( exit $ac_status ) | |
30485 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
30486 | See \`config.log' for more details." >&5 | |
30487 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
30488 | See \`config.log' for more details." >&2;} | |
30489 | { (exit 1); exit 1; }; } | |
30490 | fi | |
30491 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
30492 | fi | |
30493 | fi | |
30494 | rm -f conftest.val | |
30495 | else | |
30496 | ac_cv_sizeof_int=0 | |
30497 | fi | |
30498 | fi | |
30499 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
30500 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
30501 | cat >>confdefs.h <<_ACEOF | |
30502 | #define SIZEOF_INT $ac_cv_sizeof_int | |
30503 | _ACEOF | |
30504 | ||
30505 | ||
30506 | ||
30507 | cat >>confdefs.h <<\_ACEOF | |
30508 | #define HAVE_INT 1 | |
30509 | _ACEOF | |
30510 | ||
30511 | ||
30512 | fi | |
30513 | ||
30514 | ||
30515 | echo "$as_me:$LINENO: checking for u_int16_t" >&5 | |
30516 | echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6 | |
30517 | if test "${ac_cv_type_u_int16_t+set}" = set; then | |
30518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30519 | else | |
30520 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 30521 | /* confdefs.h. */ |
30522 | _ACEOF | |
30523 | cat confdefs.h >>conftest.$ac_ext | |
30524 | cat >>conftest.$ac_ext <<_ACEOF | |
30525 | /* end confdefs.h. */ | |
33f5f8b9 | 30526 | |
30527 | /* What a mess.. many systems have added the (now standard) bit types | |
30528 | * in their own ways, so we need to scan a wide variety of headers to | |
30529 | * find them.. | |
30530 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
30531 | */ | |
30532 | #if HAVE_SYS_TYPES_H | |
30533 | #include <sys/types.h> | |
30534 | #endif | |
30535 | #if STDC_HEADERS | |
30536 | #include <stdlib.h> | |
30537 | #include <stddef.h> | |
30538 | #endif | |
30539 | #if HAVE_INTTYPES_H | |
30540 | #include <inttypes.h> | |
30541 | #endif | |
30542 | #if HAVE_SYS_BITYPES_H | |
30543 | #include <sys/bitypes.h> | |
30544 | #endif | |
11e71ab8 | 30545 | #if HAVE_SYS_SELECT_H |
30546 | #include <sys/select.h> | |
30547 | #endif | |
33f5f8b9 | 30548 | |
30549 | ||
33f5f8b9 | 30550 | int |
30551 | main () | |
30552 | { | |
ca732765 | 30553 | if ((u_int16_t *) 0) |
30554 | return 0; | |
30555 | if (sizeof (u_int16_t)) | |
30556 | return 0; | |
33f5f8b9 | 30557 | ; |
30558 | return 0; | |
30559 | } | |
30560 | _ACEOF | |
30561 | rm -f conftest.$ac_objext | |
30562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 30563 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 30564 | ac_status=$? |
af3004ff | 30565 | grep -v '^ *+' conftest.er1 >conftest.err |
30566 | rm -f conftest.er1 | |
30567 | cat conftest.err >&5 | |
33f5f8b9 | 30568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30569 | (exit $ac_status); } && | |
6263d81f | 30570 | { ac_try='test -z "$ac_c_werror_flag" |
30571 | || test ! -s conftest.err' | |
af3004ff | 30572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30573 | (eval $ac_try) 2>&5 | |
30574 | ac_status=$? | |
30575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30576 | (exit $ac_status); }; } && | |
30577 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 30578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30579 | (eval $ac_try) 2>&5 | |
30580 | ac_status=$? | |
30581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30582 | (exit $ac_status); }; }; then | |
ca732765 | 30583 | ac_cv_type_u_int16_t=yes |
33f5f8b9 | 30584 | else |
30585 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 30586 | sed 's/^/| /' conftest.$ac_ext >&5 |
30587 | ||
ca732765 | 30588 | ac_cv_type_u_int16_t=no |
33f5f8b9 | 30589 | fi |
af3004ff | 30590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 30591 | fi |
ca732765 | 30592 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 |
30593 | echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6 | |
30594 | if test $ac_cv_type_u_int16_t = yes; then | |
30595 | ||
30596 | echo "$as_me:$LINENO: checking for u_int16_t" >&5 | |
30597 | echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6 | |
30598 | if test "${ac_cv_type_u_int16_t+set}" = set; then | |
30599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30600 | else | |
33f5f8b9 | 30601 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 30602 | /* confdefs.h. */ |
30603 | _ACEOF | |
30604 | cat confdefs.h >>conftest.$ac_ext | |
30605 | cat >>conftest.$ac_ext <<_ACEOF | |
30606 | /* end confdefs.h. */ | |
33f5f8b9 | 30607 | |
a6edf800 | 30608 | #include <stdio.h> |
30609 | ||
33f5f8b9 | 30610 | /* What a mess.. many systems have added the (now standard) bit types |
30611 | * in their own ways, so we need to scan a wide variety of headers to | |
30612 | * find them.. | |
30613 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
30614 | */ | |
30615 | #if HAVE_SYS_TYPES_H | |
30616 | #include <sys/types.h> | |
30617 | #endif | |
30618 | #if STDC_HEADERS | |
30619 | #include <stdlib.h> | |
30620 | #include <stddef.h> | |
30621 | #endif | |
30622 | #if HAVE_INTTYPES_H | |
30623 | #include <inttypes.h> | |
30624 | #endif | |
30625 | #if HAVE_SYS_BITYPES_H | |
30626 | #include <sys/bitypes.h> | |
30627 | #endif | |
11e71ab8 | 30628 | #if HAVE_SYS_SELECT_H |
30629 | #include <sys/select.h> | |
30630 | #endif | |
33f5f8b9 | 30631 | |
30632 | ||
a6edf800 | 30633 | |
33f5f8b9 | 30634 | int |
30635 | main () | |
30636 | { | |
ca732765 | 30637 | if ((u_int16_t *) 0) |
30638 | return 0; | |
30639 | if (sizeof (u_int16_t)) | |
30640 | return 0; | |
33f5f8b9 | 30641 | ; |
30642 | return 0; | |
30643 | } | |
30644 | _ACEOF | |
30645 | rm -f conftest.$ac_objext | |
30646 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 30647 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 30648 | ac_status=$? |
af3004ff | 30649 | grep -v '^ *+' conftest.er1 >conftest.err |
30650 | rm -f conftest.er1 | |
30651 | cat conftest.err >&5 | |
33f5f8b9 | 30652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30653 | (exit $ac_status); } && | |
6263d81f | 30654 | { ac_try='test -z "$ac_c_werror_flag" |
30655 | || test ! -s conftest.err' | |
af3004ff | 30656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30657 | (eval $ac_try) 2>&5 | |
30658 | ac_status=$? | |
30659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30660 | (exit $ac_status); }; } && | |
30661 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 30662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30663 | (eval $ac_try) 2>&5 | |
30664 | ac_status=$? | |
30665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30666 | (exit $ac_status); }; }; then | |
ca732765 | 30667 | ac_cv_type_u_int16_t=yes |
33f5f8b9 | 30668 | else |
30669 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 30670 | sed 's/^/| /' conftest.$ac_ext >&5 |
30671 | ||
ca732765 | 30672 | ac_cv_type_u_int16_t=no |
33f5f8b9 | 30673 | fi |
af3004ff | 30674 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ca732765 | 30675 | fi |
30676 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 | |
30677 | echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6 | |
30678 | ||
30679 | echo "$as_me:$LINENO: checking size of u_int16_t" >&5 | |
30680 | echo $ECHO_N "checking size of u_int16_t... $ECHO_C" >&6 | |
30681 | if test "${ac_cv_sizeof_u_int16_t+set}" = set; then | |
30682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33f5f8b9 | 30683 | else |
ca732765 | 30684 | if test "$ac_cv_type_u_int16_t" = yes; then |
30685 | # The cast to unsigned long works around a bug in the HP C Compiler | |
30686 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
30687 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
30688 | # This bug is HP SR number 8606223364. | |
33f5f8b9 | 30689 | if test "$cross_compiling" = yes; then |
ca732765 | 30690 | # Depending upon the size, compute the lo and hi bounds. |
30691 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 30692 | /* confdefs.h. */ |
30693 | _ACEOF | |
30694 | cat confdefs.h >>conftest.$ac_ext | |
30695 | cat >>conftest.$ac_ext <<_ACEOF | |
30696 | /* end confdefs.h. */ | |
33f5f8b9 | 30697 | |
a6edf800 | 30698 | #include <stdio.h> |
30699 | ||
33f5f8b9 | 30700 | /* What a mess.. many systems have added the (now standard) bit types |
30701 | * in their own ways, so we need to scan a wide variety of headers to | |
30702 | * find them.. | |
30703 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
30704 | */ | |
30705 | #if HAVE_SYS_TYPES_H | |
30706 | #include <sys/types.h> | |
30707 | #endif | |
30708 | #if STDC_HEADERS | |
30709 | #include <stdlib.h> | |
30710 | #include <stddef.h> | |
30711 | #endif | |
30712 | #if HAVE_INTTYPES_H | |
30713 | #include <inttypes.h> | |
30714 | #endif | |
30715 | #if HAVE_SYS_BITYPES_H | |
30716 | #include <sys/bitypes.h> | |
30717 | #endif | |
11e71ab8 | 30718 | #if HAVE_SYS_SELECT_H |
30719 | #include <sys/select.h> | |
30720 | #endif | |
33f5f8b9 | 30721 | |
30722 | ||
a6edf800 | 30723 | |
ca732765 | 30724 | int |
30725 | main () | |
30726 | { | |
30727 | static int test_array [1 - 2 * !(((long) (sizeof (u_int16_t))) >= 0)]; | |
30728 | test_array [0] = 0 | |
30729 | ||
30730 | ; | |
30731 | return 0; | |
30732 | } | |
30733 | _ACEOF | |
30734 | rm -f conftest.$ac_objext | |
30735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30736 | (eval $ac_compile) 2>conftest.er1 | |
30737 | ac_status=$? | |
30738 | grep -v '^ *+' conftest.er1 >conftest.err | |
30739 | rm -f conftest.er1 | |
30740 | cat conftest.err >&5 | |
30741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30742 | (exit $ac_status); } && | |
30743 | { ac_try='test -z "$ac_c_werror_flag" | |
30744 | || test ! -s conftest.err' | |
30745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30746 | (eval $ac_try) 2>&5 | |
30747 | ac_status=$? | |
30748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30749 | (exit $ac_status); }; } && | |
30750 | { ac_try='test -s conftest.$ac_objext' | |
30751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30752 | (eval $ac_try) 2>&5 | |
30753 | ac_status=$? | |
30754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30755 | (exit $ac_status); }; }; then | |
30756 | ac_lo=0 ac_mid=0 | |
30757 | while :; do | |
30758 | cat >conftest.$ac_ext <<_ACEOF | |
30759 | /* confdefs.h. */ | |
30760 | _ACEOF | |
30761 | cat confdefs.h >>conftest.$ac_ext | |
30762 | cat >>conftest.$ac_ext <<_ACEOF | |
30763 | /* end confdefs.h. */ | |
30764 | ||
33f5f8b9 | 30765 | #include <stdio.h> |
ca732765 | 30766 | |
30767 | /* What a mess.. many systems have added the (now standard) bit types | |
30768 | * in their own ways, so we need to scan a wide variety of headers to | |
30769 | * find them.. | |
30770 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
30771 | */ | |
30772 | #if HAVE_SYS_TYPES_H | |
30773 | #include <sys/types.h> | |
30774 | #endif | |
30775 | #if STDC_HEADERS | |
33f5f8b9 | 30776 | #include <stdlib.h> |
ca732765 | 30777 | #include <stddef.h> |
30778 | #endif | |
30779 | #if HAVE_INTTYPES_H | |
30780 | #include <inttypes.h> | |
30781 | #endif | |
30782 | #if HAVE_SYS_BITYPES_H | |
30783 | #include <sys/bitypes.h> | |
30784 | #endif | |
30785 | #if HAVE_SYS_SELECT_H | |
30786 | #include <sys/select.h> | |
30787 | #endif | |
30788 | ||
30789 | ||
30790 | ||
33f5f8b9 | 30791 | int |
30792 | main () | |
30793 | { | |
ca732765 | 30794 | static int test_array [1 - 2 * !(((long) (sizeof (u_int16_t))) <= $ac_mid)]; |
30795 | test_array [0] = 0 | |
30796 | ||
30797 | ; | |
30798 | return 0; | |
30799 | } | |
30800 | _ACEOF | |
30801 | rm -f conftest.$ac_objext | |
30802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30803 | (eval $ac_compile) 2>conftest.er1 | |
30804 | ac_status=$? | |
30805 | grep -v '^ *+' conftest.er1 >conftest.err | |
30806 | rm -f conftest.er1 | |
30807 | cat conftest.err >&5 | |
30808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30809 | (exit $ac_status); } && | |
30810 | { ac_try='test -z "$ac_c_werror_flag" | |
30811 | || test ! -s conftest.err' | |
30812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30813 | (eval $ac_try) 2>&5 | |
30814 | ac_status=$? | |
30815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30816 | (exit $ac_status); }; } && | |
30817 | { ac_try='test -s conftest.$ac_objext' | |
30818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30819 | (eval $ac_try) 2>&5 | |
30820 | ac_status=$? | |
30821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30822 | (exit $ac_status); }; }; then | |
30823 | ac_hi=$ac_mid; break | |
30824 | else | |
30825 | echo "$as_me: failed program was:" >&5 | |
30826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30827 | ||
30828 | ac_lo=`expr $ac_mid + 1` | |
30829 | if test $ac_lo -le $ac_mid; then | |
30830 | ac_lo= ac_hi= | |
30831 | break | |
30832 | fi | |
30833 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
30834 | fi | |
30835 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30836 | done | |
30837 | else | |
30838 | echo "$as_me: failed program was:" >&5 | |
30839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30840 | ||
30841 | cat >conftest.$ac_ext <<_ACEOF | |
30842 | /* confdefs.h. */ | |
30843 | _ACEOF | |
30844 | cat confdefs.h >>conftest.$ac_ext | |
30845 | cat >>conftest.$ac_ext <<_ACEOF | |
30846 | /* end confdefs.h. */ | |
30847 | ||
30848 | #include <stdio.h> | |
30849 | ||
30850 | /* What a mess.. many systems have added the (now standard) bit types | |
30851 | * in their own ways, so we need to scan a wide variety of headers to | |
30852 | * find them.. | |
30853 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
30854 | */ | |
30855 | #if HAVE_SYS_TYPES_H | |
30856 | #include <sys/types.h> | |
30857 | #endif | |
30858 | #if STDC_HEADERS | |
30859 | #include <stdlib.h> | |
30860 | #include <stddef.h> | |
30861 | #endif | |
30862 | #if HAVE_INTTYPES_H | |
30863 | #include <inttypes.h> | |
30864 | #endif | |
30865 | #if HAVE_SYS_BITYPES_H | |
30866 | #include <sys/bitypes.h> | |
30867 | #endif | |
30868 | #if HAVE_SYS_SELECT_H | |
30869 | #include <sys/select.h> | |
30870 | #endif | |
30871 | ||
30872 | ||
30873 | ||
30874 | int | |
30875 | main () | |
30876 | { | |
30877 | static int test_array [1 - 2 * !(((long) (sizeof (u_int16_t))) < 0)]; | |
30878 | test_array [0] = 0 | |
30879 | ||
30880 | ; | |
30881 | return 0; | |
30882 | } | |
30883 | _ACEOF | |
30884 | rm -f conftest.$ac_objext | |
30885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30886 | (eval $ac_compile) 2>conftest.er1 | |
30887 | ac_status=$? | |
30888 | grep -v '^ *+' conftest.er1 >conftest.err | |
30889 | rm -f conftest.er1 | |
30890 | cat conftest.err >&5 | |
30891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30892 | (exit $ac_status); } && | |
30893 | { ac_try='test -z "$ac_c_werror_flag" | |
30894 | || test ! -s conftest.err' | |
30895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30896 | (eval $ac_try) 2>&5 | |
30897 | ac_status=$? | |
30898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30899 | (exit $ac_status); }; } && | |
30900 | { ac_try='test -s conftest.$ac_objext' | |
30901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30902 | (eval $ac_try) 2>&5 | |
30903 | ac_status=$? | |
30904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30905 | (exit $ac_status); }; }; then | |
30906 | ac_hi=-1 ac_mid=-1 | |
30907 | while :; do | |
30908 | cat >conftest.$ac_ext <<_ACEOF | |
30909 | /* confdefs.h. */ | |
30910 | _ACEOF | |
30911 | cat confdefs.h >>conftest.$ac_ext | |
30912 | cat >>conftest.$ac_ext <<_ACEOF | |
30913 | /* end confdefs.h. */ | |
30914 | ||
30915 | #include <stdio.h> | |
30916 | ||
30917 | /* What a mess.. many systems have added the (now standard) bit types | |
30918 | * in their own ways, so we need to scan a wide variety of headers to | |
30919 | * find them.. | |
30920 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
30921 | */ | |
30922 | #if HAVE_SYS_TYPES_H | |
30923 | #include <sys/types.h> | |
30924 | #endif | |
30925 | #if STDC_HEADERS | |
30926 | #include <stdlib.h> | |
30927 | #include <stddef.h> | |
30928 | #endif | |
30929 | #if HAVE_INTTYPES_H | |
30930 | #include <inttypes.h> | |
30931 | #endif | |
30932 | #if HAVE_SYS_BITYPES_H | |
30933 | #include <sys/bitypes.h> | |
30934 | #endif | |
30935 | #if HAVE_SYS_SELECT_H | |
30936 | #include <sys/select.h> | |
30937 | #endif | |
30938 | ||
30939 | ||
30940 | ||
30941 | int | |
30942 | main () | |
30943 | { | |
30944 | static int test_array [1 - 2 * !(((long) (sizeof (u_int16_t))) >= $ac_mid)]; | |
30945 | test_array [0] = 0 | |
30946 | ||
30947 | ; | |
30948 | return 0; | |
30949 | } | |
30950 | _ACEOF | |
30951 | rm -f conftest.$ac_objext | |
30952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30953 | (eval $ac_compile) 2>conftest.er1 | |
30954 | ac_status=$? | |
30955 | grep -v '^ *+' conftest.er1 >conftest.err | |
30956 | rm -f conftest.er1 | |
30957 | cat conftest.err >&5 | |
30958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30959 | (exit $ac_status); } && | |
30960 | { ac_try='test -z "$ac_c_werror_flag" | |
30961 | || test ! -s conftest.err' | |
30962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30963 | (eval $ac_try) 2>&5 | |
30964 | ac_status=$? | |
30965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30966 | (exit $ac_status); }; } && | |
30967 | { ac_try='test -s conftest.$ac_objext' | |
30968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30969 | (eval $ac_try) 2>&5 | |
30970 | ac_status=$? | |
30971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30972 | (exit $ac_status); }; }; then | |
30973 | ac_lo=$ac_mid; break | |
30974 | else | |
30975 | echo "$as_me: failed program was:" >&5 | |
30976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30977 | ||
30978 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
30979 | if test $ac_mid -le $ac_hi; then | |
30980 | ac_lo= ac_hi= | |
30981 | break | |
30982 | fi | |
30983 | ac_mid=`expr 2 '*' $ac_mid` | |
30984 | fi | |
30985 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30986 | done | |
30987 | else | |
30988 | echo "$as_me: failed program was:" >&5 | |
30989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30990 | ||
30991 | ac_lo= ac_hi= | |
30992 | fi | |
30993 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30994 | fi | |
30995 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
30996 | # Binary search between lo and hi bounds. | |
30997 | while test "x$ac_lo" != "x$ac_hi"; do | |
30998 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
30999 | cat >conftest.$ac_ext <<_ACEOF | |
31000 | /* confdefs.h. */ | |
31001 | _ACEOF | |
31002 | cat confdefs.h >>conftest.$ac_ext | |
31003 | cat >>conftest.$ac_ext <<_ACEOF | |
31004 | /* end confdefs.h. */ | |
31005 | ||
31006 | #include <stdio.h> | |
31007 | ||
31008 | /* What a mess.. many systems have added the (now standard) bit types | |
31009 | * in their own ways, so we need to scan a wide variety of headers to | |
31010 | * find them.. | |
31011 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
31012 | */ | |
31013 | #if HAVE_SYS_TYPES_H | |
31014 | #include <sys/types.h> | |
31015 | #endif | |
31016 | #if STDC_HEADERS | |
31017 | #include <stdlib.h> | |
31018 | #include <stddef.h> | |
31019 | #endif | |
31020 | #if HAVE_INTTYPES_H | |
31021 | #include <inttypes.h> | |
31022 | #endif | |
31023 | #if HAVE_SYS_BITYPES_H | |
31024 | #include <sys/bitypes.h> | |
31025 | #endif | |
31026 | #if HAVE_SYS_SELECT_H | |
31027 | #include <sys/select.h> | |
31028 | #endif | |
31029 | ||
31030 | ||
31031 | ||
31032 | int | |
31033 | main () | |
31034 | { | |
31035 | static int test_array [1 - 2 * !(((long) (sizeof (u_int16_t))) <= $ac_mid)]; | |
31036 | test_array [0] = 0 | |
31037 | ||
31038 | ; | |
31039 | return 0; | |
31040 | } | |
31041 | _ACEOF | |
31042 | rm -f conftest.$ac_objext | |
31043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31044 | (eval $ac_compile) 2>conftest.er1 | |
31045 | ac_status=$? | |
31046 | grep -v '^ *+' conftest.er1 >conftest.err | |
31047 | rm -f conftest.er1 | |
31048 | cat conftest.err >&5 | |
31049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31050 | (exit $ac_status); } && | |
31051 | { ac_try='test -z "$ac_c_werror_flag" | |
31052 | || test ! -s conftest.err' | |
31053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31054 | (eval $ac_try) 2>&5 | |
31055 | ac_status=$? | |
31056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31057 | (exit $ac_status); }; } && | |
31058 | { ac_try='test -s conftest.$ac_objext' | |
31059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31060 | (eval $ac_try) 2>&5 | |
31061 | ac_status=$? | |
31062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31063 | (exit $ac_status); }; }; then | |
31064 | ac_hi=$ac_mid | |
31065 | else | |
31066 | echo "$as_me: failed program was:" >&5 | |
31067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31068 | ||
31069 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
31070 | fi | |
31071 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31072 | done | |
31073 | case $ac_lo in | |
31074 | ?*) ac_cv_sizeof_u_int16_t=$ac_lo;; | |
31075 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int16_t), 77 | |
31076 | See \`config.log' for more details." >&5 | |
31077 | echo "$as_me: error: cannot compute sizeof (u_int16_t), 77 | |
31078 | See \`config.log' for more details." >&2;} | |
31079 | { (exit 1); exit 1; }; } ;; | |
31080 | esac | |
31081 | else | |
31082 | if test "$cross_compiling" = yes; then | |
31083 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
31084 | See \`config.log' for more details." >&5 | |
31085 | echo "$as_me: error: cannot run test program while cross compiling | |
31086 | See \`config.log' for more details." >&2;} | |
31087 | { (exit 1); exit 1; }; } | |
31088 | else | |
31089 | cat >conftest.$ac_ext <<_ACEOF | |
31090 | /* confdefs.h. */ | |
31091 | _ACEOF | |
31092 | cat confdefs.h >>conftest.$ac_ext | |
31093 | cat >>conftest.$ac_ext <<_ACEOF | |
31094 | /* end confdefs.h. */ | |
31095 | ||
31096 | #include <stdio.h> | |
31097 | ||
31098 | /* What a mess.. many systems have added the (now standard) bit types | |
31099 | * in their own ways, so we need to scan a wide variety of headers to | |
31100 | * find them.. | |
31101 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
31102 | */ | |
31103 | #if HAVE_SYS_TYPES_H | |
31104 | #include <sys/types.h> | |
31105 | #endif | |
31106 | #if STDC_HEADERS | |
31107 | #include <stdlib.h> | |
31108 | #include <stddef.h> | |
31109 | #endif | |
31110 | #if HAVE_INTTYPES_H | |
31111 | #include <inttypes.h> | |
31112 | #endif | |
31113 | #if HAVE_SYS_BITYPES_H | |
31114 | #include <sys/bitypes.h> | |
31115 | #endif | |
31116 | #if HAVE_SYS_SELECT_H | |
31117 | #include <sys/select.h> | |
31118 | #endif | |
31119 | ||
31120 | ||
31121 | ||
31122 | long longval () { return (long) (sizeof (u_int16_t)); } | |
31123 | unsigned long ulongval () { return (long) (sizeof (u_int16_t)); } | |
31124 | #include <stdio.h> | |
31125 | #include <stdlib.h> | |
31126 | int | |
31127 | main () | |
31128 | { | |
31129 | ||
31130 | FILE *f = fopen ("conftest.val", "w"); | |
31131 | if (! f) | |
31132 | exit (1); | |
31133 | if (((long) (sizeof (u_int16_t))) < 0) | |
31134 | { | |
31135 | long i = longval (); | |
31136 | if (i != ((long) (sizeof (u_int16_t)))) | |
31137 | exit (1); | |
31138 | fprintf (f, "%ld\n", i); | |
31139 | } | |
31140 | else | |
31141 | { | |
31142 | unsigned long i = ulongval (); | |
31143 | if (i != ((long) (sizeof (u_int16_t)))) | |
31144 | exit (1); | |
31145 | fprintf (f, "%lu\n", i); | |
31146 | } | |
31147 | exit (ferror (f) || fclose (f) != 0); | |
31148 | ||
31149 | ; | |
31150 | return 0; | |
31151 | } | |
31152 | _ACEOF | |
31153 | rm -f conftest$ac_exeext | |
31154 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31155 | (eval $ac_link) 2>&5 | |
31156 | ac_status=$? | |
31157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31158 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
31159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31160 | (eval $ac_try) 2>&5 | |
31161 | ac_status=$? | |
31162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31163 | (exit $ac_status); }; }; then | |
31164 | ac_cv_sizeof_u_int16_t=`cat conftest.val` | |
31165 | else | |
31166 | echo "$as_me: program exited with status $ac_status" >&5 | |
31167 | echo "$as_me: failed program was:" >&5 | |
31168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31169 | ||
31170 | ( exit $ac_status ) | |
31171 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int16_t), 77 | |
31172 | See \`config.log' for more details." >&5 | |
31173 | echo "$as_me: error: cannot compute sizeof (u_int16_t), 77 | |
31174 | See \`config.log' for more details." >&2;} | |
31175 | { (exit 1); exit 1; }; } | |
31176 | fi | |
31177 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
31178 | fi | |
31179 | fi | |
31180 | rm -f conftest.val | |
31181 | else | |
31182 | ac_cv_sizeof_u_int16_t=0 | |
31183 | fi | |
31184 | fi | |
31185 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int16_t" >&5 | |
31186 | echo "${ECHO_T}$ac_cv_sizeof_u_int16_t" >&6 | |
31187 | cat >>confdefs.h <<_ACEOF | |
31188 | #define SIZEOF_U_INT16_T $ac_cv_sizeof_u_int16_t | |
31189 | _ACEOF | |
31190 | ||
31191 | ||
31192 | ||
31193 | cat >>confdefs.h <<\_ACEOF | |
31194 | #define HAVE_U_INT16_T 1 | |
31195 | _ACEOF | |
31196 | ||
31197 | ||
31198 | fi | |
31199 | ||
31200 | ||
31201 | echo "$as_me:$LINENO: checking for uint16_t" >&5 | |
31202 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 | |
31203 | if test "${ac_cv_type_uint16_t+set}" = set; then | |
31204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31205 | else | |
31206 | cat >conftest.$ac_ext <<_ACEOF | |
31207 | /* confdefs.h. */ | |
31208 | _ACEOF | |
31209 | cat confdefs.h >>conftest.$ac_ext | |
31210 | cat >>conftest.$ac_ext <<_ACEOF | |
31211 | /* end confdefs.h. */ | |
31212 | ||
31213 | /* What a mess.. many systems have added the (now standard) bit types | |
31214 | * in their own ways, so we need to scan a wide variety of headers to | |
31215 | * find them.. | |
31216 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
31217 | */ | |
31218 | #if HAVE_SYS_TYPES_H | |
31219 | #include <sys/types.h> | |
31220 | #endif | |
31221 | #if STDC_HEADERS | |
31222 | #include <stdlib.h> | |
31223 | #include <stddef.h> | |
31224 | #endif | |
31225 | #if HAVE_INTTYPES_H | |
31226 | #include <inttypes.h> | |
31227 | #endif | |
31228 | #if HAVE_SYS_BITYPES_H | |
31229 | #include <sys/bitypes.h> | |
31230 | #endif | |
31231 | #if HAVE_SYS_SELECT_H | |
31232 | #include <sys/select.h> | |
31233 | #endif | |
31234 | ||
31235 | ||
31236 | int | |
31237 | main () | |
31238 | { | |
31239 | if ((uint16_t *) 0) | |
31240 | return 0; | |
31241 | if (sizeof (uint16_t)) | |
31242 | return 0; | |
31243 | ; | |
31244 | return 0; | |
31245 | } | |
31246 | _ACEOF | |
31247 | rm -f conftest.$ac_objext | |
31248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31249 | (eval $ac_compile) 2>conftest.er1 | |
31250 | ac_status=$? | |
31251 | grep -v '^ *+' conftest.er1 >conftest.err | |
31252 | rm -f conftest.er1 | |
31253 | cat conftest.err >&5 | |
31254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31255 | (exit $ac_status); } && | |
31256 | { ac_try='test -z "$ac_c_werror_flag" | |
31257 | || test ! -s conftest.err' | |
31258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31259 | (eval $ac_try) 2>&5 | |
31260 | ac_status=$? | |
31261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31262 | (exit $ac_status); }; } && | |
31263 | { ac_try='test -s conftest.$ac_objext' | |
31264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31265 | (eval $ac_try) 2>&5 | |
31266 | ac_status=$? | |
31267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31268 | (exit $ac_status); }; }; then | |
31269 | ac_cv_type_uint16_t=yes | |
31270 | else | |
31271 | echo "$as_me: failed program was:" >&5 | |
31272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31273 | ||
31274 | ac_cv_type_uint16_t=no | |
31275 | fi | |
31276 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31277 | fi | |
31278 | echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 | |
31279 | echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 | |
31280 | if test $ac_cv_type_uint16_t = yes; then | |
31281 | ||
31282 | echo "$as_me:$LINENO: checking for uint16_t" >&5 | |
31283 | echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 | |
31284 | if test "${ac_cv_type_uint16_t+set}" = set; then | |
31285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31286 | else | |
31287 | cat >conftest.$ac_ext <<_ACEOF | |
31288 | /* confdefs.h. */ | |
31289 | _ACEOF | |
31290 | cat confdefs.h >>conftest.$ac_ext | |
31291 | cat >>conftest.$ac_ext <<_ACEOF | |
31292 | /* end confdefs.h. */ | |
31293 | ||
31294 | #include <stdio.h> | |
31295 | ||
31296 | /* What a mess.. many systems have added the (now standard) bit types | |
31297 | * in their own ways, so we need to scan a wide variety of headers to | |
31298 | * find them.. | |
31299 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
31300 | */ | |
31301 | #if HAVE_SYS_TYPES_H | |
31302 | #include <sys/types.h> | |
31303 | #endif | |
31304 | #if STDC_HEADERS | |
31305 | #include <stdlib.h> | |
31306 | #include <stddef.h> | |
31307 | #endif | |
31308 | #if HAVE_INTTYPES_H | |
31309 | #include <inttypes.h> | |
31310 | #endif | |
31311 | #if HAVE_SYS_BITYPES_H | |
31312 | #include <sys/bitypes.h> | |
31313 | #endif | |
31314 | #if HAVE_SYS_SELECT_H | |
31315 | #include <sys/select.h> | |
31316 | #endif | |
31317 | ||
31318 | ||
31319 | ||
31320 | int | |
31321 | main () | |
31322 | { | |
31323 | if ((uint16_t *) 0) | |
31324 | return 0; | |
31325 | if (sizeof (uint16_t)) | |
31326 | return 0; | |
31327 | ; | |
31328 | return 0; | |
31329 | } | |
31330 | _ACEOF | |
31331 | rm -f conftest.$ac_objext | |
31332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31333 | (eval $ac_compile) 2>conftest.er1 | |
31334 | ac_status=$? | |
31335 | grep -v '^ *+' conftest.er1 >conftest.err | |
31336 | rm -f conftest.er1 | |
31337 | cat conftest.err >&5 | |
31338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31339 | (exit $ac_status); } && | |
31340 | { ac_try='test -z "$ac_c_werror_flag" | |
31341 | || test ! -s conftest.err' | |
31342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31343 | (eval $ac_try) 2>&5 | |
31344 | ac_status=$? | |
31345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31346 | (exit $ac_status); }; } && | |
31347 | { ac_try='test -s conftest.$ac_objext' | |
31348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31349 | (eval $ac_try) 2>&5 | |
31350 | ac_status=$? | |
31351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31352 | (exit $ac_status); }; }; then | |
31353 | ac_cv_type_uint16_t=yes | |
31354 | else | |
31355 | echo "$as_me: failed program was:" >&5 | |
31356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31357 | ||
31358 | ac_cv_type_uint16_t=no | |
31359 | fi | |
31360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31361 | fi | |
31362 | echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 | |
31363 | echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 | |
31364 | ||
31365 | echo "$as_me:$LINENO: checking size of uint16_t" >&5 | |
31366 | echo $ECHO_N "checking size of uint16_t... $ECHO_C" >&6 | |
31367 | if test "${ac_cv_sizeof_uint16_t+set}" = set; then | |
31368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31369 | else | |
31370 | if test "$ac_cv_type_uint16_t" = yes; then | |
31371 | # The cast to unsigned long works around a bug in the HP C Compiler | |
31372 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
31373 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
31374 | # This bug is HP SR number 8606223364. | |
31375 | if test "$cross_compiling" = yes; then | |
31376 | # Depending upon the size, compute the lo and hi bounds. | |
31377 | cat >conftest.$ac_ext <<_ACEOF | |
31378 | /* confdefs.h. */ | |
31379 | _ACEOF | |
31380 | cat confdefs.h >>conftest.$ac_ext | |
31381 | cat >>conftest.$ac_ext <<_ACEOF | |
31382 | /* end confdefs.h. */ | |
31383 | ||
31384 | #include <stdio.h> | |
31385 | ||
31386 | /* What a mess.. many systems have added the (now standard) bit types | |
31387 | * in their own ways, so we need to scan a wide variety of headers to | |
31388 | * find them.. | |
31389 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
31390 | */ | |
31391 | #if HAVE_SYS_TYPES_H | |
31392 | #include <sys/types.h> | |
31393 | #endif | |
31394 | #if STDC_HEADERS | |
31395 | #include <stdlib.h> | |
31396 | #include <stddef.h> | |
31397 | #endif | |
31398 | #if HAVE_INTTYPES_H | |
31399 | #include <inttypes.h> | |
31400 | #endif | |
31401 | #if HAVE_SYS_BITYPES_H | |
31402 | #include <sys/bitypes.h> | |
31403 | #endif | |
31404 | #if HAVE_SYS_SELECT_H | |
31405 | #include <sys/select.h> | |
31406 | #endif | |
31407 | ||
31408 | ||
31409 | ||
31410 | int | |
31411 | main () | |
31412 | { | |
31413 | static int test_array [1 - 2 * !(((long) (sizeof (uint16_t))) >= 0)]; | |
31414 | test_array [0] = 0 | |
31415 | ||
31416 | ; | |
31417 | return 0; | |
31418 | } | |
31419 | _ACEOF | |
31420 | rm -f conftest.$ac_objext | |
31421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31422 | (eval $ac_compile) 2>conftest.er1 | |
31423 | ac_status=$? | |
31424 | grep -v '^ *+' conftest.er1 >conftest.err | |
31425 | rm -f conftest.er1 | |
31426 | cat conftest.err >&5 | |
31427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31428 | (exit $ac_status); } && | |
31429 | { ac_try='test -z "$ac_c_werror_flag" | |
31430 | || test ! -s conftest.err' | |
31431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31432 | (eval $ac_try) 2>&5 | |
31433 | ac_status=$? | |
31434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31435 | (exit $ac_status); }; } && | |
31436 | { ac_try='test -s conftest.$ac_objext' | |
31437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31438 | (eval $ac_try) 2>&5 | |
31439 | ac_status=$? | |
31440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31441 | (exit $ac_status); }; }; then | |
31442 | ac_lo=0 ac_mid=0 | |
31443 | while :; do | |
31444 | cat >conftest.$ac_ext <<_ACEOF | |
31445 | /* confdefs.h. */ | |
31446 | _ACEOF | |
31447 | cat confdefs.h >>conftest.$ac_ext | |
31448 | cat >>conftest.$ac_ext <<_ACEOF | |
31449 | /* end confdefs.h. */ | |
31450 | ||
31451 | #include <stdio.h> | |
31452 | ||
31453 | /* What a mess.. many systems have added the (now standard) bit types | |
31454 | * in their own ways, so we need to scan a wide variety of headers to | |
31455 | * find them.. | |
31456 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
31457 | */ | |
31458 | #if HAVE_SYS_TYPES_H | |
31459 | #include <sys/types.h> | |
31460 | #endif | |
31461 | #if STDC_HEADERS | |
31462 | #include <stdlib.h> | |
31463 | #include <stddef.h> | |
31464 | #endif | |
31465 | #if HAVE_INTTYPES_H | |
31466 | #include <inttypes.h> | |
31467 | #endif | |
31468 | #if HAVE_SYS_BITYPES_H | |
31469 | #include <sys/bitypes.h> | |
31470 | #endif | |
31471 | #if HAVE_SYS_SELECT_H | |
31472 | #include <sys/select.h> | |
31473 | #endif | |
31474 | ||
31475 | ||
31476 | ||
31477 | int | |
31478 | main () | |
31479 | { | |
31480 | static int test_array [1 - 2 * !(((long) (sizeof (uint16_t))) <= $ac_mid)]; | |
31481 | test_array [0] = 0 | |
31482 | ||
31483 | ; | |
31484 | return 0; | |
31485 | } | |
31486 | _ACEOF | |
31487 | rm -f conftest.$ac_objext | |
31488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31489 | (eval $ac_compile) 2>conftest.er1 | |
31490 | ac_status=$? | |
31491 | grep -v '^ *+' conftest.er1 >conftest.err | |
31492 | rm -f conftest.er1 | |
31493 | cat conftest.err >&5 | |
31494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31495 | (exit $ac_status); } && | |
31496 | { ac_try='test -z "$ac_c_werror_flag" | |
31497 | || test ! -s conftest.err' | |
31498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31499 | (eval $ac_try) 2>&5 | |
31500 | ac_status=$? | |
31501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31502 | (exit $ac_status); }; } && | |
31503 | { ac_try='test -s conftest.$ac_objext' | |
31504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31505 | (eval $ac_try) 2>&5 | |
31506 | ac_status=$? | |
31507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31508 | (exit $ac_status); }; }; then | |
31509 | ac_hi=$ac_mid; break | |
31510 | else | |
31511 | echo "$as_me: failed program was:" >&5 | |
31512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31513 | ||
31514 | ac_lo=`expr $ac_mid + 1` | |
31515 | if test $ac_lo -le $ac_mid; then | |
31516 | ac_lo= ac_hi= | |
31517 | break | |
31518 | fi | |
31519 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
31520 | fi | |
31521 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31522 | done | |
31523 | else | |
31524 | echo "$as_me: failed program was:" >&5 | |
31525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31526 | ||
31527 | cat >conftest.$ac_ext <<_ACEOF | |
31528 | /* confdefs.h. */ | |
31529 | _ACEOF | |
31530 | cat confdefs.h >>conftest.$ac_ext | |
31531 | cat >>conftest.$ac_ext <<_ACEOF | |
31532 | /* end confdefs.h. */ | |
31533 | ||
31534 | #include <stdio.h> | |
31535 | ||
31536 | /* What a mess.. many systems have added the (now standard) bit types | |
31537 | * in their own ways, so we need to scan a wide variety of headers to | |
31538 | * find them.. | |
31539 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
31540 | */ | |
31541 | #if HAVE_SYS_TYPES_H | |
31542 | #include <sys/types.h> | |
31543 | #endif | |
31544 | #if STDC_HEADERS | |
31545 | #include <stdlib.h> | |
31546 | #include <stddef.h> | |
31547 | #endif | |
31548 | #if HAVE_INTTYPES_H | |
31549 | #include <inttypes.h> | |
31550 | #endif | |
31551 | #if HAVE_SYS_BITYPES_H | |
31552 | #include <sys/bitypes.h> | |
31553 | #endif | |
31554 | #if HAVE_SYS_SELECT_H | |
31555 | #include <sys/select.h> | |
31556 | #endif | |
31557 | ||
31558 | ||
31559 | ||
31560 | int | |
31561 | main () | |
31562 | { | |
31563 | static int test_array [1 - 2 * !(((long) (sizeof (uint16_t))) < 0)]; | |
31564 | test_array [0] = 0 | |
31565 | ||
31566 | ; | |
31567 | return 0; | |
31568 | } | |
31569 | _ACEOF | |
31570 | rm -f conftest.$ac_objext | |
31571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31572 | (eval $ac_compile) 2>conftest.er1 | |
31573 | ac_status=$? | |
31574 | grep -v '^ *+' conftest.er1 >conftest.err | |
31575 | rm -f conftest.er1 | |
31576 | cat conftest.err >&5 | |
31577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31578 | (exit $ac_status); } && | |
31579 | { ac_try='test -z "$ac_c_werror_flag" | |
31580 | || test ! -s conftest.err' | |
31581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31582 | (eval $ac_try) 2>&5 | |
31583 | ac_status=$? | |
31584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31585 | (exit $ac_status); }; } && | |
31586 | { ac_try='test -s conftest.$ac_objext' | |
31587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31588 | (eval $ac_try) 2>&5 | |
31589 | ac_status=$? | |
31590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31591 | (exit $ac_status); }; }; then | |
31592 | ac_hi=-1 ac_mid=-1 | |
31593 | while :; do | |
31594 | cat >conftest.$ac_ext <<_ACEOF | |
31595 | /* confdefs.h. */ | |
31596 | _ACEOF | |
31597 | cat confdefs.h >>conftest.$ac_ext | |
31598 | cat >>conftest.$ac_ext <<_ACEOF | |
31599 | /* end confdefs.h. */ | |
31600 | ||
31601 | #include <stdio.h> | |
31602 | ||
31603 | /* What a mess.. many systems have added the (now standard) bit types | |
31604 | * in their own ways, so we need to scan a wide variety of headers to | |
31605 | * find them.. | |
31606 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
31607 | */ | |
31608 | #if HAVE_SYS_TYPES_H | |
31609 | #include <sys/types.h> | |
31610 | #endif | |
31611 | #if STDC_HEADERS | |
31612 | #include <stdlib.h> | |
31613 | #include <stddef.h> | |
31614 | #endif | |
31615 | #if HAVE_INTTYPES_H | |
31616 | #include <inttypes.h> | |
31617 | #endif | |
31618 | #if HAVE_SYS_BITYPES_H | |
31619 | #include <sys/bitypes.h> | |
31620 | #endif | |
31621 | #if HAVE_SYS_SELECT_H | |
31622 | #include <sys/select.h> | |
31623 | #endif | |
31624 | ||
31625 | ||
31626 | ||
31627 | int | |
31628 | main () | |
31629 | { | |
31630 | static int test_array [1 - 2 * !(((long) (sizeof (uint16_t))) >= $ac_mid)]; | |
31631 | test_array [0] = 0 | |
31632 | ||
31633 | ; | |
31634 | return 0; | |
31635 | } | |
31636 | _ACEOF | |
31637 | rm -f conftest.$ac_objext | |
31638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31639 | (eval $ac_compile) 2>conftest.er1 | |
31640 | ac_status=$? | |
31641 | grep -v '^ *+' conftest.er1 >conftest.err | |
31642 | rm -f conftest.er1 | |
31643 | cat conftest.err >&5 | |
31644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31645 | (exit $ac_status); } && | |
31646 | { ac_try='test -z "$ac_c_werror_flag" | |
31647 | || test ! -s conftest.err' | |
31648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31649 | (eval $ac_try) 2>&5 | |
31650 | ac_status=$? | |
31651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31652 | (exit $ac_status); }; } && | |
31653 | { ac_try='test -s conftest.$ac_objext' | |
31654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31655 | (eval $ac_try) 2>&5 | |
31656 | ac_status=$? | |
31657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31658 | (exit $ac_status); }; }; then | |
31659 | ac_lo=$ac_mid; break | |
31660 | else | |
31661 | echo "$as_me: failed program was:" >&5 | |
31662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31663 | ||
31664 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
31665 | if test $ac_mid -le $ac_hi; then | |
31666 | ac_lo= ac_hi= | |
31667 | break | |
31668 | fi | |
31669 | ac_mid=`expr 2 '*' $ac_mid` | |
31670 | fi | |
31671 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31672 | done | |
31673 | else | |
31674 | echo "$as_me: failed program was:" >&5 | |
31675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31676 | ||
31677 | ac_lo= ac_hi= | |
31678 | fi | |
31679 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31680 | fi | |
31681 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31682 | # Binary search between lo and hi bounds. | |
31683 | while test "x$ac_lo" != "x$ac_hi"; do | |
31684 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
31685 | cat >conftest.$ac_ext <<_ACEOF | |
31686 | /* confdefs.h. */ | |
31687 | _ACEOF | |
31688 | cat confdefs.h >>conftest.$ac_ext | |
31689 | cat >>conftest.$ac_ext <<_ACEOF | |
31690 | /* end confdefs.h. */ | |
31691 | ||
31692 | #include <stdio.h> | |
31693 | ||
31694 | /* What a mess.. many systems have added the (now standard) bit types | |
31695 | * in their own ways, so we need to scan a wide variety of headers to | |
31696 | * find them.. | |
31697 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
31698 | */ | |
31699 | #if HAVE_SYS_TYPES_H | |
31700 | #include <sys/types.h> | |
31701 | #endif | |
31702 | #if STDC_HEADERS | |
31703 | #include <stdlib.h> | |
31704 | #include <stddef.h> | |
31705 | #endif | |
31706 | #if HAVE_INTTYPES_H | |
31707 | #include <inttypes.h> | |
31708 | #endif | |
31709 | #if HAVE_SYS_BITYPES_H | |
31710 | #include <sys/bitypes.h> | |
31711 | #endif | |
31712 | #if HAVE_SYS_SELECT_H | |
31713 | #include <sys/select.h> | |
31714 | #endif | |
31715 | ||
31716 | ||
31717 | ||
31718 | int | |
31719 | main () | |
31720 | { | |
31721 | static int test_array [1 - 2 * !(((long) (sizeof (uint16_t))) <= $ac_mid)]; | |
31722 | test_array [0] = 0 | |
31723 | ||
31724 | ; | |
31725 | return 0; | |
31726 | } | |
31727 | _ACEOF | |
31728 | rm -f conftest.$ac_objext | |
31729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31730 | (eval $ac_compile) 2>conftest.er1 | |
31731 | ac_status=$? | |
31732 | grep -v '^ *+' conftest.er1 >conftest.err | |
31733 | rm -f conftest.er1 | |
31734 | cat conftest.err >&5 | |
31735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31736 | (exit $ac_status); } && | |
31737 | { ac_try='test -z "$ac_c_werror_flag" | |
31738 | || test ! -s conftest.err' | |
31739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31740 | (eval $ac_try) 2>&5 | |
31741 | ac_status=$? | |
31742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31743 | (exit $ac_status); }; } && | |
31744 | { ac_try='test -s conftest.$ac_objext' | |
31745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31746 | (eval $ac_try) 2>&5 | |
31747 | ac_status=$? | |
31748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31749 | (exit $ac_status); }; }; then | |
31750 | ac_hi=$ac_mid | |
31751 | else | |
31752 | echo "$as_me: failed program was:" >&5 | |
31753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31754 | ||
31755 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
31756 | fi | |
31757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31758 | done | |
31759 | case $ac_lo in | |
31760 | ?*) ac_cv_sizeof_uint16_t=$ac_lo;; | |
31761 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint16_t), 77 | |
31762 | See \`config.log' for more details." >&5 | |
31763 | echo "$as_me: error: cannot compute sizeof (uint16_t), 77 | |
31764 | See \`config.log' for more details." >&2;} | |
31765 | { (exit 1); exit 1; }; } ;; | |
31766 | esac | |
31767 | else | |
31768 | if test "$cross_compiling" = yes; then | |
31769 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
31770 | See \`config.log' for more details." >&5 | |
31771 | echo "$as_me: error: cannot run test program while cross compiling | |
31772 | See \`config.log' for more details." >&2;} | |
31773 | { (exit 1); exit 1; }; } | |
31774 | else | |
31775 | cat >conftest.$ac_ext <<_ACEOF | |
31776 | /* confdefs.h. */ | |
31777 | _ACEOF | |
31778 | cat confdefs.h >>conftest.$ac_ext | |
31779 | cat >>conftest.$ac_ext <<_ACEOF | |
31780 | /* end confdefs.h. */ | |
31781 | ||
31782 | #include <stdio.h> | |
31783 | ||
31784 | /* What a mess.. many systems have added the (now standard) bit types | |
31785 | * in their own ways, so we need to scan a wide variety of headers to | |
31786 | * find them.. | |
31787 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
31788 | */ | |
31789 | #if HAVE_SYS_TYPES_H | |
31790 | #include <sys/types.h> | |
31791 | #endif | |
31792 | #if STDC_HEADERS | |
31793 | #include <stdlib.h> | |
31794 | #include <stddef.h> | |
31795 | #endif | |
31796 | #if HAVE_INTTYPES_H | |
31797 | #include <inttypes.h> | |
31798 | #endif | |
31799 | #if HAVE_SYS_BITYPES_H | |
31800 | #include <sys/bitypes.h> | |
31801 | #endif | |
31802 | #if HAVE_SYS_SELECT_H | |
31803 | #include <sys/select.h> | |
31804 | #endif | |
31805 | ||
31806 | ||
31807 | ||
31808 | long longval () { return (long) (sizeof (uint16_t)); } | |
31809 | unsigned long ulongval () { return (long) (sizeof (uint16_t)); } | |
31810 | #include <stdio.h> | |
31811 | #include <stdlib.h> | |
31812 | int | |
31813 | main () | |
31814 | { | |
31815 | ||
31816 | FILE *f = fopen ("conftest.val", "w"); | |
31817 | if (! f) | |
31818 | exit (1); | |
31819 | if (((long) (sizeof (uint16_t))) < 0) | |
31820 | { | |
31821 | long i = longval (); | |
31822 | if (i != ((long) (sizeof (uint16_t)))) | |
31823 | exit (1); | |
31824 | fprintf (f, "%ld\n", i); | |
31825 | } | |
31826 | else | |
31827 | { | |
31828 | unsigned long i = ulongval (); | |
31829 | if (i != ((long) (sizeof (uint16_t)))) | |
31830 | exit (1); | |
31831 | fprintf (f, "%lu\n", i); | |
31832 | } | |
31833 | exit (ferror (f) || fclose (f) != 0); | |
31834 | ||
31835 | ; | |
31836 | return 0; | |
31837 | } | |
31838 | _ACEOF | |
31839 | rm -f conftest$ac_exeext | |
31840 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31841 | (eval $ac_link) 2>&5 | |
31842 | ac_status=$? | |
31843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31844 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
31845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31846 | (eval $ac_try) 2>&5 | |
31847 | ac_status=$? | |
31848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31849 | (exit $ac_status); }; }; then | |
31850 | ac_cv_sizeof_uint16_t=`cat conftest.val` | |
31851 | else | |
31852 | echo "$as_me: program exited with status $ac_status" >&5 | |
31853 | echo "$as_me: failed program was:" >&5 | |
31854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31855 | ||
31856 | ( exit $ac_status ) | |
31857 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint16_t), 77 | |
31858 | See \`config.log' for more details." >&5 | |
31859 | echo "$as_me: error: cannot compute sizeof (uint16_t), 77 | |
31860 | See \`config.log' for more details." >&2;} | |
31861 | { (exit 1); exit 1; }; } | |
31862 | fi | |
31863 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
31864 | fi | |
31865 | fi | |
31866 | rm -f conftest.val | |
31867 | else | |
31868 | ac_cv_sizeof_uint16_t=0 | |
31869 | fi | |
31870 | fi | |
31871 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint16_t" >&5 | |
31872 | echo "${ECHO_T}$ac_cv_sizeof_uint16_t" >&6 | |
31873 | cat >>confdefs.h <<_ACEOF | |
31874 | #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t | |
31875 | _ACEOF | |
31876 | ||
31877 | ||
31878 | ||
31879 | cat >>confdefs.h <<\_ACEOF | |
31880 | #define HAVE_UINT16_T 1 | |
31881 | _ACEOF | |
31882 | ||
31883 | ||
31884 | fi | |
31885 | ||
31886 | ||
31887 | echo "$as_me:$LINENO: checking for int32_t" >&5 | |
31888 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 | |
31889 | if test "${ac_cv_type_int32_t+set}" = set; then | |
31890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31891 | else | |
31892 | cat >conftest.$ac_ext <<_ACEOF | |
31893 | /* confdefs.h. */ | |
31894 | _ACEOF | |
31895 | cat confdefs.h >>conftest.$ac_ext | |
31896 | cat >>conftest.$ac_ext <<_ACEOF | |
31897 | /* end confdefs.h. */ | |
31898 | ||
31899 | /* What a mess.. many systems have added the (now standard) bit types | |
31900 | * in their own ways, so we need to scan a wide variety of headers to | |
31901 | * find them.. | |
31902 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
31903 | */ | |
31904 | #if HAVE_SYS_TYPES_H | |
31905 | #include <sys/types.h> | |
31906 | #endif | |
31907 | #if STDC_HEADERS | |
31908 | #include <stdlib.h> | |
31909 | #include <stddef.h> | |
31910 | #endif | |
31911 | #if HAVE_INTTYPES_H | |
31912 | #include <inttypes.h> | |
31913 | #endif | |
31914 | #if HAVE_SYS_BITYPES_H | |
31915 | #include <sys/bitypes.h> | |
31916 | #endif | |
31917 | #if HAVE_SYS_SELECT_H | |
31918 | #include <sys/select.h> | |
31919 | #endif | |
31920 | ||
31921 | ||
31922 | int | |
31923 | main () | |
31924 | { | |
31925 | if ((int32_t *) 0) | |
31926 | return 0; | |
31927 | if (sizeof (int32_t)) | |
31928 | return 0; | |
31929 | ; | |
31930 | return 0; | |
31931 | } | |
31932 | _ACEOF | |
31933 | rm -f conftest.$ac_objext | |
31934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31935 | (eval $ac_compile) 2>conftest.er1 | |
31936 | ac_status=$? | |
31937 | grep -v '^ *+' conftest.er1 >conftest.err | |
31938 | rm -f conftest.er1 | |
31939 | cat conftest.err >&5 | |
31940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31941 | (exit $ac_status); } && | |
31942 | { ac_try='test -z "$ac_c_werror_flag" | |
31943 | || test ! -s conftest.err' | |
31944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31945 | (eval $ac_try) 2>&5 | |
31946 | ac_status=$? | |
31947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31948 | (exit $ac_status); }; } && | |
31949 | { ac_try='test -s conftest.$ac_objext' | |
31950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31951 | (eval $ac_try) 2>&5 | |
31952 | ac_status=$? | |
31953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31954 | (exit $ac_status); }; }; then | |
31955 | ac_cv_type_int32_t=yes | |
31956 | else | |
31957 | echo "$as_me: failed program was:" >&5 | |
31958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31959 | ||
31960 | ac_cv_type_int32_t=no | |
31961 | fi | |
31962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
31963 | fi | |
31964 | echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 | |
31965 | echo "${ECHO_T}$ac_cv_type_int32_t" >&6 | |
31966 | if test $ac_cv_type_int32_t = yes; then | |
31967 | ||
31968 | echo "$as_me:$LINENO: checking for int32_t" >&5 | |
31969 | echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 | |
31970 | if test "${ac_cv_type_int32_t+set}" = set; then | |
31971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31972 | else | |
31973 | cat >conftest.$ac_ext <<_ACEOF | |
31974 | /* confdefs.h. */ | |
31975 | _ACEOF | |
31976 | cat confdefs.h >>conftest.$ac_ext | |
31977 | cat >>conftest.$ac_ext <<_ACEOF | |
31978 | /* end confdefs.h. */ | |
31979 | ||
31980 | #include <stdio.h> | |
31981 | ||
31982 | /* What a mess.. many systems have added the (now standard) bit types | |
31983 | * in their own ways, so we need to scan a wide variety of headers to | |
31984 | * find them.. | |
31985 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
31986 | */ | |
31987 | #if HAVE_SYS_TYPES_H | |
31988 | #include <sys/types.h> | |
31989 | #endif | |
31990 | #if STDC_HEADERS | |
31991 | #include <stdlib.h> | |
31992 | #include <stddef.h> | |
31993 | #endif | |
31994 | #if HAVE_INTTYPES_H | |
31995 | #include <inttypes.h> | |
31996 | #endif | |
31997 | #if HAVE_SYS_BITYPES_H | |
31998 | #include <sys/bitypes.h> | |
31999 | #endif | |
32000 | #if HAVE_SYS_SELECT_H | |
32001 | #include <sys/select.h> | |
32002 | #endif | |
32003 | ||
32004 | ||
32005 | ||
32006 | int | |
32007 | main () | |
32008 | { | |
32009 | if ((int32_t *) 0) | |
32010 | return 0; | |
32011 | if (sizeof (int32_t)) | |
32012 | return 0; | |
32013 | ; | |
32014 | return 0; | |
32015 | } | |
32016 | _ACEOF | |
32017 | rm -f conftest.$ac_objext | |
32018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32019 | (eval $ac_compile) 2>conftest.er1 | |
32020 | ac_status=$? | |
32021 | grep -v '^ *+' conftest.er1 >conftest.err | |
32022 | rm -f conftest.er1 | |
32023 | cat conftest.err >&5 | |
32024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32025 | (exit $ac_status); } && | |
32026 | { ac_try='test -z "$ac_c_werror_flag" | |
32027 | || test ! -s conftest.err' | |
32028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32029 | (eval $ac_try) 2>&5 | |
32030 | ac_status=$? | |
32031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32032 | (exit $ac_status); }; } && | |
32033 | { ac_try='test -s conftest.$ac_objext' | |
32034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32035 | (eval $ac_try) 2>&5 | |
32036 | ac_status=$? | |
32037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32038 | (exit $ac_status); }; }; then | |
32039 | ac_cv_type_int32_t=yes | |
32040 | else | |
32041 | echo "$as_me: failed program was:" >&5 | |
32042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32043 | ||
32044 | ac_cv_type_int32_t=no | |
32045 | fi | |
32046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32047 | fi | |
32048 | echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 | |
32049 | echo "${ECHO_T}$ac_cv_type_int32_t" >&6 | |
32050 | ||
32051 | echo "$as_me:$LINENO: checking size of int32_t" >&5 | |
32052 | echo $ECHO_N "checking size of int32_t... $ECHO_C" >&6 | |
32053 | if test "${ac_cv_sizeof_int32_t+set}" = set; then | |
32054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32055 | else | |
32056 | if test "$ac_cv_type_int32_t" = yes; then | |
32057 | # The cast to unsigned long works around a bug in the HP C Compiler | |
32058 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
32059 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
32060 | # This bug is HP SR number 8606223364. | |
32061 | if test "$cross_compiling" = yes; then | |
32062 | # Depending upon the size, compute the lo and hi bounds. | |
32063 | cat >conftest.$ac_ext <<_ACEOF | |
32064 | /* confdefs.h. */ | |
32065 | _ACEOF | |
32066 | cat confdefs.h >>conftest.$ac_ext | |
32067 | cat >>conftest.$ac_ext <<_ACEOF | |
32068 | /* end confdefs.h. */ | |
32069 | ||
32070 | #include <stdio.h> | |
32071 | ||
32072 | /* What a mess.. many systems have added the (now standard) bit types | |
32073 | * in their own ways, so we need to scan a wide variety of headers to | |
32074 | * find them.. | |
32075 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
32076 | */ | |
32077 | #if HAVE_SYS_TYPES_H | |
32078 | #include <sys/types.h> | |
32079 | #endif | |
32080 | #if STDC_HEADERS | |
32081 | #include <stdlib.h> | |
32082 | #include <stddef.h> | |
32083 | #endif | |
32084 | #if HAVE_INTTYPES_H | |
32085 | #include <inttypes.h> | |
32086 | #endif | |
32087 | #if HAVE_SYS_BITYPES_H | |
32088 | #include <sys/bitypes.h> | |
32089 | #endif | |
32090 | #if HAVE_SYS_SELECT_H | |
32091 | #include <sys/select.h> | |
32092 | #endif | |
32093 | ||
32094 | ||
32095 | ||
32096 | int | |
32097 | main () | |
32098 | { | |
32099 | static int test_array [1 - 2 * !(((long) (sizeof (int32_t))) >= 0)]; | |
32100 | test_array [0] = 0 | |
32101 | ||
32102 | ; | |
32103 | return 0; | |
32104 | } | |
32105 | _ACEOF | |
32106 | rm -f conftest.$ac_objext | |
32107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32108 | (eval $ac_compile) 2>conftest.er1 | |
32109 | ac_status=$? | |
32110 | grep -v '^ *+' conftest.er1 >conftest.err | |
32111 | rm -f conftest.er1 | |
32112 | cat conftest.err >&5 | |
32113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32114 | (exit $ac_status); } && | |
32115 | { ac_try='test -z "$ac_c_werror_flag" | |
32116 | || test ! -s conftest.err' | |
32117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32118 | (eval $ac_try) 2>&5 | |
32119 | ac_status=$? | |
32120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32121 | (exit $ac_status); }; } && | |
32122 | { ac_try='test -s conftest.$ac_objext' | |
32123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32124 | (eval $ac_try) 2>&5 | |
32125 | ac_status=$? | |
32126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32127 | (exit $ac_status); }; }; then | |
32128 | ac_lo=0 ac_mid=0 | |
32129 | while :; do | |
32130 | cat >conftest.$ac_ext <<_ACEOF | |
32131 | /* confdefs.h. */ | |
32132 | _ACEOF | |
32133 | cat confdefs.h >>conftest.$ac_ext | |
32134 | cat >>conftest.$ac_ext <<_ACEOF | |
32135 | /* end confdefs.h. */ | |
32136 | ||
32137 | #include <stdio.h> | |
32138 | ||
32139 | /* What a mess.. many systems have added the (now standard) bit types | |
32140 | * in their own ways, so we need to scan a wide variety of headers to | |
32141 | * find them.. | |
32142 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
32143 | */ | |
32144 | #if HAVE_SYS_TYPES_H | |
32145 | #include <sys/types.h> | |
32146 | #endif | |
32147 | #if STDC_HEADERS | |
32148 | #include <stdlib.h> | |
32149 | #include <stddef.h> | |
32150 | #endif | |
32151 | #if HAVE_INTTYPES_H | |
32152 | #include <inttypes.h> | |
32153 | #endif | |
32154 | #if HAVE_SYS_BITYPES_H | |
32155 | #include <sys/bitypes.h> | |
32156 | #endif | |
32157 | #if HAVE_SYS_SELECT_H | |
32158 | #include <sys/select.h> | |
32159 | #endif | |
32160 | ||
32161 | ||
32162 | ||
32163 | int | |
32164 | main () | |
32165 | { | |
32166 | static int test_array [1 - 2 * !(((long) (sizeof (int32_t))) <= $ac_mid)]; | |
32167 | test_array [0] = 0 | |
32168 | ||
32169 | ; | |
32170 | return 0; | |
32171 | } | |
32172 | _ACEOF | |
32173 | rm -f conftest.$ac_objext | |
32174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32175 | (eval $ac_compile) 2>conftest.er1 | |
32176 | ac_status=$? | |
32177 | grep -v '^ *+' conftest.er1 >conftest.err | |
32178 | rm -f conftest.er1 | |
32179 | cat conftest.err >&5 | |
32180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32181 | (exit $ac_status); } && | |
32182 | { ac_try='test -z "$ac_c_werror_flag" | |
32183 | || test ! -s conftest.err' | |
32184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32185 | (eval $ac_try) 2>&5 | |
32186 | ac_status=$? | |
32187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32188 | (exit $ac_status); }; } && | |
32189 | { ac_try='test -s conftest.$ac_objext' | |
32190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32191 | (eval $ac_try) 2>&5 | |
32192 | ac_status=$? | |
32193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32194 | (exit $ac_status); }; }; then | |
32195 | ac_hi=$ac_mid; break | |
32196 | else | |
32197 | echo "$as_me: failed program was:" >&5 | |
32198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32199 | ||
32200 | ac_lo=`expr $ac_mid + 1` | |
32201 | if test $ac_lo -le $ac_mid; then | |
32202 | ac_lo= ac_hi= | |
32203 | break | |
32204 | fi | |
32205 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
32206 | fi | |
32207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32208 | done | |
32209 | else | |
32210 | echo "$as_me: failed program was:" >&5 | |
32211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32212 | ||
32213 | cat >conftest.$ac_ext <<_ACEOF | |
32214 | /* confdefs.h. */ | |
32215 | _ACEOF | |
32216 | cat confdefs.h >>conftest.$ac_ext | |
32217 | cat >>conftest.$ac_ext <<_ACEOF | |
32218 | /* end confdefs.h. */ | |
32219 | ||
32220 | #include <stdio.h> | |
32221 | ||
32222 | /* What a mess.. many systems have added the (now standard) bit types | |
32223 | * in their own ways, so we need to scan a wide variety of headers to | |
32224 | * find them.. | |
32225 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
32226 | */ | |
32227 | #if HAVE_SYS_TYPES_H | |
32228 | #include <sys/types.h> | |
32229 | #endif | |
32230 | #if STDC_HEADERS | |
32231 | #include <stdlib.h> | |
32232 | #include <stddef.h> | |
32233 | #endif | |
32234 | #if HAVE_INTTYPES_H | |
32235 | #include <inttypes.h> | |
32236 | #endif | |
32237 | #if HAVE_SYS_BITYPES_H | |
32238 | #include <sys/bitypes.h> | |
32239 | #endif | |
32240 | #if HAVE_SYS_SELECT_H | |
32241 | #include <sys/select.h> | |
32242 | #endif | |
32243 | ||
32244 | ||
32245 | ||
32246 | int | |
32247 | main () | |
32248 | { | |
32249 | static int test_array [1 - 2 * !(((long) (sizeof (int32_t))) < 0)]; | |
32250 | test_array [0] = 0 | |
32251 | ||
32252 | ; | |
32253 | return 0; | |
32254 | } | |
32255 | _ACEOF | |
32256 | rm -f conftest.$ac_objext | |
32257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32258 | (eval $ac_compile) 2>conftest.er1 | |
32259 | ac_status=$? | |
32260 | grep -v '^ *+' conftest.er1 >conftest.err | |
32261 | rm -f conftest.er1 | |
32262 | cat conftest.err >&5 | |
32263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32264 | (exit $ac_status); } && | |
32265 | { ac_try='test -z "$ac_c_werror_flag" | |
32266 | || test ! -s conftest.err' | |
32267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32268 | (eval $ac_try) 2>&5 | |
32269 | ac_status=$? | |
32270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32271 | (exit $ac_status); }; } && | |
32272 | { ac_try='test -s conftest.$ac_objext' | |
32273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32274 | (eval $ac_try) 2>&5 | |
32275 | ac_status=$? | |
32276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32277 | (exit $ac_status); }; }; then | |
32278 | ac_hi=-1 ac_mid=-1 | |
32279 | while :; do | |
32280 | cat >conftest.$ac_ext <<_ACEOF | |
32281 | /* confdefs.h. */ | |
32282 | _ACEOF | |
32283 | cat confdefs.h >>conftest.$ac_ext | |
32284 | cat >>conftest.$ac_ext <<_ACEOF | |
32285 | /* end confdefs.h. */ | |
32286 | ||
32287 | #include <stdio.h> | |
32288 | ||
32289 | /* What a mess.. many systems have added the (now standard) bit types | |
32290 | * in their own ways, so we need to scan a wide variety of headers to | |
32291 | * find them.. | |
32292 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
32293 | */ | |
32294 | #if HAVE_SYS_TYPES_H | |
32295 | #include <sys/types.h> | |
32296 | #endif | |
32297 | #if STDC_HEADERS | |
32298 | #include <stdlib.h> | |
32299 | #include <stddef.h> | |
32300 | #endif | |
32301 | #if HAVE_INTTYPES_H | |
32302 | #include <inttypes.h> | |
32303 | #endif | |
32304 | #if HAVE_SYS_BITYPES_H | |
32305 | #include <sys/bitypes.h> | |
32306 | #endif | |
32307 | #if HAVE_SYS_SELECT_H | |
32308 | #include <sys/select.h> | |
32309 | #endif | |
32310 | ||
32311 | ||
32312 | ||
32313 | int | |
32314 | main () | |
32315 | { | |
32316 | static int test_array [1 - 2 * !(((long) (sizeof (int32_t))) >= $ac_mid)]; | |
32317 | test_array [0] = 0 | |
32318 | ||
32319 | ; | |
32320 | return 0; | |
32321 | } | |
32322 | _ACEOF | |
32323 | rm -f conftest.$ac_objext | |
32324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32325 | (eval $ac_compile) 2>conftest.er1 | |
32326 | ac_status=$? | |
32327 | grep -v '^ *+' conftest.er1 >conftest.err | |
32328 | rm -f conftest.er1 | |
32329 | cat conftest.err >&5 | |
32330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32331 | (exit $ac_status); } && | |
32332 | { ac_try='test -z "$ac_c_werror_flag" | |
32333 | || test ! -s conftest.err' | |
32334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32335 | (eval $ac_try) 2>&5 | |
32336 | ac_status=$? | |
32337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32338 | (exit $ac_status); }; } && | |
32339 | { ac_try='test -s conftest.$ac_objext' | |
32340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32341 | (eval $ac_try) 2>&5 | |
32342 | ac_status=$? | |
32343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32344 | (exit $ac_status); }; }; then | |
32345 | ac_lo=$ac_mid; break | |
32346 | else | |
32347 | echo "$as_me: failed program was:" >&5 | |
32348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32349 | ||
32350 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
32351 | if test $ac_mid -le $ac_hi; then | |
32352 | ac_lo= ac_hi= | |
32353 | break | |
32354 | fi | |
32355 | ac_mid=`expr 2 '*' $ac_mid` | |
32356 | fi | |
32357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32358 | done | |
32359 | else | |
32360 | echo "$as_me: failed program was:" >&5 | |
32361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32362 | ||
32363 | ac_lo= ac_hi= | |
32364 | fi | |
32365 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32366 | fi | |
32367 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32368 | # Binary search between lo and hi bounds. | |
32369 | while test "x$ac_lo" != "x$ac_hi"; do | |
32370 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
32371 | cat >conftest.$ac_ext <<_ACEOF | |
32372 | /* confdefs.h. */ | |
32373 | _ACEOF | |
32374 | cat confdefs.h >>conftest.$ac_ext | |
32375 | cat >>conftest.$ac_ext <<_ACEOF | |
32376 | /* end confdefs.h. */ | |
32377 | ||
32378 | #include <stdio.h> | |
32379 | ||
32380 | /* What a mess.. many systems have added the (now standard) bit types | |
32381 | * in their own ways, so we need to scan a wide variety of headers to | |
32382 | * find them.. | |
32383 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
32384 | */ | |
32385 | #if HAVE_SYS_TYPES_H | |
32386 | #include <sys/types.h> | |
32387 | #endif | |
32388 | #if STDC_HEADERS | |
32389 | #include <stdlib.h> | |
32390 | #include <stddef.h> | |
32391 | #endif | |
32392 | #if HAVE_INTTYPES_H | |
32393 | #include <inttypes.h> | |
32394 | #endif | |
32395 | #if HAVE_SYS_BITYPES_H | |
32396 | #include <sys/bitypes.h> | |
32397 | #endif | |
32398 | #if HAVE_SYS_SELECT_H | |
32399 | #include <sys/select.h> | |
32400 | #endif | |
32401 | ||
32402 | ||
32403 | ||
32404 | int | |
32405 | main () | |
32406 | { | |
32407 | static int test_array [1 - 2 * !(((long) (sizeof (int32_t))) <= $ac_mid)]; | |
32408 | test_array [0] = 0 | |
32409 | ||
32410 | ; | |
32411 | return 0; | |
32412 | } | |
32413 | _ACEOF | |
32414 | rm -f conftest.$ac_objext | |
32415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32416 | (eval $ac_compile) 2>conftest.er1 | |
32417 | ac_status=$? | |
32418 | grep -v '^ *+' conftest.er1 >conftest.err | |
32419 | rm -f conftest.er1 | |
32420 | cat conftest.err >&5 | |
32421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32422 | (exit $ac_status); } && | |
32423 | { ac_try='test -z "$ac_c_werror_flag" | |
32424 | || test ! -s conftest.err' | |
32425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32426 | (eval $ac_try) 2>&5 | |
32427 | ac_status=$? | |
32428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32429 | (exit $ac_status); }; } && | |
32430 | { ac_try='test -s conftest.$ac_objext' | |
32431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32432 | (eval $ac_try) 2>&5 | |
32433 | ac_status=$? | |
32434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32435 | (exit $ac_status); }; }; then | |
32436 | ac_hi=$ac_mid | |
32437 | else | |
32438 | echo "$as_me: failed program was:" >&5 | |
32439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32440 | ||
32441 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
32442 | fi | |
32443 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32444 | done | |
32445 | case $ac_lo in | |
32446 | ?*) ac_cv_sizeof_int32_t=$ac_lo;; | |
32447 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int32_t), 77 | |
32448 | See \`config.log' for more details." >&5 | |
32449 | echo "$as_me: error: cannot compute sizeof (int32_t), 77 | |
32450 | See \`config.log' for more details." >&2;} | |
32451 | { (exit 1); exit 1; }; } ;; | |
32452 | esac | |
32453 | else | |
32454 | if test "$cross_compiling" = yes; then | |
32455 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
32456 | See \`config.log' for more details." >&5 | |
32457 | echo "$as_me: error: cannot run test program while cross compiling | |
32458 | See \`config.log' for more details." >&2;} | |
32459 | { (exit 1); exit 1; }; } | |
32460 | else | |
32461 | cat >conftest.$ac_ext <<_ACEOF | |
32462 | /* confdefs.h. */ | |
32463 | _ACEOF | |
32464 | cat confdefs.h >>conftest.$ac_ext | |
32465 | cat >>conftest.$ac_ext <<_ACEOF | |
32466 | /* end confdefs.h. */ | |
32467 | ||
32468 | #include <stdio.h> | |
32469 | ||
32470 | /* What a mess.. many systems have added the (now standard) bit types | |
32471 | * in their own ways, so we need to scan a wide variety of headers to | |
32472 | * find them.. | |
32473 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
32474 | */ | |
32475 | #if HAVE_SYS_TYPES_H | |
32476 | #include <sys/types.h> | |
32477 | #endif | |
32478 | #if STDC_HEADERS | |
32479 | #include <stdlib.h> | |
32480 | #include <stddef.h> | |
32481 | #endif | |
32482 | #if HAVE_INTTYPES_H | |
32483 | #include <inttypes.h> | |
32484 | #endif | |
32485 | #if HAVE_SYS_BITYPES_H | |
32486 | #include <sys/bitypes.h> | |
32487 | #endif | |
32488 | #if HAVE_SYS_SELECT_H | |
32489 | #include <sys/select.h> | |
32490 | #endif | |
32491 | ||
32492 | ||
32493 | ||
32494 | long longval () { return (long) (sizeof (int32_t)); } | |
32495 | unsigned long ulongval () { return (long) (sizeof (int32_t)); } | |
32496 | #include <stdio.h> | |
32497 | #include <stdlib.h> | |
32498 | int | |
32499 | main () | |
32500 | { | |
32501 | ||
32502 | FILE *f = fopen ("conftest.val", "w"); | |
32503 | if (! f) | |
32504 | exit (1); | |
32505 | if (((long) (sizeof (int32_t))) < 0) | |
32506 | { | |
32507 | long i = longval (); | |
32508 | if (i != ((long) (sizeof (int32_t)))) | |
32509 | exit (1); | |
32510 | fprintf (f, "%ld\n", i); | |
32511 | } | |
32512 | else | |
32513 | { | |
32514 | unsigned long i = ulongval (); | |
32515 | if (i != ((long) (sizeof (int32_t)))) | |
32516 | exit (1); | |
32517 | fprintf (f, "%lu\n", i); | |
32518 | } | |
32519 | exit (ferror (f) || fclose (f) != 0); | |
32520 | ||
32521 | ; | |
32522 | return 0; | |
32523 | } | |
32524 | _ACEOF | |
32525 | rm -f conftest$ac_exeext | |
32526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32527 | (eval $ac_link) 2>&5 | |
32528 | ac_status=$? | |
32529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32530 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
32531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32532 | (eval $ac_try) 2>&5 | |
32533 | ac_status=$? | |
32534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32535 | (exit $ac_status); }; }; then | |
32536 | ac_cv_sizeof_int32_t=`cat conftest.val` | |
32537 | else | |
32538 | echo "$as_me: program exited with status $ac_status" >&5 | |
32539 | echo "$as_me: failed program was:" >&5 | |
32540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32541 | ||
32542 | ( exit $ac_status ) | |
32543 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int32_t), 77 | |
32544 | See \`config.log' for more details." >&5 | |
32545 | echo "$as_me: error: cannot compute sizeof (int32_t), 77 | |
32546 | See \`config.log' for more details." >&2;} | |
32547 | { (exit 1); exit 1; }; } | |
32548 | fi | |
32549 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
32550 | fi | |
32551 | fi | |
32552 | rm -f conftest.val | |
32553 | else | |
32554 | ac_cv_sizeof_int32_t=0 | |
32555 | fi | |
32556 | fi | |
32557 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int32_t" >&5 | |
32558 | echo "${ECHO_T}$ac_cv_sizeof_int32_t" >&6 | |
32559 | cat >>confdefs.h <<_ACEOF | |
32560 | #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t | |
32561 | _ACEOF | |
32562 | ||
32563 | ||
32564 | ||
32565 | cat >>confdefs.h <<\_ACEOF | |
32566 | #define HAVE_INT32_T 1 | |
32567 | _ACEOF | |
32568 | ||
32569 | ||
32570 | fi | |
32571 | ||
32572 | ||
32573 | echo "$as_me:$LINENO: checking for long" >&5 | |
32574 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
32575 | if test "${ac_cv_type_long+set}" = set; then | |
32576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32577 | else | |
32578 | cat >conftest.$ac_ext <<_ACEOF | |
32579 | /* confdefs.h. */ | |
32580 | _ACEOF | |
32581 | cat confdefs.h >>conftest.$ac_ext | |
32582 | cat >>conftest.$ac_ext <<_ACEOF | |
32583 | /* end confdefs.h. */ | |
32584 | ||
32585 | /* What a mess.. many systems have added the (now standard) bit types | |
32586 | * in their own ways, so we need to scan a wide variety of headers to | |
32587 | * find them.. | |
32588 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
32589 | */ | |
32590 | #if HAVE_SYS_TYPES_H | |
32591 | #include <sys/types.h> | |
32592 | #endif | |
32593 | #if STDC_HEADERS | |
32594 | #include <stdlib.h> | |
32595 | #include <stddef.h> | |
32596 | #endif | |
32597 | #if HAVE_INTTYPES_H | |
32598 | #include <inttypes.h> | |
32599 | #endif | |
32600 | #if HAVE_SYS_BITYPES_H | |
32601 | #include <sys/bitypes.h> | |
32602 | #endif | |
32603 | #if HAVE_SYS_SELECT_H | |
32604 | #include <sys/select.h> | |
32605 | #endif | |
32606 | ||
32607 | ||
32608 | int | |
32609 | main () | |
32610 | { | |
32611 | if ((long *) 0) | |
32612 | return 0; | |
32613 | if (sizeof (long)) | |
32614 | return 0; | |
32615 | ; | |
32616 | return 0; | |
32617 | } | |
32618 | _ACEOF | |
32619 | rm -f conftest.$ac_objext | |
32620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32621 | (eval $ac_compile) 2>conftest.er1 | |
32622 | ac_status=$? | |
32623 | grep -v '^ *+' conftest.er1 >conftest.err | |
32624 | rm -f conftest.er1 | |
32625 | cat conftest.err >&5 | |
32626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32627 | (exit $ac_status); } && | |
32628 | { ac_try='test -z "$ac_c_werror_flag" | |
32629 | || test ! -s conftest.err' | |
32630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32631 | (eval $ac_try) 2>&5 | |
32632 | ac_status=$? | |
32633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32634 | (exit $ac_status); }; } && | |
32635 | { ac_try='test -s conftest.$ac_objext' | |
32636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32637 | (eval $ac_try) 2>&5 | |
32638 | ac_status=$? | |
32639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32640 | (exit $ac_status); }; }; then | |
32641 | ac_cv_type_long=yes | |
32642 | else | |
32643 | echo "$as_me: failed program was:" >&5 | |
32644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32645 | ||
32646 | ac_cv_type_long=no | |
32647 | fi | |
32648 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32649 | fi | |
32650 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
32651 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
32652 | if test $ac_cv_type_long = yes; then | |
32653 | ||
32654 | echo "$as_me:$LINENO: checking for long" >&5 | |
32655 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
32656 | if test "${ac_cv_type_long+set}" = set; then | |
32657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32658 | else | |
32659 | cat >conftest.$ac_ext <<_ACEOF | |
32660 | /* confdefs.h. */ | |
32661 | _ACEOF | |
32662 | cat confdefs.h >>conftest.$ac_ext | |
32663 | cat >>conftest.$ac_ext <<_ACEOF | |
32664 | /* end confdefs.h. */ | |
32665 | ||
32666 | #include <stdio.h> | |
32667 | ||
32668 | /* What a mess.. many systems have added the (now standard) bit types | |
32669 | * in their own ways, so we need to scan a wide variety of headers to | |
32670 | * find them.. | |
32671 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
32672 | */ | |
32673 | #if HAVE_SYS_TYPES_H | |
32674 | #include <sys/types.h> | |
32675 | #endif | |
32676 | #if STDC_HEADERS | |
32677 | #include <stdlib.h> | |
32678 | #include <stddef.h> | |
32679 | #endif | |
32680 | #if HAVE_INTTYPES_H | |
32681 | #include <inttypes.h> | |
32682 | #endif | |
32683 | #if HAVE_SYS_BITYPES_H | |
32684 | #include <sys/bitypes.h> | |
32685 | #endif | |
32686 | #if HAVE_SYS_SELECT_H | |
32687 | #include <sys/select.h> | |
32688 | #endif | |
32689 | ||
32690 | ||
32691 | ||
32692 | int | |
32693 | main () | |
32694 | { | |
32695 | if ((long *) 0) | |
32696 | return 0; | |
32697 | if (sizeof (long)) | |
32698 | return 0; | |
32699 | ; | |
32700 | return 0; | |
32701 | } | |
32702 | _ACEOF | |
32703 | rm -f conftest.$ac_objext | |
32704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32705 | (eval $ac_compile) 2>conftest.er1 | |
32706 | ac_status=$? | |
32707 | grep -v '^ *+' conftest.er1 >conftest.err | |
32708 | rm -f conftest.er1 | |
32709 | cat conftest.err >&5 | |
32710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32711 | (exit $ac_status); } && | |
32712 | { ac_try='test -z "$ac_c_werror_flag" | |
32713 | || test ! -s conftest.err' | |
32714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32715 | (eval $ac_try) 2>&5 | |
32716 | ac_status=$? | |
32717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32718 | (exit $ac_status); }; } && | |
32719 | { ac_try='test -s conftest.$ac_objext' | |
32720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32721 | (eval $ac_try) 2>&5 | |
32722 | ac_status=$? | |
32723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32724 | (exit $ac_status); }; }; then | |
32725 | ac_cv_type_long=yes | |
32726 | else | |
32727 | echo "$as_me: failed program was:" >&5 | |
32728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32729 | ||
32730 | ac_cv_type_long=no | |
32731 | fi | |
32732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32733 | fi | |
32734 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
32735 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
32736 | ||
32737 | echo "$as_me:$LINENO: checking size of long" >&5 | |
32738 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
32739 | if test "${ac_cv_sizeof_long+set}" = set; then | |
32740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32741 | else | |
32742 | if test "$ac_cv_type_long" = yes; then | |
32743 | # The cast to unsigned long works around a bug in the HP C Compiler | |
32744 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
32745 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
32746 | # This bug is HP SR number 8606223364. | |
32747 | if test "$cross_compiling" = yes; then | |
32748 | # Depending upon the size, compute the lo and hi bounds. | |
32749 | cat >conftest.$ac_ext <<_ACEOF | |
32750 | /* confdefs.h. */ | |
32751 | _ACEOF | |
32752 | cat confdefs.h >>conftest.$ac_ext | |
32753 | cat >>conftest.$ac_ext <<_ACEOF | |
32754 | /* end confdefs.h. */ | |
32755 | ||
32756 | #include <stdio.h> | |
32757 | ||
32758 | /* What a mess.. many systems have added the (now standard) bit types | |
32759 | * in their own ways, so we need to scan a wide variety of headers to | |
32760 | * find them.. | |
32761 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
32762 | */ | |
32763 | #if HAVE_SYS_TYPES_H | |
32764 | #include <sys/types.h> | |
32765 | #endif | |
32766 | #if STDC_HEADERS | |
32767 | #include <stdlib.h> | |
32768 | #include <stddef.h> | |
32769 | #endif | |
32770 | #if HAVE_INTTYPES_H | |
32771 | #include <inttypes.h> | |
32772 | #endif | |
32773 | #if HAVE_SYS_BITYPES_H | |
32774 | #include <sys/bitypes.h> | |
32775 | #endif | |
32776 | #if HAVE_SYS_SELECT_H | |
32777 | #include <sys/select.h> | |
32778 | #endif | |
32779 | ||
32780 | ||
32781 | ||
32782 | int | |
32783 | main () | |
32784 | { | |
32785 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
32786 | test_array [0] = 0 | |
32787 | ||
32788 | ; | |
32789 | return 0; | |
32790 | } | |
32791 | _ACEOF | |
32792 | rm -f conftest.$ac_objext | |
32793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32794 | (eval $ac_compile) 2>conftest.er1 | |
32795 | ac_status=$? | |
32796 | grep -v '^ *+' conftest.er1 >conftest.err | |
32797 | rm -f conftest.er1 | |
32798 | cat conftest.err >&5 | |
32799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32800 | (exit $ac_status); } && | |
32801 | { ac_try='test -z "$ac_c_werror_flag" | |
32802 | || test ! -s conftest.err' | |
32803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32804 | (eval $ac_try) 2>&5 | |
32805 | ac_status=$? | |
32806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32807 | (exit $ac_status); }; } && | |
32808 | { ac_try='test -s conftest.$ac_objext' | |
32809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32810 | (eval $ac_try) 2>&5 | |
32811 | ac_status=$? | |
32812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32813 | (exit $ac_status); }; }; then | |
32814 | ac_lo=0 ac_mid=0 | |
32815 | while :; do | |
32816 | cat >conftest.$ac_ext <<_ACEOF | |
32817 | /* confdefs.h. */ | |
32818 | _ACEOF | |
32819 | cat confdefs.h >>conftest.$ac_ext | |
32820 | cat >>conftest.$ac_ext <<_ACEOF | |
32821 | /* end confdefs.h. */ | |
32822 | ||
32823 | #include <stdio.h> | |
32824 | ||
32825 | /* What a mess.. many systems have added the (now standard) bit types | |
32826 | * in their own ways, so we need to scan a wide variety of headers to | |
32827 | * find them.. | |
32828 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
32829 | */ | |
32830 | #if HAVE_SYS_TYPES_H | |
32831 | #include <sys/types.h> | |
32832 | #endif | |
32833 | #if STDC_HEADERS | |
32834 | #include <stdlib.h> | |
32835 | #include <stddef.h> | |
32836 | #endif | |
32837 | #if HAVE_INTTYPES_H | |
32838 | #include <inttypes.h> | |
32839 | #endif | |
32840 | #if HAVE_SYS_BITYPES_H | |
32841 | #include <sys/bitypes.h> | |
32842 | #endif | |
32843 | #if HAVE_SYS_SELECT_H | |
32844 | #include <sys/select.h> | |
32845 | #endif | |
32846 | ||
32847 | ||
32848 | ||
32849 | int | |
32850 | main () | |
32851 | { | |
32852 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
32853 | test_array [0] = 0 | |
32854 | ||
32855 | ; | |
32856 | return 0; | |
32857 | } | |
32858 | _ACEOF | |
32859 | rm -f conftest.$ac_objext | |
32860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32861 | (eval $ac_compile) 2>conftest.er1 | |
32862 | ac_status=$? | |
32863 | grep -v '^ *+' conftest.er1 >conftest.err | |
32864 | rm -f conftest.er1 | |
32865 | cat conftest.err >&5 | |
32866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32867 | (exit $ac_status); } && | |
32868 | { ac_try='test -z "$ac_c_werror_flag" | |
32869 | || test ! -s conftest.err' | |
32870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32871 | (eval $ac_try) 2>&5 | |
32872 | ac_status=$? | |
32873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32874 | (exit $ac_status); }; } && | |
32875 | { ac_try='test -s conftest.$ac_objext' | |
32876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32877 | (eval $ac_try) 2>&5 | |
32878 | ac_status=$? | |
32879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32880 | (exit $ac_status); }; }; then | |
32881 | ac_hi=$ac_mid; break | |
32882 | else | |
32883 | echo "$as_me: failed program was:" >&5 | |
32884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32885 | ||
32886 | ac_lo=`expr $ac_mid + 1` | |
32887 | if test $ac_lo -le $ac_mid; then | |
32888 | ac_lo= ac_hi= | |
32889 | break | |
32890 | fi | |
32891 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
32892 | fi | |
32893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
32894 | done | |
32895 | else | |
32896 | echo "$as_me: failed program was:" >&5 | |
32897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32898 | ||
32899 | cat >conftest.$ac_ext <<_ACEOF | |
32900 | /* confdefs.h. */ | |
32901 | _ACEOF | |
32902 | cat confdefs.h >>conftest.$ac_ext | |
32903 | cat >>conftest.$ac_ext <<_ACEOF | |
32904 | /* end confdefs.h. */ | |
32905 | ||
32906 | #include <stdio.h> | |
32907 | ||
32908 | /* What a mess.. many systems have added the (now standard) bit types | |
32909 | * in their own ways, so we need to scan a wide variety of headers to | |
32910 | * find them.. | |
32911 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
32912 | */ | |
32913 | #if HAVE_SYS_TYPES_H | |
32914 | #include <sys/types.h> | |
32915 | #endif | |
32916 | #if STDC_HEADERS | |
32917 | #include <stdlib.h> | |
32918 | #include <stddef.h> | |
32919 | #endif | |
32920 | #if HAVE_INTTYPES_H | |
32921 | #include <inttypes.h> | |
32922 | #endif | |
32923 | #if HAVE_SYS_BITYPES_H | |
32924 | #include <sys/bitypes.h> | |
32925 | #endif | |
32926 | #if HAVE_SYS_SELECT_H | |
32927 | #include <sys/select.h> | |
32928 | #endif | |
32929 | ||
32930 | ||
32931 | ||
32932 | int | |
32933 | main () | |
32934 | { | |
32935 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
32936 | test_array [0] = 0 | |
32937 | ||
32938 | ; | |
32939 | return 0; | |
32940 | } | |
32941 | _ACEOF | |
32942 | rm -f conftest.$ac_objext | |
32943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32944 | (eval $ac_compile) 2>conftest.er1 | |
32945 | ac_status=$? | |
32946 | grep -v '^ *+' conftest.er1 >conftest.err | |
32947 | rm -f conftest.er1 | |
32948 | cat conftest.err >&5 | |
32949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32950 | (exit $ac_status); } && | |
32951 | { ac_try='test -z "$ac_c_werror_flag" | |
32952 | || test ! -s conftest.err' | |
32953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32954 | (eval $ac_try) 2>&5 | |
32955 | ac_status=$? | |
32956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32957 | (exit $ac_status); }; } && | |
32958 | { ac_try='test -s conftest.$ac_objext' | |
32959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32960 | (eval $ac_try) 2>&5 | |
32961 | ac_status=$? | |
32962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32963 | (exit $ac_status); }; }; then | |
32964 | ac_hi=-1 ac_mid=-1 | |
32965 | while :; do | |
32966 | cat >conftest.$ac_ext <<_ACEOF | |
32967 | /* confdefs.h. */ | |
32968 | _ACEOF | |
32969 | cat confdefs.h >>conftest.$ac_ext | |
32970 | cat >>conftest.$ac_ext <<_ACEOF | |
32971 | /* end confdefs.h. */ | |
32972 | ||
32973 | #include <stdio.h> | |
32974 | ||
32975 | /* What a mess.. many systems have added the (now standard) bit types | |
32976 | * in their own ways, so we need to scan a wide variety of headers to | |
32977 | * find them.. | |
32978 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
32979 | */ | |
32980 | #if HAVE_SYS_TYPES_H | |
32981 | #include <sys/types.h> | |
32982 | #endif | |
32983 | #if STDC_HEADERS | |
32984 | #include <stdlib.h> | |
32985 | #include <stddef.h> | |
32986 | #endif | |
32987 | #if HAVE_INTTYPES_H | |
32988 | #include <inttypes.h> | |
32989 | #endif | |
32990 | #if HAVE_SYS_BITYPES_H | |
32991 | #include <sys/bitypes.h> | |
32992 | #endif | |
32993 | #if HAVE_SYS_SELECT_H | |
32994 | #include <sys/select.h> | |
32995 | #endif | |
32996 | ||
32997 | ||
32998 | ||
32999 | int | |
33000 | main () | |
33001 | { | |
33002 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
33003 | test_array [0] = 0 | |
33004 | ||
33005 | ; | |
33006 | return 0; | |
33007 | } | |
33008 | _ACEOF | |
33009 | rm -f conftest.$ac_objext | |
33010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33011 | (eval $ac_compile) 2>conftest.er1 | |
33012 | ac_status=$? | |
33013 | grep -v '^ *+' conftest.er1 >conftest.err | |
33014 | rm -f conftest.er1 | |
33015 | cat conftest.err >&5 | |
33016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33017 | (exit $ac_status); } && | |
33018 | { ac_try='test -z "$ac_c_werror_flag" | |
33019 | || test ! -s conftest.err' | |
33020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33021 | (eval $ac_try) 2>&5 | |
33022 | ac_status=$? | |
33023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33024 | (exit $ac_status); }; } && | |
33025 | { ac_try='test -s conftest.$ac_objext' | |
33026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33027 | (eval $ac_try) 2>&5 | |
33028 | ac_status=$? | |
33029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33030 | (exit $ac_status); }; }; then | |
33031 | ac_lo=$ac_mid; break | |
33032 | else | |
33033 | echo "$as_me: failed program was:" >&5 | |
33034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33035 | ||
33036 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
33037 | if test $ac_mid -le $ac_hi; then | |
33038 | ac_lo= ac_hi= | |
33039 | break | |
33040 | fi | |
33041 | ac_mid=`expr 2 '*' $ac_mid` | |
33042 | fi | |
33043 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33044 | done | |
33045 | else | |
33046 | echo "$as_me: failed program was:" >&5 | |
33047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33048 | ||
33049 | ac_lo= ac_hi= | |
33050 | fi | |
33051 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33052 | fi | |
33053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33054 | # Binary search between lo and hi bounds. | |
33055 | while test "x$ac_lo" != "x$ac_hi"; do | |
33056 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
33057 | cat >conftest.$ac_ext <<_ACEOF | |
33058 | /* confdefs.h. */ | |
33059 | _ACEOF | |
33060 | cat confdefs.h >>conftest.$ac_ext | |
33061 | cat >>conftest.$ac_ext <<_ACEOF | |
33062 | /* end confdefs.h. */ | |
33063 | ||
33064 | #include <stdio.h> | |
33065 | ||
33066 | /* What a mess.. many systems have added the (now standard) bit types | |
33067 | * in their own ways, so we need to scan a wide variety of headers to | |
33068 | * find them.. | |
33069 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
33070 | */ | |
33071 | #if HAVE_SYS_TYPES_H | |
33072 | #include <sys/types.h> | |
33073 | #endif | |
33074 | #if STDC_HEADERS | |
33075 | #include <stdlib.h> | |
33076 | #include <stddef.h> | |
33077 | #endif | |
33078 | #if HAVE_INTTYPES_H | |
33079 | #include <inttypes.h> | |
33080 | #endif | |
33081 | #if HAVE_SYS_BITYPES_H | |
33082 | #include <sys/bitypes.h> | |
33083 | #endif | |
33084 | #if HAVE_SYS_SELECT_H | |
33085 | #include <sys/select.h> | |
33086 | #endif | |
33087 | ||
33088 | ||
33089 | ||
33090 | int | |
33091 | main () | |
33092 | { | |
33093 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
33094 | test_array [0] = 0 | |
33095 | ||
33096 | ; | |
33097 | return 0; | |
33098 | } | |
33099 | _ACEOF | |
33100 | rm -f conftest.$ac_objext | |
33101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33102 | (eval $ac_compile) 2>conftest.er1 | |
33103 | ac_status=$? | |
33104 | grep -v '^ *+' conftest.er1 >conftest.err | |
33105 | rm -f conftest.er1 | |
33106 | cat conftest.err >&5 | |
33107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33108 | (exit $ac_status); } && | |
33109 | { ac_try='test -z "$ac_c_werror_flag" | |
33110 | || test ! -s conftest.err' | |
33111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33112 | (eval $ac_try) 2>&5 | |
33113 | ac_status=$? | |
33114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33115 | (exit $ac_status); }; } && | |
33116 | { ac_try='test -s conftest.$ac_objext' | |
33117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33118 | (eval $ac_try) 2>&5 | |
33119 | ac_status=$? | |
33120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33121 | (exit $ac_status); }; }; then | |
33122 | ac_hi=$ac_mid | |
33123 | else | |
33124 | echo "$as_me: failed program was:" >&5 | |
33125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33126 | ||
33127 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
33128 | fi | |
33129 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33130 | done | |
33131 | case $ac_lo in | |
33132 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
33133 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
33134 | See \`config.log' for more details." >&5 | |
33135 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
33136 | See \`config.log' for more details." >&2;} | |
33137 | { (exit 1); exit 1; }; } ;; | |
33138 | esac | |
33139 | else | |
33140 | if test "$cross_compiling" = yes; then | |
33141 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
33142 | See \`config.log' for more details." >&5 | |
33143 | echo "$as_me: error: cannot run test program while cross compiling | |
33144 | See \`config.log' for more details." >&2;} | |
33145 | { (exit 1); exit 1; }; } | |
33146 | else | |
33147 | cat >conftest.$ac_ext <<_ACEOF | |
33148 | /* confdefs.h. */ | |
33149 | _ACEOF | |
33150 | cat confdefs.h >>conftest.$ac_ext | |
33151 | cat >>conftest.$ac_ext <<_ACEOF | |
33152 | /* end confdefs.h. */ | |
33153 | ||
33154 | #include <stdio.h> | |
33155 | ||
33156 | /* What a mess.. many systems have added the (now standard) bit types | |
33157 | * in their own ways, so we need to scan a wide variety of headers to | |
33158 | * find them.. | |
33159 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
33160 | */ | |
33161 | #if HAVE_SYS_TYPES_H | |
33162 | #include <sys/types.h> | |
33163 | #endif | |
33164 | #if STDC_HEADERS | |
33165 | #include <stdlib.h> | |
33166 | #include <stddef.h> | |
33167 | #endif | |
33168 | #if HAVE_INTTYPES_H | |
33169 | #include <inttypes.h> | |
33170 | #endif | |
33171 | #if HAVE_SYS_BITYPES_H | |
33172 | #include <sys/bitypes.h> | |
33173 | #endif | |
33174 | #if HAVE_SYS_SELECT_H | |
33175 | #include <sys/select.h> | |
33176 | #endif | |
33177 | ||
33178 | ||
33179 | ||
33180 | long longval () { return (long) (sizeof (long)); } | |
33181 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
33182 | #include <stdio.h> | |
33183 | #include <stdlib.h> | |
33184 | int | |
33185 | main () | |
33186 | { | |
33187 | ||
33188 | FILE *f = fopen ("conftest.val", "w"); | |
33189 | if (! f) | |
33190 | exit (1); | |
33191 | if (((long) (sizeof (long))) < 0) | |
33192 | { | |
33193 | long i = longval (); | |
33194 | if (i != ((long) (sizeof (long)))) | |
33195 | exit (1); | |
33196 | fprintf (f, "%ld\n", i); | |
33197 | } | |
33198 | else | |
33199 | { | |
33200 | unsigned long i = ulongval (); | |
33201 | if (i != ((long) (sizeof (long)))) | |
33202 | exit (1); | |
33203 | fprintf (f, "%lu\n", i); | |
33204 | } | |
33205 | exit (ferror (f) || fclose (f) != 0); | |
33206 | ||
33207 | ; | |
33208 | return 0; | |
33209 | } | |
33210 | _ACEOF | |
33211 | rm -f conftest$ac_exeext | |
33212 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33213 | (eval $ac_link) 2>&5 | |
33214 | ac_status=$? | |
33215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33216 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
33217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33218 | (eval $ac_try) 2>&5 | |
33219 | ac_status=$? | |
33220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33221 | (exit $ac_status); }; }; then | |
33222 | ac_cv_sizeof_long=`cat conftest.val` | |
33223 | else | |
33224 | echo "$as_me: program exited with status $ac_status" >&5 | |
33225 | echo "$as_me: failed program was:" >&5 | |
33226 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33227 | ||
33228 | ( exit $ac_status ) | |
33229 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
33230 | See \`config.log' for more details." >&5 | |
33231 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
33232 | See \`config.log' for more details." >&2;} | |
33233 | { (exit 1); exit 1; }; } | |
33234 | fi | |
33235 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
33236 | fi | |
33237 | fi | |
33238 | rm -f conftest.val | |
33239 | else | |
33240 | ac_cv_sizeof_long=0 | |
33241 | fi | |
33242 | fi | |
33243 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
33244 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
33245 | cat >>confdefs.h <<_ACEOF | |
33246 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
33247 | _ACEOF | |
33248 | ||
33249 | ||
33250 | ||
33251 | cat >>confdefs.h <<\_ACEOF | |
33252 | #define HAVE_LONG 1 | |
33253 | _ACEOF | |
33254 | ||
33255 | ||
33256 | fi | |
33257 | ||
33258 | ||
33259 | echo "$as_me:$LINENO: checking for u_int32_t" >&5 | |
33260 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 | |
33261 | if test "${ac_cv_type_u_int32_t+set}" = set; then | |
33262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33263 | else | |
33264 | cat >conftest.$ac_ext <<_ACEOF | |
33265 | /* confdefs.h. */ | |
33266 | _ACEOF | |
33267 | cat confdefs.h >>conftest.$ac_ext | |
33268 | cat >>conftest.$ac_ext <<_ACEOF | |
33269 | /* end confdefs.h. */ | |
33270 | ||
33271 | /* What a mess.. many systems have added the (now standard) bit types | |
33272 | * in their own ways, so we need to scan a wide variety of headers to | |
33273 | * find them.. | |
33274 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
33275 | */ | |
33276 | #if HAVE_SYS_TYPES_H | |
33277 | #include <sys/types.h> | |
33278 | #endif | |
33279 | #if STDC_HEADERS | |
33280 | #include <stdlib.h> | |
33281 | #include <stddef.h> | |
33282 | #endif | |
33283 | #if HAVE_INTTYPES_H | |
33284 | #include <inttypes.h> | |
33285 | #endif | |
33286 | #if HAVE_SYS_BITYPES_H | |
33287 | #include <sys/bitypes.h> | |
33288 | #endif | |
33289 | #if HAVE_SYS_SELECT_H | |
33290 | #include <sys/select.h> | |
33291 | #endif | |
33292 | ||
33293 | ||
33294 | int | |
33295 | main () | |
33296 | { | |
33297 | if ((u_int32_t *) 0) | |
33298 | return 0; | |
33299 | if (sizeof (u_int32_t)) | |
33300 | return 0; | |
33301 | ; | |
33302 | return 0; | |
33303 | } | |
33304 | _ACEOF | |
33305 | rm -f conftest.$ac_objext | |
33306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33307 | (eval $ac_compile) 2>conftest.er1 | |
33308 | ac_status=$? | |
33309 | grep -v '^ *+' conftest.er1 >conftest.err | |
33310 | rm -f conftest.er1 | |
33311 | cat conftest.err >&5 | |
33312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33313 | (exit $ac_status); } && | |
33314 | { ac_try='test -z "$ac_c_werror_flag" | |
33315 | || test ! -s conftest.err' | |
33316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33317 | (eval $ac_try) 2>&5 | |
33318 | ac_status=$? | |
33319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33320 | (exit $ac_status); }; } && | |
33321 | { ac_try='test -s conftest.$ac_objext' | |
33322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33323 | (eval $ac_try) 2>&5 | |
33324 | ac_status=$? | |
33325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33326 | (exit $ac_status); }; }; then | |
33327 | ac_cv_type_u_int32_t=yes | |
33328 | else | |
33329 | echo "$as_me: failed program was:" >&5 | |
33330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33331 | ||
33332 | ac_cv_type_u_int32_t=no | |
33333 | fi | |
33334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33335 | fi | |
33336 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 | |
33337 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 | |
33338 | if test $ac_cv_type_u_int32_t = yes; then | |
33339 | ||
33340 | echo "$as_me:$LINENO: checking for u_int32_t" >&5 | |
33341 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 | |
33342 | if test "${ac_cv_type_u_int32_t+set}" = set; then | |
33343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33344 | else | |
33345 | cat >conftest.$ac_ext <<_ACEOF | |
33346 | /* confdefs.h. */ | |
33347 | _ACEOF | |
33348 | cat confdefs.h >>conftest.$ac_ext | |
33349 | cat >>conftest.$ac_ext <<_ACEOF | |
33350 | /* end confdefs.h. */ | |
33351 | ||
33352 | #include <stdio.h> | |
33353 | ||
33354 | /* What a mess.. many systems have added the (now standard) bit types | |
33355 | * in their own ways, so we need to scan a wide variety of headers to | |
33356 | * find them.. | |
33357 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
33358 | */ | |
33359 | #if HAVE_SYS_TYPES_H | |
33360 | #include <sys/types.h> | |
33361 | #endif | |
33362 | #if STDC_HEADERS | |
33363 | #include <stdlib.h> | |
33364 | #include <stddef.h> | |
33365 | #endif | |
33366 | #if HAVE_INTTYPES_H | |
33367 | #include <inttypes.h> | |
33368 | #endif | |
33369 | #if HAVE_SYS_BITYPES_H | |
33370 | #include <sys/bitypes.h> | |
33371 | #endif | |
33372 | #if HAVE_SYS_SELECT_H | |
33373 | #include <sys/select.h> | |
33374 | #endif | |
33375 | ||
33376 | ||
33377 | ||
33378 | int | |
33379 | main () | |
33380 | { | |
33381 | if ((u_int32_t *) 0) | |
33382 | return 0; | |
33383 | if (sizeof (u_int32_t)) | |
33384 | return 0; | |
33385 | ; | |
33386 | return 0; | |
33387 | } | |
33388 | _ACEOF | |
33389 | rm -f conftest.$ac_objext | |
33390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33391 | (eval $ac_compile) 2>conftest.er1 | |
33392 | ac_status=$? | |
33393 | grep -v '^ *+' conftest.er1 >conftest.err | |
33394 | rm -f conftest.er1 | |
33395 | cat conftest.err >&5 | |
33396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33397 | (exit $ac_status); } && | |
33398 | { ac_try='test -z "$ac_c_werror_flag" | |
33399 | || test ! -s conftest.err' | |
33400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33401 | (eval $ac_try) 2>&5 | |
33402 | ac_status=$? | |
33403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33404 | (exit $ac_status); }; } && | |
33405 | { ac_try='test -s conftest.$ac_objext' | |
33406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33407 | (eval $ac_try) 2>&5 | |
33408 | ac_status=$? | |
33409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33410 | (exit $ac_status); }; }; then | |
33411 | ac_cv_type_u_int32_t=yes | |
33412 | else | |
33413 | echo "$as_me: failed program was:" >&5 | |
33414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33415 | ||
33416 | ac_cv_type_u_int32_t=no | |
33417 | fi | |
33418 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33419 | fi | |
33420 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 | |
33421 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 | |
33422 | ||
33423 | echo "$as_me:$LINENO: checking size of u_int32_t" >&5 | |
33424 | echo $ECHO_N "checking size of u_int32_t... $ECHO_C" >&6 | |
33425 | if test "${ac_cv_sizeof_u_int32_t+set}" = set; then | |
33426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33427 | else | |
33428 | if test "$ac_cv_type_u_int32_t" = yes; then | |
33429 | # The cast to unsigned long works around a bug in the HP C Compiler | |
33430 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
33431 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
33432 | # This bug is HP SR number 8606223364. | |
33433 | if test "$cross_compiling" = yes; then | |
33434 | # Depending upon the size, compute the lo and hi bounds. | |
33435 | cat >conftest.$ac_ext <<_ACEOF | |
33436 | /* confdefs.h. */ | |
33437 | _ACEOF | |
33438 | cat confdefs.h >>conftest.$ac_ext | |
33439 | cat >>conftest.$ac_ext <<_ACEOF | |
33440 | /* end confdefs.h. */ | |
33441 | ||
33442 | #include <stdio.h> | |
33443 | ||
33444 | /* What a mess.. many systems have added the (now standard) bit types | |
33445 | * in their own ways, so we need to scan a wide variety of headers to | |
33446 | * find them.. | |
33447 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
33448 | */ | |
33449 | #if HAVE_SYS_TYPES_H | |
33450 | #include <sys/types.h> | |
33451 | #endif | |
33452 | #if STDC_HEADERS | |
33453 | #include <stdlib.h> | |
33454 | #include <stddef.h> | |
33455 | #endif | |
33456 | #if HAVE_INTTYPES_H | |
33457 | #include <inttypes.h> | |
33458 | #endif | |
33459 | #if HAVE_SYS_BITYPES_H | |
33460 | #include <sys/bitypes.h> | |
33461 | #endif | |
33462 | #if HAVE_SYS_SELECT_H | |
33463 | #include <sys/select.h> | |
33464 | #endif | |
33465 | ||
33466 | ||
33467 | ||
33468 | int | |
33469 | main () | |
33470 | { | |
33471 | static int test_array [1 - 2 * !(((long) (sizeof (u_int32_t))) >= 0)]; | |
33472 | test_array [0] = 0 | |
33473 | ||
33474 | ; | |
33475 | return 0; | |
33476 | } | |
33477 | _ACEOF | |
33478 | rm -f conftest.$ac_objext | |
33479 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33480 | (eval $ac_compile) 2>conftest.er1 | |
33481 | ac_status=$? | |
33482 | grep -v '^ *+' conftest.er1 >conftest.err | |
33483 | rm -f conftest.er1 | |
33484 | cat conftest.err >&5 | |
33485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33486 | (exit $ac_status); } && | |
33487 | { ac_try='test -z "$ac_c_werror_flag" | |
33488 | || test ! -s conftest.err' | |
33489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33490 | (eval $ac_try) 2>&5 | |
33491 | ac_status=$? | |
33492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33493 | (exit $ac_status); }; } && | |
33494 | { ac_try='test -s conftest.$ac_objext' | |
33495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33496 | (eval $ac_try) 2>&5 | |
33497 | ac_status=$? | |
33498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33499 | (exit $ac_status); }; }; then | |
33500 | ac_lo=0 ac_mid=0 | |
33501 | while :; do | |
33502 | cat >conftest.$ac_ext <<_ACEOF | |
33503 | /* confdefs.h. */ | |
33504 | _ACEOF | |
33505 | cat confdefs.h >>conftest.$ac_ext | |
33506 | cat >>conftest.$ac_ext <<_ACEOF | |
33507 | /* end confdefs.h. */ | |
33508 | ||
33509 | #include <stdio.h> | |
33510 | ||
33511 | /* What a mess.. many systems have added the (now standard) bit types | |
33512 | * in their own ways, so we need to scan a wide variety of headers to | |
33513 | * find them.. | |
33514 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
33515 | */ | |
33516 | #if HAVE_SYS_TYPES_H | |
33517 | #include <sys/types.h> | |
33518 | #endif | |
33519 | #if STDC_HEADERS | |
33520 | #include <stdlib.h> | |
33521 | #include <stddef.h> | |
33522 | #endif | |
33523 | #if HAVE_INTTYPES_H | |
33524 | #include <inttypes.h> | |
33525 | #endif | |
33526 | #if HAVE_SYS_BITYPES_H | |
33527 | #include <sys/bitypes.h> | |
33528 | #endif | |
33529 | #if HAVE_SYS_SELECT_H | |
33530 | #include <sys/select.h> | |
33531 | #endif | |
33532 | ||
33533 | ||
33534 | ||
33535 | int | |
33536 | main () | |
33537 | { | |
33538 | static int test_array [1 - 2 * !(((long) (sizeof (u_int32_t))) <= $ac_mid)]; | |
33539 | test_array [0] = 0 | |
33540 | ||
33541 | ; | |
33542 | return 0; | |
33543 | } | |
33544 | _ACEOF | |
33545 | rm -f conftest.$ac_objext | |
33546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33547 | (eval $ac_compile) 2>conftest.er1 | |
33548 | ac_status=$? | |
33549 | grep -v '^ *+' conftest.er1 >conftest.err | |
33550 | rm -f conftest.er1 | |
33551 | cat conftest.err >&5 | |
33552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33553 | (exit $ac_status); } && | |
33554 | { ac_try='test -z "$ac_c_werror_flag" | |
33555 | || test ! -s conftest.err' | |
33556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33557 | (eval $ac_try) 2>&5 | |
33558 | ac_status=$? | |
33559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33560 | (exit $ac_status); }; } && | |
33561 | { ac_try='test -s conftest.$ac_objext' | |
33562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33563 | (eval $ac_try) 2>&5 | |
33564 | ac_status=$? | |
33565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33566 | (exit $ac_status); }; }; then | |
33567 | ac_hi=$ac_mid; break | |
33568 | else | |
33569 | echo "$as_me: failed program was:" >&5 | |
33570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33571 | ||
33572 | ac_lo=`expr $ac_mid + 1` | |
33573 | if test $ac_lo -le $ac_mid; then | |
33574 | ac_lo= ac_hi= | |
33575 | break | |
33576 | fi | |
33577 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
33578 | fi | |
33579 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33580 | done | |
33581 | else | |
33582 | echo "$as_me: failed program was:" >&5 | |
33583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33584 | ||
33585 | cat >conftest.$ac_ext <<_ACEOF | |
33586 | /* confdefs.h. */ | |
33587 | _ACEOF | |
33588 | cat confdefs.h >>conftest.$ac_ext | |
33589 | cat >>conftest.$ac_ext <<_ACEOF | |
33590 | /* end confdefs.h. */ | |
33591 | ||
33592 | #include <stdio.h> | |
33593 | ||
33594 | /* What a mess.. many systems have added the (now standard) bit types | |
33595 | * in their own ways, so we need to scan a wide variety of headers to | |
33596 | * find them.. | |
33597 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
33598 | */ | |
33599 | #if HAVE_SYS_TYPES_H | |
33600 | #include <sys/types.h> | |
33601 | #endif | |
33602 | #if STDC_HEADERS | |
33603 | #include <stdlib.h> | |
33604 | #include <stddef.h> | |
33605 | #endif | |
33606 | #if HAVE_INTTYPES_H | |
33607 | #include <inttypes.h> | |
33608 | #endif | |
33609 | #if HAVE_SYS_BITYPES_H | |
33610 | #include <sys/bitypes.h> | |
33611 | #endif | |
33612 | #if HAVE_SYS_SELECT_H | |
33613 | #include <sys/select.h> | |
33614 | #endif | |
33615 | ||
33616 | ||
33617 | ||
33618 | int | |
33619 | main () | |
33620 | { | |
33621 | static int test_array [1 - 2 * !(((long) (sizeof (u_int32_t))) < 0)]; | |
33622 | test_array [0] = 0 | |
33623 | ||
33624 | ; | |
33625 | return 0; | |
33626 | } | |
33627 | _ACEOF | |
33628 | rm -f conftest.$ac_objext | |
33629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33630 | (eval $ac_compile) 2>conftest.er1 | |
33631 | ac_status=$? | |
33632 | grep -v '^ *+' conftest.er1 >conftest.err | |
33633 | rm -f conftest.er1 | |
33634 | cat conftest.err >&5 | |
33635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33636 | (exit $ac_status); } && | |
33637 | { ac_try='test -z "$ac_c_werror_flag" | |
33638 | || test ! -s conftest.err' | |
33639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33640 | (eval $ac_try) 2>&5 | |
33641 | ac_status=$? | |
33642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33643 | (exit $ac_status); }; } && | |
33644 | { ac_try='test -s conftest.$ac_objext' | |
33645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33646 | (eval $ac_try) 2>&5 | |
33647 | ac_status=$? | |
33648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33649 | (exit $ac_status); }; }; then | |
33650 | ac_hi=-1 ac_mid=-1 | |
33651 | while :; do | |
33652 | cat >conftest.$ac_ext <<_ACEOF | |
33653 | /* confdefs.h. */ | |
33654 | _ACEOF | |
33655 | cat confdefs.h >>conftest.$ac_ext | |
33656 | cat >>conftest.$ac_ext <<_ACEOF | |
33657 | /* end confdefs.h. */ | |
33658 | ||
33659 | #include <stdio.h> | |
33660 | ||
33661 | /* What a mess.. many systems have added the (now standard) bit types | |
33662 | * in their own ways, so we need to scan a wide variety of headers to | |
33663 | * find them.. | |
33664 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
33665 | */ | |
33666 | #if HAVE_SYS_TYPES_H | |
33667 | #include <sys/types.h> | |
33668 | #endif | |
33669 | #if STDC_HEADERS | |
33670 | #include <stdlib.h> | |
33671 | #include <stddef.h> | |
33672 | #endif | |
33673 | #if HAVE_INTTYPES_H | |
33674 | #include <inttypes.h> | |
33675 | #endif | |
33676 | #if HAVE_SYS_BITYPES_H | |
33677 | #include <sys/bitypes.h> | |
33678 | #endif | |
33679 | #if HAVE_SYS_SELECT_H | |
33680 | #include <sys/select.h> | |
33681 | #endif | |
33682 | ||
33683 | ||
33684 | ||
33685 | int | |
33686 | main () | |
33687 | { | |
33688 | static int test_array [1 - 2 * !(((long) (sizeof (u_int32_t))) >= $ac_mid)]; | |
33689 | test_array [0] = 0 | |
33690 | ||
33691 | ; | |
33692 | return 0; | |
33693 | } | |
33694 | _ACEOF | |
33695 | rm -f conftest.$ac_objext | |
33696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33697 | (eval $ac_compile) 2>conftest.er1 | |
33698 | ac_status=$? | |
33699 | grep -v '^ *+' conftest.er1 >conftest.err | |
33700 | rm -f conftest.er1 | |
33701 | cat conftest.err >&5 | |
33702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33703 | (exit $ac_status); } && | |
33704 | { ac_try='test -z "$ac_c_werror_flag" | |
33705 | || test ! -s conftest.err' | |
33706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33707 | (eval $ac_try) 2>&5 | |
33708 | ac_status=$? | |
33709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33710 | (exit $ac_status); }; } && | |
33711 | { ac_try='test -s conftest.$ac_objext' | |
33712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33713 | (eval $ac_try) 2>&5 | |
33714 | ac_status=$? | |
33715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33716 | (exit $ac_status); }; }; then | |
33717 | ac_lo=$ac_mid; break | |
33718 | else | |
33719 | echo "$as_me: failed program was:" >&5 | |
33720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33721 | ||
33722 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
33723 | if test $ac_mid -le $ac_hi; then | |
33724 | ac_lo= ac_hi= | |
33725 | break | |
33726 | fi | |
33727 | ac_mid=`expr 2 '*' $ac_mid` | |
33728 | fi | |
33729 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33730 | done | |
33731 | else | |
33732 | echo "$as_me: failed program was:" >&5 | |
33733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33734 | ||
33735 | ac_lo= ac_hi= | |
33736 | fi | |
33737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33738 | fi | |
33739 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33740 | # Binary search between lo and hi bounds. | |
33741 | while test "x$ac_lo" != "x$ac_hi"; do | |
33742 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
33743 | cat >conftest.$ac_ext <<_ACEOF | |
33744 | /* confdefs.h. */ | |
33745 | _ACEOF | |
33746 | cat confdefs.h >>conftest.$ac_ext | |
33747 | cat >>conftest.$ac_ext <<_ACEOF | |
33748 | /* end confdefs.h. */ | |
33749 | ||
33750 | #include <stdio.h> | |
33751 | ||
33752 | /* What a mess.. many systems have added the (now standard) bit types | |
33753 | * in their own ways, so we need to scan a wide variety of headers to | |
33754 | * find them.. | |
33755 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
33756 | */ | |
33757 | #if HAVE_SYS_TYPES_H | |
33758 | #include <sys/types.h> | |
33759 | #endif | |
33760 | #if STDC_HEADERS | |
33761 | #include <stdlib.h> | |
33762 | #include <stddef.h> | |
33763 | #endif | |
33764 | #if HAVE_INTTYPES_H | |
33765 | #include <inttypes.h> | |
33766 | #endif | |
33767 | #if HAVE_SYS_BITYPES_H | |
33768 | #include <sys/bitypes.h> | |
33769 | #endif | |
33770 | #if HAVE_SYS_SELECT_H | |
33771 | #include <sys/select.h> | |
33772 | #endif | |
33773 | ||
33774 | ||
33775 | ||
33776 | int | |
33777 | main () | |
33778 | { | |
33779 | static int test_array [1 - 2 * !(((long) (sizeof (u_int32_t))) <= $ac_mid)]; | |
33780 | test_array [0] = 0 | |
33781 | ||
33782 | ; | |
33783 | return 0; | |
33784 | } | |
33785 | _ACEOF | |
33786 | rm -f conftest.$ac_objext | |
33787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33788 | (eval $ac_compile) 2>conftest.er1 | |
33789 | ac_status=$? | |
33790 | grep -v '^ *+' conftest.er1 >conftest.err | |
33791 | rm -f conftest.er1 | |
33792 | cat conftest.err >&5 | |
33793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33794 | (exit $ac_status); } && | |
33795 | { ac_try='test -z "$ac_c_werror_flag" | |
33796 | || test ! -s conftest.err' | |
33797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33798 | (eval $ac_try) 2>&5 | |
33799 | ac_status=$? | |
33800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33801 | (exit $ac_status); }; } && | |
33802 | { ac_try='test -s conftest.$ac_objext' | |
33803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33804 | (eval $ac_try) 2>&5 | |
33805 | ac_status=$? | |
33806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33807 | (exit $ac_status); }; }; then | |
33808 | ac_hi=$ac_mid | |
33809 | else | |
33810 | echo "$as_me: failed program was:" >&5 | |
33811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33812 | ||
33813 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
33814 | fi | |
33815 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
33816 | done | |
33817 | case $ac_lo in | |
33818 | ?*) ac_cv_sizeof_u_int32_t=$ac_lo;; | |
33819 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int32_t), 77 | |
33820 | See \`config.log' for more details." >&5 | |
33821 | echo "$as_me: error: cannot compute sizeof (u_int32_t), 77 | |
33822 | See \`config.log' for more details." >&2;} | |
33823 | { (exit 1); exit 1; }; } ;; | |
33824 | esac | |
33825 | else | |
33826 | if test "$cross_compiling" = yes; then | |
33827 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
33828 | See \`config.log' for more details." >&5 | |
33829 | echo "$as_me: error: cannot run test program while cross compiling | |
33830 | See \`config.log' for more details." >&2;} | |
33831 | { (exit 1); exit 1; }; } | |
33832 | else | |
33833 | cat >conftest.$ac_ext <<_ACEOF | |
33834 | /* confdefs.h. */ | |
33835 | _ACEOF | |
33836 | cat confdefs.h >>conftest.$ac_ext | |
33837 | cat >>conftest.$ac_ext <<_ACEOF | |
33838 | /* end confdefs.h. */ | |
33839 | ||
33840 | #include <stdio.h> | |
33841 | ||
33842 | /* What a mess.. many systems have added the (now standard) bit types | |
33843 | * in their own ways, so we need to scan a wide variety of headers to | |
33844 | * find them.. | |
33845 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
33846 | */ | |
33847 | #if HAVE_SYS_TYPES_H | |
33848 | #include <sys/types.h> | |
33849 | #endif | |
33850 | #if STDC_HEADERS | |
33851 | #include <stdlib.h> | |
33852 | #include <stddef.h> | |
33853 | #endif | |
33854 | #if HAVE_INTTYPES_H | |
33855 | #include <inttypes.h> | |
33856 | #endif | |
33857 | #if HAVE_SYS_BITYPES_H | |
33858 | #include <sys/bitypes.h> | |
33859 | #endif | |
33860 | #if HAVE_SYS_SELECT_H | |
33861 | #include <sys/select.h> | |
33862 | #endif | |
33863 | ||
33864 | ||
33865 | ||
33866 | long longval () { return (long) (sizeof (u_int32_t)); } | |
33867 | unsigned long ulongval () { return (long) (sizeof (u_int32_t)); } | |
33868 | #include <stdio.h> | |
33869 | #include <stdlib.h> | |
33870 | int | |
33871 | main () | |
33872 | { | |
33873 | ||
33874 | FILE *f = fopen ("conftest.val", "w"); | |
33875 | if (! f) | |
33876 | exit (1); | |
33877 | if (((long) (sizeof (u_int32_t))) < 0) | |
33878 | { | |
33879 | long i = longval (); | |
33880 | if (i != ((long) (sizeof (u_int32_t)))) | |
33881 | exit (1); | |
33882 | fprintf (f, "%ld\n", i); | |
33883 | } | |
33884 | else | |
33885 | { | |
33886 | unsigned long i = ulongval (); | |
33887 | if (i != ((long) (sizeof (u_int32_t)))) | |
33888 | exit (1); | |
33889 | fprintf (f, "%lu\n", i); | |
33890 | } | |
33891 | exit (ferror (f) || fclose (f) != 0); | |
33892 | ||
33893 | ; | |
33894 | return 0; | |
33895 | } | |
33896 | _ACEOF | |
33897 | rm -f conftest$ac_exeext | |
33898 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33899 | (eval $ac_link) 2>&5 | |
33900 | ac_status=$? | |
33901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33902 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
33903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33904 | (eval $ac_try) 2>&5 | |
33905 | ac_status=$? | |
33906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33907 | (exit $ac_status); }; }; then | |
33908 | ac_cv_sizeof_u_int32_t=`cat conftest.val` | |
33909 | else | |
33910 | echo "$as_me: program exited with status $ac_status" >&5 | |
33911 | echo "$as_me: failed program was:" >&5 | |
33912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33913 | ||
33914 | ( exit $ac_status ) | |
33915 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int32_t), 77 | |
33916 | See \`config.log' for more details." >&5 | |
33917 | echo "$as_me: error: cannot compute sizeof (u_int32_t), 77 | |
33918 | See \`config.log' for more details." >&2;} | |
33919 | { (exit 1); exit 1; }; } | |
33920 | fi | |
33921 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
33922 | fi | |
33923 | fi | |
33924 | rm -f conftest.val | |
33925 | else | |
33926 | ac_cv_sizeof_u_int32_t=0 | |
33927 | fi | |
33928 | fi | |
33929 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int32_t" >&5 | |
33930 | echo "${ECHO_T}$ac_cv_sizeof_u_int32_t" >&6 | |
33931 | cat >>confdefs.h <<_ACEOF | |
33932 | #define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t | |
33933 | _ACEOF | |
33934 | ||
33935 | ||
33936 | ||
33937 | cat >>confdefs.h <<\_ACEOF | |
33938 | #define HAVE_U_INT32_T 1 | |
33939 | _ACEOF | |
33940 | ||
33941 | ||
33942 | fi | |
33943 | ||
33944 | ||
33945 | echo "$as_me:$LINENO: checking for uint32_t" >&5 | |
33946 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 | |
33947 | if test "${ac_cv_type_uint32_t+set}" = set; then | |
33948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33949 | else | |
33950 | cat >conftest.$ac_ext <<_ACEOF | |
33951 | /* confdefs.h. */ | |
33952 | _ACEOF | |
33953 | cat confdefs.h >>conftest.$ac_ext | |
33954 | cat >>conftest.$ac_ext <<_ACEOF | |
33955 | /* end confdefs.h. */ | |
33956 | ||
33957 | /* What a mess.. many systems have added the (now standard) bit types | |
33958 | * in their own ways, so we need to scan a wide variety of headers to | |
33959 | * find them.. | |
33960 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
33961 | */ | |
33962 | #if HAVE_SYS_TYPES_H | |
33963 | #include <sys/types.h> | |
33964 | #endif | |
33965 | #if STDC_HEADERS | |
33966 | #include <stdlib.h> | |
33967 | #include <stddef.h> | |
33968 | #endif | |
33969 | #if HAVE_INTTYPES_H | |
33970 | #include <inttypes.h> | |
33971 | #endif | |
33972 | #if HAVE_SYS_BITYPES_H | |
33973 | #include <sys/bitypes.h> | |
33974 | #endif | |
33975 | #if HAVE_SYS_SELECT_H | |
33976 | #include <sys/select.h> | |
33977 | #endif | |
33978 | ||
33979 | ||
33980 | int | |
33981 | main () | |
33982 | { | |
33983 | if ((uint32_t *) 0) | |
33984 | return 0; | |
33985 | if (sizeof (uint32_t)) | |
33986 | return 0; | |
33987 | ; | |
33988 | return 0; | |
33989 | } | |
33990 | _ACEOF | |
33991 | rm -f conftest.$ac_objext | |
33992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
33993 | (eval $ac_compile) 2>conftest.er1 | |
33994 | ac_status=$? | |
33995 | grep -v '^ *+' conftest.er1 >conftest.err | |
33996 | rm -f conftest.er1 | |
33997 | cat conftest.err >&5 | |
33998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33999 | (exit $ac_status); } && | |
34000 | { ac_try='test -z "$ac_c_werror_flag" | |
34001 | || test ! -s conftest.err' | |
34002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34003 | (eval $ac_try) 2>&5 | |
34004 | ac_status=$? | |
34005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34006 | (exit $ac_status); }; } && | |
34007 | { ac_try='test -s conftest.$ac_objext' | |
34008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34009 | (eval $ac_try) 2>&5 | |
34010 | ac_status=$? | |
34011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34012 | (exit $ac_status); }; }; then | |
34013 | ac_cv_type_uint32_t=yes | |
34014 | else | |
34015 | echo "$as_me: failed program was:" >&5 | |
34016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34017 | ||
34018 | ac_cv_type_uint32_t=no | |
34019 | fi | |
34020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34021 | fi | |
34022 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 | |
34023 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 | |
34024 | if test $ac_cv_type_uint32_t = yes; then | |
34025 | ||
34026 | echo "$as_me:$LINENO: checking for uint32_t" >&5 | |
34027 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 | |
34028 | if test "${ac_cv_type_uint32_t+set}" = set; then | |
34029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34030 | else | |
34031 | cat >conftest.$ac_ext <<_ACEOF | |
34032 | /* confdefs.h. */ | |
34033 | _ACEOF | |
34034 | cat confdefs.h >>conftest.$ac_ext | |
34035 | cat >>conftest.$ac_ext <<_ACEOF | |
34036 | /* end confdefs.h. */ | |
34037 | ||
34038 | #include <stdio.h> | |
34039 | ||
34040 | /* What a mess.. many systems have added the (now standard) bit types | |
34041 | * in their own ways, so we need to scan a wide variety of headers to | |
34042 | * find them.. | |
34043 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
34044 | */ | |
34045 | #if HAVE_SYS_TYPES_H | |
34046 | #include <sys/types.h> | |
34047 | #endif | |
34048 | #if STDC_HEADERS | |
34049 | #include <stdlib.h> | |
34050 | #include <stddef.h> | |
34051 | #endif | |
34052 | #if HAVE_INTTYPES_H | |
34053 | #include <inttypes.h> | |
34054 | #endif | |
34055 | #if HAVE_SYS_BITYPES_H | |
34056 | #include <sys/bitypes.h> | |
34057 | #endif | |
34058 | #if HAVE_SYS_SELECT_H | |
34059 | #include <sys/select.h> | |
34060 | #endif | |
34061 | ||
34062 | ||
34063 | ||
34064 | int | |
34065 | main () | |
34066 | { | |
34067 | if ((uint32_t *) 0) | |
34068 | return 0; | |
34069 | if (sizeof (uint32_t)) | |
34070 | return 0; | |
34071 | ; | |
34072 | return 0; | |
34073 | } | |
34074 | _ACEOF | |
34075 | rm -f conftest.$ac_objext | |
34076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34077 | (eval $ac_compile) 2>conftest.er1 | |
34078 | ac_status=$? | |
34079 | grep -v '^ *+' conftest.er1 >conftest.err | |
34080 | rm -f conftest.er1 | |
34081 | cat conftest.err >&5 | |
34082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34083 | (exit $ac_status); } && | |
34084 | { ac_try='test -z "$ac_c_werror_flag" | |
34085 | || test ! -s conftest.err' | |
34086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34087 | (eval $ac_try) 2>&5 | |
34088 | ac_status=$? | |
34089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34090 | (exit $ac_status); }; } && | |
34091 | { ac_try='test -s conftest.$ac_objext' | |
34092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34093 | (eval $ac_try) 2>&5 | |
34094 | ac_status=$? | |
34095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34096 | (exit $ac_status); }; }; then | |
34097 | ac_cv_type_uint32_t=yes | |
34098 | else | |
34099 | echo "$as_me: failed program was:" >&5 | |
34100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34101 | ||
34102 | ac_cv_type_uint32_t=no | |
34103 | fi | |
34104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34105 | fi | |
34106 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 | |
34107 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 | |
34108 | ||
34109 | echo "$as_me:$LINENO: checking size of uint32_t" >&5 | |
34110 | echo $ECHO_N "checking size of uint32_t... $ECHO_C" >&6 | |
34111 | if test "${ac_cv_sizeof_uint32_t+set}" = set; then | |
34112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34113 | else | |
34114 | if test "$ac_cv_type_uint32_t" = yes; then | |
34115 | # The cast to unsigned long works around a bug in the HP C Compiler | |
34116 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
34117 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
34118 | # This bug is HP SR number 8606223364. | |
34119 | if test "$cross_compiling" = yes; then | |
34120 | # Depending upon the size, compute the lo and hi bounds. | |
34121 | cat >conftest.$ac_ext <<_ACEOF | |
34122 | /* confdefs.h. */ | |
34123 | _ACEOF | |
34124 | cat confdefs.h >>conftest.$ac_ext | |
34125 | cat >>conftest.$ac_ext <<_ACEOF | |
34126 | /* end confdefs.h. */ | |
34127 | ||
34128 | #include <stdio.h> | |
34129 | ||
34130 | /* What a mess.. many systems have added the (now standard) bit types | |
34131 | * in their own ways, so we need to scan a wide variety of headers to | |
34132 | * find them.. | |
34133 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
34134 | */ | |
34135 | #if HAVE_SYS_TYPES_H | |
34136 | #include <sys/types.h> | |
34137 | #endif | |
34138 | #if STDC_HEADERS | |
34139 | #include <stdlib.h> | |
34140 | #include <stddef.h> | |
34141 | #endif | |
34142 | #if HAVE_INTTYPES_H | |
34143 | #include <inttypes.h> | |
34144 | #endif | |
34145 | #if HAVE_SYS_BITYPES_H | |
34146 | #include <sys/bitypes.h> | |
34147 | #endif | |
34148 | #if HAVE_SYS_SELECT_H | |
34149 | #include <sys/select.h> | |
34150 | #endif | |
34151 | ||
34152 | ||
34153 | ||
34154 | int | |
34155 | main () | |
34156 | { | |
34157 | static int test_array [1 - 2 * !(((long) (sizeof (uint32_t))) >= 0)]; | |
34158 | test_array [0] = 0 | |
34159 | ||
34160 | ; | |
34161 | return 0; | |
34162 | } | |
34163 | _ACEOF | |
34164 | rm -f conftest.$ac_objext | |
34165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34166 | (eval $ac_compile) 2>conftest.er1 | |
34167 | ac_status=$? | |
34168 | grep -v '^ *+' conftest.er1 >conftest.err | |
34169 | rm -f conftest.er1 | |
34170 | cat conftest.err >&5 | |
34171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34172 | (exit $ac_status); } && | |
34173 | { ac_try='test -z "$ac_c_werror_flag" | |
34174 | || test ! -s conftest.err' | |
34175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34176 | (eval $ac_try) 2>&5 | |
34177 | ac_status=$? | |
34178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34179 | (exit $ac_status); }; } && | |
34180 | { ac_try='test -s conftest.$ac_objext' | |
34181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34182 | (eval $ac_try) 2>&5 | |
34183 | ac_status=$? | |
34184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34185 | (exit $ac_status); }; }; then | |
34186 | ac_lo=0 ac_mid=0 | |
34187 | while :; do | |
34188 | cat >conftest.$ac_ext <<_ACEOF | |
34189 | /* confdefs.h. */ | |
34190 | _ACEOF | |
34191 | cat confdefs.h >>conftest.$ac_ext | |
34192 | cat >>conftest.$ac_ext <<_ACEOF | |
34193 | /* end confdefs.h. */ | |
34194 | ||
34195 | #include <stdio.h> | |
34196 | ||
34197 | /* What a mess.. many systems have added the (now standard) bit types | |
34198 | * in their own ways, so we need to scan a wide variety of headers to | |
34199 | * find them.. | |
34200 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
34201 | */ | |
34202 | #if HAVE_SYS_TYPES_H | |
34203 | #include <sys/types.h> | |
34204 | #endif | |
34205 | #if STDC_HEADERS | |
34206 | #include <stdlib.h> | |
34207 | #include <stddef.h> | |
34208 | #endif | |
34209 | #if HAVE_INTTYPES_H | |
34210 | #include <inttypes.h> | |
34211 | #endif | |
34212 | #if HAVE_SYS_BITYPES_H | |
34213 | #include <sys/bitypes.h> | |
34214 | #endif | |
34215 | #if HAVE_SYS_SELECT_H | |
34216 | #include <sys/select.h> | |
34217 | #endif | |
34218 | ||
34219 | ||
34220 | ||
34221 | int | |
34222 | main () | |
34223 | { | |
34224 | static int test_array [1 - 2 * !(((long) (sizeof (uint32_t))) <= $ac_mid)]; | |
34225 | test_array [0] = 0 | |
34226 | ||
34227 | ; | |
34228 | return 0; | |
34229 | } | |
34230 | _ACEOF | |
34231 | rm -f conftest.$ac_objext | |
34232 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34233 | (eval $ac_compile) 2>conftest.er1 | |
34234 | ac_status=$? | |
34235 | grep -v '^ *+' conftest.er1 >conftest.err | |
34236 | rm -f conftest.er1 | |
34237 | cat conftest.err >&5 | |
34238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34239 | (exit $ac_status); } && | |
34240 | { ac_try='test -z "$ac_c_werror_flag" | |
34241 | || test ! -s conftest.err' | |
34242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34243 | (eval $ac_try) 2>&5 | |
34244 | ac_status=$? | |
34245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34246 | (exit $ac_status); }; } && | |
34247 | { ac_try='test -s conftest.$ac_objext' | |
34248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34249 | (eval $ac_try) 2>&5 | |
34250 | ac_status=$? | |
34251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34252 | (exit $ac_status); }; }; then | |
34253 | ac_hi=$ac_mid; break | |
34254 | else | |
34255 | echo "$as_me: failed program was:" >&5 | |
34256 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34257 | ||
34258 | ac_lo=`expr $ac_mid + 1` | |
34259 | if test $ac_lo -le $ac_mid; then | |
34260 | ac_lo= ac_hi= | |
34261 | break | |
34262 | fi | |
34263 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
34264 | fi | |
34265 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34266 | done | |
34267 | else | |
34268 | echo "$as_me: failed program was:" >&5 | |
34269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34270 | ||
34271 | cat >conftest.$ac_ext <<_ACEOF | |
34272 | /* confdefs.h. */ | |
34273 | _ACEOF | |
34274 | cat confdefs.h >>conftest.$ac_ext | |
34275 | cat >>conftest.$ac_ext <<_ACEOF | |
34276 | /* end confdefs.h. */ | |
34277 | ||
34278 | #include <stdio.h> | |
34279 | ||
34280 | /* What a mess.. many systems have added the (now standard) bit types | |
34281 | * in their own ways, so we need to scan a wide variety of headers to | |
34282 | * find them.. | |
34283 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
34284 | */ | |
34285 | #if HAVE_SYS_TYPES_H | |
34286 | #include <sys/types.h> | |
34287 | #endif | |
34288 | #if STDC_HEADERS | |
34289 | #include <stdlib.h> | |
34290 | #include <stddef.h> | |
34291 | #endif | |
34292 | #if HAVE_INTTYPES_H | |
34293 | #include <inttypes.h> | |
34294 | #endif | |
34295 | #if HAVE_SYS_BITYPES_H | |
34296 | #include <sys/bitypes.h> | |
34297 | #endif | |
34298 | #if HAVE_SYS_SELECT_H | |
34299 | #include <sys/select.h> | |
34300 | #endif | |
34301 | ||
34302 | ||
34303 | ||
34304 | int | |
34305 | main () | |
34306 | { | |
34307 | static int test_array [1 - 2 * !(((long) (sizeof (uint32_t))) < 0)]; | |
34308 | test_array [0] = 0 | |
34309 | ||
34310 | ; | |
34311 | return 0; | |
34312 | } | |
34313 | _ACEOF | |
34314 | rm -f conftest.$ac_objext | |
34315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34316 | (eval $ac_compile) 2>conftest.er1 | |
34317 | ac_status=$? | |
34318 | grep -v '^ *+' conftest.er1 >conftest.err | |
34319 | rm -f conftest.er1 | |
34320 | cat conftest.err >&5 | |
34321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34322 | (exit $ac_status); } && | |
34323 | { ac_try='test -z "$ac_c_werror_flag" | |
34324 | || test ! -s conftest.err' | |
34325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34326 | (eval $ac_try) 2>&5 | |
34327 | ac_status=$? | |
34328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34329 | (exit $ac_status); }; } && | |
34330 | { ac_try='test -s conftest.$ac_objext' | |
34331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34332 | (eval $ac_try) 2>&5 | |
34333 | ac_status=$? | |
34334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34335 | (exit $ac_status); }; }; then | |
34336 | ac_hi=-1 ac_mid=-1 | |
34337 | while :; do | |
34338 | cat >conftest.$ac_ext <<_ACEOF | |
34339 | /* confdefs.h. */ | |
34340 | _ACEOF | |
34341 | cat confdefs.h >>conftest.$ac_ext | |
34342 | cat >>conftest.$ac_ext <<_ACEOF | |
34343 | /* end confdefs.h. */ | |
34344 | ||
34345 | #include <stdio.h> | |
34346 | ||
34347 | /* What a mess.. many systems have added the (now standard) bit types | |
34348 | * in their own ways, so we need to scan a wide variety of headers to | |
34349 | * find them.. | |
34350 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
34351 | */ | |
34352 | #if HAVE_SYS_TYPES_H | |
34353 | #include <sys/types.h> | |
34354 | #endif | |
34355 | #if STDC_HEADERS | |
34356 | #include <stdlib.h> | |
34357 | #include <stddef.h> | |
34358 | #endif | |
34359 | #if HAVE_INTTYPES_H | |
34360 | #include <inttypes.h> | |
34361 | #endif | |
34362 | #if HAVE_SYS_BITYPES_H | |
34363 | #include <sys/bitypes.h> | |
34364 | #endif | |
34365 | #if HAVE_SYS_SELECT_H | |
34366 | #include <sys/select.h> | |
34367 | #endif | |
34368 | ||
34369 | ||
34370 | ||
34371 | int | |
34372 | main () | |
34373 | { | |
34374 | static int test_array [1 - 2 * !(((long) (sizeof (uint32_t))) >= $ac_mid)]; | |
34375 | test_array [0] = 0 | |
34376 | ||
34377 | ; | |
34378 | return 0; | |
34379 | } | |
34380 | _ACEOF | |
34381 | rm -f conftest.$ac_objext | |
34382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34383 | (eval $ac_compile) 2>conftest.er1 | |
34384 | ac_status=$? | |
34385 | grep -v '^ *+' conftest.er1 >conftest.err | |
34386 | rm -f conftest.er1 | |
34387 | cat conftest.err >&5 | |
34388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34389 | (exit $ac_status); } && | |
34390 | { ac_try='test -z "$ac_c_werror_flag" | |
34391 | || test ! -s conftest.err' | |
34392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34393 | (eval $ac_try) 2>&5 | |
34394 | ac_status=$? | |
34395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34396 | (exit $ac_status); }; } && | |
34397 | { ac_try='test -s conftest.$ac_objext' | |
34398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34399 | (eval $ac_try) 2>&5 | |
34400 | ac_status=$? | |
34401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34402 | (exit $ac_status); }; }; then | |
34403 | ac_lo=$ac_mid; break | |
34404 | else | |
34405 | echo "$as_me: failed program was:" >&5 | |
34406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34407 | ||
34408 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
34409 | if test $ac_mid -le $ac_hi; then | |
34410 | ac_lo= ac_hi= | |
34411 | break | |
34412 | fi | |
34413 | ac_mid=`expr 2 '*' $ac_mid` | |
34414 | fi | |
34415 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34416 | done | |
34417 | else | |
34418 | echo "$as_me: failed program was:" >&5 | |
34419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34420 | ||
34421 | ac_lo= ac_hi= | |
34422 | fi | |
34423 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34424 | fi | |
34425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34426 | # Binary search between lo and hi bounds. | |
34427 | while test "x$ac_lo" != "x$ac_hi"; do | |
34428 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
34429 | cat >conftest.$ac_ext <<_ACEOF | |
34430 | /* confdefs.h. */ | |
34431 | _ACEOF | |
34432 | cat confdefs.h >>conftest.$ac_ext | |
34433 | cat >>conftest.$ac_ext <<_ACEOF | |
34434 | /* end confdefs.h. */ | |
34435 | ||
34436 | #include <stdio.h> | |
34437 | ||
34438 | /* What a mess.. many systems have added the (now standard) bit types | |
34439 | * in their own ways, so we need to scan a wide variety of headers to | |
34440 | * find them.. | |
34441 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
34442 | */ | |
34443 | #if HAVE_SYS_TYPES_H | |
34444 | #include <sys/types.h> | |
34445 | #endif | |
34446 | #if STDC_HEADERS | |
34447 | #include <stdlib.h> | |
34448 | #include <stddef.h> | |
34449 | #endif | |
34450 | #if HAVE_INTTYPES_H | |
34451 | #include <inttypes.h> | |
34452 | #endif | |
34453 | #if HAVE_SYS_BITYPES_H | |
34454 | #include <sys/bitypes.h> | |
34455 | #endif | |
34456 | #if HAVE_SYS_SELECT_H | |
34457 | #include <sys/select.h> | |
34458 | #endif | |
34459 | ||
34460 | ||
34461 | ||
34462 | int | |
34463 | main () | |
34464 | { | |
34465 | static int test_array [1 - 2 * !(((long) (sizeof (uint32_t))) <= $ac_mid)]; | |
34466 | test_array [0] = 0 | |
34467 | ||
34468 | ; | |
34469 | return 0; | |
34470 | } | |
34471 | _ACEOF | |
34472 | rm -f conftest.$ac_objext | |
34473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34474 | (eval $ac_compile) 2>conftest.er1 | |
34475 | ac_status=$? | |
34476 | grep -v '^ *+' conftest.er1 >conftest.err | |
34477 | rm -f conftest.er1 | |
34478 | cat conftest.err >&5 | |
34479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34480 | (exit $ac_status); } && | |
34481 | { ac_try='test -z "$ac_c_werror_flag" | |
34482 | || test ! -s conftest.err' | |
34483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34484 | (eval $ac_try) 2>&5 | |
34485 | ac_status=$? | |
34486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34487 | (exit $ac_status); }; } && | |
34488 | { ac_try='test -s conftest.$ac_objext' | |
34489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34490 | (eval $ac_try) 2>&5 | |
34491 | ac_status=$? | |
34492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34493 | (exit $ac_status); }; }; then | |
34494 | ac_hi=$ac_mid | |
34495 | else | |
34496 | echo "$as_me: failed program was:" >&5 | |
34497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34498 | ||
34499 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
34500 | fi | |
34501 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34502 | done | |
34503 | case $ac_lo in | |
34504 | ?*) ac_cv_sizeof_uint32_t=$ac_lo;; | |
34505 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint32_t), 77 | |
34506 | See \`config.log' for more details." >&5 | |
34507 | echo "$as_me: error: cannot compute sizeof (uint32_t), 77 | |
34508 | See \`config.log' for more details." >&2;} | |
34509 | { (exit 1); exit 1; }; } ;; | |
34510 | esac | |
34511 | else | |
34512 | if test "$cross_compiling" = yes; then | |
34513 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
34514 | See \`config.log' for more details." >&5 | |
34515 | echo "$as_me: error: cannot run test program while cross compiling | |
34516 | See \`config.log' for more details." >&2;} | |
34517 | { (exit 1); exit 1; }; } | |
34518 | else | |
34519 | cat >conftest.$ac_ext <<_ACEOF | |
34520 | /* confdefs.h. */ | |
34521 | _ACEOF | |
34522 | cat confdefs.h >>conftest.$ac_ext | |
34523 | cat >>conftest.$ac_ext <<_ACEOF | |
34524 | /* end confdefs.h. */ | |
34525 | ||
34526 | #include <stdio.h> | |
34527 | ||
34528 | /* What a mess.. many systems have added the (now standard) bit types | |
34529 | * in their own ways, so we need to scan a wide variety of headers to | |
34530 | * find them.. | |
34531 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
34532 | */ | |
34533 | #if HAVE_SYS_TYPES_H | |
34534 | #include <sys/types.h> | |
34535 | #endif | |
34536 | #if STDC_HEADERS | |
34537 | #include <stdlib.h> | |
34538 | #include <stddef.h> | |
34539 | #endif | |
34540 | #if HAVE_INTTYPES_H | |
34541 | #include <inttypes.h> | |
34542 | #endif | |
34543 | #if HAVE_SYS_BITYPES_H | |
34544 | #include <sys/bitypes.h> | |
34545 | #endif | |
34546 | #if HAVE_SYS_SELECT_H | |
34547 | #include <sys/select.h> | |
34548 | #endif | |
34549 | ||
34550 | ||
34551 | ||
34552 | long longval () { return (long) (sizeof (uint32_t)); } | |
34553 | unsigned long ulongval () { return (long) (sizeof (uint32_t)); } | |
34554 | #include <stdio.h> | |
34555 | #include <stdlib.h> | |
34556 | int | |
34557 | main () | |
34558 | { | |
34559 | ||
34560 | FILE *f = fopen ("conftest.val", "w"); | |
34561 | if (! f) | |
34562 | exit (1); | |
34563 | if (((long) (sizeof (uint32_t))) < 0) | |
34564 | { | |
34565 | long i = longval (); | |
34566 | if (i != ((long) (sizeof (uint32_t)))) | |
34567 | exit (1); | |
34568 | fprintf (f, "%ld\n", i); | |
34569 | } | |
34570 | else | |
34571 | { | |
34572 | unsigned long i = ulongval (); | |
34573 | if (i != ((long) (sizeof (uint32_t)))) | |
34574 | exit (1); | |
34575 | fprintf (f, "%lu\n", i); | |
34576 | } | |
34577 | exit (ferror (f) || fclose (f) != 0); | |
34578 | ||
34579 | ; | |
34580 | return 0; | |
34581 | } | |
34582 | _ACEOF | |
34583 | rm -f conftest$ac_exeext | |
34584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
34585 | (eval $ac_link) 2>&5 | |
34586 | ac_status=$? | |
34587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34588 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
34589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34590 | (eval $ac_try) 2>&5 | |
34591 | ac_status=$? | |
34592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34593 | (exit $ac_status); }; }; then | |
34594 | ac_cv_sizeof_uint32_t=`cat conftest.val` | |
34595 | else | |
34596 | echo "$as_me: program exited with status $ac_status" >&5 | |
34597 | echo "$as_me: failed program was:" >&5 | |
34598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34599 | ||
34600 | ( exit $ac_status ) | |
34601 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint32_t), 77 | |
34602 | See \`config.log' for more details." >&5 | |
34603 | echo "$as_me: error: cannot compute sizeof (uint32_t), 77 | |
34604 | See \`config.log' for more details." >&2;} | |
34605 | { (exit 1); exit 1; }; } | |
34606 | fi | |
34607 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
34608 | fi | |
34609 | fi | |
34610 | rm -f conftest.val | |
34611 | else | |
34612 | ac_cv_sizeof_uint32_t=0 | |
34613 | fi | |
34614 | fi | |
34615 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint32_t" >&5 | |
34616 | echo "${ECHO_T}$ac_cv_sizeof_uint32_t" >&6 | |
34617 | cat >>confdefs.h <<_ACEOF | |
34618 | #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t | |
34619 | _ACEOF | |
34620 | ||
34621 | ||
34622 | ||
34623 | cat >>confdefs.h <<\_ACEOF | |
34624 | #define HAVE_UINT32_T 1 | |
34625 | _ACEOF | |
34626 | ||
34627 | ||
34628 | fi | |
34629 | ||
34630 | ||
34631 | echo "$as_me:$LINENO: checking for int64_t" >&5 | |
34632 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 | |
34633 | if test "${ac_cv_type_int64_t+set}" = set; then | |
34634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34635 | else | |
34636 | cat >conftest.$ac_ext <<_ACEOF | |
34637 | /* confdefs.h. */ | |
34638 | _ACEOF | |
34639 | cat confdefs.h >>conftest.$ac_ext | |
34640 | cat >>conftest.$ac_ext <<_ACEOF | |
34641 | /* end confdefs.h. */ | |
34642 | ||
34643 | /* What a mess.. many systems have added the (now standard) bit types | |
34644 | * in their own ways, so we need to scan a wide variety of headers to | |
34645 | * find them.. | |
34646 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
34647 | */ | |
34648 | #if HAVE_SYS_TYPES_H | |
34649 | #include <sys/types.h> | |
34650 | #endif | |
34651 | #if STDC_HEADERS | |
34652 | #include <stdlib.h> | |
34653 | #include <stddef.h> | |
34654 | #endif | |
34655 | #if HAVE_INTTYPES_H | |
34656 | #include <inttypes.h> | |
34657 | #endif | |
34658 | #if HAVE_SYS_BITYPES_H | |
34659 | #include <sys/bitypes.h> | |
34660 | #endif | |
34661 | #if HAVE_SYS_SELECT_H | |
34662 | #include <sys/select.h> | |
34663 | #endif | |
34664 | ||
34665 | ||
34666 | int | |
34667 | main () | |
34668 | { | |
34669 | if ((int64_t *) 0) | |
34670 | return 0; | |
34671 | if (sizeof (int64_t)) | |
34672 | return 0; | |
34673 | ; | |
34674 | return 0; | |
34675 | } | |
34676 | _ACEOF | |
34677 | rm -f conftest.$ac_objext | |
34678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34679 | (eval $ac_compile) 2>conftest.er1 | |
34680 | ac_status=$? | |
34681 | grep -v '^ *+' conftest.er1 >conftest.err | |
34682 | rm -f conftest.er1 | |
34683 | cat conftest.err >&5 | |
34684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34685 | (exit $ac_status); } && | |
34686 | { ac_try='test -z "$ac_c_werror_flag" | |
34687 | || test ! -s conftest.err' | |
34688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34689 | (eval $ac_try) 2>&5 | |
34690 | ac_status=$? | |
34691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34692 | (exit $ac_status); }; } && | |
34693 | { ac_try='test -s conftest.$ac_objext' | |
34694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34695 | (eval $ac_try) 2>&5 | |
34696 | ac_status=$? | |
34697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34698 | (exit $ac_status); }; }; then | |
34699 | ac_cv_type_int64_t=yes | |
34700 | else | |
34701 | echo "$as_me: failed program was:" >&5 | |
34702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34703 | ||
34704 | ac_cv_type_int64_t=no | |
34705 | fi | |
34706 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34707 | fi | |
34708 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 | |
34709 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 | |
34710 | if test $ac_cv_type_int64_t = yes; then | |
34711 | ||
34712 | echo "$as_me:$LINENO: checking for int64_t" >&5 | |
34713 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 | |
34714 | if test "${ac_cv_type_int64_t+set}" = set; then | |
34715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34716 | else | |
34717 | cat >conftest.$ac_ext <<_ACEOF | |
34718 | /* confdefs.h. */ | |
34719 | _ACEOF | |
34720 | cat confdefs.h >>conftest.$ac_ext | |
34721 | cat >>conftest.$ac_ext <<_ACEOF | |
34722 | /* end confdefs.h. */ | |
34723 | ||
34724 | #include <stdio.h> | |
34725 | ||
34726 | /* What a mess.. many systems have added the (now standard) bit types | |
34727 | * in their own ways, so we need to scan a wide variety of headers to | |
34728 | * find them.. | |
34729 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
34730 | */ | |
34731 | #if HAVE_SYS_TYPES_H | |
34732 | #include <sys/types.h> | |
34733 | #endif | |
34734 | #if STDC_HEADERS | |
34735 | #include <stdlib.h> | |
34736 | #include <stddef.h> | |
34737 | #endif | |
34738 | #if HAVE_INTTYPES_H | |
34739 | #include <inttypes.h> | |
34740 | #endif | |
34741 | #if HAVE_SYS_BITYPES_H | |
34742 | #include <sys/bitypes.h> | |
34743 | #endif | |
34744 | #if HAVE_SYS_SELECT_H | |
34745 | #include <sys/select.h> | |
34746 | #endif | |
34747 | ||
34748 | ||
34749 | ||
34750 | int | |
34751 | main () | |
34752 | { | |
34753 | if ((int64_t *) 0) | |
34754 | return 0; | |
34755 | if (sizeof (int64_t)) | |
34756 | return 0; | |
34757 | ; | |
34758 | return 0; | |
34759 | } | |
34760 | _ACEOF | |
34761 | rm -f conftest.$ac_objext | |
34762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34763 | (eval $ac_compile) 2>conftest.er1 | |
34764 | ac_status=$? | |
34765 | grep -v '^ *+' conftest.er1 >conftest.err | |
34766 | rm -f conftest.er1 | |
34767 | cat conftest.err >&5 | |
34768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34769 | (exit $ac_status); } && | |
34770 | { ac_try='test -z "$ac_c_werror_flag" | |
34771 | || test ! -s conftest.err' | |
34772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34773 | (eval $ac_try) 2>&5 | |
34774 | ac_status=$? | |
34775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34776 | (exit $ac_status); }; } && | |
34777 | { ac_try='test -s conftest.$ac_objext' | |
34778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34779 | (eval $ac_try) 2>&5 | |
34780 | ac_status=$? | |
34781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34782 | (exit $ac_status); }; }; then | |
34783 | ac_cv_type_int64_t=yes | |
34784 | else | |
34785 | echo "$as_me: failed program was:" >&5 | |
34786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34787 | ||
34788 | ac_cv_type_int64_t=no | |
34789 | fi | |
34790 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34791 | fi | |
34792 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 | |
34793 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 | |
34794 | ||
34795 | echo "$as_me:$LINENO: checking size of int64_t" >&5 | |
34796 | echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6 | |
34797 | if test "${ac_cv_sizeof_int64_t+set}" = set; then | |
34798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34799 | else | |
34800 | if test "$ac_cv_type_int64_t" = yes; then | |
34801 | # The cast to unsigned long works around a bug in the HP C Compiler | |
34802 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
34803 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
34804 | # This bug is HP SR number 8606223364. | |
34805 | if test "$cross_compiling" = yes; then | |
34806 | # Depending upon the size, compute the lo and hi bounds. | |
34807 | cat >conftest.$ac_ext <<_ACEOF | |
34808 | /* confdefs.h. */ | |
34809 | _ACEOF | |
34810 | cat confdefs.h >>conftest.$ac_ext | |
34811 | cat >>conftest.$ac_ext <<_ACEOF | |
34812 | /* end confdefs.h. */ | |
34813 | ||
34814 | #include <stdio.h> | |
34815 | ||
34816 | /* What a mess.. many systems have added the (now standard) bit types | |
34817 | * in their own ways, so we need to scan a wide variety of headers to | |
34818 | * find them.. | |
34819 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
34820 | */ | |
34821 | #if HAVE_SYS_TYPES_H | |
34822 | #include <sys/types.h> | |
34823 | #endif | |
34824 | #if STDC_HEADERS | |
34825 | #include <stdlib.h> | |
34826 | #include <stddef.h> | |
34827 | #endif | |
34828 | #if HAVE_INTTYPES_H | |
34829 | #include <inttypes.h> | |
34830 | #endif | |
34831 | #if HAVE_SYS_BITYPES_H | |
34832 | #include <sys/bitypes.h> | |
34833 | #endif | |
34834 | #if HAVE_SYS_SELECT_H | |
34835 | #include <sys/select.h> | |
34836 | #endif | |
34837 | ||
34838 | ||
34839 | ||
34840 | int | |
34841 | main () | |
34842 | { | |
34843 | static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= 0)]; | |
34844 | test_array [0] = 0 | |
34845 | ||
34846 | ; | |
34847 | return 0; | |
34848 | } | |
34849 | _ACEOF | |
34850 | rm -f conftest.$ac_objext | |
34851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34852 | (eval $ac_compile) 2>conftest.er1 | |
34853 | ac_status=$? | |
34854 | grep -v '^ *+' conftest.er1 >conftest.err | |
34855 | rm -f conftest.er1 | |
34856 | cat conftest.err >&5 | |
34857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34858 | (exit $ac_status); } && | |
34859 | { ac_try='test -z "$ac_c_werror_flag" | |
34860 | || test ! -s conftest.err' | |
34861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34862 | (eval $ac_try) 2>&5 | |
34863 | ac_status=$? | |
34864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34865 | (exit $ac_status); }; } && | |
34866 | { ac_try='test -s conftest.$ac_objext' | |
34867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34868 | (eval $ac_try) 2>&5 | |
34869 | ac_status=$? | |
34870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34871 | (exit $ac_status); }; }; then | |
34872 | ac_lo=0 ac_mid=0 | |
34873 | while :; do | |
34874 | cat >conftest.$ac_ext <<_ACEOF | |
34875 | /* confdefs.h. */ | |
34876 | _ACEOF | |
34877 | cat confdefs.h >>conftest.$ac_ext | |
34878 | cat >>conftest.$ac_ext <<_ACEOF | |
34879 | /* end confdefs.h. */ | |
34880 | ||
34881 | #include <stdio.h> | |
34882 | ||
34883 | /* What a mess.. many systems have added the (now standard) bit types | |
34884 | * in their own ways, so we need to scan a wide variety of headers to | |
34885 | * find them.. | |
34886 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
34887 | */ | |
34888 | #if HAVE_SYS_TYPES_H | |
34889 | #include <sys/types.h> | |
34890 | #endif | |
34891 | #if STDC_HEADERS | |
34892 | #include <stdlib.h> | |
34893 | #include <stddef.h> | |
34894 | #endif | |
34895 | #if HAVE_INTTYPES_H | |
34896 | #include <inttypes.h> | |
34897 | #endif | |
34898 | #if HAVE_SYS_BITYPES_H | |
34899 | #include <sys/bitypes.h> | |
34900 | #endif | |
34901 | #if HAVE_SYS_SELECT_H | |
34902 | #include <sys/select.h> | |
34903 | #endif | |
34904 | ||
34905 | ||
34906 | ||
34907 | int | |
34908 | main () | |
34909 | { | |
34910 | static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)]; | |
34911 | test_array [0] = 0 | |
34912 | ||
34913 | ; | |
34914 | return 0; | |
34915 | } | |
34916 | _ACEOF | |
34917 | rm -f conftest.$ac_objext | |
34918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34919 | (eval $ac_compile) 2>conftest.er1 | |
34920 | ac_status=$? | |
34921 | grep -v '^ *+' conftest.er1 >conftest.err | |
34922 | rm -f conftest.er1 | |
34923 | cat conftest.err >&5 | |
34924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34925 | (exit $ac_status); } && | |
34926 | { ac_try='test -z "$ac_c_werror_flag" | |
34927 | || test ! -s conftest.err' | |
34928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34929 | (eval $ac_try) 2>&5 | |
34930 | ac_status=$? | |
34931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34932 | (exit $ac_status); }; } && | |
34933 | { ac_try='test -s conftest.$ac_objext' | |
34934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34935 | (eval $ac_try) 2>&5 | |
34936 | ac_status=$? | |
34937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34938 | (exit $ac_status); }; }; then | |
34939 | ac_hi=$ac_mid; break | |
34940 | else | |
34941 | echo "$as_me: failed program was:" >&5 | |
34942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34943 | ||
34944 | ac_lo=`expr $ac_mid + 1` | |
34945 | if test $ac_lo -le $ac_mid; then | |
34946 | ac_lo= ac_hi= | |
34947 | break | |
34948 | fi | |
34949 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
34950 | fi | |
34951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
34952 | done | |
34953 | else | |
34954 | echo "$as_me: failed program was:" >&5 | |
34955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34956 | ||
34957 | cat >conftest.$ac_ext <<_ACEOF | |
34958 | /* confdefs.h. */ | |
34959 | _ACEOF | |
34960 | cat confdefs.h >>conftest.$ac_ext | |
34961 | cat >>conftest.$ac_ext <<_ACEOF | |
34962 | /* end confdefs.h. */ | |
34963 | ||
34964 | #include <stdio.h> | |
34965 | ||
34966 | /* What a mess.. many systems have added the (now standard) bit types | |
34967 | * in their own ways, so we need to scan a wide variety of headers to | |
34968 | * find them.. | |
34969 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
34970 | */ | |
34971 | #if HAVE_SYS_TYPES_H | |
34972 | #include <sys/types.h> | |
34973 | #endif | |
34974 | #if STDC_HEADERS | |
34975 | #include <stdlib.h> | |
34976 | #include <stddef.h> | |
34977 | #endif | |
34978 | #if HAVE_INTTYPES_H | |
34979 | #include <inttypes.h> | |
34980 | #endif | |
34981 | #if HAVE_SYS_BITYPES_H | |
34982 | #include <sys/bitypes.h> | |
34983 | #endif | |
34984 | #if HAVE_SYS_SELECT_H | |
34985 | #include <sys/select.h> | |
34986 | #endif | |
34987 | ||
34988 | ||
34989 | ||
34990 | int | |
34991 | main () | |
34992 | { | |
34993 | static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) < 0)]; | |
34994 | test_array [0] = 0 | |
34995 | ||
34996 | ; | |
34997 | return 0; | |
34998 | } | |
34999 | _ACEOF | |
35000 | rm -f conftest.$ac_objext | |
35001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35002 | (eval $ac_compile) 2>conftest.er1 | |
35003 | ac_status=$? | |
35004 | grep -v '^ *+' conftest.er1 >conftest.err | |
35005 | rm -f conftest.er1 | |
35006 | cat conftest.err >&5 | |
35007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35008 | (exit $ac_status); } && | |
35009 | { ac_try='test -z "$ac_c_werror_flag" | |
35010 | || test ! -s conftest.err' | |
35011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35012 | (eval $ac_try) 2>&5 | |
35013 | ac_status=$? | |
35014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35015 | (exit $ac_status); }; } && | |
35016 | { ac_try='test -s conftest.$ac_objext' | |
35017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35018 | (eval $ac_try) 2>&5 | |
35019 | ac_status=$? | |
35020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35021 | (exit $ac_status); }; }; then | |
35022 | ac_hi=-1 ac_mid=-1 | |
35023 | while :; do | |
35024 | cat >conftest.$ac_ext <<_ACEOF | |
35025 | /* confdefs.h. */ | |
35026 | _ACEOF | |
35027 | cat confdefs.h >>conftest.$ac_ext | |
35028 | cat >>conftest.$ac_ext <<_ACEOF | |
35029 | /* end confdefs.h. */ | |
35030 | ||
35031 | #include <stdio.h> | |
35032 | ||
35033 | /* What a mess.. many systems have added the (now standard) bit types | |
35034 | * in their own ways, so we need to scan a wide variety of headers to | |
35035 | * find them.. | |
35036 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
35037 | */ | |
35038 | #if HAVE_SYS_TYPES_H | |
35039 | #include <sys/types.h> | |
35040 | #endif | |
35041 | #if STDC_HEADERS | |
35042 | #include <stdlib.h> | |
35043 | #include <stddef.h> | |
35044 | #endif | |
35045 | #if HAVE_INTTYPES_H | |
35046 | #include <inttypes.h> | |
35047 | #endif | |
35048 | #if HAVE_SYS_BITYPES_H | |
35049 | #include <sys/bitypes.h> | |
35050 | #endif | |
35051 | #if HAVE_SYS_SELECT_H | |
35052 | #include <sys/select.h> | |
35053 | #endif | |
35054 | ||
35055 | ||
35056 | ||
35057 | int | |
35058 | main () | |
35059 | { | |
35060 | static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= $ac_mid)]; | |
35061 | test_array [0] = 0 | |
35062 | ||
35063 | ; | |
35064 | return 0; | |
35065 | } | |
35066 | _ACEOF | |
35067 | rm -f conftest.$ac_objext | |
35068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35069 | (eval $ac_compile) 2>conftest.er1 | |
35070 | ac_status=$? | |
35071 | grep -v '^ *+' conftest.er1 >conftest.err | |
35072 | rm -f conftest.er1 | |
35073 | cat conftest.err >&5 | |
35074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35075 | (exit $ac_status); } && | |
35076 | { ac_try='test -z "$ac_c_werror_flag" | |
35077 | || test ! -s conftest.err' | |
35078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35079 | (eval $ac_try) 2>&5 | |
35080 | ac_status=$? | |
35081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35082 | (exit $ac_status); }; } && | |
35083 | { ac_try='test -s conftest.$ac_objext' | |
35084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35085 | (eval $ac_try) 2>&5 | |
35086 | ac_status=$? | |
35087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35088 | (exit $ac_status); }; }; then | |
35089 | ac_lo=$ac_mid; break | |
35090 | else | |
35091 | echo "$as_me: failed program was:" >&5 | |
35092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35093 | ||
35094 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
35095 | if test $ac_mid -le $ac_hi; then | |
35096 | ac_lo= ac_hi= | |
35097 | break | |
35098 | fi | |
35099 | ac_mid=`expr 2 '*' $ac_mid` | |
35100 | fi | |
35101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35102 | done | |
35103 | else | |
35104 | echo "$as_me: failed program was:" >&5 | |
35105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35106 | ||
35107 | ac_lo= ac_hi= | |
35108 | fi | |
35109 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35110 | fi | |
35111 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35112 | # Binary search between lo and hi bounds. | |
35113 | while test "x$ac_lo" != "x$ac_hi"; do | |
35114 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
35115 | cat >conftest.$ac_ext <<_ACEOF | |
35116 | /* confdefs.h. */ | |
35117 | _ACEOF | |
35118 | cat confdefs.h >>conftest.$ac_ext | |
35119 | cat >>conftest.$ac_ext <<_ACEOF | |
35120 | /* end confdefs.h. */ | |
35121 | ||
35122 | #include <stdio.h> | |
35123 | ||
35124 | /* What a mess.. many systems have added the (now standard) bit types | |
35125 | * in their own ways, so we need to scan a wide variety of headers to | |
35126 | * find them.. | |
35127 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
35128 | */ | |
35129 | #if HAVE_SYS_TYPES_H | |
35130 | #include <sys/types.h> | |
35131 | #endif | |
35132 | #if STDC_HEADERS | |
35133 | #include <stdlib.h> | |
35134 | #include <stddef.h> | |
35135 | #endif | |
35136 | #if HAVE_INTTYPES_H | |
35137 | #include <inttypes.h> | |
35138 | #endif | |
35139 | #if HAVE_SYS_BITYPES_H | |
35140 | #include <sys/bitypes.h> | |
35141 | #endif | |
35142 | #if HAVE_SYS_SELECT_H | |
35143 | #include <sys/select.h> | |
35144 | #endif | |
35145 | ||
35146 | ||
35147 | ||
35148 | int | |
35149 | main () | |
35150 | { | |
35151 | static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)]; | |
35152 | test_array [0] = 0 | |
35153 | ||
35154 | ; | |
35155 | return 0; | |
35156 | } | |
35157 | _ACEOF | |
35158 | rm -f conftest.$ac_objext | |
35159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35160 | (eval $ac_compile) 2>conftest.er1 | |
35161 | ac_status=$? | |
35162 | grep -v '^ *+' conftest.er1 >conftest.err | |
35163 | rm -f conftest.er1 | |
35164 | cat conftest.err >&5 | |
35165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35166 | (exit $ac_status); } && | |
35167 | { ac_try='test -z "$ac_c_werror_flag" | |
35168 | || test ! -s conftest.err' | |
35169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35170 | (eval $ac_try) 2>&5 | |
35171 | ac_status=$? | |
35172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35173 | (exit $ac_status); }; } && | |
35174 | { ac_try='test -s conftest.$ac_objext' | |
35175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35176 | (eval $ac_try) 2>&5 | |
35177 | ac_status=$? | |
35178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35179 | (exit $ac_status); }; }; then | |
35180 | ac_hi=$ac_mid | |
35181 | else | |
35182 | echo "$as_me: failed program was:" >&5 | |
35183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35184 | ||
35185 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
35186 | fi | |
35187 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35188 | done | |
35189 | case $ac_lo in | |
35190 | ?*) ac_cv_sizeof_int64_t=$ac_lo;; | |
35191 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77 | |
35192 | See \`config.log' for more details." >&5 | |
35193 | echo "$as_me: error: cannot compute sizeof (int64_t), 77 | |
35194 | See \`config.log' for more details." >&2;} | |
35195 | { (exit 1); exit 1; }; } ;; | |
35196 | esac | |
35197 | else | |
35198 | if test "$cross_compiling" = yes; then | |
35199 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
35200 | See \`config.log' for more details." >&5 | |
35201 | echo "$as_me: error: cannot run test program while cross compiling | |
35202 | See \`config.log' for more details." >&2;} | |
35203 | { (exit 1); exit 1; }; } | |
35204 | else | |
35205 | cat >conftest.$ac_ext <<_ACEOF | |
35206 | /* confdefs.h. */ | |
35207 | _ACEOF | |
35208 | cat confdefs.h >>conftest.$ac_ext | |
35209 | cat >>conftest.$ac_ext <<_ACEOF | |
35210 | /* end confdefs.h. */ | |
35211 | ||
35212 | #include <stdio.h> | |
35213 | ||
35214 | /* What a mess.. many systems have added the (now standard) bit types | |
35215 | * in their own ways, so we need to scan a wide variety of headers to | |
35216 | * find them.. | |
35217 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
35218 | */ | |
35219 | #if HAVE_SYS_TYPES_H | |
35220 | #include <sys/types.h> | |
35221 | #endif | |
35222 | #if STDC_HEADERS | |
35223 | #include <stdlib.h> | |
35224 | #include <stddef.h> | |
35225 | #endif | |
35226 | #if HAVE_INTTYPES_H | |
35227 | #include <inttypes.h> | |
35228 | #endif | |
35229 | #if HAVE_SYS_BITYPES_H | |
35230 | #include <sys/bitypes.h> | |
35231 | #endif | |
35232 | #if HAVE_SYS_SELECT_H | |
35233 | #include <sys/select.h> | |
35234 | #endif | |
35235 | ||
35236 | ||
35237 | ||
35238 | long longval () { return (long) (sizeof (int64_t)); } | |
35239 | unsigned long ulongval () { return (long) (sizeof (int64_t)); } | |
35240 | #include <stdio.h> | |
35241 | #include <stdlib.h> | |
35242 | int | |
35243 | main () | |
35244 | { | |
35245 | ||
35246 | FILE *f = fopen ("conftest.val", "w"); | |
35247 | if (! f) | |
35248 | exit (1); | |
35249 | if (((long) (sizeof (int64_t))) < 0) | |
35250 | { | |
35251 | long i = longval (); | |
35252 | if (i != ((long) (sizeof (int64_t)))) | |
35253 | exit (1); | |
35254 | fprintf (f, "%ld\n", i); | |
35255 | } | |
35256 | else | |
35257 | { | |
35258 | unsigned long i = ulongval (); | |
35259 | if (i != ((long) (sizeof (int64_t)))) | |
35260 | exit (1); | |
35261 | fprintf (f, "%lu\n", i); | |
35262 | } | |
35263 | exit (ferror (f) || fclose (f) != 0); | |
35264 | ||
35265 | ; | |
35266 | return 0; | |
35267 | } | |
35268 | _ACEOF | |
35269 | rm -f conftest$ac_exeext | |
35270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35271 | (eval $ac_link) 2>&5 | |
35272 | ac_status=$? | |
35273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35274 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
35275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35276 | (eval $ac_try) 2>&5 | |
35277 | ac_status=$? | |
35278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35279 | (exit $ac_status); }; }; then | |
35280 | ac_cv_sizeof_int64_t=`cat conftest.val` | |
35281 | else | |
35282 | echo "$as_me: program exited with status $ac_status" >&5 | |
35283 | echo "$as_me: failed program was:" >&5 | |
35284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35285 | ||
35286 | ( exit $ac_status ) | |
35287 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77 | |
35288 | See \`config.log' for more details." >&5 | |
35289 | echo "$as_me: error: cannot compute sizeof (int64_t), 77 | |
35290 | See \`config.log' for more details." >&2;} | |
35291 | { (exit 1); exit 1; }; } | |
35292 | fi | |
35293 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
35294 | fi | |
35295 | fi | |
35296 | rm -f conftest.val | |
35297 | else | |
35298 | ac_cv_sizeof_int64_t=0 | |
35299 | fi | |
35300 | fi | |
35301 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5 | |
35302 | echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6 | |
35303 | cat >>confdefs.h <<_ACEOF | |
35304 | #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t | |
35305 | _ACEOF | |
35306 | ||
35307 | ||
35308 | ||
35309 | cat >>confdefs.h <<\_ACEOF | |
35310 | #define HAVE_INT64_T 1 | |
35311 | _ACEOF | |
35312 | ||
35313 | ||
35314 | fi | |
35315 | ||
35316 | ||
35317 | echo "$as_me:$LINENO: checking for __int64" >&5 | |
35318 | echo $ECHO_N "checking for __int64... $ECHO_C" >&6 | |
35319 | if test "${ac_cv_type___int64+set}" = set; then | |
35320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35321 | else | |
35322 | cat >conftest.$ac_ext <<_ACEOF | |
35323 | /* confdefs.h. */ | |
35324 | _ACEOF | |
35325 | cat confdefs.h >>conftest.$ac_ext | |
35326 | cat >>conftest.$ac_ext <<_ACEOF | |
35327 | /* end confdefs.h. */ | |
35328 | ||
35329 | /* What a mess.. many systems have added the (now standard) bit types | |
35330 | * in their own ways, so we need to scan a wide variety of headers to | |
35331 | * find them.. | |
35332 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
35333 | */ | |
35334 | #if HAVE_SYS_TYPES_H | |
35335 | #include <sys/types.h> | |
35336 | #endif | |
35337 | #if STDC_HEADERS | |
35338 | #include <stdlib.h> | |
35339 | #include <stddef.h> | |
35340 | #endif | |
35341 | #if HAVE_INTTYPES_H | |
35342 | #include <inttypes.h> | |
35343 | #endif | |
35344 | #if HAVE_SYS_BITYPES_H | |
35345 | #include <sys/bitypes.h> | |
35346 | #endif | |
35347 | #if HAVE_SYS_SELECT_H | |
35348 | #include <sys/select.h> | |
35349 | #endif | |
35350 | ||
35351 | ||
35352 | int | |
35353 | main () | |
35354 | { | |
35355 | if ((__int64 *) 0) | |
35356 | return 0; | |
35357 | if (sizeof (__int64)) | |
35358 | return 0; | |
35359 | ; | |
35360 | return 0; | |
35361 | } | |
35362 | _ACEOF | |
35363 | rm -f conftest.$ac_objext | |
35364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35365 | (eval $ac_compile) 2>conftest.er1 | |
35366 | ac_status=$? | |
35367 | grep -v '^ *+' conftest.er1 >conftest.err | |
35368 | rm -f conftest.er1 | |
35369 | cat conftest.err >&5 | |
35370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35371 | (exit $ac_status); } && | |
35372 | { ac_try='test -z "$ac_c_werror_flag" | |
35373 | || test ! -s conftest.err' | |
35374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35375 | (eval $ac_try) 2>&5 | |
35376 | ac_status=$? | |
35377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35378 | (exit $ac_status); }; } && | |
35379 | { ac_try='test -s conftest.$ac_objext' | |
35380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35381 | (eval $ac_try) 2>&5 | |
35382 | ac_status=$? | |
35383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35384 | (exit $ac_status); }; }; then | |
35385 | ac_cv_type___int64=yes | |
35386 | else | |
35387 | echo "$as_me: failed program was:" >&5 | |
35388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35389 | ||
35390 | ac_cv_type___int64=no | |
35391 | fi | |
35392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35393 | fi | |
35394 | echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5 | |
35395 | echo "${ECHO_T}$ac_cv_type___int64" >&6 | |
35396 | if test $ac_cv_type___int64 = yes; then | |
35397 | ||
35398 | echo "$as_me:$LINENO: checking for __int64" >&5 | |
35399 | echo $ECHO_N "checking for __int64... $ECHO_C" >&6 | |
35400 | if test "${ac_cv_type___int64+set}" = set; then | |
35401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35402 | else | |
35403 | cat >conftest.$ac_ext <<_ACEOF | |
35404 | /* confdefs.h. */ | |
35405 | _ACEOF | |
35406 | cat confdefs.h >>conftest.$ac_ext | |
35407 | cat >>conftest.$ac_ext <<_ACEOF | |
35408 | /* end confdefs.h. */ | |
35409 | ||
35410 | #include <stdio.h> | |
35411 | ||
35412 | /* What a mess.. many systems have added the (now standard) bit types | |
35413 | * in their own ways, so we need to scan a wide variety of headers to | |
35414 | * find them.. | |
35415 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
35416 | */ | |
35417 | #if HAVE_SYS_TYPES_H | |
35418 | #include <sys/types.h> | |
35419 | #endif | |
35420 | #if STDC_HEADERS | |
35421 | #include <stdlib.h> | |
35422 | #include <stddef.h> | |
35423 | #endif | |
35424 | #if HAVE_INTTYPES_H | |
35425 | #include <inttypes.h> | |
35426 | #endif | |
35427 | #if HAVE_SYS_BITYPES_H | |
35428 | #include <sys/bitypes.h> | |
35429 | #endif | |
35430 | #if HAVE_SYS_SELECT_H | |
35431 | #include <sys/select.h> | |
35432 | #endif | |
35433 | ||
35434 | ||
35435 | ||
35436 | int | |
35437 | main () | |
35438 | { | |
35439 | if ((__int64 *) 0) | |
35440 | return 0; | |
35441 | if (sizeof (__int64)) | |
35442 | return 0; | |
35443 | ; | |
35444 | return 0; | |
35445 | } | |
35446 | _ACEOF | |
35447 | rm -f conftest.$ac_objext | |
35448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35449 | (eval $ac_compile) 2>conftest.er1 | |
35450 | ac_status=$? | |
35451 | grep -v '^ *+' conftest.er1 >conftest.err | |
35452 | rm -f conftest.er1 | |
35453 | cat conftest.err >&5 | |
35454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35455 | (exit $ac_status); } && | |
35456 | { ac_try='test -z "$ac_c_werror_flag" | |
35457 | || test ! -s conftest.err' | |
35458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35459 | (eval $ac_try) 2>&5 | |
35460 | ac_status=$? | |
35461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35462 | (exit $ac_status); }; } && | |
35463 | { ac_try='test -s conftest.$ac_objext' | |
35464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35465 | (eval $ac_try) 2>&5 | |
35466 | ac_status=$? | |
35467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35468 | (exit $ac_status); }; }; then | |
35469 | ac_cv_type___int64=yes | |
35470 | else | |
35471 | echo "$as_me: failed program was:" >&5 | |
35472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35473 | ||
35474 | ac_cv_type___int64=no | |
35475 | fi | |
35476 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35477 | fi | |
35478 | echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5 | |
35479 | echo "${ECHO_T}$ac_cv_type___int64" >&6 | |
35480 | ||
35481 | echo "$as_me:$LINENO: checking size of __int64" >&5 | |
35482 | echo $ECHO_N "checking size of __int64... $ECHO_C" >&6 | |
35483 | if test "${ac_cv_sizeof___int64+set}" = set; then | |
35484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35485 | else | |
35486 | if test "$ac_cv_type___int64" = yes; then | |
35487 | # The cast to unsigned long works around a bug in the HP C Compiler | |
35488 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
35489 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
35490 | # This bug is HP SR number 8606223364. | |
35491 | if test "$cross_compiling" = yes; then | |
35492 | # Depending upon the size, compute the lo and hi bounds. | |
35493 | cat >conftest.$ac_ext <<_ACEOF | |
35494 | /* confdefs.h. */ | |
35495 | _ACEOF | |
35496 | cat confdefs.h >>conftest.$ac_ext | |
35497 | cat >>conftest.$ac_ext <<_ACEOF | |
35498 | /* end confdefs.h. */ | |
35499 | ||
35500 | #include <stdio.h> | |
35501 | ||
35502 | /* What a mess.. many systems have added the (now standard) bit types | |
35503 | * in their own ways, so we need to scan a wide variety of headers to | |
35504 | * find them.. | |
35505 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
35506 | */ | |
35507 | #if HAVE_SYS_TYPES_H | |
35508 | #include <sys/types.h> | |
35509 | #endif | |
35510 | #if STDC_HEADERS | |
35511 | #include <stdlib.h> | |
35512 | #include <stddef.h> | |
35513 | #endif | |
35514 | #if HAVE_INTTYPES_H | |
35515 | #include <inttypes.h> | |
35516 | #endif | |
35517 | #if HAVE_SYS_BITYPES_H | |
35518 | #include <sys/bitypes.h> | |
35519 | #endif | |
35520 | #if HAVE_SYS_SELECT_H | |
35521 | #include <sys/select.h> | |
35522 | #endif | |
35523 | ||
35524 | ||
35525 | ||
35526 | int | |
35527 | main () | |
35528 | { | |
35529 | static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)]; | |
35530 | test_array [0] = 0 | |
35531 | ||
35532 | ; | |
35533 | return 0; | |
35534 | } | |
35535 | _ACEOF | |
35536 | rm -f conftest.$ac_objext | |
35537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35538 | (eval $ac_compile) 2>conftest.er1 | |
35539 | ac_status=$? | |
35540 | grep -v '^ *+' conftest.er1 >conftest.err | |
35541 | rm -f conftest.er1 | |
35542 | cat conftest.err >&5 | |
35543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35544 | (exit $ac_status); } && | |
35545 | { ac_try='test -z "$ac_c_werror_flag" | |
35546 | || test ! -s conftest.err' | |
35547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35548 | (eval $ac_try) 2>&5 | |
35549 | ac_status=$? | |
35550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35551 | (exit $ac_status); }; } && | |
35552 | { ac_try='test -s conftest.$ac_objext' | |
35553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35554 | (eval $ac_try) 2>&5 | |
35555 | ac_status=$? | |
35556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35557 | (exit $ac_status); }; }; then | |
35558 | ac_lo=0 ac_mid=0 | |
35559 | while :; do | |
35560 | cat >conftest.$ac_ext <<_ACEOF | |
35561 | /* confdefs.h. */ | |
35562 | _ACEOF | |
35563 | cat confdefs.h >>conftest.$ac_ext | |
35564 | cat >>conftest.$ac_ext <<_ACEOF | |
35565 | /* end confdefs.h. */ | |
35566 | ||
35567 | #include <stdio.h> | |
35568 | ||
35569 | /* What a mess.. many systems have added the (now standard) bit types | |
35570 | * in their own ways, so we need to scan a wide variety of headers to | |
35571 | * find them.. | |
35572 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
35573 | */ | |
35574 | #if HAVE_SYS_TYPES_H | |
35575 | #include <sys/types.h> | |
35576 | #endif | |
35577 | #if STDC_HEADERS | |
35578 | #include <stdlib.h> | |
35579 | #include <stddef.h> | |
35580 | #endif | |
35581 | #if HAVE_INTTYPES_H | |
35582 | #include <inttypes.h> | |
35583 | #endif | |
35584 | #if HAVE_SYS_BITYPES_H | |
35585 | #include <sys/bitypes.h> | |
35586 | #endif | |
35587 | #if HAVE_SYS_SELECT_H | |
35588 | #include <sys/select.h> | |
35589 | #endif | |
35590 | ||
35591 | ||
35592 | ||
35593 | int | |
35594 | main () | |
35595 | { | |
35596 | static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)]; | |
35597 | test_array [0] = 0 | |
35598 | ||
35599 | ; | |
35600 | return 0; | |
35601 | } | |
35602 | _ACEOF | |
35603 | rm -f conftest.$ac_objext | |
35604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35605 | (eval $ac_compile) 2>conftest.er1 | |
35606 | ac_status=$? | |
35607 | grep -v '^ *+' conftest.er1 >conftest.err | |
35608 | rm -f conftest.er1 | |
35609 | cat conftest.err >&5 | |
35610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35611 | (exit $ac_status); } && | |
35612 | { ac_try='test -z "$ac_c_werror_flag" | |
35613 | || test ! -s conftest.err' | |
35614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35615 | (eval $ac_try) 2>&5 | |
35616 | ac_status=$? | |
35617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35618 | (exit $ac_status); }; } && | |
35619 | { ac_try='test -s conftest.$ac_objext' | |
35620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35621 | (eval $ac_try) 2>&5 | |
35622 | ac_status=$? | |
35623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35624 | (exit $ac_status); }; }; then | |
35625 | ac_hi=$ac_mid; break | |
35626 | else | |
35627 | echo "$as_me: failed program was:" >&5 | |
35628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35629 | ||
35630 | ac_lo=`expr $ac_mid + 1` | |
35631 | if test $ac_lo -le $ac_mid; then | |
35632 | ac_lo= ac_hi= | |
35633 | break | |
35634 | fi | |
35635 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
35636 | fi | |
35637 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35638 | done | |
35639 | else | |
35640 | echo "$as_me: failed program was:" >&5 | |
35641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35642 | ||
35643 | cat >conftest.$ac_ext <<_ACEOF | |
35644 | /* confdefs.h. */ | |
35645 | _ACEOF | |
35646 | cat confdefs.h >>conftest.$ac_ext | |
35647 | cat >>conftest.$ac_ext <<_ACEOF | |
35648 | /* end confdefs.h. */ | |
35649 | ||
35650 | #include <stdio.h> | |
35651 | ||
35652 | /* What a mess.. many systems have added the (now standard) bit types | |
35653 | * in their own ways, so we need to scan a wide variety of headers to | |
35654 | * find them.. | |
35655 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
35656 | */ | |
35657 | #if HAVE_SYS_TYPES_H | |
35658 | #include <sys/types.h> | |
35659 | #endif | |
35660 | #if STDC_HEADERS | |
35661 | #include <stdlib.h> | |
35662 | #include <stddef.h> | |
35663 | #endif | |
35664 | #if HAVE_INTTYPES_H | |
35665 | #include <inttypes.h> | |
35666 | #endif | |
35667 | #if HAVE_SYS_BITYPES_H | |
35668 | #include <sys/bitypes.h> | |
35669 | #endif | |
35670 | #if HAVE_SYS_SELECT_H | |
35671 | #include <sys/select.h> | |
35672 | #endif | |
35673 | ||
35674 | ||
35675 | ||
35676 | int | |
35677 | main () | |
35678 | { | |
35679 | static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)]; | |
35680 | test_array [0] = 0 | |
35681 | ||
35682 | ; | |
35683 | return 0; | |
35684 | } | |
35685 | _ACEOF | |
35686 | rm -f conftest.$ac_objext | |
35687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35688 | (eval $ac_compile) 2>conftest.er1 | |
35689 | ac_status=$? | |
35690 | grep -v '^ *+' conftest.er1 >conftest.err | |
35691 | rm -f conftest.er1 | |
35692 | cat conftest.err >&5 | |
35693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35694 | (exit $ac_status); } && | |
35695 | { ac_try='test -z "$ac_c_werror_flag" | |
35696 | || test ! -s conftest.err' | |
35697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35698 | (eval $ac_try) 2>&5 | |
35699 | ac_status=$? | |
35700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35701 | (exit $ac_status); }; } && | |
35702 | { ac_try='test -s conftest.$ac_objext' | |
35703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35704 | (eval $ac_try) 2>&5 | |
35705 | ac_status=$? | |
35706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35707 | (exit $ac_status); }; }; then | |
35708 | ac_hi=-1 ac_mid=-1 | |
35709 | while :; do | |
35710 | cat >conftest.$ac_ext <<_ACEOF | |
35711 | /* confdefs.h. */ | |
35712 | _ACEOF | |
35713 | cat confdefs.h >>conftest.$ac_ext | |
35714 | cat >>conftest.$ac_ext <<_ACEOF | |
35715 | /* end confdefs.h. */ | |
35716 | ||
35717 | #include <stdio.h> | |
35718 | ||
35719 | /* What a mess.. many systems have added the (now standard) bit types | |
35720 | * in their own ways, so we need to scan a wide variety of headers to | |
35721 | * find them.. | |
35722 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
35723 | */ | |
35724 | #if HAVE_SYS_TYPES_H | |
35725 | #include <sys/types.h> | |
35726 | #endif | |
35727 | #if STDC_HEADERS | |
35728 | #include <stdlib.h> | |
35729 | #include <stddef.h> | |
35730 | #endif | |
35731 | #if HAVE_INTTYPES_H | |
35732 | #include <inttypes.h> | |
35733 | #endif | |
35734 | #if HAVE_SYS_BITYPES_H | |
35735 | #include <sys/bitypes.h> | |
35736 | #endif | |
35737 | #if HAVE_SYS_SELECT_H | |
35738 | #include <sys/select.h> | |
35739 | #endif | |
35740 | ||
35741 | ||
35742 | ||
35743 | int | |
35744 | main () | |
35745 | { | |
35746 | static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)]; | |
35747 | test_array [0] = 0 | |
35748 | ||
35749 | ; | |
35750 | return 0; | |
35751 | } | |
35752 | _ACEOF | |
35753 | rm -f conftest.$ac_objext | |
35754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35755 | (eval $ac_compile) 2>conftest.er1 | |
35756 | ac_status=$? | |
35757 | grep -v '^ *+' conftest.er1 >conftest.err | |
35758 | rm -f conftest.er1 | |
35759 | cat conftest.err >&5 | |
35760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35761 | (exit $ac_status); } && | |
35762 | { ac_try='test -z "$ac_c_werror_flag" | |
35763 | || test ! -s conftest.err' | |
35764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35765 | (eval $ac_try) 2>&5 | |
35766 | ac_status=$? | |
35767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35768 | (exit $ac_status); }; } && | |
35769 | { ac_try='test -s conftest.$ac_objext' | |
35770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35771 | (eval $ac_try) 2>&5 | |
35772 | ac_status=$? | |
35773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35774 | (exit $ac_status); }; }; then | |
35775 | ac_lo=$ac_mid; break | |
35776 | else | |
35777 | echo "$as_me: failed program was:" >&5 | |
35778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35779 | ||
35780 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
35781 | if test $ac_mid -le $ac_hi; then | |
35782 | ac_lo= ac_hi= | |
35783 | break | |
35784 | fi | |
35785 | ac_mid=`expr 2 '*' $ac_mid` | |
35786 | fi | |
35787 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35788 | done | |
35789 | else | |
35790 | echo "$as_me: failed program was:" >&5 | |
35791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35792 | ||
35793 | ac_lo= ac_hi= | |
35794 | fi | |
35795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35796 | fi | |
35797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35798 | # Binary search between lo and hi bounds. | |
35799 | while test "x$ac_lo" != "x$ac_hi"; do | |
35800 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
35801 | cat >conftest.$ac_ext <<_ACEOF | |
35802 | /* confdefs.h. */ | |
35803 | _ACEOF | |
35804 | cat confdefs.h >>conftest.$ac_ext | |
35805 | cat >>conftest.$ac_ext <<_ACEOF | |
35806 | /* end confdefs.h. */ | |
35807 | ||
35808 | #include <stdio.h> | |
35809 | ||
35810 | /* What a mess.. many systems have added the (now standard) bit types | |
35811 | * in their own ways, so we need to scan a wide variety of headers to | |
35812 | * find them.. | |
35813 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
35814 | */ | |
35815 | #if HAVE_SYS_TYPES_H | |
35816 | #include <sys/types.h> | |
35817 | #endif | |
35818 | #if STDC_HEADERS | |
35819 | #include <stdlib.h> | |
35820 | #include <stddef.h> | |
35821 | #endif | |
35822 | #if HAVE_INTTYPES_H | |
35823 | #include <inttypes.h> | |
35824 | #endif | |
35825 | #if HAVE_SYS_BITYPES_H | |
35826 | #include <sys/bitypes.h> | |
35827 | #endif | |
35828 | #if HAVE_SYS_SELECT_H | |
35829 | #include <sys/select.h> | |
35830 | #endif | |
35831 | ||
35832 | ||
35833 | ||
35834 | int | |
35835 | main () | |
35836 | { | |
35837 | static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)]; | |
35838 | test_array [0] = 0 | |
35839 | ||
35840 | ; | |
35841 | return 0; | |
35842 | } | |
35843 | _ACEOF | |
35844 | rm -f conftest.$ac_objext | |
35845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
35846 | (eval $ac_compile) 2>conftest.er1 | |
35847 | ac_status=$? | |
35848 | grep -v '^ *+' conftest.er1 >conftest.err | |
35849 | rm -f conftest.er1 | |
35850 | cat conftest.err >&5 | |
35851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35852 | (exit $ac_status); } && | |
35853 | { ac_try='test -z "$ac_c_werror_flag" | |
35854 | || test ! -s conftest.err' | |
35855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35856 | (eval $ac_try) 2>&5 | |
35857 | ac_status=$? | |
35858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35859 | (exit $ac_status); }; } && | |
35860 | { ac_try='test -s conftest.$ac_objext' | |
35861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35862 | (eval $ac_try) 2>&5 | |
35863 | ac_status=$? | |
35864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35865 | (exit $ac_status); }; }; then | |
35866 | ac_hi=$ac_mid | |
35867 | else | |
35868 | echo "$as_me: failed program was:" >&5 | |
35869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35870 | ||
35871 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
35872 | fi | |
35873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35874 | done | |
35875 | case $ac_lo in | |
35876 | ?*) ac_cv_sizeof___int64=$ac_lo;; | |
35877 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77 | |
35878 | See \`config.log' for more details." >&5 | |
35879 | echo "$as_me: error: cannot compute sizeof (__int64), 77 | |
35880 | See \`config.log' for more details." >&2;} | |
35881 | { (exit 1); exit 1; }; } ;; | |
35882 | esac | |
35883 | else | |
35884 | if test "$cross_compiling" = yes; then | |
35885 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
35886 | See \`config.log' for more details." >&5 | |
35887 | echo "$as_me: error: cannot run test program while cross compiling | |
35888 | See \`config.log' for more details." >&2;} | |
35889 | { (exit 1); exit 1; }; } | |
35890 | else | |
35891 | cat >conftest.$ac_ext <<_ACEOF | |
35892 | /* confdefs.h. */ | |
35893 | _ACEOF | |
35894 | cat confdefs.h >>conftest.$ac_ext | |
35895 | cat >>conftest.$ac_ext <<_ACEOF | |
35896 | /* end confdefs.h. */ | |
35897 | ||
35898 | #include <stdio.h> | |
35899 | ||
35900 | /* What a mess.. many systems have added the (now standard) bit types | |
35901 | * in their own ways, so we need to scan a wide variety of headers to | |
35902 | * find them.. | |
35903 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
35904 | */ | |
35905 | #if HAVE_SYS_TYPES_H | |
35906 | #include <sys/types.h> | |
35907 | #endif | |
35908 | #if STDC_HEADERS | |
35909 | #include <stdlib.h> | |
35910 | #include <stddef.h> | |
35911 | #endif | |
35912 | #if HAVE_INTTYPES_H | |
35913 | #include <inttypes.h> | |
35914 | #endif | |
35915 | #if HAVE_SYS_BITYPES_H | |
35916 | #include <sys/bitypes.h> | |
35917 | #endif | |
35918 | #if HAVE_SYS_SELECT_H | |
35919 | #include <sys/select.h> | |
35920 | #endif | |
35921 | ||
35922 | ||
35923 | ||
35924 | long longval () { return (long) (sizeof (__int64)); } | |
35925 | unsigned long ulongval () { return (long) (sizeof (__int64)); } | |
35926 | #include <stdio.h> | |
35927 | #include <stdlib.h> | |
35928 | int | |
35929 | main () | |
35930 | { | |
35931 | ||
35932 | FILE *f = fopen ("conftest.val", "w"); | |
35933 | if (! f) | |
35934 | exit (1); | |
35935 | if (((long) (sizeof (__int64))) < 0) | |
35936 | { | |
35937 | long i = longval (); | |
35938 | if (i != ((long) (sizeof (__int64)))) | |
35939 | exit (1); | |
35940 | fprintf (f, "%ld\n", i); | |
35941 | } | |
35942 | else | |
35943 | { | |
35944 | unsigned long i = ulongval (); | |
35945 | if (i != ((long) (sizeof (__int64)))) | |
35946 | exit (1); | |
35947 | fprintf (f, "%lu\n", i); | |
35948 | } | |
35949 | exit (ferror (f) || fclose (f) != 0); | |
35950 | ||
35951 | ; | |
35952 | return 0; | |
35953 | } | |
35954 | _ACEOF | |
35955 | rm -f conftest$ac_exeext | |
35956 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
35957 | (eval $ac_link) 2>&5 | |
35958 | ac_status=$? | |
35959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35960 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
35961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
35962 | (eval $ac_try) 2>&5 | |
35963 | ac_status=$? | |
35964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35965 | (exit $ac_status); }; }; then | |
35966 | ac_cv_sizeof___int64=`cat conftest.val` | |
35967 | else | |
35968 | echo "$as_me: program exited with status $ac_status" >&5 | |
35969 | echo "$as_me: failed program was:" >&5 | |
35970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35971 | ||
35972 | ( exit $ac_status ) | |
35973 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77 | |
35974 | See \`config.log' for more details." >&5 | |
35975 | echo "$as_me: error: cannot compute sizeof (__int64), 77 | |
35976 | See \`config.log' for more details." >&2;} | |
35977 | { (exit 1); exit 1; }; } | |
35978 | fi | |
35979 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
35980 | fi | |
35981 | fi | |
35982 | rm -f conftest.val | |
35983 | else | |
35984 | ac_cv_sizeof___int64=0 | |
35985 | fi | |
35986 | fi | |
35987 | echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5 | |
35988 | echo "${ECHO_T}$ac_cv_sizeof___int64" >&6 | |
35989 | cat >>confdefs.h <<_ACEOF | |
35990 | #define SIZEOF___INT64 $ac_cv_sizeof___int64 | |
35991 | _ACEOF | |
35992 | ||
35993 | ||
35994 | ||
35995 | cat >>confdefs.h <<\_ACEOF | |
35996 | #define HAVE___INT64 1 | |
35997 | _ACEOF | |
35998 | ||
35999 | ||
36000 | fi | |
36001 | ||
36002 | ||
36003 | echo "$as_me:$LINENO: checking for long long" >&5 | |
36004 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
36005 | if test "${ac_cv_type_long_long+set}" = set; then | |
36006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36007 | else | |
36008 | cat >conftest.$ac_ext <<_ACEOF | |
36009 | /* confdefs.h. */ | |
36010 | _ACEOF | |
36011 | cat confdefs.h >>conftest.$ac_ext | |
36012 | cat >>conftest.$ac_ext <<_ACEOF | |
36013 | /* end confdefs.h. */ | |
36014 | ||
36015 | /* What a mess.. many systems have added the (now standard) bit types | |
36016 | * in their own ways, so we need to scan a wide variety of headers to | |
36017 | * find them.. | |
36018 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
36019 | */ | |
36020 | #if HAVE_SYS_TYPES_H | |
36021 | #include <sys/types.h> | |
36022 | #endif | |
36023 | #if STDC_HEADERS | |
36024 | #include <stdlib.h> | |
36025 | #include <stddef.h> | |
36026 | #endif | |
36027 | #if HAVE_INTTYPES_H | |
36028 | #include <inttypes.h> | |
36029 | #endif | |
36030 | #if HAVE_SYS_BITYPES_H | |
36031 | #include <sys/bitypes.h> | |
36032 | #endif | |
36033 | #if HAVE_SYS_SELECT_H | |
36034 | #include <sys/select.h> | |
36035 | #endif | |
36036 | ||
36037 | ||
36038 | int | |
36039 | main () | |
36040 | { | |
36041 | if ((long long *) 0) | |
36042 | return 0; | |
36043 | if (sizeof (long long)) | |
36044 | return 0; | |
36045 | ; | |
36046 | return 0; | |
36047 | } | |
36048 | _ACEOF | |
36049 | rm -f conftest.$ac_objext | |
36050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36051 | (eval $ac_compile) 2>conftest.er1 | |
36052 | ac_status=$? | |
36053 | grep -v '^ *+' conftest.er1 >conftest.err | |
36054 | rm -f conftest.er1 | |
36055 | cat conftest.err >&5 | |
36056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36057 | (exit $ac_status); } && | |
36058 | { ac_try='test -z "$ac_c_werror_flag" | |
36059 | || test ! -s conftest.err' | |
36060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36061 | (eval $ac_try) 2>&5 | |
36062 | ac_status=$? | |
36063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36064 | (exit $ac_status); }; } && | |
36065 | { ac_try='test -s conftest.$ac_objext' | |
36066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36067 | (eval $ac_try) 2>&5 | |
36068 | ac_status=$? | |
36069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36070 | (exit $ac_status); }; }; then | |
36071 | ac_cv_type_long_long=yes | |
36072 | else | |
36073 | echo "$as_me: failed program was:" >&5 | |
36074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36075 | ||
36076 | ac_cv_type_long_long=no | |
36077 | fi | |
36078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36079 | fi | |
36080 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
36081 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
36082 | if test $ac_cv_type_long_long = yes; then | |
36083 | ||
36084 | echo "$as_me:$LINENO: checking for long long" >&5 | |
36085 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
36086 | if test "${ac_cv_type_long_long+set}" = set; then | |
36087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36088 | else | |
36089 | cat >conftest.$ac_ext <<_ACEOF | |
36090 | /* confdefs.h. */ | |
36091 | _ACEOF | |
36092 | cat confdefs.h >>conftest.$ac_ext | |
36093 | cat >>conftest.$ac_ext <<_ACEOF | |
36094 | /* end confdefs.h. */ | |
36095 | ||
36096 | #include <stdio.h> | |
36097 | ||
36098 | /* What a mess.. many systems have added the (now standard) bit types | |
36099 | * in their own ways, so we need to scan a wide variety of headers to | |
36100 | * find them.. | |
36101 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
36102 | */ | |
36103 | #if HAVE_SYS_TYPES_H | |
36104 | #include <sys/types.h> | |
36105 | #endif | |
36106 | #if STDC_HEADERS | |
36107 | #include <stdlib.h> | |
36108 | #include <stddef.h> | |
36109 | #endif | |
36110 | #if HAVE_INTTYPES_H | |
36111 | #include <inttypes.h> | |
36112 | #endif | |
36113 | #if HAVE_SYS_BITYPES_H | |
36114 | #include <sys/bitypes.h> | |
36115 | #endif | |
36116 | #if HAVE_SYS_SELECT_H | |
36117 | #include <sys/select.h> | |
36118 | #endif | |
36119 | ||
36120 | ||
36121 | ||
36122 | int | |
36123 | main () | |
36124 | { | |
36125 | if ((long long *) 0) | |
36126 | return 0; | |
36127 | if (sizeof (long long)) | |
36128 | return 0; | |
36129 | ; | |
36130 | return 0; | |
36131 | } | |
36132 | _ACEOF | |
36133 | rm -f conftest.$ac_objext | |
36134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36135 | (eval $ac_compile) 2>conftest.er1 | |
36136 | ac_status=$? | |
36137 | grep -v '^ *+' conftest.er1 >conftest.err | |
36138 | rm -f conftest.er1 | |
36139 | cat conftest.err >&5 | |
36140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36141 | (exit $ac_status); } && | |
36142 | { ac_try='test -z "$ac_c_werror_flag" | |
36143 | || test ! -s conftest.err' | |
36144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36145 | (eval $ac_try) 2>&5 | |
36146 | ac_status=$? | |
36147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36148 | (exit $ac_status); }; } && | |
36149 | { ac_try='test -s conftest.$ac_objext' | |
36150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36151 | (eval $ac_try) 2>&5 | |
36152 | ac_status=$? | |
36153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36154 | (exit $ac_status); }; }; then | |
36155 | ac_cv_type_long_long=yes | |
36156 | else | |
36157 | echo "$as_me: failed program was:" >&5 | |
36158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36159 | ||
36160 | ac_cv_type_long_long=no | |
36161 | fi | |
36162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36163 | fi | |
36164 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
36165 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
36166 | ||
36167 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
36168 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
36169 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
36170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36171 | else | |
36172 | if test "$ac_cv_type_long_long" = yes; then | |
36173 | # The cast to unsigned long works around a bug in the HP C Compiler | |
36174 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
36175 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
36176 | # This bug is HP SR number 8606223364. | |
36177 | if test "$cross_compiling" = yes; then | |
36178 | # Depending upon the size, compute the lo and hi bounds. | |
36179 | cat >conftest.$ac_ext <<_ACEOF | |
36180 | /* confdefs.h. */ | |
36181 | _ACEOF | |
36182 | cat confdefs.h >>conftest.$ac_ext | |
36183 | cat >>conftest.$ac_ext <<_ACEOF | |
36184 | /* end confdefs.h. */ | |
36185 | ||
36186 | #include <stdio.h> | |
36187 | ||
36188 | /* What a mess.. many systems have added the (now standard) bit types | |
36189 | * in their own ways, so we need to scan a wide variety of headers to | |
36190 | * find them.. | |
36191 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
36192 | */ | |
36193 | #if HAVE_SYS_TYPES_H | |
36194 | #include <sys/types.h> | |
36195 | #endif | |
36196 | #if STDC_HEADERS | |
36197 | #include <stdlib.h> | |
36198 | #include <stddef.h> | |
36199 | #endif | |
36200 | #if HAVE_INTTYPES_H | |
36201 | #include <inttypes.h> | |
36202 | #endif | |
36203 | #if HAVE_SYS_BITYPES_H | |
36204 | #include <sys/bitypes.h> | |
36205 | #endif | |
36206 | #if HAVE_SYS_SELECT_H | |
36207 | #include <sys/select.h> | |
36208 | #endif | |
36209 | ||
36210 | ||
36211 | ||
36212 | int | |
36213 | main () | |
36214 | { | |
36215 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
36216 | test_array [0] = 0 | |
36217 | ||
36218 | ; | |
36219 | return 0; | |
36220 | } | |
36221 | _ACEOF | |
36222 | rm -f conftest.$ac_objext | |
36223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36224 | (eval $ac_compile) 2>conftest.er1 | |
36225 | ac_status=$? | |
36226 | grep -v '^ *+' conftest.er1 >conftest.err | |
36227 | rm -f conftest.er1 | |
36228 | cat conftest.err >&5 | |
36229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36230 | (exit $ac_status); } && | |
36231 | { ac_try='test -z "$ac_c_werror_flag" | |
36232 | || test ! -s conftest.err' | |
36233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36234 | (eval $ac_try) 2>&5 | |
36235 | ac_status=$? | |
36236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36237 | (exit $ac_status); }; } && | |
36238 | { ac_try='test -s conftest.$ac_objext' | |
36239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36240 | (eval $ac_try) 2>&5 | |
36241 | ac_status=$? | |
36242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36243 | (exit $ac_status); }; }; then | |
36244 | ac_lo=0 ac_mid=0 | |
36245 | while :; do | |
36246 | cat >conftest.$ac_ext <<_ACEOF | |
36247 | /* confdefs.h. */ | |
36248 | _ACEOF | |
36249 | cat confdefs.h >>conftest.$ac_ext | |
36250 | cat >>conftest.$ac_ext <<_ACEOF | |
36251 | /* end confdefs.h. */ | |
36252 | ||
36253 | #include <stdio.h> | |
36254 | ||
36255 | /* What a mess.. many systems have added the (now standard) bit types | |
36256 | * in their own ways, so we need to scan a wide variety of headers to | |
36257 | * find them.. | |
36258 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
36259 | */ | |
36260 | #if HAVE_SYS_TYPES_H | |
36261 | #include <sys/types.h> | |
36262 | #endif | |
36263 | #if STDC_HEADERS | |
36264 | #include <stdlib.h> | |
36265 | #include <stddef.h> | |
36266 | #endif | |
36267 | #if HAVE_INTTYPES_H | |
36268 | #include <inttypes.h> | |
36269 | #endif | |
36270 | #if HAVE_SYS_BITYPES_H | |
36271 | #include <sys/bitypes.h> | |
36272 | #endif | |
36273 | #if HAVE_SYS_SELECT_H | |
36274 | #include <sys/select.h> | |
36275 | #endif | |
36276 | ||
36277 | ||
36278 | ||
36279 | int | |
36280 | main () | |
36281 | { | |
36282 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
36283 | test_array [0] = 0 | |
36284 | ||
36285 | ; | |
36286 | return 0; | |
36287 | } | |
36288 | _ACEOF | |
36289 | rm -f conftest.$ac_objext | |
36290 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36291 | (eval $ac_compile) 2>conftest.er1 | |
36292 | ac_status=$? | |
36293 | grep -v '^ *+' conftest.er1 >conftest.err | |
36294 | rm -f conftest.er1 | |
36295 | cat conftest.err >&5 | |
36296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36297 | (exit $ac_status); } && | |
36298 | { ac_try='test -z "$ac_c_werror_flag" | |
36299 | || test ! -s conftest.err' | |
36300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36301 | (eval $ac_try) 2>&5 | |
36302 | ac_status=$? | |
36303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36304 | (exit $ac_status); }; } && | |
36305 | { ac_try='test -s conftest.$ac_objext' | |
36306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36307 | (eval $ac_try) 2>&5 | |
36308 | ac_status=$? | |
36309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36310 | (exit $ac_status); }; }; then | |
36311 | ac_hi=$ac_mid; break | |
36312 | else | |
36313 | echo "$as_me: failed program was:" >&5 | |
36314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36315 | ||
36316 | ac_lo=`expr $ac_mid + 1` | |
36317 | if test $ac_lo -le $ac_mid; then | |
36318 | ac_lo= ac_hi= | |
36319 | break | |
36320 | fi | |
36321 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
36322 | fi | |
36323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36324 | done | |
36325 | else | |
36326 | echo "$as_me: failed program was:" >&5 | |
36327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36328 | ||
36329 | cat >conftest.$ac_ext <<_ACEOF | |
36330 | /* confdefs.h. */ | |
36331 | _ACEOF | |
36332 | cat confdefs.h >>conftest.$ac_ext | |
36333 | cat >>conftest.$ac_ext <<_ACEOF | |
36334 | /* end confdefs.h. */ | |
36335 | ||
36336 | #include <stdio.h> | |
36337 | ||
36338 | /* What a mess.. many systems have added the (now standard) bit types | |
36339 | * in their own ways, so we need to scan a wide variety of headers to | |
36340 | * find them.. | |
36341 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
36342 | */ | |
36343 | #if HAVE_SYS_TYPES_H | |
36344 | #include <sys/types.h> | |
36345 | #endif | |
36346 | #if STDC_HEADERS | |
36347 | #include <stdlib.h> | |
36348 | #include <stddef.h> | |
36349 | #endif | |
36350 | #if HAVE_INTTYPES_H | |
36351 | #include <inttypes.h> | |
36352 | #endif | |
36353 | #if HAVE_SYS_BITYPES_H | |
36354 | #include <sys/bitypes.h> | |
36355 | #endif | |
36356 | #if HAVE_SYS_SELECT_H | |
36357 | #include <sys/select.h> | |
36358 | #endif | |
36359 | ||
36360 | ||
36361 | ||
36362 | int | |
36363 | main () | |
36364 | { | |
36365 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
36366 | test_array [0] = 0 | |
36367 | ||
36368 | ; | |
36369 | return 0; | |
36370 | } | |
36371 | _ACEOF | |
36372 | rm -f conftest.$ac_objext | |
36373 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36374 | (eval $ac_compile) 2>conftest.er1 | |
36375 | ac_status=$? | |
36376 | grep -v '^ *+' conftest.er1 >conftest.err | |
36377 | rm -f conftest.er1 | |
36378 | cat conftest.err >&5 | |
36379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36380 | (exit $ac_status); } && | |
36381 | { ac_try='test -z "$ac_c_werror_flag" | |
36382 | || test ! -s conftest.err' | |
36383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36384 | (eval $ac_try) 2>&5 | |
36385 | ac_status=$? | |
36386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36387 | (exit $ac_status); }; } && | |
36388 | { ac_try='test -s conftest.$ac_objext' | |
36389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36390 | (eval $ac_try) 2>&5 | |
36391 | ac_status=$? | |
36392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36393 | (exit $ac_status); }; }; then | |
36394 | ac_hi=-1 ac_mid=-1 | |
36395 | while :; do | |
36396 | cat >conftest.$ac_ext <<_ACEOF | |
36397 | /* confdefs.h. */ | |
36398 | _ACEOF | |
36399 | cat confdefs.h >>conftest.$ac_ext | |
36400 | cat >>conftest.$ac_ext <<_ACEOF | |
36401 | /* end confdefs.h. */ | |
36402 | ||
36403 | #include <stdio.h> | |
36404 | ||
36405 | /* What a mess.. many systems have added the (now standard) bit types | |
36406 | * in their own ways, so we need to scan a wide variety of headers to | |
36407 | * find them.. | |
36408 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
36409 | */ | |
36410 | #if HAVE_SYS_TYPES_H | |
36411 | #include <sys/types.h> | |
36412 | #endif | |
36413 | #if STDC_HEADERS | |
36414 | #include <stdlib.h> | |
36415 | #include <stddef.h> | |
36416 | #endif | |
36417 | #if HAVE_INTTYPES_H | |
36418 | #include <inttypes.h> | |
36419 | #endif | |
36420 | #if HAVE_SYS_BITYPES_H | |
36421 | #include <sys/bitypes.h> | |
36422 | #endif | |
36423 | #if HAVE_SYS_SELECT_H | |
36424 | #include <sys/select.h> | |
36425 | #endif | |
36426 | ||
36427 | ||
36428 | ||
36429 | int | |
36430 | main () | |
36431 | { | |
36432 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
36433 | test_array [0] = 0 | |
36434 | ||
36435 | ; | |
36436 | return 0; | |
36437 | } | |
36438 | _ACEOF | |
36439 | rm -f conftest.$ac_objext | |
36440 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36441 | (eval $ac_compile) 2>conftest.er1 | |
36442 | ac_status=$? | |
36443 | grep -v '^ *+' conftest.er1 >conftest.err | |
36444 | rm -f conftest.er1 | |
36445 | cat conftest.err >&5 | |
36446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36447 | (exit $ac_status); } && | |
36448 | { ac_try='test -z "$ac_c_werror_flag" | |
36449 | || test ! -s conftest.err' | |
36450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36451 | (eval $ac_try) 2>&5 | |
36452 | ac_status=$? | |
36453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36454 | (exit $ac_status); }; } && | |
36455 | { ac_try='test -s conftest.$ac_objext' | |
36456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36457 | (eval $ac_try) 2>&5 | |
36458 | ac_status=$? | |
36459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36460 | (exit $ac_status); }; }; then | |
36461 | ac_lo=$ac_mid; break | |
36462 | else | |
36463 | echo "$as_me: failed program was:" >&5 | |
36464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36465 | ||
36466 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
36467 | if test $ac_mid -le $ac_hi; then | |
36468 | ac_lo= ac_hi= | |
36469 | break | |
36470 | fi | |
36471 | ac_mid=`expr 2 '*' $ac_mid` | |
36472 | fi | |
36473 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36474 | done | |
36475 | else | |
36476 | echo "$as_me: failed program was:" >&5 | |
36477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36478 | ||
36479 | ac_lo= ac_hi= | |
36480 | fi | |
36481 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36482 | fi | |
36483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36484 | # Binary search between lo and hi bounds. | |
36485 | while test "x$ac_lo" != "x$ac_hi"; do | |
36486 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
36487 | cat >conftest.$ac_ext <<_ACEOF | |
36488 | /* confdefs.h. */ | |
36489 | _ACEOF | |
36490 | cat confdefs.h >>conftest.$ac_ext | |
36491 | cat >>conftest.$ac_ext <<_ACEOF | |
36492 | /* end confdefs.h. */ | |
36493 | ||
36494 | #include <stdio.h> | |
36495 | ||
36496 | /* What a mess.. many systems have added the (now standard) bit types | |
36497 | * in their own ways, so we need to scan a wide variety of headers to | |
36498 | * find them.. | |
36499 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
36500 | */ | |
36501 | #if HAVE_SYS_TYPES_H | |
36502 | #include <sys/types.h> | |
36503 | #endif | |
36504 | #if STDC_HEADERS | |
36505 | #include <stdlib.h> | |
36506 | #include <stddef.h> | |
36507 | #endif | |
36508 | #if HAVE_INTTYPES_H | |
36509 | #include <inttypes.h> | |
36510 | #endif | |
36511 | #if HAVE_SYS_BITYPES_H | |
36512 | #include <sys/bitypes.h> | |
36513 | #endif | |
36514 | #if HAVE_SYS_SELECT_H | |
36515 | #include <sys/select.h> | |
36516 | #endif | |
36517 | ||
36518 | ||
36519 | ||
36520 | int | |
36521 | main () | |
36522 | { | |
36523 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
36524 | test_array [0] = 0 | |
36525 | ||
36526 | ; | |
36527 | return 0; | |
36528 | } | |
36529 | _ACEOF | |
36530 | rm -f conftest.$ac_objext | |
36531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36532 | (eval $ac_compile) 2>conftest.er1 | |
36533 | ac_status=$? | |
36534 | grep -v '^ *+' conftest.er1 >conftest.err | |
36535 | rm -f conftest.er1 | |
36536 | cat conftest.err >&5 | |
36537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36538 | (exit $ac_status); } && | |
36539 | { ac_try='test -z "$ac_c_werror_flag" | |
36540 | || test ! -s conftest.err' | |
36541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36542 | (eval $ac_try) 2>&5 | |
36543 | ac_status=$? | |
36544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36545 | (exit $ac_status); }; } && | |
36546 | { ac_try='test -s conftest.$ac_objext' | |
36547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36548 | (eval $ac_try) 2>&5 | |
36549 | ac_status=$? | |
36550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36551 | (exit $ac_status); }; }; then | |
36552 | ac_hi=$ac_mid | |
36553 | else | |
36554 | echo "$as_me: failed program was:" >&5 | |
36555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36556 | ||
36557 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
36558 | fi | |
36559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36560 | done | |
36561 | case $ac_lo in | |
36562 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
36563 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
36564 | See \`config.log' for more details." >&5 | |
36565 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
36566 | See \`config.log' for more details." >&2;} | |
36567 | { (exit 1); exit 1; }; } ;; | |
36568 | esac | |
36569 | else | |
36570 | if test "$cross_compiling" = yes; then | |
36571 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
36572 | See \`config.log' for more details." >&5 | |
36573 | echo "$as_me: error: cannot run test program while cross compiling | |
36574 | See \`config.log' for more details." >&2;} | |
36575 | { (exit 1); exit 1; }; } | |
36576 | else | |
36577 | cat >conftest.$ac_ext <<_ACEOF | |
36578 | /* confdefs.h. */ | |
36579 | _ACEOF | |
36580 | cat confdefs.h >>conftest.$ac_ext | |
36581 | cat >>conftest.$ac_ext <<_ACEOF | |
36582 | /* end confdefs.h. */ | |
36583 | ||
36584 | #include <stdio.h> | |
36585 | ||
36586 | /* What a mess.. many systems have added the (now standard) bit types | |
36587 | * in their own ways, so we need to scan a wide variety of headers to | |
36588 | * find them.. | |
36589 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
36590 | */ | |
36591 | #if HAVE_SYS_TYPES_H | |
36592 | #include <sys/types.h> | |
36593 | #endif | |
36594 | #if STDC_HEADERS | |
36595 | #include <stdlib.h> | |
36596 | #include <stddef.h> | |
36597 | #endif | |
36598 | #if HAVE_INTTYPES_H | |
36599 | #include <inttypes.h> | |
36600 | #endif | |
36601 | #if HAVE_SYS_BITYPES_H | |
36602 | #include <sys/bitypes.h> | |
36603 | #endif | |
36604 | #if HAVE_SYS_SELECT_H | |
36605 | #include <sys/select.h> | |
36606 | #endif | |
36607 | ||
36608 | ||
36609 | ||
36610 | long longval () { return (long) (sizeof (long long)); } | |
36611 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
36612 | #include <stdio.h> | |
36613 | #include <stdlib.h> | |
36614 | int | |
36615 | main () | |
36616 | { | |
36617 | ||
36618 | FILE *f = fopen ("conftest.val", "w"); | |
36619 | if (! f) | |
36620 | exit (1); | |
36621 | if (((long) (sizeof (long long))) < 0) | |
36622 | { | |
36623 | long i = longval (); | |
36624 | if (i != ((long) (sizeof (long long)))) | |
36625 | exit (1); | |
36626 | fprintf (f, "%ld\n", i); | |
36627 | } | |
36628 | else | |
36629 | { | |
36630 | unsigned long i = ulongval (); | |
36631 | if (i != ((long) (sizeof (long long)))) | |
36632 | exit (1); | |
36633 | fprintf (f, "%lu\n", i); | |
36634 | } | |
36635 | exit (ferror (f) || fclose (f) != 0); | |
36636 | ||
36637 | ; | |
36638 | return 0; | |
36639 | } | |
36640 | _ACEOF | |
36641 | rm -f conftest$ac_exeext | |
36642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
36643 | (eval $ac_link) 2>&5 | |
36644 | ac_status=$? | |
36645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36646 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
36647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36648 | (eval $ac_try) 2>&5 | |
36649 | ac_status=$? | |
36650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36651 | (exit $ac_status); }; }; then | |
36652 | ac_cv_sizeof_long_long=`cat conftest.val` | |
36653 | else | |
36654 | echo "$as_me: program exited with status $ac_status" >&5 | |
36655 | echo "$as_me: failed program was:" >&5 | |
36656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36657 | ||
36658 | ( exit $ac_status ) | |
36659 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
36660 | See \`config.log' for more details." >&5 | |
36661 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
36662 | See \`config.log' for more details." >&2;} | |
36663 | { (exit 1); exit 1; }; } | |
36664 | fi | |
36665 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
36666 | fi | |
36667 | fi | |
36668 | rm -f conftest.val | |
36669 | else | |
36670 | ac_cv_sizeof_long_long=0 | |
36671 | fi | |
36672 | fi | |
36673 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
36674 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
36675 | cat >>confdefs.h <<_ACEOF | |
36676 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
36677 | _ACEOF | |
36678 | ||
36679 | ||
36680 | ||
36681 | cat >>confdefs.h <<\_ACEOF | |
36682 | #define HAVE_LONG_LONG 1 | |
36683 | _ACEOF | |
36684 | ||
36685 | ||
36686 | fi | |
36687 | ||
36688 | ||
36689 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 | |
36690 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | |
36691 | if test "${ac_cv_type_u_int64_t+set}" = set; then | |
36692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36693 | else | |
36694 | cat >conftest.$ac_ext <<_ACEOF | |
36695 | /* confdefs.h. */ | |
36696 | _ACEOF | |
36697 | cat confdefs.h >>conftest.$ac_ext | |
36698 | cat >>conftest.$ac_ext <<_ACEOF | |
36699 | /* end confdefs.h. */ | |
36700 | ||
36701 | /* What a mess.. many systems have added the (now standard) bit types | |
36702 | * in their own ways, so we need to scan a wide variety of headers to | |
36703 | * find them.. | |
36704 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
36705 | */ | |
36706 | #if HAVE_SYS_TYPES_H | |
36707 | #include <sys/types.h> | |
36708 | #endif | |
36709 | #if STDC_HEADERS | |
36710 | #include <stdlib.h> | |
36711 | #include <stddef.h> | |
36712 | #endif | |
36713 | #if HAVE_INTTYPES_H | |
36714 | #include <inttypes.h> | |
36715 | #endif | |
36716 | #if HAVE_SYS_BITYPES_H | |
36717 | #include <sys/bitypes.h> | |
36718 | #endif | |
36719 | #if HAVE_SYS_SELECT_H | |
36720 | #include <sys/select.h> | |
36721 | #endif | |
36722 | ||
36723 | ||
36724 | int | |
36725 | main () | |
36726 | { | |
36727 | if ((u_int64_t *) 0) | |
36728 | return 0; | |
36729 | if (sizeof (u_int64_t)) | |
36730 | return 0; | |
36731 | ; | |
36732 | return 0; | |
36733 | } | |
36734 | _ACEOF | |
36735 | rm -f conftest.$ac_objext | |
36736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36737 | (eval $ac_compile) 2>conftest.er1 | |
36738 | ac_status=$? | |
36739 | grep -v '^ *+' conftest.er1 >conftest.err | |
36740 | rm -f conftest.er1 | |
36741 | cat conftest.err >&5 | |
36742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36743 | (exit $ac_status); } && | |
36744 | { ac_try='test -z "$ac_c_werror_flag" | |
36745 | || test ! -s conftest.err' | |
36746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36747 | (eval $ac_try) 2>&5 | |
36748 | ac_status=$? | |
36749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36750 | (exit $ac_status); }; } && | |
36751 | { ac_try='test -s conftest.$ac_objext' | |
36752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36753 | (eval $ac_try) 2>&5 | |
36754 | ac_status=$? | |
36755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36756 | (exit $ac_status); }; }; then | |
36757 | ac_cv_type_u_int64_t=yes | |
36758 | else | |
36759 | echo "$as_me: failed program was:" >&5 | |
36760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36761 | ||
36762 | ac_cv_type_u_int64_t=no | |
36763 | fi | |
36764 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36765 | fi | |
36766 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 | |
36767 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | |
36768 | if test $ac_cv_type_u_int64_t = yes; then | |
36769 | ||
36770 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 | |
36771 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | |
36772 | if test "${ac_cv_type_u_int64_t+set}" = set; then | |
36773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36774 | else | |
36775 | cat >conftest.$ac_ext <<_ACEOF | |
36776 | /* confdefs.h. */ | |
36777 | _ACEOF | |
36778 | cat confdefs.h >>conftest.$ac_ext | |
36779 | cat >>conftest.$ac_ext <<_ACEOF | |
36780 | /* end confdefs.h. */ | |
36781 | ||
36782 | #include <stdio.h> | |
36783 | ||
36784 | /* What a mess.. many systems have added the (now standard) bit types | |
36785 | * in their own ways, so we need to scan a wide variety of headers to | |
36786 | * find them.. | |
36787 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
36788 | */ | |
36789 | #if HAVE_SYS_TYPES_H | |
36790 | #include <sys/types.h> | |
36791 | #endif | |
36792 | #if STDC_HEADERS | |
36793 | #include <stdlib.h> | |
36794 | #include <stddef.h> | |
36795 | #endif | |
36796 | #if HAVE_INTTYPES_H | |
36797 | #include <inttypes.h> | |
36798 | #endif | |
36799 | #if HAVE_SYS_BITYPES_H | |
36800 | #include <sys/bitypes.h> | |
36801 | #endif | |
36802 | #if HAVE_SYS_SELECT_H | |
36803 | #include <sys/select.h> | |
36804 | #endif | |
36805 | ||
36806 | ||
36807 | ||
36808 | int | |
36809 | main () | |
36810 | { | |
36811 | if ((u_int64_t *) 0) | |
36812 | return 0; | |
36813 | if (sizeof (u_int64_t)) | |
36814 | return 0; | |
36815 | ; | |
36816 | return 0; | |
36817 | } | |
36818 | _ACEOF | |
36819 | rm -f conftest.$ac_objext | |
36820 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36821 | (eval $ac_compile) 2>conftest.er1 | |
36822 | ac_status=$? | |
36823 | grep -v '^ *+' conftest.er1 >conftest.err | |
36824 | rm -f conftest.er1 | |
36825 | cat conftest.err >&5 | |
36826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36827 | (exit $ac_status); } && | |
36828 | { ac_try='test -z "$ac_c_werror_flag" | |
36829 | || test ! -s conftest.err' | |
36830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36831 | (eval $ac_try) 2>&5 | |
36832 | ac_status=$? | |
36833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36834 | (exit $ac_status); }; } && | |
36835 | { ac_try='test -s conftest.$ac_objext' | |
36836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36837 | (eval $ac_try) 2>&5 | |
36838 | ac_status=$? | |
36839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36840 | (exit $ac_status); }; }; then | |
36841 | ac_cv_type_u_int64_t=yes | |
36842 | else | |
36843 | echo "$as_me: failed program was:" >&5 | |
36844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36845 | ||
36846 | ac_cv_type_u_int64_t=no | |
36847 | fi | |
36848 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
36849 | fi | |
36850 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 | |
36851 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | |
36852 | ||
36853 | echo "$as_me:$LINENO: checking size of u_int64_t" >&5 | |
36854 | echo $ECHO_N "checking size of u_int64_t... $ECHO_C" >&6 | |
36855 | if test "${ac_cv_sizeof_u_int64_t+set}" = set; then | |
36856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36857 | else | |
36858 | if test "$ac_cv_type_u_int64_t" = yes; then | |
36859 | # The cast to unsigned long works around a bug in the HP C Compiler | |
36860 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
36861 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
36862 | # This bug is HP SR number 8606223364. | |
36863 | if test "$cross_compiling" = yes; then | |
36864 | # Depending upon the size, compute the lo and hi bounds. | |
36865 | cat >conftest.$ac_ext <<_ACEOF | |
36866 | /* confdefs.h. */ | |
36867 | _ACEOF | |
36868 | cat confdefs.h >>conftest.$ac_ext | |
36869 | cat >>conftest.$ac_ext <<_ACEOF | |
36870 | /* end confdefs.h. */ | |
36871 | ||
36872 | #include <stdio.h> | |
36873 | ||
36874 | /* What a mess.. many systems have added the (now standard) bit types | |
36875 | * in their own ways, so we need to scan a wide variety of headers to | |
36876 | * find them.. | |
36877 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
36878 | */ | |
36879 | #if HAVE_SYS_TYPES_H | |
36880 | #include <sys/types.h> | |
36881 | #endif | |
36882 | #if STDC_HEADERS | |
36883 | #include <stdlib.h> | |
36884 | #include <stddef.h> | |
36885 | #endif | |
36886 | #if HAVE_INTTYPES_H | |
36887 | #include <inttypes.h> | |
36888 | #endif | |
36889 | #if HAVE_SYS_BITYPES_H | |
36890 | #include <sys/bitypes.h> | |
36891 | #endif | |
36892 | #if HAVE_SYS_SELECT_H | |
36893 | #include <sys/select.h> | |
36894 | #endif | |
36895 | ||
36896 | ||
36897 | ||
36898 | int | |
36899 | main () | |
36900 | { | |
36901 | static int test_array [1 - 2 * !(((long) (sizeof (u_int64_t))) >= 0)]; | |
36902 | test_array [0] = 0 | |
36903 | ||
36904 | ; | |
36905 | return 0; | |
36906 | } | |
36907 | _ACEOF | |
36908 | rm -f conftest.$ac_objext | |
36909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36910 | (eval $ac_compile) 2>conftest.er1 | |
36911 | ac_status=$? | |
36912 | grep -v '^ *+' conftest.er1 >conftest.err | |
36913 | rm -f conftest.er1 | |
36914 | cat conftest.err >&5 | |
36915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36916 | (exit $ac_status); } && | |
36917 | { ac_try='test -z "$ac_c_werror_flag" | |
36918 | || test ! -s conftest.err' | |
36919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36920 | (eval $ac_try) 2>&5 | |
36921 | ac_status=$? | |
36922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36923 | (exit $ac_status); }; } && | |
36924 | { ac_try='test -s conftest.$ac_objext' | |
36925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36926 | (eval $ac_try) 2>&5 | |
36927 | ac_status=$? | |
36928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36929 | (exit $ac_status); }; }; then | |
36930 | ac_lo=0 ac_mid=0 | |
36931 | while :; do | |
36932 | cat >conftest.$ac_ext <<_ACEOF | |
36933 | /* confdefs.h. */ | |
36934 | _ACEOF | |
36935 | cat confdefs.h >>conftest.$ac_ext | |
36936 | cat >>conftest.$ac_ext <<_ACEOF | |
36937 | /* end confdefs.h. */ | |
36938 | ||
36939 | #include <stdio.h> | |
36940 | ||
36941 | /* What a mess.. many systems have added the (now standard) bit types | |
36942 | * in their own ways, so we need to scan a wide variety of headers to | |
36943 | * find them.. | |
36944 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
36945 | */ | |
36946 | #if HAVE_SYS_TYPES_H | |
36947 | #include <sys/types.h> | |
36948 | #endif | |
36949 | #if STDC_HEADERS | |
36950 | #include <stdlib.h> | |
36951 | #include <stddef.h> | |
36952 | #endif | |
36953 | #if HAVE_INTTYPES_H | |
36954 | #include <inttypes.h> | |
36955 | #endif | |
36956 | #if HAVE_SYS_BITYPES_H | |
36957 | #include <sys/bitypes.h> | |
36958 | #endif | |
36959 | #if HAVE_SYS_SELECT_H | |
36960 | #include <sys/select.h> | |
36961 | #endif | |
36962 | ||
33f5f8b9 | 36963 | |
ca732765 | 36964 | |
36965 | int | |
36966 | main () | |
36967 | { | |
36968 | static int test_array [1 - 2 * !(((long) (sizeof (u_int64_t))) <= $ac_mid)]; | |
36969 | test_array [0] = 0 | |
33f5f8b9 | 36970 | |
36971 | ; | |
36972 | return 0; | |
77d6bd88 | 36973 | } |
33f5f8b9 | 36974 | _ACEOF |
ca732765 | 36975 | rm -f conftest.$ac_objext |
36976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
36977 | (eval $ac_compile) 2>conftest.er1 | |
33f5f8b9 | 36978 | ac_status=$? |
ca732765 | 36979 | grep -v '^ *+' conftest.er1 >conftest.err |
36980 | rm -f conftest.er1 | |
36981 | cat conftest.err >&5 | |
33f5f8b9 | 36982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
ca732765 | 36983 | (exit $ac_status); } && |
36984 | { ac_try='test -z "$ac_c_werror_flag" | |
36985 | || test ! -s conftest.err' | |
36986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
36987 | (eval $ac_try) 2>&5 | |
36988 | ac_status=$? | |
36989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36990 | (exit $ac_status); }; } && | |
36991 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 36992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36993 | (eval $ac_try) 2>&5 | |
36994 | ac_status=$? | |
36995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36996 | (exit $ac_status); }; }; then | |
ca732765 | 36997 | ac_hi=$ac_mid; break |
33f5f8b9 | 36998 | else |
ca732765 | 36999 | echo "$as_me: failed program was:" >&5 |
ad21602a | 37000 | sed 's/^/| /' conftest.$ac_ext >&5 |
37001 | ||
ca732765 | 37002 | ac_lo=`expr $ac_mid + 1` |
37003 | if test $ac_lo -le $ac_mid; then | |
37004 | ac_lo= ac_hi= | |
37005 | break | |
37006 | fi | |
37007 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
33f5f8b9 | 37008 | fi |
ca732765 | 37009 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
37010 | done | |
77d6bd88 | 37011 | else |
ca732765 | 37012 | echo "$as_me: failed program was:" >&5 |
37013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
77d6bd88 | 37014 | |
ca732765 | 37015 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 37016 | /* confdefs.h. */ |
37017 | _ACEOF | |
37018 | cat confdefs.h >>conftest.$ac_ext | |
37019 | cat >>conftest.$ac_ext <<_ACEOF | |
37020 | /* end confdefs.h. */ | |
6a771064 | 37021 | |
ca732765 | 37022 | #include <stdio.h> |
37023 | ||
33f5f8b9 | 37024 | /* What a mess.. many systems have added the (now standard) bit types |
37025 | * in their own ways, so we need to scan a wide variety of headers to | |
37026 | * find them.. | |
37027 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
37028 | */ | |
37029 | #if HAVE_SYS_TYPES_H | |
37030 | #include <sys/types.h> | |
37031 | #endif | |
f0902a4b | 37032 | #if STDC_HEADERS |
37033 | #include <stdlib.h> | |
37034 | #include <stddef.h> | |
37035 | #endif | |
736ff61a | 37036 | #if HAVE_INTTYPES_H |
37037 | #include <inttypes.h> | |
6473554b | 37038 | #endif |
6a771064 | 37039 | #if HAVE_SYS_BITYPES_H |
37040 | #include <sys/bitypes.h> | |
37041 | #endif | |
11e71ab8 | 37042 | #if HAVE_SYS_SELECT_H |
37043 | #include <sys/select.h> | |
37044 | #endif | |
33f5f8b9 | 37045 | |
37046 | ||
ca732765 | 37047 | |
33f5f8b9 | 37048 | int |
37049 | main () | |
6473554b | 37050 | { |
ca732765 | 37051 | static int test_array [1 - 2 * !(((long) (sizeof (u_int64_t))) < 0)]; |
37052 | test_array [0] = 0 | |
37053 | ||
33f5f8b9 | 37054 | ; |
37055 | return 0; | |
6473554b | 37056 | } |
33f5f8b9 | 37057 | _ACEOF |
37058 | rm -f conftest.$ac_objext | |
37059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 37060 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 37061 | ac_status=$? |
af3004ff | 37062 | grep -v '^ *+' conftest.er1 >conftest.err |
37063 | rm -f conftest.er1 | |
37064 | cat conftest.err >&5 | |
33f5f8b9 | 37065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37066 | (exit $ac_status); } && | |
6263d81f | 37067 | { ac_try='test -z "$ac_c_werror_flag" |
37068 | || test ! -s conftest.err' | |
af3004ff | 37069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37070 | (eval $ac_try) 2>&5 | |
37071 | ac_status=$? | |
37072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37073 | (exit $ac_status); }; } && | |
37074 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 37075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37076 | (eval $ac_try) 2>&5 | |
37077 | ac_status=$? | |
37078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37079 | (exit $ac_status); }; }; then | |
ca732765 | 37080 | ac_hi=-1 ac_mid=-1 |
37081 | while :; do | |
37082 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 37083 | /* confdefs.h. */ |
37084 | _ACEOF | |
37085 | cat confdefs.h >>conftest.$ac_ext | |
37086 | cat >>conftest.$ac_ext <<_ACEOF | |
37087 | /* end confdefs.h. */ | |
6a771064 | 37088 | |
ca732765 | 37089 | #include <stdio.h> |
37090 | ||
33f5f8b9 | 37091 | /* What a mess.. many systems have added the (now standard) bit types |
37092 | * in their own ways, so we need to scan a wide variety of headers to | |
37093 | * find them.. | |
37094 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
37095 | */ | |
37096 | #if HAVE_SYS_TYPES_H | |
37097 | #include <sys/types.h> | |
37098 | #endif | |
f0902a4b | 37099 | #if STDC_HEADERS |
37100 | #include <stdlib.h> | |
37101 | #include <stddef.h> | |
37102 | #endif | |
736ff61a | 37103 | #if HAVE_INTTYPES_H |
37104 | #include <inttypes.h> | |
6473554b | 37105 | #endif |
6a771064 | 37106 | #if HAVE_SYS_BITYPES_H |
37107 | #include <sys/bitypes.h> | |
37108 | #endif | |
11e71ab8 | 37109 | #if HAVE_SYS_SELECT_H |
37110 | #include <sys/select.h> | |
37111 | #endif | |
33f5f8b9 | 37112 | |
37113 | ||
ca732765 | 37114 | |
33f5f8b9 | 37115 | int |
37116 | main () | |
6473554b | 37117 | { |
ca732765 | 37118 | static int test_array [1 - 2 * !(((long) (sizeof (u_int64_t))) >= $ac_mid)]; |
37119 | test_array [0] = 0 | |
37120 | ||
33f5f8b9 | 37121 | ; |
37122 | return 0; | |
6473554b | 37123 | } |
33f5f8b9 | 37124 | _ACEOF |
37125 | rm -f conftest.$ac_objext | |
37126 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 37127 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 37128 | ac_status=$? |
af3004ff | 37129 | grep -v '^ *+' conftest.er1 >conftest.err |
37130 | rm -f conftest.er1 | |
37131 | cat conftest.err >&5 | |
33f5f8b9 | 37132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37133 | (exit $ac_status); } && | |
6263d81f | 37134 | { ac_try='test -z "$ac_c_werror_flag" |
37135 | || test ! -s conftest.err' | |
af3004ff | 37136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37137 | (eval $ac_try) 2>&5 | |
37138 | ac_status=$? | |
37139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37140 | (exit $ac_status); }; } && | |
37141 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 37142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37143 | (eval $ac_try) 2>&5 | |
37144 | ac_status=$? | |
37145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37146 | (exit $ac_status); }; }; then | |
ca732765 | 37147 | ac_lo=$ac_mid; break |
6473554b | 37148 | else |
33f5f8b9 | 37149 | echo "$as_me: failed program was:" >&5 |
ad21602a | 37150 | sed 's/^/| /' conftest.$ac_ext >&5 |
37151 | ||
ca732765 | 37152 | ac_hi=`expr '(' $ac_mid ')' - 1` |
37153 | if test $ac_mid -le $ac_hi; then | |
37154 | ac_lo= ac_hi= | |
37155 | break | |
37156 | fi | |
37157 | ac_mid=`expr 2 '*' $ac_mid` | |
6473554b | 37158 | fi |
af3004ff | 37159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ca732765 | 37160 | done |
37161 | else | |
37162 | echo "$as_me: failed program was:" >&5 | |
37163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3f961930 | 37164 | |
ca732765 | 37165 | ac_lo= ac_hi= |
6473554b | 37166 | fi |
ca732765 | 37167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
37168 | fi | |
37169 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
37170 | # Binary search between lo and hi bounds. | |
37171 | while test "x$ac_lo" != "x$ac_hi"; do | |
37172 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
33f5f8b9 | 37173 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 37174 | /* confdefs.h. */ |
37175 | _ACEOF | |
37176 | cat confdefs.h >>conftest.$ac_ext | |
37177 | cat >>conftest.$ac_ext <<_ACEOF | |
37178 | /* end confdefs.h. */ | |
6a771064 | 37179 | |
ca732765 | 37180 | #include <stdio.h> |
37181 | ||
33f5f8b9 | 37182 | /* What a mess.. many systems have added the (now standard) bit types |
37183 | * in their own ways, so we need to scan a wide variety of headers to | |
37184 | * find them.. | |
37185 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
37186 | */ | |
37187 | #if HAVE_SYS_TYPES_H | |
37188 | #include <sys/types.h> | |
37189 | #endif | |
f0902a4b | 37190 | #if STDC_HEADERS |
37191 | #include <stdlib.h> | |
37192 | #include <stddef.h> | |
37193 | #endif | |
736ff61a | 37194 | #if HAVE_INTTYPES_H |
37195 | #include <inttypes.h> | |
6473554b | 37196 | #endif |
6a771064 | 37197 | #if HAVE_SYS_BITYPES_H |
37198 | #include <sys/bitypes.h> | |
37199 | #endif | |
11e71ab8 | 37200 | #if HAVE_SYS_SELECT_H |
37201 | #include <sys/select.h> | |
37202 | #endif | |
33f5f8b9 | 37203 | |
37204 | ||
ca732765 | 37205 | |
33f5f8b9 | 37206 | int |
37207 | main () | |
6473554b | 37208 | { |
ca732765 | 37209 | static int test_array [1 - 2 * !(((long) (sizeof (u_int64_t))) <= $ac_mid)]; |
37210 | test_array [0] = 0 | |
37211 | ||
33f5f8b9 | 37212 | ; |
37213 | return 0; | |
6473554b | 37214 | } |
33f5f8b9 | 37215 | _ACEOF |
37216 | rm -f conftest.$ac_objext | |
37217 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 37218 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 37219 | ac_status=$? |
af3004ff | 37220 | grep -v '^ *+' conftest.er1 >conftest.err |
37221 | rm -f conftest.er1 | |
37222 | cat conftest.err >&5 | |
33f5f8b9 | 37223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37224 | (exit $ac_status); } && | |
6263d81f | 37225 | { ac_try='test -z "$ac_c_werror_flag" |
37226 | || test ! -s conftest.err' | |
af3004ff | 37227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37228 | (eval $ac_try) 2>&5 | |
37229 | ac_status=$? | |
37230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37231 | (exit $ac_status); }; } && | |
37232 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 37233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37234 | (eval $ac_try) 2>&5 | |
37235 | ac_status=$? | |
37236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37237 | (exit $ac_status); }; }; then | |
ca732765 | 37238 | ac_hi=$ac_mid |
6473554b | 37239 | else |
33f5f8b9 | 37240 | echo "$as_me: failed program was:" >&5 |
ad21602a | 37241 | sed 's/^/| /' conftest.$ac_ext >&5 |
37242 | ||
ca732765 | 37243 | ac_lo=`expr '(' $ac_mid ')' + 1` |
6473554b | 37244 | fi |
af3004ff | 37245 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ca732765 | 37246 | done |
37247 | case $ac_lo in | |
37248 | ?*) ac_cv_sizeof_u_int64_t=$ac_lo;; | |
37249 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int64_t), 77 | |
37250 | See \`config.log' for more details." >&5 | |
37251 | echo "$as_me: error: cannot compute sizeof (u_int64_t), 77 | |
37252 | See \`config.log' for more details." >&2;} | |
37253 | { (exit 1); exit 1; }; } ;; | |
37254 | esac | |
37255 | else | |
37256 | if test "$cross_compiling" = yes; then | |
37257 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
37258 | See \`config.log' for more details." >&5 | |
37259 | echo "$as_me: error: cannot run test program while cross compiling | |
37260 | See \`config.log' for more details." >&2;} | |
37261 | { (exit 1); exit 1; }; } | |
6473554b | 37262 | else |
33f5f8b9 | 37263 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 37264 | /* confdefs.h. */ |
37265 | _ACEOF | |
37266 | cat confdefs.h >>conftest.$ac_ext | |
37267 | cat >>conftest.$ac_ext <<_ACEOF | |
37268 | /* end confdefs.h. */ | |
6a771064 | 37269 | |
ca732765 | 37270 | #include <stdio.h> |
37271 | ||
33f5f8b9 | 37272 | /* What a mess.. many systems have added the (now standard) bit types |
37273 | * in their own ways, so we need to scan a wide variety of headers to | |
37274 | * find them.. | |
37275 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
37276 | */ | |
37277 | #if HAVE_SYS_TYPES_H | |
37278 | #include <sys/types.h> | |
37279 | #endif | |
f0902a4b | 37280 | #if STDC_HEADERS |
37281 | #include <stdlib.h> | |
37282 | #include <stddef.h> | |
37283 | #endif | |
736ff61a | 37284 | #if HAVE_INTTYPES_H |
37285 | #include <inttypes.h> | |
6473554b | 37286 | #endif |
6a771064 | 37287 | #if HAVE_SYS_BITYPES_H |
37288 | #include <sys/bitypes.h> | |
37289 | #endif | |
11e71ab8 | 37290 | #if HAVE_SYS_SELECT_H |
37291 | #include <sys/select.h> | |
37292 | #endif | |
33f5f8b9 | 37293 | |
37294 | ||
ca732765 | 37295 | |
37296 | long longval () { return (long) (sizeof (u_int64_t)); } | |
37297 | unsigned long ulongval () { return (long) (sizeof (u_int64_t)); } | |
37298 | #include <stdio.h> | |
37299 | #include <stdlib.h> | |
33f5f8b9 | 37300 | int |
37301 | main () | |
6473554b | 37302 | { |
ca732765 | 37303 | |
37304 | FILE *f = fopen ("conftest.val", "w"); | |
37305 | if (! f) | |
37306 | exit (1); | |
37307 | if (((long) (sizeof (u_int64_t))) < 0) | |
37308 | { | |
37309 | long i = longval (); | |
37310 | if (i != ((long) (sizeof (u_int64_t)))) | |
37311 | exit (1); | |
37312 | fprintf (f, "%ld\n", i); | |
37313 | } | |
37314 | else | |
37315 | { | |
37316 | unsigned long i = ulongval (); | |
37317 | if (i != ((long) (sizeof (u_int64_t)))) | |
37318 | exit (1); | |
37319 | fprintf (f, "%lu\n", i); | |
37320 | } | |
37321 | exit (ferror (f) || fclose (f) != 0); | |
37322 | ||
33f5f8b9 | 37323 | ; |
37324 | return 0; | |
6473554b | 37325 | } |
33f5f8b9 | 37326 | _ACEOF |
ca732765 | 37327 | rm -f conftest$ac_exeext |
37328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
37329 | (eval $ac_link) 2>&5 | |
af3004ff | 37330 | ac_status=$? |
37331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
ca732765 | 37332 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
33f5f8b9 | 37333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37334 | (eval $ac_try) 2>&5 | |
37335 | ac_status=$? | |
37336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37337 | (exit $ac_status); }; }; then | |
ca732765 | 37338 | ac_cv_sizeof_u_int64_t=`cat conftest.val` |
37339 | else | |
37340 | echo "$as_me: program exited with status $ac_status" >&5 | |
37341 | echo "$as_me: failed program was:" >&5 | |
37342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37343 | ||
37344 | ( exit $ac_status ) | |
37345 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int64_t), 77 | |
37346 | See \`config.log' for more details." >&5 | |
37347 | echo "$as_me: error: cannot compute sizeof (u_int64_t), 77 | |
37348 | See \`config.log' for more details." >&2;} | |
37349 | { (exit 1); exit 1; }; } | |
37350 | fi | |
37351 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
37352 | fi | |
37353 | fi | |
37354 | rm -f conftest.val | |
6473554b | 37355 | else |
ca732765 | 37356 | ac_cv_sizeof_u_int64_t=0 |
6473554b | 37357 | fi |
6473554b | 37358 | fi |
ca732765 | 37359 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int64_t" >&5 |
37360 | echo "${ECHO_T}$ac_cv_sizeof_u_int64_t" >&6 | |
37361 | cat >>confdefs.h <<_ACEOF | |
37362 | #define SIZEOF_U_INT64_T $ac_cv_sizeof_u_int64_t | |
37363 | _ACEOF | |
37364 | ||
37365 | ||
33f5f8b9 | 37366 | |
37367 | cat >>confdefs.h <<\_ACEOF | |
ca732765 | 37368 | #define HAVE_U_INT64_T 1 |
33f5f8b9 | 37369 | _ACEOF |
3f961930 | 37370 | |
ca732765 | 37371 | |
6473554b | 37372 | fi |
6473554b | 37373 | |
37374 | ||
ca732765 | 37375 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
37376 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
37377 | if test "${ac_cv_type_uint64_t+set}" = set; then | |
33f5f8b9 | 37378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6473554b | 37379 | else |
33f5f8b9 | 37380 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 37381 | /* confdefs.h. */ |
37382 | _ACEOF | |
37383 | cat confdefs.h >>conftest.$ac_ext | |
37384 | cat >>conftest.$ac_ext <<_ACEOF | |
37385 | /* end confdefs.h. */ | |
6a771064 | 37386 | |
33f5f8b9 | 37387 | /* What a mess.. many systems have added the (now standard) bit types |
37388 | * in their own ways, so we need to scan a wide variety of headers to | |
37389 | * find them.. | |
37390 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
37391 | */ | |
37392 | #if HAVE_SYS_TYPES_H | |
37393 | #include <sys/types.h> | |
37394 | #endif | |
f0902a4b | 37395 | #if STDC_HEADERS |
37396 | #include <stdlib.h> | |
37397 | #include <stddef.h> | |
37398 | #endif | |
736ff61a | 37399 | #if HAVE_INTTYPES_H |
37400 | #include <inttypes.h> | |
6473554b | 37401 | #endif |
33f5f8b9 | 37402 | #if HAVE_SYS_BITYPES_H |
37403 | #include <sys/bitypes.h> | |
37404 | #endif | |
11e71ab8 | 37405 | #if HAVE_SYS_SELECT_H |
37406 | #include <sys/select.h> | |
37407 | #endif | |
33f5f8b9 | 37408 | |
37409 | ||
33f5f8b9 | 37410 | int |
37411 | main () | |
37412 | { | |
ca732765 | 37413 | if ((uint64_t *) 0) |
33f5f8b9 | 37414 | return 0; |
ca732765 | 37415 | if (sizeof (uint64_t)) |
33f5f8b9 | 37416 | return 0; |
37417 | ; | |
37418 | return 0; | |
37419 | } | |
37420 | _ACEOF | |
37421 | rm -f conftest.$ac_objext | |
37422 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 37423 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 37424 | ac_status=$? |
af3004ff | 37425 | grep -v '^ *+' conftest.er1 >conftest.err |
37426 | rm -f conftest.er1 | |
37427 | cat conftest.err >&5 | |
33f5f8b9 | 37428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37429 | (exit $ac_status); } && | |
6263d81f | 37430 | { ac_try='test -z "$ac_c_werror_flag" |
37431 | || test ! -s conftest.err' | |
af3004ff | 37432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37433 | (eval $ac_try) 2>&5 | |
37434 | ac_status=$? | |
37435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37436 | (exit $ac_status); }; } && | |
37437 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 37438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37439 | (eval $ac_try) 2>&5 | |
37440 | ac_status=$? | |
37441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37442 | (exit $ac_status); }; }; then | |
ca732765 | 37443 | ac_cv_type_uint64_t=yes |
33f5f8b9 | 37444 | else |
37445 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 37446 | sed 's/^/| /' conftest.$ac_ext >&5 |
37447 | ||
ca732765 | 37448 | ac_cv_type_uint64_t=no |
33f5f8b9 | 37449 | fi |
af3004ff | 37450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 37451 | fi |
ca732765 | 37452 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
37453 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
37454 | if test $ac_cv_type_uint64_t = yes; then | |
33f5f8b9 | 37455 | |
ca732765 | 37456 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
37457 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
37458 | if test "${ac_cv_type_uint64_t+set}" = set; then | |
33f5f8b9 | 37459 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
37460 | else | |
37461 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 37462 | /* confdefs.h. */ |
37463 | _ACEOF | |
37464 | cat confdefs.h >>conftest.$ac_ext | |
37465 | cat >>conftest.$ac_ext <<_ACEOF | |
37466 | /* end confdefs.h. */ | |
33f5f8b9 | 37467 | |
a6edf800 | 37468 | #include <stdio.h> |
37469 | ||
33f5f8b9 | 37470 | /* What a mess.. many systems have added the (now standard) bit types |
37471 | * in their own ways, so we need to scan a wide variety of headers to | |
37472 | * find them.. | |
37473 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
37474 | */ | |
6473554b | 37475 | #if HAVE_SYS_TYPES_H |
37476 | #include <sys/types.h> | |
37477 | #endif | |
33f5f8b9 | 37478 | #if STDC_HEADERS |
37479 | #include <stdlib.h> | |
37480 | #include <stddef.h> | |
37481 | #endif | |
37482 | #if HAVE_INTTYPES_H | |
37483 | #include <inttypes.h> | |
37484 | #endif | |
6a771064 | 37485 | #if HAVE_SYS_BITYPES_H |
37486 | #include <sys/bitypes.h> | |
37487 | #endif | |
11e71ab8 | 37488 | #if HAVE_SYS_SELECT_H |
37489 | #include <sys/select.h> | |
37490 | #endif | |
33f5f8b9 | 37491 | |
37492 | ||
a6edf800 | 37493 | |
33f5f8b9 | 37494 | int |
37495 | main () | |
6473554b | 37496 | { |
ca732765 | 37497 | if ((uint64_t *) 0) |
33f5f8b9 | 37498 | return 0; |
ca732765 | 37499 | if (sizeof (uint64_t)) |
33f5f8b9 | 37500 | return 0; |
37501 | ; | |
37502 | return 0; | |
6473554b | 37503 | } |
33f5f8b9 | 37504 | _ACEOF |
37505 | rm -f conftest.$ac_objext | |
37506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 37507 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 37508 | ac_status=$? |
af3004ff | 37509 | grep -v '^ *+' conftest.er1 >conftest.err |
37510 | rm -f conftest.er1 | |
37511 | cat conftest.err >&5 | |
33f5f8b9 | 37512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37513 | (exit $ac_status); } && | |
6263d81f | 37514 | { ac_try='test -z "$ac_c_werror_flag" |
37515 | || test ! -s conftest.err' | |
af3004ff | 37516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37517 | (eval $ac_try) 2>&5 | |
37518 | ac_status=$? | |
37519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37520 | (exit $ac_status); }; } && | |
37521 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 37522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37523 | (eval $ac_try) 2>&5 | |
37524 | ac_status=$? | |
37525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37526 | (exit $ac_status); }; }; then | |
ca732765 | 37527 | ac_cv_type_uint64_t=yes |
33f5f8b9 | 37528 | else |
37529 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 37530 | sed 's/^/| /' conftest.$ac_ext >&5 |
37531 | ||
ca732765 | 37532 | ac_cv_type_uint64_t=no |
33f5f8b9 | 37533 | fi |
af3004ff | 37534 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 37535 | fi |
ca732765 | 37536 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
37537 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
33f5f8b9 | 37538 | |
ca732765 | 37539 | echo "$as_me:$LINENO: checking size of uint64_t" >&5 |
37540 | echo $ECHO_N "checking size of uint64_t... $ECHO_C" >&6 | |
37541 | if test "${ac_cv_sizeof_uint64_t+set}" = set; then | |
33f5f8b9 | 37542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
37543 | else | |
ca732765 | 37544 | if test "$ac_cv_type_uint64_t" = yes; then |
33f5f8b9 | 37545 | # The cast to unsigned long works around a bug in the HP C Compiler |
37546 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
37547 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
37548 | # This bug is HP SR number 8606223364. | |
37549 | if test "$cross_compiling" = yes; then | |
37550 | # Depending upon the size, compute the lo and hi bounds. | |
37551 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 37552 | /* confdefs.h. */ |
37553 | _ACEOF | |
37554 | cat confdefs.h >>conftest.$ac_ext | |
37555 | cat >>conftest.$ac_ext <<_ACEOF | |
37556 | /* end confdefs.h. */ | |
6a771064 | 37557 | |
a6edf800 | 37558 | #include <stdio.h> |
37559 | ||
33f5f8b9 | 37560 | /* What a mess.. many systems have added the (now standard) bit types |
37561 | * in their own ways, so we need to scan a wide variety of headers to | |
37562 | * find them.. | |
37563 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
37564 | */ | |
37565 | #if HAVE_SYS_TYPES_H | |
37566 | #include <sys/types.h> | |
37567 | #endif | |
37568 | #if STDC_HEADERS | |
37569 | #include <stdlib.h> | |
37570 | #include <stddef.h> | |
37571 | #endif | |
37572 | #if HAVE_INTTYPES_H | |
37573 | #include <inttypes.h> | |
37574 | #endif | |
37575 | #if HAVE_SYS_BITYPES_H | |
37576 | #include <sys/bitypes.h> | |
37577 | #endif | |
11e71ab8 | 37578 | #if HAVE_SYS_SELECT_H |
37579 | #include <sys/select.h> | |
37580 | #endif | |
3f961930 | 37581 | |
6473554b | 37582 | |
a6edf800 | 37583 | |
33f5f8b9 | 37584 | int |
37585 | main () | |
37586 | { | |
ca732765 | 37587 | static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) >= 0)]; |
33f5f8b9 | 37588 | test_array [0] = 0 |
6473554b | 37589 | |
33f5f8b9 | 37590 | ; |
37591 | return 0; | |
37592 | } | |
37593 | _ACEOF | |
37594 | rm -f conftest.$ac_objext | |
37595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 37596 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 37597 | ac_status=$? |
af3004ff | 37598 | grep -v '^ *+' conftest.er1 >conftest.err |
37599 | rm -f conftest.er1 | |
37600 | cat conftest.err >&5 | |
33f5f8b9 | 37601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37602 | (exit $ac_status); } && | |
6263d81f | 37603 | { ac_try='test -z "$ac_c_werror_flag" |
37604 | || test ! -s conftest.err' | |
af3004ff | 37605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37606 | (eval $ac_try) 2>&5 | |
37607 | ac_status=$? | |
37608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37609 | (exit $ac_status); }; } && | |
37610 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 37611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37612 | (eval $ac_try) 2>&5 | |
37613 | ac_status=$? | |
37614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37615 | (exit $ac_status); }; }; then | |
37616 | ac_lo=0 ac_mid=0 | |
37617 | while :; do | |
37618 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 37619 | /* confdefs.h. */ |
37620 | _ACEOF | |
37621 | cat confdefs.h >>conftest.$ac_ext | |
37622 | cat >>conftest.$ac_ext <<_ACEOF | |
37623 | /* end confdefs.h. */ | |
6a771064 | 37624 | |
a6edf800 | 37625 | #include <stdio.h> |
37626 | ||
33f5f8b9 | 37627 | /* What a mess.. many systems have added the (now standard) bit types |
37628 | * in their own ways, so we need to scan a wide variety of headers to | |
37629 | * find them.. | |
37630 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
37631 | */ | |
37632 | #if HAVE_SYS_TYPES_H | |
37633 | #include <sys/types.h> | |
37634 | #endif | |
f0902a4b | 37635 | #if STDC_HEADERS |
37636 | #include <stdlib.h> | |
37637 | #include <stddef.h> | |
37638 | #endif | |
736ff61a | 37639 | #if HAVE_INTTYPES_H |
37640 | #include <inttypes.h> | |
6473554b | 37641 | #endif |
33f5f8b9 | 37642 | #if HAVE_SYS_BITYPES_H |
37643 | #include <sys/bitypes.h> | |
37644 | #endif | |
11e71ab8 | 37645 | #if HAVE_SYS_SELECT_H |
37646 | #include <sys/select.h> | |
37647 | #endif | |
33f5f8b9 | 37648 | |
37649 | ||
b67e2c8c | 37650 | |
33f5f8b9 | 37651 | int |
37652 | main () | |
37653 | { | |
ca732765 | 37654 | static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) <= $ac_mid)]; |
33f5f8b9 | 37655 | test_array [0] = 0 |
37656 | ||
37657 | ; | |
37658 | return 0; | |
37659 | } | |
37660 | _ACEOF | |
37661 | rm -f conftest.$ac_objext | |
37662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 37663 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 37664 | ac_status=$? |
af3004ff | 37665 | grep -v '^ *+' conftest.er1 >conftest.err |
37666 | rm -f conftest.er1 | |
37667 | cat conftest.err >&5 | |
33f5f8b9 | 37668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37669 | (exit $ac_status); } && | |
6263d81f | 37670 | { ac_try='test -z "$ac_c_werror_flag" |
37671 | || test ! -s conftest.err' | |
af3004ff | 37672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37673 | (eval $ac_try) 2>&5 | |
37674 | ac_status=$? | |
37675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37676 | (exit $ac_status); }; } && | |
37677 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 37678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37679 | (eval $ac_try) 2>&5 | |
37680 | ac_status=$? | |
37681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37682 | (exit $ac_status); }; }; then | |
37683 | ac_hi=$ac_mid; break | |
37684 | else | |
37685 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 37686 | sed 's/^/| /' conftest.$ac_ext >&5 |
37687 | ||
33f5f8b9 | 37688 | ac_lo=`expr $ac_mid + 1` |
af3004ff | 37689 | if test $ac_lo -le $ac_mid; then |
37690 | ac_lo= ac_hi= | |
37691 | break | |
37692 | fi | |
37693 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
33f5f8b9 | 37694 | fi |
af3004ff | 37695 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 37696 | done |
37697 | else | |
37698 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 37699 | sed 's/^/| /' conftest.$ac_ext >&5 |
37700 | ||
33f5f8b9 | 37701 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 37702 | /* confdefs.h. */ |
37703 | _ACEOF | |
37704 | cat confdefs.h >>conftest.$ac_ext | |
37705 | cat >>conftest.$ac_ext <<_ACEOF | |
37706 | /* end confdefs.h. */ | |
33f5f8b9 | 37707 | |
a6edf800 | 37708 | #include <stdio.h> |
37709 | ||
33f5f8b9 | 37710 | /* What a mess.. many systems have added the (now standard) bit types |
37711 | * in their own ways, so we need to scan a wide variety of headers to | |
37712 | * find them.. | |
37713 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
37714 | */ | |
6473554b | 37715 | #if HAVE_SYS_TYPES_H |
37716 | #include <sys/types.h> | |
37717 | #endif | |
33f5f8b9 | 37718 | #if STDC_HEADERS |
37719 | #include <stdlib.h> | |
37720 | #include <stddef.h> | |
37721 | #endif | |
37722 | #if HAVE_INTTYPES_H | |
37723 | #include <inttypes.h> | |
37724 | #endif | |
6a771064 | 37725 | #if HAVE_SYS_BITYPES_H |
37726 | #include <sys/bitypes.h> | |
37727 | #endif | |
11e71ab8 | 37728 | #if HAVE_SYS_SELECT_H |
37729 | #include <sys/select.h> | |
37730 | #endif | |
33f5f8b9 | 37731 | |
37732 | ||
a6edf800 | 37733 | |
33f5f8b9 | 37734 | int |
37735 | main () | |
6473554b | 37736 | { |
ca732765 | 37737 | static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) < 0)]; |
33f5f8b9 | 37738 | test_array [0] = 0 |
37739 | ||
37740 | ; | |
37741 | return 0; | |
6473554b | 37742 | } |
33f5f8b9 | 37743 | _ACEOF |
37744 | rm -f conftest.$ac_objext | |
37745 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 37746 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 37747 | ac_status=$? |
af3004ff | 37748 | grep -v '^ *+' conftest.er1 >conftest.err |
37749 | rm -f conftest.er1 | |
37750 | cat conftest.err >&5 | |
33f5f8b9 | 37751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37752 | (exit $ac_status); } && | |
6263d81f | 37753 | { ac_try='test -z "$ac_c_werror_flag" |
37754 | || test ! -s conftest.err' | |
af3004ff | 37755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37756 | (eval $ac_try) 2>&5 | |
37757 | ac_status=$? | |
37758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37759 | (exit $ac_status); }; } && | |
37760 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 37761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37762 | (eval $ac_try) 2>&5 | |
37763 | ac_status=$? | |
37764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37765 | (exit $ac_status); }; }; then | |
37766 | ac_hi=-1 ac_mid=-1 | |
37767 | while :; do | |
37768 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 37769 | /* confdefs.h. */ |
37770 | _ACEOF | |
37771 | cat confdefs.h >>conftest.$ac_ext | |
37772 | cat >>conftest.$ac_ext <<_ACEOF | |
37773 | /* end confdefs.h. */ | |
6a771064 | 37774 | |
a6edf800 | 37775 | #include <stdio.h> |
37776 | ||
33f5f8b9 | 37777 | /* What a mess.. many systems have added the (now standard) bit types |
37778 | * in their own ways, so we need to scan a wide variety of headers to | |
37779 | * find them.. | |
37780 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
37781 | */ | |
37782 | #if HAVE_SYS_TYPES_H | |
37783 | #include <sys/types.h> | |
37784 | #endif | |
37785 | #if STDC_HEADERS | |
37786 | #include <stdlib.h> | |
37787 | #include <stddef.h> | |
37788 | #endif | |
37789 | #if HAVE_INTTYPES_H | |
37790 | #include <inttypes.h> | |
37791 | #endif | |
37792 | #if HAVE_SYS_BITYPES_H | |
37793 | #include <sys/bitypes.h> | |
37794 | #endif | |
11e71ab8 | 37795 | #if HAVE_SYS_SELECT_H |
37796 | #include <sys/select.h> | |
37797 | #endif | |
3f961930 | 37798 | |
6473554b | 37799 | |
a6edf800 | 37800 | |
33f5f8b9 | 37801 | int |
37802 | main () | |
37803 | { | |
ca732765 | 37804 | static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) >= $ac_mid)]; |
33f5f8b9 | 37805 | test_array [0] = 0 |
6473554b | 37806 | |
33f5f8b9 | 37807 | ; |
37808 | return 0; | |
37809 | } | |
37810 | _ACEOF | |
37811 | rm -f conftest.$ac_objext | |
37812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 37813 | (eval $ac_compile) 2>conftest.er1 |
f5691f9c | 37814 | ac_status=$? |
af3004ff | 37815 | grep -v '^ *+' conftest.er1 >conftest.err |
37816 | rm -f conftest.er1 | |
37817 | cat conftest.err >&5 | |
f5691f9c | 37818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37819 | (exit $ac_status); } && | |
6263d81f | 37820 | { ac_try='test -z "$ac_c_werror_flag" |
37821 | || test ! -s conftest.err' | |
af3004ff | 37822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37823 | (eval $ac_try) 2>&5 | |
37824 | ac_status=$? | |
37825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37826 | (exit $ac_status); }; } && | |
37827 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 37828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37829 | (eval $ac_try) 2>&5 | |
37830 | ac_status=$? | |
37831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37832 | (exit $ac_status); }; }; then | |
37833 | ac_lo=$ac_mid; break | |
37834 | else | |
37835 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 37836 | sed 's/^/| /' conftest.$ac_ext >&5 |
37837 | ||
33f5f8b9 | 37838 | ac_hi=`expr '(' $ac_mid ')' - 1` |
af3004ff | 37839 | if test $ac_mid -le $ac_hi; then |
37840 | ac_lo= ac_hi= | |
37841 | break | |
37842 | fi | |
37843 | ac_mid=`expr 2 '*' $ac_mid` | |
33f5f8b9 | 37844 | fi |
af3004ff | 37845 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 37846 | done |
6473554b | 37847 | else |
33f5f8b9 | 37848 | echo "$as_me: failed program was:" >&5 |
ad21602a | 37849 | sed 's/^/| /' conftest.$ac_ext >&5 |
37850 | ||
33f5f8b9 | 37851 | ac_lo= ac_hi= |
37852 | fi | |
af3004ff | 37853 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 37854 | fi |
af3004ff | 37855 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 37856 | # Binary search between lo and hi bounds. |
37857 | while test "x$ac_lo" != "x$ac_hi"; do | |
37858 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
37859 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 37860 | /* confdefs.h. */ |
37861 | _ACEOF | |
37862 | cat confdefs.h >>conftest.$ac_ext | |
37863 | cat >>conftest.$ac_ext <<_ACEOF | |
37864 | /* end confdefs.h. */ | |
6a771064 | 37865 | |
a6edf800 | 37866 | #include <stdio.h> |
37867 | ||
33f5f8b9 | 37868 | /* What a mess.. many systems have added the (now standard) bit types |
37869 | * in their own ways, so we need to scan a wide variety of headers to | |
37870 | * find them.. | |
37871 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
37872 | */ | |
37873 | #if HAVE_SYS_TYPES_H | |
37874 | #include <sys/types.h> | |
37875 | #endif | |
f0902a4b | 37876 | #if STDC_HEADERS |
37877 | #include <stdlib.h> | |
37878 | #include <stddef.h> | |
37879 | #endif | |
736ff61a | 37880 | #if HAVE_INTTYPES_H |
37881 | #include <inttypes.h> | |
6473554b | 37882 | #endif |
6a771064 | 37883 | #if HAVE_SYS_BITYPES_H |
37884 | #include <sys/bitypes.h> | |
37885 | #endif | |
11e71ab8 | 37886 | #if HAVE_SYS_SELECT_H |
37887 | #include <sys/select.h> | |
37888 | #endif | |
3f961930 | 37889 | |
6473554b | 37890 | |
a6edf800 | 37891 | |
33f5f8b9 | 37892 | int |
37893 | main () | |
37894 | { | |
ca732765 | 37895 | static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) <= $ac_mid)]; |
33f5f8b9 | 37896 | test_array [0] = 0 |
6473554b | 37897 | |
33f5f8b9 | 37898 | ; |
37899 | return 0; | |
37900 | } | |
37901 | _ACEOF | |
37902 | rm -f conftest.$ac_objext | |
37903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 37904 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 37905 | ac_status=$? |
af3004ff | 37906 | grep -v '^ *+' conftest.er1 >conftest.err |
37907 | rm -f conftest.er1 | |
37908 | cat conftest.err >&5 | |
33f5f8b9 | 37909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37910 | (exit $ac_status); } && | |
6263d81f | 37911 | { ac_try='test -z "$ac_c_werror_flag" |
37912 | || test ! -s conftest.err' | |
af3004ff | 37913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37914 | (eval $ac_try) 2>&5 | |
37915 | ac_status=$? | |
37916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37917 | (exit $ac_status); }; } && | |
37918 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 37919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37920 | (eval $ac_try) 2>&5 | |
37921 | ac_status=$? | |
37922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37923 | (exit $ac_status); }; }; then | |
37924 | ac_hi=$ac_mid | |
37925 | else | |
37926 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 37927 | sed 's/^/| /' conftest.$ac_ext >&5 |
37928 | ||
33f5f8b9 | 37929 | ac_lo=`expr '(' $ac_mid ')' + 1` |
37930 | fi | |
af3004ff | 37931 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 37932 | done |
37933 | case $ac_lo in | |
ca732765 | 37934 | ?*) ac_cv_sizeof_uint64_t=$ac_lo;; |
37935 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint64_t), 77 | |
ad21602a | 37936 | See \`config.log' for more details." >&5 |
ca732765 | 37937 | echo "$as_me: error: cannot compute sizeof (uint64_t), 77 |
ad21602a | 37938 | See \`config.log' for more details." >&2;} |
33f5f8b9 | 37939 | { (exit 1); exit 1; }; } ;; |
37940 | esac | |
6473554b | 37941 | else |
37942 | if test "$cross_compiling" = yes; then | |
6263d81f | 37943 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
37944 | See \`config.log' for more details." >&5 | |
37945 | echo "$as_me: error: cannot run test program while cross compiling | |
37946 | See \`config.log' for more details." >&2;} | |
33f5f8b9 | 37947 | { (exit 1); exit 1; }; } |
6473554b | 37948 | else |
33f5f8b9 | 37949 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 37950 | /* confdefs.h. */ |
37951 | _ACEOF | |
37952 | cat confdefs.h >>conftest.$ac_ext | |
37953 | cat >>conftest.$ac_ext <<_ACEOF | |
37954 | /* end confdefs.h. */ | |
6a771064 | 37955 | |
a6edf800 | 37956 | #include <stdio.h> |
37957 | ||
33f5f8b9 | 37958 | /* What a mess.. many systems have added the (now standard) bit types |
37959 | * in their own ways, so we need to scan a wide variety of headers to | |
37960 | * find them.. | |
37961 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
37962 | */ | |
37963 | #if HAVE_SYS_TYPES_H | |
37964 | #include <sys/types.h> | |
37965 | #endif | |
f0902a4b | 37966 | #if STDC_HEADERS |
37967 | #include <stdlib.h> | |
37968 | #include <stddef.h> | |
37969 | #endif | |
736ff61a | 37970 | #if HAVE_INTTYPES_H |
37971 | #include <inttypes.h> | |
6473554b | 37972 | #endif |
6a771064 | 37973 | #if HAVE_SYS_BITYPES_H |
37974 | #include <sys/bitypes.h> | |
37975 | #endif | |
11e71ab8 | 37976 | #if HAVE_SYS_SELECT_H |
37977 | #include <sys/select.h> | |
37978 | #endif | |
33f5f8b9 | 37979 | |
37980 | ||
a6edf800 | 37981 | |
ca732765 | 37982 | long longval () { return (long) (sizeof (uint64_t)); } |
37983 | unsigned long ulongval () { return (long) (sizeof (uint64_t)); } | |
33f5f8b9 | 37984 | #include <stdio.h> |
37985 | #include <stdlib.h> | |
33f5f8b9 | 37986 | int |
37987 | main () | |
6473554b | 37988 | { |
6a771064 | 37989 | |
33f5f8b9 | 37990 | FILE *f = fopen ("conftest.val", "w"); |
37991 | if (! f) | |
37992 | exit (1); | |
ca732765 | 37993 | if (((long) (sizeof (uint64_t))) < 0) |
33f5f8b9 | 37994 | { |
37995 | long i = longval (); | |
ca732765 | 37996 | if (i != ((long) (sizeof (uint64_t)))) |
33f5f8b9 | 37997 | exit (1); |
37998 | fprintf (f, "%ld\n", i); | |
37999 | } | |
38000 | else | |
38001 | { | |
38002 | unsigned long i = ulongval (); | |
ca732765 | 38003 | if (i != ((long) (sizeof (uint64_t)))) |
33f5f8b9 | 38004 | exit (1); |
38005 | fprintf (f, "%lu\n", i); | |
38006 | } | |
38007 | exit (ferror (f) || fclose (f) != 0); | |
38008 | ||
38009 | ; | |
38010 | return 0; | |
38011 | } | |
38012 | _ACEOF | |
38013 | rm -f conftest$ac_exeext | |
38014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38015 | (eval $ac_link) 2>&5 | |
38016 | ac_status=$? | |
38017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38018 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
38019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38020 | (eval $ac_try) 2>&5 | |
38021 | ac_status=$? | |
38022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38023 | (exit $ac_status); }; }; then | |
ca732765 | 38024 | ac_cv_sizeof_uint64_t=`cat conftest.val` |
33f5f8b9 | 38025 | else |
38026 | echo "$as_me: program exited with status $ac_status" >&5 | |
38027 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 38028 | sed 's/^/| /' conftest.$ac_ext >&5 |
38029 | ||
33f5f8b9 | 38030 | ( exit $ac_status ) |
ca732765 | 38031 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint64_t), 77 |
ad21602a | 38032 | See \`config.log' for more details." >&5 |
ca732765 | 38033 | echo "$as_me: error: cannot compute sizeof (uint64_t), 77 |
ad21602a | 38034 | See \`config.log' for more details." >&2;} |
33f5f8b9 | 38035 | { (exit 1); exit 1; }; } |
38036 | fi | |
af3004ff | 38037 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 38038 | fi |
38039 | fi | |
38040 | rm -f conftest.val | |
6473554b | 38041 | else |
ca732765 | 38042 | ac_cv_sizeof_uint64_t=0 |
6473554b | 38043 | fi |
6473554b | 38044 | fi |
ca732765 | 38045 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint64_t" >&5 |
38046 | echo "${ECHO_T}$ac_cv_sizeof_uint64_t" >&6 | |
33f5f8b9 | 38047 | cat >>confdefs.h <<_ACEOF |
ca732765 | 38048 | #define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t |
ad21602a | 38049 | _ACEOF |
33f5f8b9 | 38050 | |
38051 | ||
3f961930 | 38052 | |
33f5f8b9 | 38053 | cat >>confdefs.h <<\_ACEOF |
38054 | #define HAVE_UINT64_T 1 | |
38055 | _ACEOF | |
6473554b | 38056 | |
ca732765 | 38057 | |
33f5f8b9 | 38058 | fi |
6473554b | 38059 | |
77d6bd88 | 38060 | |
7b219d0e | 38061 | echo "$as_me:$LINENO: checking for pad128_t" >&5 |
38062 | echo $ECHO_N "checking for pad128_t... $ECHO_C" >&6 | |
38063 | if test "${ac_cv_type_pad128_t+set}" = set; then | |
38064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38065 | else | |
38066 | cat >conftest.$ac_ext <<_ACEOF | |
38067 | /* confdefs.h. */ | |
38068 | _ACEOF | |
38069 | cat confdefs.h >>conftest.$ac_ext | |
38070 | cat >>conftest.$ac_ext <<_ACEOF | |
38071 | /* end confdefs.h. */ | |
38072 | ||
38073 | /* What a mess.. many systems have added the (now standard) bit types | |
38074 | * in their own ways, so we need to scan a wide variety of headers to | |
38075 | * find them.. | |
38076 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
38077 | */ | |
38078 | #if HAVE_SYS_TYPES_H | |
38079 | #include <sys/types.h> | |
38080 | #endif | |
38081 | #if STDC_HEADERS | |
38082 | #include <stdlib.h> | |
38083 | #include <stddef.h> | |
38084 | #endif | |
38085 | #if HAVE_INTTYPES_H | |
38086 | #include <inttypes.h> | |
38087 | #endif | |
38088 | #if HAVE_SYS_BITYPES_H | |
38089 | #include <sys/bitypes.h> | |
38090 | #endif | |
38091 | #if HAVE_SYS_SELECT_H | |
38092 | #include <sys/select.h> | |
38093 | #endif | |
38094 | ||
38095 | ||
38096 | int | |
38097 | main () | |
38098 | { | |
38099 | if ((pad128_t *) 0) | |
38100 | return 0; | |
38101 | if (sizeof (pad128_t)) | |
38102 | return 0; | |
38103 | ; | |
38104 | return 0; | |
38105 | } | |
38106 | _ACEOF | |
38107 | rm -f conftest.$ac_objext | |
38108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38109 | (eval $ac_compile) 2>conftest.er1 | |
38110 | ac_status=$? | |
38111 | grep -v '^ *+' conftest.er1 >conftest.err | |
38112 | rm -f conftest.er1 | |
38113 | cat conftest.err >&5 | |
38114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38115 | (exit $ac_status); } && | |
6263d81f | 38116 | { ac_try='test -z "$ac_c_werror_flag" |
38117 | || test ! -s conftest.err' | |
7b219d0e | 38118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38119 | (eval $ac_try) 2>&5 | |
38120 | ac_status=$? | |
38121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38122 | (exit $ac_status); }; } && | |
38123 | { ac_try='test -s conftest.$ac_objext' | |
38124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38125 | (eval $ac_try) 2>&5 | |
38126 | ac_status=$? | |
38127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38128 | (exit $ac_status); }; }; then | |
38129 | ac_cv_type_pad128_t=yes | |
38130 | else | |
38131 | echo "$as_me: failed program was:" >&5 | |
38132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38133 | ||
38134 | ac_cv_type_pad128_t=no | |
38135 | fi | |
38136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38137 | fi | |
38138 | echo "$as_me:$LINENO: result: $ac_cv_type_pad128_t" >&5 | |
38139 | echo "${ECHO_T}$ac_cv_type_pad128_t" >&6 | |
38140 | if test $ac_cv_type_pad128_t = yes; then | |
38141 | ||
38142 | cat >>confdefs.h <<\_ACEOF | |
38143 | #define HAVE_PAD128_T 1 | |
38144 | _ACEOF | |
38145 | ||
38146 | fi | |
38147 | ||
38148 | ||
38149 | echo "$as_me:$LINENO: checking for upad128_t" >&5 | |
38150 | echo $ECHO_N "checking for upad128_t... $ECHO_C" >&6 | |
38151 | if test "${ac_cv_type_upad128_t+set}" = set; then | |
38152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38153 | else | |
38154 | cat >conftest.$ac_ext <<_ACEOF | |
38155 | /* confdefs.h. */ | |
38156 | _ACEOF | |
38157 | cat confdefs.h >>conftest.$ac_ext | |
38158 | cat >>conftest.$ac_ext <<_ACEOF | |
38159 | /* end confdefs.h. */ | |
38160 | ||
38161 | /* What a mess.. many systems have added the (now standard) bit types | |
38162 | * in their own ways, so we need to scan a wide variety of headers to | |
38163 | * find them.. | |
38164 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
38165 | */ | |
38166 | #if HAVE_SYS_TYPES_H | |
38167 | #include <sys/types.h> | |
38168 | #endif | |
38169 | #if STDC_HEADERS | |
38170 | #include <stdlib.h> | |
38171 | #include <stddef.h> | |
38172 | #endif | |
38173 | #if HAVE_INTTYPES_H | |
38174 | #include <inttypes.h> | |
38175 | #endif | |
38176 | #if HAVE_SYS_BITYPES_H | |
38177 | #include <sys/bitypes.h> | |
38178 | #endif | |
38179 | #if HAVE_SYS_SELECT_H | |
38180 | #include <sys/select.h> | |
38181 | #endif | |
38182 | ||
38183 | ||
38184 | int | |
38185 | main () | |
38186 | { | |
38187 | if ((upad128_t *) 0) | |
38188 | return 0; | |
38189 | if (sizeof (upad128_t)) | |
38190 | return 0; | |
38191 | ; | |
38192 | return 0; | |
38193 | } | |
38194 | _ACEOF | |
38195 | rm -f conftest.$ac_objext | |
38196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
38197 | (eval $ac_compile) 2>conftest.er1 | |
38198 | ac_status=$? | |
38199 | grep -v '^ *+' conftest.er1 >conftest.err | |
38200 | rm -f conftest.er1 | |
38201 | cat conftest.err >&5 | |
38202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38203 | (exit $ac_status); } && | |
6263d81f | 38204 | { ac_try='test -z "$ac_c_werror_flag" |
38205 | || test ! -s conftest.err' | |
7b219d0e | 38206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38207 | (eval $ac_try) 2>&5 | |
38208 | ac_status=$? | |
38209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38210 | (exit $ac_status); }; } && | |
38211 | { ac_try='test -s conftest.$ac_objext' | |
38212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38213 | (eval $ac_try) 2>&5 | |
38214 | ac_status=$? | |
38215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38216 | (exit $ac_status); }; }; then | |
38217 | ac_cv_type_upad128_t=yes | |
38218 | else | |
38219 | echo "$as_me: failed program was:" >&5 | |
38220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38221 | ||
38222 | ac_cv_type_upad128_t=no | |
38223 | fi | |
38224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
38225 | fi | |
38226 | echo "$as_me:$LINENO: result: $ac_cv_type_upad128_t" >&5 | |
38227 | echo "${ECHO_T}$ac_cv_type_upad128_t" >&6 | |
38228 | if test $ac_cv_type_upad128_t = yes; then | |
38229 | ||
38230 | cat >>confdefs.h <<\_ACEOF | |
38231 | #define HAVE_UPAD128_T 1 | |
38232 | _ACEOF | |
38233 | ||
38234 | fi | |
38235 | ||
38236 | ||
33f5f8b9 | 38237 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
38238 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
38239 | if test "${ac_cv_type_pid_t+set}" = set; then | |
38240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
77d6bd88 | 38241 | else |
33f5f8b9 | 38242 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 38243 | /* confdefs.h. */ |
38244 | _ACEOF | |
38245 | cat confdefs.h >>conftest.$ac_ext | |
38246 | cat >>conftest.$ac_ext <<_ACEOF | |
38247 | /* end confdefs.h. */ | |
6a771064 | 38248 | |
38249 | /* What a mess.. many systems have added the (now standard) bit types | |
38250 | * in their own ways, so we need to scan a wide variety of headers to | |
38251 | * find them.. | |
33f5f8b9 | 38252 | * IMPORTANT: Keep include/squid_types.h syncronised with this list |
6a771064 | 38253 | */ |
33f5f8b9 | 38254 | #if HAVE_SYS_TYPES_H |
77d6bd88 | 38255 | #include <sys/types.h> |
33f5f8b9 | 38256 | #endif |
77d6bd88 | 38257 | #if STDC_HEADERS |
38258 | #include <stdlib.h> | |
38259 | #include <stddef.h> | |
38260 | #endif | |
f0902a4b | 38261 | #if HAVE_INTTYPES_H |
38262 | #include <inttypes.h> | |
38263 | #endif | |
6a771064 | 38264 | #if HAVE_SYS_BITYPES_H |
38265 | #include <sys/bitypes.h> | |
38266 | #endif | |
11e71ab8 | 38267 | #if HAVE_SYS_SELECT_H |
38268 | #include <sys/select.h> | |
38269 | #endif | |
6a771064 | 38270 | |
33f5f8b9 | 38271 | |
33f5f8b9 | 38272 | int |
38273 | main () | |
38274 | { | |
38275 | if ((pid_t *) 0) | |
38276 | return 0; | |
38277 | if (sizeof (pid_t)) | |
38278 | return 0; | |
38279 | ; | |
38280 | return 0; | |
38281 | } | |
38282 | _ACEOF | |
38283 | rm -f conftest.$ac_objext | |
38284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 38285 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 38286 | ac_status=$? |
af3004ff | 38287 | grep -v '^ *+' conftest.er1 >conftest.err |
38288 | rm -f conftest.er1 | |
38289 | cat conftest.err >&5 | |
33f5f8b9 | 38290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38291 | (exit $ac_status); } && | |
6263d81f | 38292 | { ac_try='test -z "$ac_c_werror_flag" |
38293 | || test ! -s conftest.err' | |
af3004ff | 38294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38295 | (eval $ac_try) 2>&5 | |
38296 | ac_status=$? | |
38297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38298 | (exit $ac_status); }; } && | |
38299 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 38300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38301 | (eval $ac_try) 2>&5 | |
38302 | ac_status=$? | |
38303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38304 | (exit $ac_status); }; }; then | |
38305 | ac_cv_type_pid_t=yes | |
77d6bd88 | 38306 | else |
33f5f8b9 | 38307 | echo "$as_me: failed program was:" >&5 |
ad21602a | 38308 | sed 's/^/| /' conftest.$ac_ext >&5 |
38309 | ||
33f5f8b9 | 38310 | ac_cv_type_pid_t=no |
77d6bd88 | 38311 | fi |
af3004ff | 38312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
77d6bd88 | 38313 | fi |
33f5f8b9 | 38314 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
38315 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
38316 | if test $ac_cv_type_pid_t = yes; then | |
38317 | ||
38318 | cat >>confdefs.h <<\_ACEOF | |
38319 | #define HAVE_PID_T 1 | |
38320 | _ACEOF | |
77d6bd88 | 38321 | |
38322 | fi | |
38323 | ||
33f5f8b9 | 38324 | echo "$as_me:$LINENO: checking for size_t" >&5 |
38325 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
38326 | if test "${ac_cv_type_size_t+set}" = set; then | |
38327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
77d6bd88 | 38328 | else |
33f5f8b9 | 38329 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 38330 | /* confdefs.h. */ |
38331 | _ACEOF | |
38332 | cat confdefs.h >>conftest.$ac_ext | |
38333 | cat >>conftest.$ac_ext <<_ACEOF | |
38334 | /* end confdefs.h. */ | |
6a771064 | 38335 | |
38336 | /* What a mess.. many systems have added the (now standard) bit types | |
38337 | * in their own ways, so we need to scan a wide variety of headers to | |
38338 | * find them.. | |
33f5f8b9 | 38339 | * IMPORTANT: Keep include/squid_types.h syncronised with this list |
6a771064 | 38340 | */ |
33f5f8b9 | 38341 | #if HAVE_SYS_TYPES_H |
77d6bd88 | 38342 | #include <sys/types.h> |
33f5f8b9 | 38343 | #endif |
77d6bd88 | 38344 | #if STDC_HEADERS |
38345 | #include <stdlib.h> | |
38346 | #include <stddef.h> | |
38347 | #endif | |
f0902a4b | 38348 | #if HAVE_INTTYPES_H |
38349 | #include <inttypes.h> | |
38350 | #endif | |
6a771064 | 38351 | #if HAVE_SYS_BITYPES_H |
38352 | #include <sys/bitypes.h> | |
38353 | #endif | |
11e71ab8 | 38354 | #if HAVE_SYS_SELECT_H |
38355 | #include <sys/select.h> | |
38356 | #endif | |
6a771064 | 38357 | |
77d6bd88 | 38358 | |
33f5f8b9 | 38359 | int |
38360 | main () | |
38361 | { | |
38362 | if ((size_t *) 0) | |
38363 | return 0; | |
38364 | if (sizeof (size_t)) | |
38365 | return 0; | |
38366 | ; | |
38367 | return 0; | |
38368 | } | |
38369 | _ACEOF | |
38370 | rm -f conftest.$ac_objext | |
38371 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 38372 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 38373 | ac_status=$? |
af3004ff | 38374 | grep -v '^ *+' conftest.er1 >conftest.err |
38375 | rm -f conftest.er1 | |
38376 | cat conftest.err >&5 | |
33f5f8b9 | 38377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38378 | (exit $ac_status); } && | |
6263d81f | 38379 | { ac_try='test -z "$ac_c_werror_flag" |
38380 | || test ! -s conftest.err' | |
af3004ff | 38381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38382 | (eval $ac_try) 2>&5 | |
38383 | ac_status=$? | |
38384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38385 | (exit $ac_status); }; } && | |
38386 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 38387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38388 | (eval $ac_try) 2>&5 | |
38389 | ac_status=$? | |
38390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38391 | (exit $ac_status); }; }; then | |
38392 | ac_cv_type_size_t=yes | |
38393 | else | |
38394 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 38395 | sed 's/^/| /' conftest.$ac_ext >&5 |
38396 | ||
33f5f8b9 | 38397 | ac_cv_type_size_t=no |
77d6bd88 | 38398 | fi |
af3004ff | 38399 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
77d6bd88 | 38400 | fi |
33f5f8b9 | 38401 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
38402 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
38403 | if test $ac_cv_type_size_t = yes; then | |
38404 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
38405 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
38406 | if test "${ac_cv_type_size_t+set}" = set; then | |
38407 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
77d6bd88 | 38408 | else |
33f5f8b9 | 38409 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 38410 | /* confdefs.h. */ |
38411 | _ACEOF | |
38412 | cat confdefs.h >>conftest.$ac_ext | |
38413 | cat >>conftest.$ac_ext <<_ACEOF | |
38414 | /* end confdefs.h. */ | |
6a771064 | 38415 | |
a6edf800 | 38416 | #include <stdio.h> |
38417 | ||
6a771064 | 38418 | /* What a mess.. many systems have added the (now standard) bit types |
38419 | * in their own ways, so we need to scan a wide variety of headers to | |
38420 | * find them.. | |
33f5f8b9 | 38421 | * IMPORTANT: Keep include/squid_types.h syncronised with this list |
6a771064 | 38422 | */ |
33f5f8b9 | 38423 | #if HAVE_SYS_TYPES_H |
77d6bd88 | 38424 | #include <sys/types.h> |
33f5f8b9 | 38425 | #endif |
77d6bd88 | 38426 | #if STDC_HEADERS |
38427 | #include <stdlib.h> | |
38428 | #include <stddef.h> | |
38429 | #endif | |
f0902a4b | 38430 | #if HAVE_INTTYPES_H |
38431 | #include <inttypes.h> | |
38432 | #endif | |
6a771064 | 38433 | #if HAVE_SYS_BITYPES_H |
38434 | #include <sys/bitypes.h> | |
38435 | #endif | |
11e71ab8 | 38436 | #if HAVE_SYS_SELECT_H |
38437 | #include <sys/select.h> | |
38438 | #endif | |
6a771064 | 38439 | |
77d6bd88 | 38440 | |
a6edf800 | 38441 | |
33f5f8b9 | 38442 | int |
38443 | main () | |
38444 | { | |
38445 | if ((size_t *) 0) | |
38446 | return 0; | |
38447 | if (sizeof (size_t)) | |
38448 | return 0; | |
38449 | ; | |
38450 | return 0; | |
38451 | } | |
38452 | _ACEOF | |
38453 | rm -f conftest.$ac_objext | |
38454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 38455 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 38456 | ac_status=$? |
af3004ff | 38457 | grep -v '^ *+' conftest.er1 >conftest.err |
38458 | rm -f conftest.er1 | |
38459 | cat conftest.err >&5 | |
33f5f8b9 | 38460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38461 | (exit $ac_status); } && | |
6263d81f | 38462 | { ac_try='test -z "$ac_c_werror_flag" |
38463 | || test ! -s conftest.err' | |
af3004ff | 38464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38465 | (eval $ac_try) 2>&5 | |
38466 | ac_status=$? | |
38467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38468 | (exit $ac_status); }; } && | |
38469 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 38470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38471 | (eval $ac_try) 2>&5 | |
38472 | ac_status=$? | |
38473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38474 | (exit $ac_status); }; }; then | |
38475 | ac_cv_type_size_t=yes | |
38476 | else | |
38477 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 38478 | sed 's/^/| /' conftest.$ac_ext >&5 |
38479 | ||
33f5f8b9 | 38480 | ac_cv_type_size_t=no |
77d6bd88 | 38481 | fi |
af3004ff | 38482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
77d6bd88 | 38483 | fi |
33f5f8b9 | 38484 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
38485 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
77d6bd88 | 38486 | |
33f5f8b9 | 38487 | echo "$as_me:$LINENO: checking size of size_t" >&5 |
38488 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
38489 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
38490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
77d6bd88 | 38491 | else |
33f5f8b9 | 38492 | if test "$ac_cv_type_size_t" = yes; then |
38493 | # The cast to unsigned long works around a bug in the HP C Compiler | |
38494 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
38495 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
38496 | # This bug is HP SR number 8606223364. | |
38497 | if test "$cross_compiling" = yes; then | |
38498 | # Depending upon the size, compute the lo and hi bounds. | |
38499 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 38500 | /* confdefs.h. */ |
38501 | _ACEOF | |
38502 | cat confdefs.h >>conftest.$ac_ext | |
38503 | cat >>conftest.$ac_ext <<_ACEOF | |
38504 | /* end confdefs.h. */ | |
6a771064 | 38505 | |
a6edf800 | 38506 | #include <stdio.h> |
38507 | ||
6a771064 | 38508 | /* What a mess.. many systems have added the (now standard) bit types |
38509 | * in their own ways, so we need to scan a wide variety of headers to | |
38510 | * find them.. | |
33f5f8b9 | 38511 | * IMPORTANT: Keep include/squid_types.h syncronised with this list |
6a771064 | 38512 | */ |
33f5f8b9 | 38513 | #if HAVE_SYS_TYPES_H |
77d6bd88 | 38514 | #include <sys/types.h> |
33f5f8b9 | 38515 | #endif |
77d6bd88 | 38516 | #if STDC_HEADERS |
38517 | #include <stdlib.h> | |
38518 | #include <stddef.h> | |
38519 | #endif | |
f0902a4b | 38520 | #if HAVE_INTTYPES_H |
38521 | #include <inttypes.h> | |
38522 | #endif | |
6a771064 | 38523 | #if HAVE_SYS_BITYPES_H |
38524 | #include <sys/bitypes.h> | |
38525 | #endif | |
11e71ab8 | 38526 | #if HAVE_SYS_SELECT_H |
38527 | #include <sys/select.h> | |
38528 | #endif | |
6a771064 | 38529 | |
77d6bd88 | 38530 | |
a6edf800 | 38531 | |
33f5f8b9 | 38532 | int |
38533 | main () | |
38534 | { | |
38535 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
38536 | test_array [0] = 0 | |
77d6bd88 | 38537 | |
33f5f8b9 | 38538 | ; |
38539 | return 0; | |
38540 | } | |
38541 | _ACEOF | |
38542 | rm -f conftest.$ac_objext | |
38543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 38544 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 38545 | ac_status=$? |
af3004ff | 38546 | grep -v '^ *+' conftest.er1 >conftest.err |
38547 | rm -f conftest.er1 | |
38548 | cat conftest.err >&5 | |
33f5f8b9 | 38549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38550 | (exit $ac_status); } && | |
6263d81f | 38551 | { ac_try='test -z "$ac_c_werror_flag" |
38552 | || test ! -s conftest.err' | |
af3004ff | 38553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38554 | (eval $ac_try) 2>&5 | |
38555 | ac_status=$? | |
38556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38557 | (exit $ac_status); }; } && | |
38558 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 38559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38560 | (eval $ac_try) 2>&5 | |
38561 | ac_status=$? | |
38562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38563 | (exit $ac_status); }; }; then | |
38564 | ac_lo=0 ac_mid=0 | |
38565 | while :; do | |
38566 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 38567 | /* confdefs.h. */ |
38568 | _ACEOF | |
38569 | cat confdefs.h >>conftest.$ac_ext | |
38570 | cat >>conftest.$ac_ext <<_ACEOF | |
38571 | /* end confdefs.h. */ | |
6a771064 | 38572 | |
a6edf800 | 38573 | #include <stdio.h> |
38574 | ||
6a771064 | 38575 | /* What a mess.. many systems have added the (now standard) bit types |
38576 | * in their own ways, so we need to scan a wide variety of headers to | |
38577 | * find them.. | |
33f5f8b9 | 38578 | * IMPORTANT: Keep include/squid_types.h syncronised with this list |
6a771064 | 38579 | */ |
33f5f8b9 | 38580 | #if HAVE_SYS_TYPES_H |
77d6bd88 | 38581 | #include <sys/types.h> |
33f5f8b9 | 38582 | #endif |
77d6bd88 | 38583 | #if STDC_HEADERS |
38584 | #include <stdlib.h> | |
38585 | #include <stddef.h> | |
38586 | #endif | |
f0902a4b | 38587 | #if HAVE_INTTYPES_H |
38588 | #include <inttypes.h> | |
38589 | #endif | |
6a771064 | 38590 | #if HAVE_SYS_BITYPES_H |
38591 | #include <sys/bitypes.h> | |
38592 | #endif | |
11e71ab8 | 38593 | #if HAVE_SYS_SELECT_H |
38594 | #include <sys/select.h> | |
38595 | #endif | |
6a771064 | 38596 | |
77d6bd88 | 38597 | |
a6edf800 | 38598 | |
33f5f8b9 | 38599 | int |
38600 | main () | |
38601 | { | |
38602 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
38603 | test_array [0] = 0 | |
77d6bd88 | 38604 | |
33f5f8b9 | 38605 | ; |
38606 | return 0; | |
38607 | } | |
38608 | _ACEOF | |
38609 | rm -f conftest.$ac_objext | |
38610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 38611 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 38612 | ac_status=$? |
af3004ff | 38613 | grep -v '^ *+' conftest.er1 >conftest.err |
38614 | rm -f conftest.er1 | |
38615 | cat conftest.err >&5 | |
33f5f8b9 | 38616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38617 | (exit $ac_status); } && | |
6263d81f | 38618 | { ac_try='test -z "$ac_c_werror_flag" |
38619 | || test ! -s conftest.err' | |
af3004ff | 38620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38621 | (eval $ac_try) 2>&5 | |
38622 | ac_status=$? | |
38623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38624 | (exit $ac_status); }; } && | |
38625 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 38626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38627 | (eval $ac_try) 2>&5 | |
38628 | ac_status=$? | |
38629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38630 | (exit $ac_status); }; }; then | |
38631 | ac_hi=$ac_mid; break | |
38632 | else | |
38633 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 38634 | sed 's/^/| /' conftest.$ac_ext >&5 |
38635 | ||
33f5f8b9 | 38636 | ac_lo=`expr $ac_mid + 1` |
af3004ff | 38637 | if test $ac_lo -le $ac_mid; then |
38638 | ac_lo= ac_hi= | |
38639 | break | |
38640 | fi | |
38641 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
33f5f8b9 | 38642 | fi |
af3004ff | 38643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 38644 | done |
77d6bd88 | 38645 | else |
33f5f8b9 | 38646 | echo "$as_me: failed program was:" >&5 |
ad21602a | 38647 | sed 's/^/| /' conftest.$ac_ext >&5 |
38648 | ||
33f5f8b9 | 38649 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 38650 | /* confdefs.h. */ |
38651 | _ACEOF | |
38652 | cat confdefs.h >>conftest.$ac_ext | |
38653 | cat >>conftest.$ac_ext <<_ACEOF | |
38654 | /* end confdefs.h. */ | |
6a771064 | 38655 | |
a6edf800 | 38656 | #include <stdio.h> |
38657 | ||
6a771064 | 38658 | /* What a mess.. many systems have added the (now standard) bit types |
38659 | * in their own ways, so we need to scan a wide variety of headers to | |
38660 | * find them.. | |
33f5f8b9 | 38661 | * IMPORTANT: Keep include/squid_types.h syncronised with this list |
6a771064 | 38662 | */ |
33f5f8b9 | 38663 | #if HAVE_SYS_TYPES_H |
77d6bd88 | 38664 | #include <sys/types.h> |
33f5f8b9 | 38665 | #endif |
77d6bd88 | 38666 | #if STDC_HEADERS |
38667 | #include <stdlib.h> | |
38668 | #include <stddef.h> | |
38669 | #endif | |
f0902a4b | 38670 | #if HAVE_INTTYPES_H |
38671 | #include <inttypes.h> | |
38672 | #endif | |
6a771064 | 38673 | #if HAVE_SYS_BITYPES_H |
38674 | #include <sys/bitypes.h> | |
38675 | #endif | |
11e71ab8 | 38676 | #if HAVE_SYS_SELECT_H |
38677 | #include <sys/select.h> | |
38678 | #endif | |
6a771064 | 38679 | |
77d6bd88 | 38680 | |
a6edf800 | 38681 | |
33f5f8b9 | 38682 | int |
38683 | main () | |
38684 | { | |
38685 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
38686 | test_array [0] = 0 | |
77d6bd88 | 38687 | |
33f5f8b9 | 38688 | ; |
38689 | return 0; | |
38690 | } | |
38691 | _ACEOF | |
38692 | rm -f conftest.$ac_objext | |
38693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 38694 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 38695 | ac_status=$? |
af3004ff | 38696 | grep -v '^ *+' conftest.er1 >conftest.err |
38697 | rm -f conftest.er1 | |
38698 | cat conftest.err >&5 | |
33f5f8b9 | 38699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38700 | (exit $ac_status); } && | |
6263d81f | 38701 | { ac_try='test -z "$ac_c_werror_flag" |
38702 | || test ! -s conftest.err' | |
af3004ff | 38703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38704 | (eval $ac_try) 2>&5 | |
38705 | ac_status=$? | |
38706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38707 | (exit $ac_status); }; } && | |
38708 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 38709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38710 | (eval $ac_try) 2>&5 | |
38711 | ac_status=$? | |
38712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38713 | (exit $ac_status); }; }; then | |
38714 | ac_hi=-1 ac_mid=-1 | |
38715 | while :; do | |
38716 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 38717 | /* confdefs.h. */ |
38718 | _ACEOF | |
38719 | cat confdefs.h >>conftest.$ac_ext | |
38720 | cat >>conftest.$ac_ext <<_ACEOF | |
38721 | /* end confdefs.h. */ | |
6a771064 | 38722 | |
a6edf800 | 38723 | #include <stdio.h> |
38724 | ||
6a771064 | 38725 | /* What a mess.. many systems have added the (now standard) bit types |
38726 | * in their own ways, so we need to scan a wide variety of headers to | |
38727 | * find them.. | |
33f5f8b9 | 38728 | * IMPORTANT: Keep include/squid_types.h syncronised with this list |
6a771064 | 38729 | */ |
33f5f8b9 | 38730 | #if HAVE_SYS_TYPES_H |
77d6bd88 | 38731 | #include <sys/types.h> |
33f5f8b9 | 38732 | #endif |
77d6bd88 | 38733 | #if STDC_HEADERS |
38734 | #include <stdlib.h> | |
38735 | #include <stddef.h> | |
38736 | #endif | |
f0902a4b | 38737 | #if HAVE_INTTYPES_H |
38738 | #include <inttypes.h> | |
38739 | #endif | |
6a771064 | 38740 | #if HAVE_SYS_BITYPES_H |
38741 | #include <sys/bitypes.h> | |
38742 | #endif | |
11e71ab8 | 38743 | #if HAVE_SYS_SELECT_H |
38744 | #include <sys/select.h> | |
38745 | #endif | |
6a771064 | 38746 | |
77d6bd88 | 38747 | |
a6edf800 | 38748 | |
33f5f8b9 | 38749 | int |
38750 | main () | |
38751 | { | |
38752 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
38753 | test_array [0] = 0 | |
77d6bd88 | 38754 | |
33f5f8b9 | 38755 | ; |
38756 | return 0; | |
38757 | } | |
38758 | _ACEOF | |
38759 | rm -f conftest.$ac_objext | |
38760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 38761 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 38762 | ac_status=$? |
af3004ff | 38763 | grep -v '^ *+' conftest.er1 >conftest.err |
38764 | rm -f conftest.er1 | |
38765 | cat conftest.err >&5 | |
33f5f8b9 | 38766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38767 | (exit $ac_status); } && | |
6263d81f | 38768 | { ac_try='test -z "$ac_c_werror_flag" |
38769 | || test ! -s conftest.err' | |
af3004ff | 38770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38771 | (eval $ac_try) 2>&5 | |
38772 | ac_status=$? | |
38773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38774 | (exit $ac_status); }; } && | |
38775 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 38776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38777 | (eval $ac_try) 2>&5 | |
38778 | ac_status=$? | |
38779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38780 | (exit $ac_status); }; }; then | |
38781 | ac_lo=$ac_mid; break | |
38782 | else | |
38783 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 38784 | sed 's/^/| /' conftest.$ac_ext >&5 |
38785 | ||
33f5f8b9 | 38786 | ac_hi=`expr '(' $ac_mid ')' - 1` |
af3004ff | 38787 | if test $ac_mid -le $ac_hi; then |
38788 | ac_lo= ac_hi= | |
38789 | break | |
38790 | fi | |
38791 | ac_mid=`expr 2 '*' $ac_mid` | |
33f5f8b9 | 38792 | fi |
af3004ff | 38793 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 38794 | done |
38795 | else | |
38796 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 38797 | sed 's/^/| /' conftest.$ac_ext >&5 |
38798 | ||
33f5f8b9 | 38799 | ac_lo= ac_hi= |
77d6bd88 | 38800 | fi |
af3004ff | 38801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
77d6bd88 | 38802 | fi |
af3004ff | 38803 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 38804 | # Binary search between lo and hi bounds. |
38805 | while test "x$ac_lo" != "x$ac_hi"; do | |
38806 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
38807 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 38808 | /* confdefs.h. */ |
38809 | _ACEOF | |
38810 | cat confdefs.h >>conftest.$ac_ext | |
38811 | cat >>conftest.$ac_ext <<_ACEOF | |
38812 | /* end confdefs.h. */ | |
6a771064 | 38813 | |
a6edf800 | 38814 | #include <stdio.h> |
38815 | ||
6a771064 | 38816 | /* What a mess.. many systems have added the (now standard) bit types |
38817 | * in their own ways, so we need to scan a wide variety of headers to | |
38818 | * find them.. | |
33f5f8b9 | 38819 | * IMPORTANT: Keep include/squid_types.h syncronised with this list |
6a771064 | 38820 | */ |
33f5f8b9 | 38821 | #if HAVE_SYS_TYPES_H |
77d6bd88 | 38822 | #include <sys/types.h> |
33f5f8b9 | 38823 | #endif |
77d6bd88 | 38824 | #if STDC_HEADERS |
38825 | #include <stdlib.h> | |
38826 | #include <stddef.h> | |
38827 | #endif | |
f0902a4b | 38828 | #if HAVE_INTTYPES_H |
38829 | #include <inttypes.h> | |
38830 | #endif | |
6a771064 | 38831 | #if HAVE_SYS_BITYPES_H |
38832 | #include <sys/bitypes.h> | |
38833 | #endif | |
11e71ab8 | 38834 | #if HAVE_SYS_SELECT_H |
38835 | #include <sys/select.h> | |
38836 | #endif | |
6a771064 | 38837 | |
77d6bd88 | 38838 | |
a6edf800 | 38839 | |
33f5f8b9 | 38840 | int |
38841 | main () | |
38842 | { | |
38843 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
38844 | test_array [0] = 0 | |
77d6bd88 | 38845 | |
33f5f8b9 | 38846 | ; |
38847 | return 0; | |
38848 | } | |
38849 | _ACEOF | |
38850 | rm -f conftest.$ac_objext | |
38851 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 38852 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 38853 | ac_status=$? |
af3004ff | 38854 | grep -v '^ *+' conftest.er1 >conftest.err |
38855 | rm -f conftest.er1 | |
38856 | cat conftest.err >&5 | |
33f5f8b9 | 38857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38858 | (exit $ac_status); } && | |
6263d81f | 38859 | { ac_try='test -z "$ac_c_werror_flag" |
38860 | || test ! -s conftest.err' | |
af3004ff | 38861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38862 | (eval $ac_try) 2>&5 | |
38863 | ac_status=$? | |
38864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38865 | (exit $ac_status); }; } && | |
38866 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 38867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38868 | (eval $ac_try) 2>&5 | |
38869 | ac_status=$? | |
38870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38871 | (exit $ac_status); }; }; then | |
38872 | ac_hi=$ac_mid | |
38873 | else | |
38874 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 38875 | sed 's/^/| /' conftest.$ac_ext >&5 |
38876 | ||
33f5f8b9 | 38877 | ac_lo=`expr '(' $ac_mid ')' + 1` |
38878 | fi | |
af3004ff | 38879 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 38880 | done |
38881 | case $ac_lo in | |
38882 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
ad21602a | 38883 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 |
38884 | See \`config.log' for more details." >&5 | |
38885 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
38886 | See \`config.log' for more details." >&2;} | |
33f5f8b9 | 38887 | { (exit 1); exit 1; }; } ;; |
38888 | esac | |
38889 | else | |
38890 | if test "$cross_compiling" = yes; then | |
6263d81f | 38891 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
38892 | See \`config.log' for more details." >&5 | |
38893 | echo "$as_me: error: cannot run test program while cross compiling | |
38894 | See \`config.log' for more details." >&2;} | |
33f5f8b9 | 38895 | { (exit 1); exit 1; }; } |
77d6bd88 | 38896 | else |
33f5f8b9 | 38897 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 38898 | /* confdefs.h. */ |
38899 | _ACEOF | |
38900 | cat confdefs.h >>conftest.$ac_ext | |
38901 | cat >>conftest.$ac_ext <<_ACEOF | |
38902 | /* end confdefs.h. */ | |
6a771064 | 38903 | |
a6edf800 | 38904 | #include <stdio.h> |
38905 | ||
6a771064 | 38906 | /* What a mess.. many systems have added the (now standard) bit types |
38907 | * in their own ways, so we need to scan a wide variety of headers to | |
38908 | * find them.. | |
33f5f8b9 | 38909 | * IMPORTANT: Keep include/squid_types.h syncronised with this list |
6a771064 | 38910 | */ |
33f5f8b9 | 38911 | #if HAVE_SYS_TYPES_H |
77d6bd88 | 38912 | #include <sys/types.h> |
33f5f8b9 | 38913 | #endif |
77d6bd88 | 38914 | #if STDC_HEADERS |
38915 | #include <stdlib.h> | |
38916 | #include <stddef.h> | |
38917 | #endif | |
f0902a4b | 38918 | #if HAVE_INTTYPES_H |
38919 | #include <inttypes.h> | |
38920 | #endif | |
6a771064 | 38921 | #if HAVE_SYS_BITYPES_H |
38922 | #include <sys/bitypes.h> | |
38923 | #endif | |
11e71ab8 | 38924 | #if HAVE_SYS_SELECT_H |
38925 | #include <sys/select.h> | |
38926 | #endif | |
6a771064 | 38927 | |
33f5f8b9 | 38928 | |
a6edf800 | 38929 | |
33f5f8b9 | 38930 | long longval () { return (long) (sizeof (size_t)); } |
38931 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
38932 | #include <stdio.h> | |
38933 | #include <stdlib.h> | |
33f5f8b9 | 38934 | int |
38935 | main () | |
38936 | { | |
38937 | ||
38938 | FILE *f = fopen ("conftest.val", "w"); | |
38939 | if (! f) | |
38940 | exit (1); | |
38941 | if (((long) (sizeof (size_t))) < 0) | |
38942 | { | |
38943 | long i = longval (); | |
38944 | if (i != ((long) (sizeof (size_t)))) | |
38945 | exit (1); | |
38946 | fprintf (f, "%ld\n", i); | |
38947 | } | |
38948 | else | |
38949 | { | |
38950 | unsigned long i = ulongval (); | |
38951 | if (i != ((long) (sizeof (size_t)))) | |
38952 | exit (1); | |
38953 | fprintf (f, "%lu\n", i); | |
38954 | } | |
38955 | exit (ferror (f) || fclose (f) != 0); | |
38956 | ||
38957 | ; | |
38958 | return 0; | |
38959 | } | |
38960 | _ACEOF | |
38961 | rm -f conftest$ac_exeext | |
38962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
38963 | (eval $ac_link) 2>&5 | |
38964 | ac_status=$? | |
38965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38966 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
38967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
38968 | (eval $ac_try) 2>&5 | |
38969 | ac_status=$? | |
38970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38971 | (exit $ac_status); }; }; then | |
38972 | ac_cv_sizeof_size_t=`cat conftest.val` | |
38973 | else | |
38974 | echo "$as_me: program exited with status $ac_status" >&5 | |
38975 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 38976 | sed 's/^/| /' conftest.$ac_ext >&5 |
38977 | ||
33f5f8b9 | 38978 | ( exit $ac_status ) |
ad21602a | 38979 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 |
38980 | See \`config.log' for more details." >&5 | |
38981 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
38982 | See \`config.log' for more details." >&2;} | |
33f5f8b9 | 38983 | { (exit 1); exit 1; }; } |
38984 | fi | |
af3004ff | 38985 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 38986 | fi |
38987 | fi | |
38988 | rm -f conftest.val | |
77d6bd88 | 38989 | else |
33f5f8b9 | 38990 | ac_cv_sizeof_size_t=0 |
77d6bd88 | 38991 | fi |
77d6bd88 | 38992 | fi |
33f5f8b9 | 38993 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 |
38994 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
38995 | cat >>confdefs.h <<_ACEOF | |
38996 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
38997 | _ACEOF | |
38998 | ||
38999 | ||
39000 | ||
39001 | cat >>confdefs.h <<\_ACEOF | |
39002 | #define HAVE_SIZE_T 1 | |
39003 | _ACEOF | |
77d6bd88 | 39004 | |
39005 | fi | |
39006 | ||
33f5f8b9 | 39007 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
39008 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 | |
39009 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
39010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
77d6bd88 | 39011 | else |
33f5f8b9 | 39012 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 39013 | /* confdefs.h. */ |
39014 | _ACEOF | |
39015 | cat confdefs.h >>conftest.$ac_ext | |
39016 | cat >>conftest.$ac_ext <<_ACEOF | |
39017 | /* end confdefs.h. */ | |
6a771064 | 39018 | |
39019 | /* What a mess.. many systems have added the (now standard) bit types | |
39020 | * in their own ways, so we need to scan a wide variety of headers to | |
39021 | * find them.. | |
33f5f8b9 | 39022 | * IMPORTANT: Keep include/squid_types.h syncronised with this list |
6a771064 | 39023 | */ |
33f5f8b9 | 39024 | #if HAVE_SYS_TYPES_H |
77d6bd88 | 39025 | #include <sys/types.h> |
33f5f8b9 | 39026 | #endif |
77d6bd88 | 39027 | #if STDC_HEADERS |
39028 | #include <stdlib.h> | |
39029 | #include <stddef.h> | |
39030 | #endif | |
f0902a4b | 39031 | #if HAVE_INTTYPES_H |
39032 | #include <inttypes.h> | |
39033 | #endif | |
6a771064 | 39034 | #if HAVE_SYS_BITYPES_H |
39035 | #include <sys/bitypes.h> | |
39036 | #endif | |
11e71ab8 | 39037 | #if HAVE_SYS_SELECT_H |
39038 | #include <sys/select.h> | |
39039 | #endif | |
6a771064 | 39040 | |
33f5f8b9 | 39041 | |
33f5f8b9 | 39042 | int |
39043 | main () | |
39044 | { | |
39045 | if ((ssize_t *) 0) | |
39046 | return 0; | |
39047 | if (sizeof (ssize_t)) | |
39048 | return 0; | |
39049 | ; | |
39050 | return 0; | |
39051 | } | |
39052 | _ACEOF | |
39053 | rm -f conftest.$ac_objext | |
39054 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 39055 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 39056 | ac_status=$? |
af3004ff | 39057 | grep -v '^ *+' conftest.er1 >conftest.err |
39058 | rm -f conftest.er1 | |
39059 | cat conftest.err >&5 | |
33f5f8b9 | 39060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39061 | (exit $ac_status); } && | |
6263d81f | 39062 | { ac_try='test -z "$ac_c_werror_flag" |
39063 | || test ! -s conftest.err' | |
af3004ff | 39064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39065 | (eval $ac_try) 2>&5 | |
39066 | ac_status=$? | |
39067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39068 | (exit $ac_status); }; } && | |
39069 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 39070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39071 | (eval $ac_try) 2>&5 | |
39072 | ac_status=$? | |
39073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39074 | (exit $ac_status); }; }; then | |
39075 | ac_cv_type_ssize_t=yes | |
77d6bd88 | 39076 | else |
33f5f8b9 | 39077 | echo "$as_me: failed program was:" >&5 |
ad21602a | 39078 | sed 's/^/| /' conftest.$ac_ext >&5 |
39079 | ||
33f5f8b9 | 39080 | ac_cv_type_ssize_t=no |
77d6bd88 | 39081 | fi |
af3004ff | 39082 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
77d6bd88 | 39083 | fi |
33f5f8b9 | 39084 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
39085 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 | |
39086 | if test $ac_cv_type_ssize_t = yes; then | |
77d6bd88 | 39087 | |
33f5f8b9 | 39088 | cat >>confdefs.h <<\_ACEOF |
39089 | #define HAVE_SSIZE_T 1 | |
39090 | _ACEOF | |
77d6bd88 | 39091 | |
39092 | fi | |
33f5f8b9 | 39093 | |
39094 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
39095 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
39096 | if test "${ac_cv_type_off_t+set}" = set; then | |
39097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
77d6bd88 | 39098 | else |
33f5f8b9 | 39099 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 39100 | /* confdefs.h. */ |
39101 | _ACEOF | |
39102 | cat confdefs.h >>conftest.$ac_ext | |
39103 | cat >>conftest.$ac_ext <<_ACEOF | |
39104 | /* end confdefs.h. */ | |
6a771064 | 39105 | |
39106 | /* What a mess.. many systems have added the (now standard) bit types | |
39107 | * in their own ways, so we need to scan a wide variety of headers to | |
39108 | * find them.. | |
33f5f8b9 | 39109 | * IMPORTANT: Keep include/squid_types.h syncronised with this list |
6a771064 | 39110 | */ |
33f5f8b9 | 39111 | #if HAVE_SYS_TYPES_H |
77d6bd88 | 39112 | #include <sys/types.h> |
33f5f8b9 | 39113 | #endif |
77d6bd88 | 39114 | #if STDC_HEADERS |
39115 | #include <stdlib.h> | |
39116 | #include <stddef.h> | |
39117 | #endif | |
f0902a4b | 39118 | #if HAVE_INTTYPES_H |
39119 | #include <inttypes.h> | |
39120 | #endif | |
6a771064 | 39121 | #if HAVE_SYS_BITYPES_H |
39122 | #include <sys/bitypes.h> | |
39123 | #endif | |
11e71ab8 | 39124 | #if HAVE_SYS_SELECT_H |
39125 | #include <sys/select.h> | |
39126 | #endif | |
6a771064 | 39127 | |
77d6bd88 | 39128 | |
33f5f8b9 | 39129 | int |
39130 | main () | |
39131 | { | |
39132 | if ((off_t *) 0) | |
39133 | return 0; | |
39134 | if (sizeof (off_t)) | |
39135 | return 0; | |
39136 | ; | |
39137 | return 0; | |
39138 | } | |
39139 | _ACEOF | |
39140 | rm -f conftest.$ac_objext | |
39141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 39142 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 39143 | ac_status=$? |
af3004ff | 39144 | grep -v '^ *+' conftest.er1 >conftest.err |
39145 | rm -f conftest.er1 | |
39146 | cat conftest.err >&5 | |
33f5f8b9 | 39147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39148 | (exit $ac_status); } && | |
6263d81f | 39149 | { ac_try='test -z "$ac_c_werror_flag" |
39150 | || test ! -s conftest.err' | |
af3004ff | 39151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39152 | (eval $ac_try) 2>&5 | |
39153 | ac_status=$? | |
39154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39155 | (exit $ac_status); }; } && | |
39156 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 39157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39158 | (eval $ac_try) 2>&5 | |
39159 | ac_status=$? | |
39160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39161 | (exit $ac_status); }; }; then | |
39162 | ac_cv_type_off_t=yes | |
39163 | else | |
39164 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 39165 | sed 's/^/| /' conftest.$ac_ext >&5 |
39166 | ||
33f5f8b9 | 39167 | ac_cv_type_off_t=no |
77d6bd88 | 39168 | fi |
af3004ff | 39169 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
77d6bd88 | 39170 | fi |
33f5f8b9 | 39171 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
39172 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
39173 | if test $ac_cv_type_off_t = yes; then | |
39174 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
39175 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
39176 | if test "${ac_cv_type_off_t+set}" = set; then | |
39177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
77d6bd88 | 39178 | else |
33f5f8b9 | 39179 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 39180 | /* confdefs.h. */ |
39181 | _ACEOF | |
39182 | cat confdefs.h >>conftest.$ac_ext | |
39183 | cat >>conftest.$ac_ext <<_ACEOF | |
39184 | /* end confdefs.h. */ | |
6a771064 | 39185 | |
a6edf800 | 39186 | #include <stdio.h> |
39187 | ||
6a771064 | 39188 | /* What a mess.. many systems have added the (now standard) bit types |
39189 | * in their own ways, so we need to scan a wide variety of headers to | |
39190 | * find them.. | |
33f5f8b9 | 39191 | * IMPORTANT: Keep include/squid_types.h syncronised with this list |
6a771064 | 39192 | */ |
33f5f8b9 | 39193 | #if HAVE_SYS_TYPES_H |
77d6bd88 | 39194 | #include <sys/types.h> |
33f5f8b9 | 39195 | #endif |
77d6bd88 | 39196 | #if STDC_HEADERS |
39197 | #include <stdlib.h> | |
39198 | #include <stddef.h> | |
39199 | #endif | |
f0902a4b | 39200 | #if HAVE_INTTYPES_H |
39201 | #include <inttypes.h> | |
39202 | #endif | |
6a771064 | 39203 | #if HAVE_SYS_BITYPES_H |
39204 | #include <sys/bitypes.h> | |
39205 | #endif | |
11e71ab8 | 39206 | #if HAVE_SYS_SELECT_H |
39207 | #include <sys/select.h> | |
39208 | #endif | |
6a771064 | 39209 | |
77d6bd88 | 39210 | |
a6edf800 | 39211 | |
33f5f8b9 | 39212 | int |
39213 | main () | |
39214 | { | |
39215 | if ((off_t *) 0) | |
39216 | return 0; | |
39217 | if (sizeof (off_t)) | |
39218 | return 0; | |
39219 | ; | |
39220 | return 0; | |
39221 | } | |
39222 | _ACEOF | |
39223 | rm -f conftest.$ac_objext | |
39224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 39225 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 39226 | ac_status=$? |
af3004ff | 39227 | grep -v '^ *+' conftest.er1 >conftest.err |
39228 | rm -f conftest.er1 | |
39229 | cat conftest.err >&5 | |
33f5f8b9 | 39230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39231 | (exit $ac_status); } && | |
6263d81f | 39232 | { ac_try='test -z "$ac_c_werror_flag" |
39233 | || test ! -s conftest.err' | |
af3004ff | 39234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39235 | (eval $ac_try) 2>&5 | |
39236 | ac_status=$? | |
39237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39238 | (exit $ac_status); }; } && | |
39239 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 39240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39241 | (eval $ac_try) 2>&5 | |
39242 | ac_status=$? | |
39243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39244 | (exit $ac_status); }; }; then | |
39245 | ac_cv_type_off_t=yes | |
39246 | else | |
39247 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 39248 | sed 's/^/| /' conftest.$ac_ext >&5 |
39249 | ||
33f5f8b9 | 39250 | ac_cv_type_off_t=no |
77d6bd88 | 39251 | fi |
af3004ff | 39252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
77d6bd88 | 39253 | fi |
33f5f8b9 | 39254 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
39255 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
77d6bd88 | 39256 | |
33f5f8b9 | 39257 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
39258 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 | |
39259 | if test "${ac_cv_sizeof_off_t+set}" = set; then | |
39260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
77d6bd88 | 39261 | else |
33f5f8b9 | 39262 | if test "$ac_cv_type_off_t" = yes; then |
39263 | # The cast to unsigned long works around a bug in the HP C Compiler | |
39264 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
39265 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
39266 | # This bug is HP SR number 8606223364. | |
39267 | if test "$cross_compiling" = yes; then | |
39268 | # Depending upon the size, compute the lo and hi bounds. | |
39269 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 39270 | /* confdefs.h. */ |
39271 | _ACEOF | |
39272 | cat confdefs.h >>conftest.$ac_ext | |
39273 | cat >>conftest.$ac_ext <<_ACEOF | |
39274 | /* end confdefs.h. */ | |
6a771064 | 39275 | |
a6edf800 | 39276 | #include <stdio.h> |
39277 | ||
6a771064 | 39278 | /* What a mess.. many systems have added the (now standard) bit types |
39279 | * in their own ways, so we need to scan a wide variety of headers to | |
39280 | * find them.. | |
33f5f8b9 | 39281 | * IMPORTANT: Keep include/squid_types.h syncronised with this list |
6a771064 | 39282 | */ |
33f5f8b9 | 39283 | #if HAVE_SYS_TYPES_H |
77d6bd88 | 39284 | #include <sys/types.h> |
33f5f8b9 | 39285 | #endif |
77d6bd88 | 39286 | #if STDC_HEADERS |
39287 | #include <stdlib.h> | |
39288 | #include <stddef.h> | |
39289 | #endif | |
f0902a4b | 39290 | #if HAVE_INTTYPES_H |
39291 | #include <inttypes.h> | |
39292 | #endif | |
6a771064 | 39293 | #if HAVE_SYS_BITYPES_H |
39294 | #include <sys/bitypes.h> | |
39295 | #endif | |
11e71ab8 | 39296 | #if HAVE_SYS_SELECT_H |
39297 | #include <sys/select.h> | |
39298 | #endif | |
6a771064 | 39299 | |
77d6bd88 | 39300 | |
a6edf800 | 39301 | |
33f5f8b9 | 39302 | int |
39303 | main () | |
39304 | { | |
39305 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)]; | |
39306 | test_array [0] = 0 | |
77d6bd88 | 39307 | |
33f5f8b9 | 39308 | ; |
39309 | return 0; | |
39310 | } | |
39311 | _ACEOF | |
39312 | rm -f conftest.$ac_objext | |
39313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 39314 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 39315 | ac_status=$? |
af3004ff | 39316 | grep -v '^ *+' conftest.er1 >conftest.err |
39317 | rm -f conftest.er1 | |
39318 | cat conftest.err >&5 | |
33f5f8b9 | 39319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39320 | (exit $ac_status); } && | |
6263d81f | 39321 | { ac_try='test -z "$ac_c_werror_flag" |
39322 | || test ! -s conftest.err' | |
af3004ff | 39323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39324 | (eval $ac_try) 2>&5 | |
39325 | ac_status=$? | |
39326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39327 | (exit $ac_status); }; } && | |
39328 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 39329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39330 | (eval $ac_try) 2>&5 | |
39331 | ac_status=$? | |
39332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39333 | (exit $ac_status); }; }; then | |
39334 | ac_lo=0 ac_mid=0 | |
39335 | while :; do | |
39336 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 39337 | /* confdefs.h. */ |
39338 | _ACEOF | |
39339 | cat confdefs.h >>conftest.$ac_ext | |
39340 | cat >>conftest.$ac_ext <<_ACEOF | |
39341 | /* end confdefs.h. */ | |
6a771064 | 39342 | |
a6edf800 | 39343 | #include <stdio.h> |
39344 | ||
6a771064 | 39345 | /* What a mess.. many systems have added the (now standard) bit types |
39346 | * in their own ways, so we need to scan a wide variety of headers to | |
39347 | * find them.. | |
33f5f8b9 | 39348 | * IMPORTANT: Keep include/squid_types.h syncronised with this list |
6a771064 | 39349 | */ |
33f5f8b9 | 39350 | #if HAVE_SYS_TYPES_H |
77d6bd88 | 39351 | #include <sys/types.h> |
33f5f8b9 | 39352 | #endif |
77d6bd88 | 39353 | #if STDC_HEADERS |
39354 | #include <stdlib.h> | |
39355 | #include <stddef.h> | |
39356 | #endif | |
f0902a4b | 39357 | #if HAVE_INTTYPES_H |
39358 | #include <inttypes.h> | |
39359 | #endif | |
6a771064 | 39360 | #if HAVE_SYS_BITYPES_H |
39361 | #include <sys/bitypes.h> | |
39362 | #endif | |
11e71ab8 | 39363 | #if HAVE_SYS_SELECT_H |
39364 | #include <sys/select.h> | |
39365 | #endif | |
6a771064 | 39366 | |
77d6bd88 | 39367 | |
a6edf800 | 39368 | |
33f5f8b9 | 39369 | int |
39370 | main () | |
39371 | { | |
39372 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)]; | |
39373 | test_array [0] = 0 | |
77d6bd88 | 39374 | |
33f5f8b9 | 39375 | ; |
39376 | return 0; | |
39377 | } | |
39378 | _ACEOF | |
39379 | rm -f conftest.$ac_objext | |
39380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 39381 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 39382 | ac_status=$? |
af3004ff | 39383 | grep -v '^ *+' conftest.er1 >conftest.err |
39384 | rm -f conftest.er1 | |
39385 | cat conftest.err >&5 | |
33f5f8b9 | 39386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39387 | (exit $ac_status); } && | |
6263d81f | 39388 | { ac_try='test -z "$ac_c_werror_flag" |
39389 | || test ! -s conftest.err' | |
af3004ff | 39390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39391 | (eval $ac_try) 2>&5 | |
39392 | ac_status=$? | |
39393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39394 | (exit $ac_status); }; } && | |
39395 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 39396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39397 | (eval $ac_try) 2>&5 | |
39398 | ac_status=$? | |
39399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39400 | (exit $ac_status); }; }; then | |
39401 | ac_hi=$ac_mid; break | |
39402 | else | |
39403 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 39404 | sed 's/^/| /' conftest.$ac_ext >&5 |
39405 | ||
33f5f8b9 | 39406 | ac_lo=`expr $ac_mid + 1` |
af3004ff | 39407 | if test $ac_lo -le $ac_mid; then |
39408 | ac_lo= ac_hi= | |
39409 | break | |
39410 | fi | |
39411 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
33f5f8b9 | 39412 | fi |
af3004ff | 39413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 39414 | done |
77d6bd88 | 39415 | else |
33f5f8b9 | 39416 | echo "$as_me: failed program was:" >&5 |
ad21602a | 39417 | sed 's/^/| /' conftest.$ac_ext >&5 |
39418 | ||
33f5f8b9 | 39419 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 39420 | /* confdefs.h. */ |
39421 | _ACEOF | |
39422 | cat confdefs.h >>conftest.$ac_ext | |
39423 | cat >>conftest.$ac_ext <<_ACEOF | |
39424 | /* end confdefs.h. */ | |
6a771064 | 39425 | |
a6edf800 | 39426 | #include <stdio.h> |
39427 | ||
6a771064 | 39428 | /* What a mess.. many systems have added the (now standard) bit types |
39429 | * in their own ways, so we need to scan a wide variety of headers to | |
39430 | * find them.. | |
33f5f8b9 | 39431 | * IMPORTANT: Keep include/squid_types.h syncronised with this list |
6a771064 | 39432 | */ |
33f5f8b9 | 39433 | #if HAVE_SYS_TYPES_H |
77d6bd88 | 39434 | #include <sys/types.h> |
33f5f8b9 | 39435 | #endif |
77d6bd88 | 39436 | #if STDC_HEADERS |
39437 | #include <stdlib.h> | |
39438 | #include <stddef.h> | |
39439 | #endif | |
f0902a4b | 39440 | #if HAVE_INTTYPES_H |
39441 | #include <inttypes.h> | |
39442 | #endif | |
6a771064 | 39443 | #if HAVE_SYS_BITYPES_H |
39444 | #include <sys/bitypes.h> | |
39445 | #endif | |
11e71ab8 | 39446 | #if HAVE_SYS_SELECT_H |
39447 | #include <sys/select.h> | |
39448 | #endif | |
6a771064 | 39449 | |
77d6bd88 | 39450 | |
a6edf800 | 39451 | |
33f5f8b9 | 39452 | int |
39453 | main () | |
39454 | { | |
39455 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)]; | |
39456 | test_array [0] = 0 | |
77d6bd88 | 39457 | |
33f5f8b9 | 39458 | ; |
39459 | return 0; | |
39460 | } | |
39461 | _ACEOF | |
39462 | rm -f conftest.$ac_objext | |
39463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 39464 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 39465 | ac_status=$? |
af3004ff | 39466 | grep -v '^ *+' conftest.er1 >conftest.err |
39467 | rm -f conftest.er1 | |
39468 | cat conftest.err >&5 | |
33f5f8b9 | 39469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39470 | (exit $ac_status); } && | |
6263d81f | 39471 | { ac_try='test -z "$ac_c_werror_flag" |
39472 | || test ! -s conftest.err' | |
af3004ff | 39473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39474 | (eval $ac_try) 2>&5 | |
39475 | ac_status=$? | |
39476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39477 | (exit $ac_status); }; } && | |
39478 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 39479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39480 | (eval $ac_try) 2>&5 | |
39481 | ac_status=$? | |
39482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39483 | (exit $ac_status); }; }; then | |
39484 | ac_hi=-1 ac_mid=-1 | |
39485 | while :; do | |
39486 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 39487 | /* confdefs.h. */ |
39488 | _ACEOF | |
39489 | cat confdefs.h >>conftest.$ac_ext | |
39490 | cat >>conftest.$ac_ext <<_ACEOF | |
39491 | /* end confdefs.h. */ | |
6a771064 | 39492 | |
a6edf800 | 39493 | #include <stdio.h> |
39494 | ||
6a771064 | 39495 | /* What a mess.. many systems have added the (now standard) bit types |
39496 | * in their own ways, so we need to scan a wide variety of headers to | |
39497 | * find them.. | |
33f5f8b9 | 39498 | * IMPORTANT: Keep include/squid_types.h syncronised with this list |
6a771064 | 39499 | */ |
33f5f8b9 | 39500 | #if HAVE_SYS_TYPES_H |
77d6bd88 | 39501 | #include <sys/types.h> |
33f5f8b9 | 39502 | #endif |
77d6bd88 | 39503 | #if STDC_HEADERS |
39504 | #include <stdlib.h> | |
39505 | #include <stddef.h> | |
39506 | #endif | |
f0902a4b | 39507 | #if HAVE_INTTYPES_H |
39508 | #include <inttypes.h> | |
39509 | #endif | |
6a771064 | 39510 | #if HAVE_SYS_BITYPES_H |
39511 | #include <sys/bitypes.h> | |
39512 | #endif | |
11e71ab8 | 39513 | #if HAVE_SYS_SELECT_H |
39514 | #include <sys/select.h> | |
39515 | #endif | |
6a771064 | 39516 | |
77d6bd88 | 39517 | |
a6edf800 | 39518 | |
33f5f8b9 | 39519 | int |
39520 | main () | |
39521 | { | |
39522 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)]; | |
39523 | test_array [0] = 0 | |
77d6bd88 | 39524 | |
33f5f8b9 | 39525 | ; |
39526 | return 0; | |
39527 | } | |
39528 | _ACEOF | |
39529 | rm -f conftest.$ac_objext | |
39530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 39531 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 39532 | ac_status=$? |
af3004ff | 39533 | grep -v '^ *+' conftest.er1 >conftest.err |
39534 | rm -f conftest.er1 | |
39535 | cat conftest.err >&5 | |
33f5f8b9 | 39536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39537 | (exit $ac_status); } && | |
6263d81f | 39538 | { ac_try='test -z "$ac_c_werror_flag" |
39539 | || test ! -s conftest.err' | |
af3004ff | 39540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39541 | (eval $ac_try) 2>&5 | |
39542 | ac_status=$? | |
39543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39544 | (exit $ac_status); }; } && | |
39545 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 39546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39547 | (eval $ac_try) 2>&5 | |
39548 | ac_status=$? | |
39549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39550 | (exit $ac_status); }; }; then | |
39551 | ac_lo=$ac_mid; break | |
39552 | else | |
39553 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 39554 | sed 's/^/| /' conftest.$ac_ext >&5 |
39555 | ||
33f5f8b9 | 39556 | ac_hi=`expr '(' $ac_mid ')' - 1` |
af3004ff | 39557 | if test $ac_mid -le $ac_hi; then |
39558 | ac_lo= ac_hi= | |
39559 | break | |
39560 | fi | |
39561 | ac_mid=`expr 2 '*' $ac_mid` | |
33f5f8b9 | 39562 | fi |
af3004ff | 39563 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 39564 | done |
77d6bd88 | 39565 | else |
33f5f8b9 | 39566 | echo "$as_me: failed program was:" >&5 |
ad21602a | 39567 | sed 's/^/| /' conftest.$ac_ext >&5 |
39568 | ||
33f5f8b9 | 39569 | ac_lo= ac_hi= |
39570 | fi | |
af3004ff | 39571 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 39572 | fi |
af3004ff | 39573 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 39574 | # Binary search between lo and hi bounds. |
39575 | while test "x$ac_lo" != "x$ac_hi"; do | |
39576 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
39577 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 39578 | /* confdefs.h. */ |
39579 | _ACEOF | |
39580 | cat confdefs.h >>conftest.$ac_ext | |
39581 | cat >>conftest.$ac_ext <<_ACEOF | |
39582 | /* end confdefs.h. */ | |
6a771064 | 39583 | |
a6edf800 | 39584 | #include <stdio.h> |
39585 | ||
6a771064 | 39586 | /* What a mess.. many systems have added the (now standard) bit types |
39587 | * in their own ways, so we need to scan a wide variety of headers to | |
39588 | * find them.. | |
33f5f8b9 | 39589 | * IMPORTANT: Keep include/squid_types.h syncronised with this list |
6a771064 | 39590 | */ |
33f5f8b9 | 39591 | #if HAVE_SYS_TYPES_H |
77d6bd88 | 39592 | #include <sys/types.h> |
33f5f8b9 | 39593 | #endif |
77d6bd88 | 39594 | #if STDC_HEADERS |
39595 | #include <stdlib.h> | |
39596 | #include <stddef.h> | |
39597 | #endif | |
f0902a4b | 39598 | #if HAVE_INTTYPES_H |
39599 | #include <inttypes.h> | |
39600 | #endif | |
6a771064 | 39601 | #if HAVE_SYS_BITYPES_H |
39602 | #include <sys/bitypes.h> | |
39603 | #endif | |
11e71ab8 | 39604 | #if HAVE_SYS_SELECT_H |
39605 | #include <sys/select.h> | |
39606 | #endif | |
6a771064 | 39607 | |
77d6bd88 | 39608 | |
a6edf800 | 39609 | |
33f5f8b9 | 39610 | int |
39611 | main () | |
39612 | { | |
39613 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)]; | |
39614 | test_array [0] = 0 | |
77d6bd88 | 39615 | |
33f5f8b9 | 39616 | ; |
39617 | return 0; | |
39618 | } | |
39619 | _ACEOF | |
39620 | rm -f conftest.$ac_objext | |
39621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 39622 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 39623 | ac_status=$? |
af3004ff | 39624 | grep -v '^ *+' conftest.er1 >conftest.err |
39625 | rm -f conftest.er1 | |
39626 | cat conftest.err >&5 | |
33f5f8b9 | 39627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39628 | (exit $ac_status); } && | |
6263d81f | 39629 | { ac_try='test -z "$ac_c_werror_flag" |
39630 | || test ! -s conftest.err' | |
af3004ff | 39631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39632 | (eval $ac_try) 2>&5 | |
39633 | ac_status=$? | |
39634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39635 | (exit $ac_status); }; } && | |
39636 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 39637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39638 | (eval $ac_try) 2>&5 | |
39639 | ac_status=$? | |
39640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39641 | (exit $ac_status); }; }; then | |
39642 | ac_hi=$ac_mid | |
39643 | else | |
39644 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 39645 | sed 's/^/| /' conftest.$ac_ext >&5 |
39646 | ||
33f5f8b9 | 39647 | ac_lo=`expr '(' $ac_mid ')' + 1` |
39648 | fi | |
af3004ff | 39649 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 39650 | done |
39651 | case $ac_lo in | |
39652 | ?*) ac_cv_sizeof_off_t=$ac_lo;; | |
ad21602a | 39653 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77 |
39654 | See \`config.log' for more details." >&5 | |
39655 | echo "$as_me: error: cannot compute sizeof (off_t), 77 | |
39656 | See \`config.log' for more details." >&2;} | |
33f5f8b9 | 39657 | { (exit 1); exit 1; }; } ;; |
39658 | esac | |
77d6bd88 | 39659 | else |
33f5f8b9 | 39660 | if test "$cross_compiling" = yes; then |
6263d81f | 39661 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
39662 | See \`config.log' for more details." >&5 | |
39663 | echo "$as_me: error: cannot run test program while cross compiling | |
39664 | See \`config.log' for more details." >&2;} | |
33f5f8b9 | 39665 | { (exit 1); exit 1; }; } |
77d6bd88 | 39666 | else |
33f5f8b9 | 39667 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 39668 | /* confdefs.h. */ |
39669 | _ACEOF | |
39670 | cat confdefs.h >>conftest.$ac_ext | |
39671 | cat >>conftest.$ac_ext <<_ACEOF | |
39672 | /* end confdefs.h. */ | |
77d6bd88 | 39673 | |
a6edf800 | 39674 | #include <stdio.h> |
39675 | ||
33f5f8b9 | 39676 | /* What a mess.. many systems have added the (now standard) bit types |
39677 | * in their own ways, so we need to scan a wide variety of headers to | |
39678 | * find them.. | |
39679 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
39680 | */ | |
39681 | #if HAVE_SYS_TYPES_H | |
3f961930 | 39682 | #include <sys/types.h> |
77d6bd88 | 39683 | #endif |
3f961930 | 39684 | #if STDC_HEADERS |
39685 | #include <stdlib.h> | |
39686 | #include <stddef.h> | |
77d6bd88 | 39687 | #endif |
33f5f8b9 | 39688 | #if HAVE_INTTYPES_H |
39689 | #include <inttypes.h> | |
39690 | #endif | |
39691 | #if HAVE_SYS_BITYPES_H | |
39692 | #include <sys/bitypes.h> | |
39693 | #endif | |
11e71ab8 | 39694 | #if HAVE_SYS_SELECT_H |
39695 | #include <sys/select.h> | |
39696 | #endif | |
3f961930 | 39697 | |
090089c4 | 39698 | |
a6edf800 | 39699 | |
33f5f8b9 | 39700 | long longval () { return (long) (sizeof (off_t)); } |
39701 | unsigned long ulongval () { return (long) (sizeof (off_t)); } | |
39702 | #include <stdio.h> | |
3f961930 | 39703 | #include <stdlib.h> |
33f5f8b9 | 39704 | int |
39705 | main () | |
39706 | { | |
39707 | ||
39708 | FILE *f = fopen ("conftest.val", "w"); | |
39709 | if (! f) | |
39710 | exit (1); | |
39711 | if (((long) (sizeof (off_t))) < 0) | |
39712 | { | |
39713 | long i = longval (); | |
39714 | if (i != ((long) (sizeof (off_t)))) | |
39715 | exit (1); | |
39716 | fprintf (f, "%ld\n", i); | |
39717 | } | |
39718 | else | |
39719 | { | |
39720 | unsigned long i = ulongval (); | |
39721 | if (i != ((long) (sizeof (off_t)))) | |
39722 | exit (1); | |
39723 | fprintf (f, "%lu\n", i); | |
39724 | } | |
39725 | exit (ferror (f) || fclose (f) != 0); | |
39726 | ||
39727 | ; | |
39728 | return 0; | |
39729 | } | |
39730 | _ACEOF | |
39731 | rm -f conftest$ac_exeext | |
39732 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
39733 | (eval $ac_link) 2>&5 | |
39734 | ac_status=$? | |
39735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39736 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
39737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
39738 | (eval $ac_try) 2>&5 | |
39739 | ac_status=$? | |
39740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39741 | (exit $ac_status); }; }; then | |
39742 | ac_cv_sizeof_off_t=`cat conftest.val` | |
39743 | else | |
39744 | echo "$as_me: program exited with status $ac_status" >&5 | |
39745 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 39746 | sed 's/^/| /' conftest.$ac_ext >&5 |
39747 | ||
33f5f8b9 | 39748 | ( exit $ac_status ) |
ad21602a | 39749 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77 |
39750 | See \`config.log' for more details." >&5 | |
39751 | echo "$as_me: error: cannot compute sizeof (off_t), 77 | |
39752 | See \`config.log' for more details." >&2;} | |
33f5f8b9 | 39753 | { (exit 1); exit 1; }; } |
39754 | fi | |
af3004ff | 39755 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 39756 | fi |
39757 | fi | |
39758 | rm -f conftest.val | |
b6a2f15e | 39759 | else |
33f5f8b9 | 39760 | ac_cv_sizeof_off_t=0 |
b6a2f15e | 39761 | fi |
3f961930 | 39762 | fi |
33f5f8b9 | 39763 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
39764 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 | |
39765 | cat >>confdefs.h <<_ACEOF | |
39766 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | |
39767 | _ACEOF | |
b6a2f15e | 39768 | |
39769 | ||
090089c4 | 39770 | |
33f5f8b9 | 39771 | cat >>confdefs.h <<\_ACEOF |
39772 | #define HAVE_OFF_T 1 | |
39773 | _ACEOF | |
39774 | ||
39775 | fi | |
39776 | ||
39777 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
39778 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
39779 | if test "${ac_cv_type_mode_t+set}" = set; then | |
39780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6473554b | 39781 | else |
33f5f8b9 | 39782 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 39783 | /* confdefs.h. */ |
39784 | _ACEOF | |
39785 | cat confdefs.h >>conftest.$ac_ext | |
39786 | cat >>conftest.$ac_ext <<_ACEOF | |
39787 | /* end confdefs.h. */ | |
6a771064 | 39788 | |
33f5f8b9 | 39789 | /* What a mess.. many systems have added the (now standard) bit types |
39790 | * in their own ways, so we need to scan a wide variety of headers to | |
39791 | * find them.. | |
39792 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
39793 | */ | |
39794 | #if HAVE_SYS_TYPES_H | |
39795 | #include <sys/types.h> | |
39796 | #endif | |
f0902a4b | 39797 | #if STDC_HEADERS |
39798 | #include <stdlib.h> | |
39799 | #include <stddef.h> | |
39800 | #endif | |
736ff61a | 39801 | #if HAVE_INTTYPES_H |
39802 | #include <inttypes.h> | |
6473554b | 39803 | #endif |
6a771064 | 39804 | #if HAVE_SYS_BITYPES_H |
39805 | #include <sys/bitypes.h> | |
39806 | #endif | |
11e71ab8 | 39807 | #if HAVE_SYS_SELECT_H |
39808 | #include <sys/select.h> | |
39809 | #endif | |
33f5f8b9 | 39810 | |
39811 | ||
33f5f8b9 | 39812 | int |
39813 | main () | |
6473554b | 39814 | { |
33f5f8b9 | 39815 | if ((mode_t *) 0) |
39816 | return 0; | |
39817 | if (sizeof (mode_t)) | |
39818 | return 0; | |
39819 | ; | |
39820 | return 0; | |
6473554b | 39821 | } |
33f5f8b9 | 39822 | _ACEOF |
39823 | rm -f conftest.$ac_objext | |
39824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 39825 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 39826 | ac_status=$? |
af3004ff | 39827 | grep -v '^ *+' conftest.er1 >conftest.err |
39828 | rm -f conftest.er1 | |
39829 | cat conftest.err >&5 | |
33f5f8b9 | 39830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39831 | (exit $ac_status); } && | |
6263d81f | 39832 | { ac_try='test -z "$ac_c_werror_flag" |
39833 | || test ! -s conftest.err' | |
af3004ff | 39834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39835 | (eval $ac_try) 2>&5 | |
39836 | ac_status=$? | |
39837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39838 | (exit $ac_status); }; } && | |
39839 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 39840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39841 | (eval $ac_try) 2>&5 | |
39842 | ac_status=$? | |
39843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39844 | (exit $ac_status); }; }; then | |
39845 | ac_cv_type_mode_t=yes | |
6473554b | 39846 | else |
33f5f8b9 | 39847 | echo "$as_me: failed program was:" >&5 |
ad21602a | 39848 | sed 's/^/| /' conftest.$ac_ext >&5 |
39849 | ||
33f5f8b9 | 39850 | ac_cv_type_mode_t=no |
6473554b | 39851 | fi |
af3004ff | 39852 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6473554b | 39853 | fi |
33f5f8b9 | 39854 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
39855 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
39856 | if test $ac_cv_type_mode_t = yes; then | |
3f961930 | 39857 | |
33f5f8b9 | 39858 | cat >>confdefs.h <<\_ACEOF |
39859 | #define HAVE_MODE_T 1 | |
39860 | _ACEOF | |
6473554b | 39861 | |
33f5f8b9 | 39862 | fi |
6473554b | 39863 | |
33f5f8b9 | 39864 | echo "$as_me:$LINENO: checking for fd_mask" >&5 |
39865 | echo $ECHO_N "checking for fd_mask... $ECHO_C" >&6 | |
39866 | if test "${ac_cv_type_fd_mask+set}" = set; then | |
39867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6473554b | 39868 | else |
33f5f8b9 | 39869 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 39870 | /* confdefs.h. */ |
39871 | _ACEOF | |
39872 | cat confdefs.h >>conftest.$ac_ext | |
39873 | cat >>conftest.$ac_ext <<_ACEOF | |
39874 | /* end confdefs.h. */ | |
6a771064 | 39875 | |
33f5f8b9 | 39876 | /* What a mess.. many systems have added the (now standard) bit types |
39877 | * in their own ways, so we need to scan a wide variety of headers to | |
39878 | * find them.. | |
39879 | * IMPORTANT: Keep include/squid_types.h syncronised with this list | |
39880 | */ | |
39881 | #if HAVE_SYS_TYPES_H | |
39882 | #include <sys/types.h> | |
39883 | #endif | |
f0902a4b | 39884 | #if STDC_HEADERS |
39885 | #include <stdlib.h> | |
39886 | #include <stddef.h> | |
39887 | #endif | |
736ff61a | 39888 | #if HAVE_INTTYPES_H |
39889 | #include <inttypes.h> | |
6473554b | 39890 | #endif |
6a771064 | 39891 | #if HAVE_SYS_BITYPES_H |
39892 | #include <sys/bitypes.h> | |
39893 | #endif | |
11e71ab8 | 39894 | #if HAVE_SYS_SELECT_H |
39895 | #include <sys/select.h> | |
39896 | #endif | |
33f5f8b9 | 39897 | |
39898 | ||
33f5f8b9 | 39899 | int |
39900 | main () | |
6473554b | 39901 | { |
33f5f8b9 | 39902 | if ((fd_mask *) 0) |
39903 | return 0; | |
39904 | if (sizeof (fd_mask)) | |
39905 | return 0; | |
39906 | ; | |
39907 | return 0; | |
6473554b | 39908 | } |
33f5f8b9 | 39909 | _ACEOF |
39910 | rm -f conftest.$ac_objext | |
39911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 39912 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 39913 | ac_status=$? |
af3004ff | 39914 | grep -v '^ *+' conftest.er1 >conftest.err |
39915 | rm -f conftest.er1 | |
39916 | cat conftest.err >&5 | |
33f5f8b9 | 39917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39918 | (exit $ac_status); } && | |
6263d81f | 39919 | { ac_try='test -z "$ac_c_werror_flag" |
39920 | || test ! -s conftest.err' | |
af3004ff | 39921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39922 | (eval $ac_try) 2>&5 | |
39923 | ac_status=$? | |
39924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39925 | (exit $ac_status); }; } && | |
39926 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 39927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39928 | (eval $ac_try) 2>&5 | |
39929 | ac_status=$? | |
39930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39931 | (exit $ac_status); }; }; then | |
39932 | ac_cv_type_fd_mask=yes | |
6473554b | 39933 | else |
33f5f8b9 | 39934 | echo "$as_me: failed program was:" >&5 |
ad21602a | 39935 | sed 's/^/| /' conftest.$ac_ext >&5 |
39936 | ||
33f5f8b9 | 39937 | ac_cv_type_fd_mask=no |
6473554b | 39938 | fi |
af3004ff | 39939 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6473554b | 39940 | fi |
33f5f8b9 | 39941 | echo "$as_me:$LINENO: result: $ac_cv_type_fd_mask" >&5 |
39942 | echo "${ECHO_T}$ac_cv_type_fd_mask" >&6 | |
39943 | if test $ac_cv_type_fd_mask = yes; then | |
3f961930 | 39944 | |
33f5f8b9 | 39945 | cat >>confdefs.h <<\_ACEOF |
39946 | #define HAVE_FD_MASK 1 | |
39947 | _ACEOF | |
6473554b | 39948 | |
33f5f8b9 | 39949 | fi |
6473554b | 39950 | |
0205c9c8 | 39951 | |
256cf05b | 39952 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
39953 | # for constant arguments. Useless! | |
33f5f8b9 | 39954 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
39955 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
39956 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
39957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
256cf05b | 39958 | else |
33f5f8b9 | 39959 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 39960 | /* confdefs.h. */ |
39961 | _ACEOF | |
39962 | cat confdefs.h >>conftest.$ac_ext | |
39963 | cat >>conftest.$ac_ext <<_ACEOF | |
39964 | /* end confdefs.h. */ | |
256cf05b | 39965 | #include <alloca.h> |
33f5f8b9 | 39966 | int |
39967 | main () | |
39968 | { | |
39969 | char *p = (char *) alloca (2 * sizeof (int)); | |
39970 | ; | |
39971 | return 0; | |
39972 | } | |
39973 | _ACEOF | |
39974 | rm -f conftest.$ac_objext conftest$ac_exeext | |
39975 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 39976 | (eval $ac_link) 2>conftest.er1 |
33f5f8b9 | 39977 | ac_status=$? |
af3004ff | 39978 | grep -v '^ *+' conftest.er1 >conftest.err |
39979 | rm -f conftest.er1 | |
39980 | cat conftest.err >&5 | |
33f5f8b9 | 39981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
39982 | (exit $ac_status); } && | |
6263d81f | 39983 | { ac_try='test -z "$ac_c_werror_flag" |
39984 | || test ! -s conftest.err' | |
af3004ff | 39985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39986 | (eval $ac_try) 2>&5 | |
39987 | ac_status=$? | |
39988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39989 | (exit $ac_status); }; } && | |
39990 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 39991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
39992 | (eval $ac_try) 2>&5 | |
39993 | ac_status=$? | |
39994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
39995 | (exit $ac_status); }; }; then | |
39996 | ac_cv_working_alloca_h=yes | |
39997 | else | |
39998 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 39999 | sed 's/^/| /' conftest.$ac_ext >&5 |
40000 | ||
33f5f8b9 | 40001 | ac_cv_working_alloca_h=no |
40002 | fi | |
af3004ff | 40003 | rm -f conftest.err conftest.$ac_objext \ |
40004 | conftest$ac_exeext conftest.$ac_ext | |
33f5f8b9 | 40005 | fi |
40006 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
40007 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
40008 | if test $ac_cv_working_alloca_h = yes; then | |
40009 | ||
40010 | cat >>confdefs.h <<\_ACEOF | |
256cf05b | 40011 | #define HAVE_ALLOCA_H 1 |
33f5f8b9 | 40012 | _ACEOF |
256cf05b | 40013 | |
40014 | fi | |
40015 | ||
33f5f8b9 | 40016 | echo "$as_me:$LINENO: checking for alloca" >&5 |
40017 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
40018 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
40019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
256cf05b | 40020 | else |
33f5f8b9 | 40021 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 40022 | /* confdefs.h. */ |
40023 | _ACEOF | |
40024 | cat confdefs.h >>conftest.$ac_ext | |
40025 | cat >>conftest.$ac_ext <<_ACEOF | |
40026 | /* end confdefs.h. */ | |
256cf05b | 40027 | #ifdef __GNUC__ |
40028 | # define alloca __builtin_alloca | |
40029 | #else | |
b7db09a3 | 40030 | # ifdef _MSC_VER |
40031 | # include <malloc.h> | |
40032 | # define alloca _alloca | |
256cf05b | 40033 | # else |
b7db09a3 | 40034 | # if HAVE_ALLOCA_H |
40035 | # include <alloca.h> | |
256cf05b | 40036 | # else |
b7db09a3 | 40037 | # ifdef _AIX |
40038 | #pragma alloca | |
40039 | # else | |
40040 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
256cf05b | 40041 | char *alloca (); |
b7db09a3 | 40042 | # endif |
256cf05b | 40043 | # endif |
40044 | # endif | |
40045 | # endif | |
40046 | #endif | |
40047 | ||
33f5f8b9 | 40048 | int |
40049 | main () | |
40050 | { | |
40051 | char *p = (char *) alloca (1); | |
40052 | ; | |
40053 | return 0; | |
40054 | } | |
40055 | _ACEOF | |
40056 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40057 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 40058 | (eval $ac_link) 2>conftest.er1 |
33f5f8b9 | 40059 | ac_status=$? |
af3004ff | 40060 | grep -v '^ *+' conftest.er1 >conftest.err |
40061 | rm -f conftest.er1 | |
40062 | cat conftest.err >&5 | |
33f5f8b9 | 40063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40064 | (exit $ac_status); } && | |
6263d81f | 40065 | { ac_try='test -z "$ac_c_werror_flag" |
40066 | || test ! -s conftest.err' | |
af3004ff | 40067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40068 | (eval $ac_try) 2>&5 | |
40069 | ac_status=$? | |
40070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40071 | (exit $ac_status); }; } && | |
40072 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 40073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40074 | (eval $ac_try) 2>&5 | |
40075 | ac_status=$? | |
40076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40077 | (exit $ac_status); }; }; then | |
b1e77ec1 | 40078 | ac_cv_func_alloca_works=yes |
256cf05b | 40079 | else |
33f5f8b9 | 40080 | echo "$as_me: failed program was:" >&5 |
ad21602a | 40081 | sed 's/^/| /' conftest.$ac_ext >&5 |
40082 | ||
33f5f8b9 | 40083 | ac_cv_func_alloca_works=no |
256cf05b | 40084 | fi |
af3004ff | 40085 | rm -f conftest.err conftest.$ac_objext \ |
40086 | conftest$ac_exeext conftest.$ac_ext | |
256cf05b | 40087 | fi |
33f5f8b9 | 40088 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
40089 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
256cf05b | 40090 | |
b1e77ec1 | 40091 | if test $ac_cv_func_alloca_works = yes; then |
b65c7b0d | 40092 | |
33f5f8b9 | 40093 | cat >>confdefs.h <<\_ACEOF |
40094 | #define HAVE_ALLOCA 1 | |
40095 | _ACEOF | |
b65c7b0d | 40096 | |
33f5f8b9 | 40097 | else |
3f961930 | 40098 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
33f5f8b9 | 40099 | # that cause trouble. Some versions do not even contain alloca or |
40100 | # contain a buggy version. If you still want to use their alloca, | |
40101 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
40102 | ||
40103 | ALLOCA=alloca.$ac_objext | |
40104 | ||
40105 | cat >>confdefs.h <<\_ACEOF | |
256cf05b | 40106 | #define C_ALLOCA 1 |
33f5f8b9 | 40107 | _ACEOF |
256cf05b | 40108 | |
40109 | ||
33f5f8b9 | 40110 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
40111 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
40112 | if test "${ac_cv_os_cray+set}" = set; then | |
40113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
256cf05b | 40114 | else |
33f5f8b9 | 40115 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 40116 | /* confdefs.h. */ |
40117 | _ACEOF | |
40118 | cat confdefs.h >>conftest.$ac_ext | |
40119 | cat >>conftest.$ac_ext <<_ACEOF | |
40120 | /* end confdefs.h. */ | |
256cf05b | 40121 | #if defined(CRAY) && ! defined(CRAY2) |
40122 | webecray | |
40123 | #else | |
40124 | wenotbecray | |
40125 | #endif | |
40126 | ||
33f5f8b9 | 40127 | _ACEOF |
256cf05b | 40128 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ad21602a | 40129 | $EGREP "webecray" >/dev/null 2>&1; then |
256cf05b | 40130 | ac_cv_os_cray=yes |
40131 | else | |
256cf05b | 40132 | ac_cv_os_cray=no |
40133 | fi | |
40134 | rm -f conftest* | |
40135 | ||
40136 | fi | |
33f5f8b9 | 40137 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
40138 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
256cf05b | 40139 | if test $ac_cv_os_cray = yes; then |
33f5f8b9 | 40140 | for ac_func in _getb67 GETB67 getb67; do |
40141 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
40142 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
40143 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
40144 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
40145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40146 | else | |
40147 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 40148 | /* confdefs.h. */ |
40149 | _ACEOF | |
40150 | cat confdefs.h >>conftest.$ac_ext | |
40151 | cat >>conftest.$ac_ext <<_ACEOF | |
40152 | /* end confdefs.h. */ | |
af3004ff | 40153 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
40154 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
40155 | #define $ac_func innocuous_$ac_func | |
40156 | ||
256cf05b | 40157 | /* System header to define __stub macros and hopefully few prototypes, |
ad21602a | 40158 | which can conflict with char $ac_func (); below. |
40159 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
40160 | <limits.h> exists even on freestanding compilers. */ | |
af3004ff | 40161 | |
ad21602a | 40162 | #ifdef __STDC__ |
40163 | # include <limits.h> | |
40164 | #else | |
40165 | # include <assert.h> | |
40166 | #endif | |
af3004ff | 40167 | |
40168 | #undef $ac_func | |
40169 | ||
256cf05b | 40170 | /* Override any gcc2 internal prototype to avoid an error. */ |
33f5f8b9 | 40171 | #ifdef __cplusplus |
40172 | extern "C" | |
ad21602a | 40173 | { |
33f5f8b9 | 40174 | #endif |
03a0d3b0 | 40175 | /* We use char because int might match the return type of a gcc2 |
33f5f8b9 | 40176 | builtin and then its argument prototype would still apply. */ |
40177 | char $ac_func (); | |
256cf05b | 40178 | /* The GNU C library defines this for functions which it implements |
40179 | to always fail with ENOSYS. Some functions are actually named | |
40180 | something starting with __ and the normal name is an alias. */ | |
40181 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
40182 | choke me | |
40183 | #else | |
ad21602a | 40184 | char (*f) () = $ac_func; |
40185 | #endif | |
40186 | #ifdef __cplusplus | |
40187 | } | |
256cf05b | 40188 | #endif |
40189 | ||
ad21602a | 40190 | int |
40191 | main () | |
40192 | { | |
40193 | return f != $ac_func; | |
33f5f8b9 | 40194 | ; |
40195 | return 0; | |
40196 | } | |
40197 | _ACEOF | |
40198 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 40200 | (eval $ac_link) 2>conftest.er1 |
33f5f8b9 | 40201 | ac_status=$? |
af3004ff | 40202 | grep -v '^ *+' conftest.er1 >conftest.err |
40203 | rm -f conftest.er1 | |
40204 | cat conftest.err >&5 | |
33f5f8b9 | 40205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40206 | (exit $ac_status); } && | |
6263d81f | 40207 | { ac_try='test -z "$ac_c_werror_flag" |
40208 | || test ! -s conftest.err' | |
af3004ff | 40209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40210 | (eval $ac_try) 2>&5 | |
40211 | ac_status=$? | |
40212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40213 | (exit $ac_status); }; } && | |
40214 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 40215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40216 | (eval $ac_try) 2>&5 | |
40217 | ac_status=$? | |
40218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40219 | (exit $ac_status); }; }; then | |
40220 | eval "$as_ac_var=yes" | |
40221 | else | |
40222 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 40223 | sed 's/^/| /' conftest.$ac_ext >&5 |
40224 | ||
33f5f8b9 | 40225 | eval "$as_ac_var=no" |
40226 | fi | |
af3004ff | 40227 | rm -f conftest.err conftest.$ac_objext \ |
40228 | conftest$ac_exeext conftest.$ac_ext | |
33f5f8b9 | 40229 | fi |
40230 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
40231 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
40232 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
40233 | ||
40234 | cat >>confdefs.h <<_ACEOF | |
256cf05b | 40235 | #define CRAY_STACKSEG_END $ac_func |
33f5f8b9 | 40236 | _ACEOF |
256cf05b | 40237 | |
33f5f8b9 | 40238 | break |
256cf05b | 40239 | fi |
40240 | ||
33f5f8b9 | 40241 | done |
256cf05b | 40242 | fi |
40243 | ||
33f5f8b9 | 40244 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
40245 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
40246 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
40247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
256cf05b | 40248 | else |
40249 | if test "$cross_compiling" = yes; then | |
40250 | ac_cv_c_stack_direction=0 | |
40251 | else | |
33f5f8b9 | 40252 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 40253 | /* confdefs.h. */ |
40254 | _ACEOF | |
40255 | cat confdefs.h >>conftest.$ac_ext | |
40256 | cat >>conftest.$ac_ext <<_ACEOF | |
40257 | /* end confdefs.h. */ | |
33f5f8b9 | 40258 | int |
256cf05b | 40259 | find_stack_direction () |
40260 | { | |
40261 | static char *addr = 0; | |
40262 | auto char dummy; | |
40263 | if (addr == 0) | |
40264 | { | |
40265 | addr = &dummy; | |
40266 | return find_stack_direction (); | |
40267 | } | |
40268 | else | |
40269 | return (&dummy > addr) ? 1 : -1; | |
40270 | } | |
33f5f8b9 | 40271 | |
40272 | int | |
256cf05b | 40273 | main () |
40274 | { | |
33f5f8b9 | 40275 | exit (find_stack_direction () < 0); |
256cf05b | 40276 | } |
33f5f8b9 | 40277 | _ACEOF |
40278 | rm -f conftest$ac_exeext | |
40279 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40280 | (eval $ac_link) 2>&5 | |
40281 | ac_status=$? | |
40282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40283 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
40284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40285 | (eval $ac_try) 2>&5 | |
40286 | ac_status=$? | |
40287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40288 | (exit $ac_status); }; }; then | |
256cf05b | 40289 | ac_cv_c_stack_direction=1 |
40290 | else | |
33f5f8b9 | 40291 | echo "$as_me: program exited with status $ac_status" >&5 |
40292 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 40293 | sed 's/^/| /' conftest.$ac_ext >&5 |
40294 | ||
33f5f8b9 | 40295 | ( exit $ac_status ) |
40296 | ac_cv_c_stack_direction=-1 | |
256cf05b | 40297 | fi |
af3004ff | 40298 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
256cf05b | 40299 | fi |
b1e77ec1 | 40300 | fi |
33f5f8b9 | 40301 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
40302 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
b1e77ec1 | 40303 | |
33f5f8b9 | 40304 | cat >>confdefs.h <<_ACEOF |
256cf05b | 40305 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
33f5f8b9 | 40306 | _ACEOF |
256cf05b | 40307 | |
256cf05b | 40308 | |
33f5f8b9 | 40309 | fi |
256cf05b | 40310 | |
aea1be68 | 40311 | |
33f5f8b9 | 40312 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
40313 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | |
40314 | if test "${ac_cv_type_socklen_t+set}" = set; then | |
40315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d63ed275 | 40316 | else |
33f5f8b9 | 40317 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 40318 | /* confdefs.h. */ |
40319 | _ACEOF | |
40320 | cat confdefs.h >>conftest.$ac_ext | |
40321 | cat >>conftest.$ac_ext <<_ACEOF | |
40322 | /* end confdefs.h. */ | |
33f5f8b9 | 40323 | |
d63ed275 | 40324 | #include <sys/types.h> |
aea1be68 | 40325 | #include <sys/socket.h> |
d63ed275 | 40326 | #if STDC_HEADERS |
40327 | #include <stdlib.h> | |
40328 | #include <stddef.h> | |
40329 | #endif | |
33f5f8b9 | 40330 | |
33f5f8b9 | 40331 | int |
40332 | main () | |
40333 | { | |
40334 | if ((socklen_t *) 0) | |
40335 | return 0; | |
40336 | if (sizeof (socklen_t)) | |
40337 | return 0; | |
40338 | ; | |
40339 | return 0; | |
40340 | } | |
40341 | _ACEOF | |
40342 | rm -f conftest.$ac_objext | |
40343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 40344 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 40345 | ac_status=$? |
af3004ff | 40346 | grep -v '^ *+' conftest.er1 >conftest.err |
40347 | rm -f conftest.er1 | |
40348 | cat conftest.err >&5 | |
33f5f8b9 | 40349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40350 | (exit $ac_status); } && | |
6263d81f | 40351 | { ac_try='test -z "$ac_c_werror_flag" |
40352 | || test ! -s conftest.err' | |
af3004ff | 40353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40354 | (eval $ac_try) 2>&5 | |
40355 | ac_status=$? | |
40356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40357 | (exit $ac_status); }; } && | |
40358 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 40359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40360 | (eval $ac_try) 2>&5 | |
40361 | ac_status=$? | |
40362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40363 | (exit $ac_status); }; }; then | |
aea1be68 | 40364 | ac_cv_type_socklen_t=yes |
d63ed275 | 40365 | else |
33f5f8b9 | 40366 | echo "$as_me: failed program was:" >&5 |
ad21602a | 40367 | sed 's/^/| /' conftest.$ac_ext >&5 |
40368 | ||
33f5f8b9 | 40369 | ac_cv_type_socklen_t=no |
d63ed275 | 40370 | fi |
af3004ff | 40371 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d63ed275 | 40372 | fi |
33f5f8b9 | 40373 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
40374 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | |
40375 | if test $ac_cv_type_socklen_t = yes; then | |
3f961930 | 40376 | |
33f5f8b9 | 40377 | cat >>confdefs.h <<\_ACEOF |
40378 | #define HAVE_SOCKLEN_T 1 | |
40379 | _ACEOF | |
d63ed275 | 40380 | |
40381 | fi | |
40382 | ||
33f5f8b9 | 40383 | |
40384 | echo "$as_me:$LINENO: checking for mtyp_t" >&5 | |
40385 | echo $ECHO_N "checking for mtyp_t... $ECHO_C" >&6 | |
40386 | if test "${ac_cv_type_mtyp_t+set}" = set; then | |
40387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6637e3a5 | 40388 | else |
33f5f8b9 | 40389 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 40390 | /* confdefs.h. */ |
40391 | _ACEOF | |
40392 | cat confdefs.h >>conftest.$ac_ext | |
40393 | cat >>conftest.$ac_ext <<_ACEOF | |
40394 | /* end confdefs.h. */ | |
6637e3a5 | 40395 | #include <sys/types.h> |
aea1be68 | 40396 | #include <sys/ipc.h> |
40397 | #include <sys/msg.h> | |
33f5f8b9 | 40398 | |
33f5f8b9 | 40399 | int |
40400 | main () | |
40401 | { | |
40402 | if ((mtyp_t *) 0) | |
40403 | return 0; | |
40404 | if (sizeof (mtyp_t)) | |
40405 | return 0; | |
40406 | ; | |
40407 | return 0; | |
40408 | } | |
40409 | _ACEOF | |
40410 | rm -f conftest.$ac_objext | |
40411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 40412 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 40413 | ac_status=$? |
af3004ff | 40414 | grep -v '^ *+' conftest.er1 >conftest.err |
40415 | rm -f conftest.er1 | |
40416 | cat conftest.err >&5 | |
33f5f8b9 | 40417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40418 | (exit $ac_status); } && | |
6263d81f | 40419 | { ac_try='test -z "$ac_c_werror_flag" |
40420 | || test ! -s conftest.err' | |
af3004ff | 40421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40422 | (eval $ac_try) 2>&5 | |
40423 | ac_status=$? | |
40424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40425 | (exit $ac_status); }; } && | |
40426 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 40427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40428 | (eval $ac_try) 2>&5 | |
40429 | ac_status=$? | |
40430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40431 | (exit $ac_status); }; }; then | |
aea1be68 | 40432 | ac_cv_type_mtyp_t=yes |
6637e3a5 | 40433 | else |
33f5f8b9 | 40434 | echo "$as_me: failed program was:" >&5 |
ad21602a | 40435 | sed 's/^/| /' conftest.$ac_ext >&5 |
40436 | ||
33f5f8b9 | 40437 | ac_cv_type_mtyp_t=no |
6637e3a5 | 40438 | fi |
af3004ff | 40439 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 40440 | fi |
40441 | echo "$as_me:$LINENO: result: $ac_cv_type_mtyp_t" >&5 | |
40442 | echo "${ECHO_T}$ac_cv_type_mtyp_t" >&6 | |
40443 | if test $ac_cv_type_mtyp_t = yes; then | |
6637e3a5 | 40444 | |
33f5f8b9 | 40445 | cat >>confdefs.h <<\_ACEOF |
40446 | #define HAVE_MTYP_T 1 | |
40447 | _ACEOF | |
6637e3a5 | 40448 | |
40449 | fi | |
3f961930 | 40450 | |
6637e3a5 | 40451 | |
6637e3a5 | 40452 | |
33f5f8b9 | 40453 | echo "$as_me:$LINENO: checking for main in -lnsl" >&5 |
40454 | echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6 | |
40455 | if test "${ac_cv_lib_nsl_main+set}" = set; then | |
40456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
090089c4 | 40457 | else |
33f5f8b9 | 40458 | ac_check_lib_save_LIBS=$LIBS |
30a4f2a8 | 40459 | LIBS="-lnsl $LIBS" |
33f5f8b9 | 40460 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 40461 | /* confdefs.h. */ |
40462 | _ACEOF | |
40463 | cat confdefs.h >>conftest.$ac_ext | |
40464 | cat >>conftest.$ac_ext <<_ACEOF | |
40465 | /* end confdefs.h. */ | |
090089c4 | 40466 | |
090089c4 | 40467 | |
33f5f8b9 | 40468 | int |
40469 | main () | |
40470 | { | |
40471 | main (); | |
40472 | ; | |
40473 | return 0; | |
40474 | } | |
40475 | _ACEOF | |
40476 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40477 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 40478 | (eval $ac_link) 2>conftest.er1 |
33f5f8b9 | 40479 | ac_status=$? |
af3004ff | 40480 | grep -v '^ *+' conftest.er1 >conftest.err |
40481 | rm -f conftest.er1 | |
40482 | cat conftest.err >&5 | |
33f5f8b9 | 40483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40484 | (exit $ac_status); } && | |
6263d81f | 40485 | { ac_try='test -z "$ac_c_werror_flag" |
40486 | || test ! -s conftest.err' | |
af3004ff | 40487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40488 | (eval $ac_try) 2>&5 | |
40489 | ac_status=$? | |
40490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40491 | (exit $ac_status); }; } && | |
40492 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 40493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40494 | (eval $ac_try) 2>&5 | |
40495 | ac_status=$? | |
40496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40497 | (exit $ac_status); }; }; then | |
40498 | ac_cv_lib_nsl_main=yes | |
40499 | else | |
40500 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 40501 | sed 's/^/| /' conftest.$ac_ext >&5 |
40502 | ||
33f5f8b9 | 40503 | ac_cv_lib_nsl_main=no |
40504 | fi | |
af3004ff | 40505 | rm -f conftest.err conftest.$ac_objext \ |
40506 | conftest$ac_exeext conftest.$ac_ext | |
33f5f8b9 | 40507 | LIBS=$ac_check_lib_save_LIBS |
40508 | fi | |
40509 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5 | |
40510 | echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6 | |
40511 | if test $ac_cv_lib_nsl_main = yes; then | |
40512 | cat >>confdefs.h <<_ACEOF | |
40513 | #define HAVE_LIBNSL 1 | |
40514 | _ACEOF | |
6716b242 | 40515 | |
30a4f2a8 | 40516 | LIBS="-lnsl $LIBS" |
6716b242 | 40517 | |
090089c4 | 40518 | fi |
40519 | ||
33f5f8b9 | 40520 | |
40521 | echo "$as_me:$LINENO: checking for main in -lsocket" >&5 | |
40522 | echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6 | |
40523 | if test "${ac_cv_lib_socket_main+set}" = set; then | |
40524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
090089c4 | 40525 | else |
33f5f8b9 | 40526 | ac_check_lib_save_LIBS=$LIBS |
30a4f2a8 | 40527 | LIBS="-lsocket $LIBS" |
33f5f8b9 | 40528 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 40529 | /* confdefs.h. */ |
40530 | _ACEOF | |
40531 | cat confdefs.h >>conftest.$ac_ext | |
40532 | cat >>conftest.$ac_ext <<_ACEOF | |
40533 | /* end confdefs.h. */ | |
090089c4 | 40534 | |
090089c4 | 40535 | |
33f5f8b9 | 40536 | int |
40537 | main () | |
40538 | { | |
40539 | main (); | |
40540 | ; | |
40541 | return 0; | |
40542 | } | |
40543 | _ACEOF | |
40544 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40545 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 40546 | (eval $ac_link) 2>conftest.er1 |
33f5f8b9 | 40547 | ac_status=$? |
af3004ff | 40548 | grep -v '^ *+' conftest.er1 >conftest.err |
40549 | rm -f conftest.er1 | |
40550 | cat conftest.err >&5 | |
33f5f8b9 | 40551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40552 | (exit $ac_status); } && | |
6263d81f | 40553 | { ac_try='test -z "$ac_c_werror_flag" |
40554 | || test ! -s conftest.err' | |
af3004ff | 40555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40556 | (eval $ac_try) 2>&5 | |
40557 | ac_status=$? | |
40558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40559 | (exit $ac_status); }; } && | |
40560 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 40561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40562 | (eval $ac_try) 2>&5 | |
40563 | ac_status=$? | |
40564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40565 | (exit $ac_status); }; }; then | |
40566 | ac_cv_lib_socket_main=yes | |
40567 | else | |
40568 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 40569 | sed 's/^/| /' conftest.$ac_ext >&5 |
40570 | ||
33f5f8b9 | 40571 | ac_cv_lib_socket_main=no |
40572 | fi | |
af3004ff | 40573 | rm -f conftest.err conftest.$ac_objext \ |
40574 | conftest$ac_exeext conftest.$ac_ext | |
33f5f8b9 | 40575 | LIBS=$ac_check_lib_save_LIBS |
40576 | fi | |
40577 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5 | |
40578 | echo "${ECHO_T}$ac_cv_lib_socket_main" >&6 | |
40579 | if test $ac_cv_lib_socket_main = yes; then | |
40580 | cat >>confdefs.h <<_ACEOF | |
40581 | #define HAVE_LIBSOCKET 1 | |
40582 | _ACEOF | |
30a4f2a8 | 40583 | |
40584 | LIBS="-lsocket $LIBS" | |
40585 | ||
090089c4 | 40586 | fi |
40587 | ||
07d1f987 | 40588 | case "$host_os" in |
40589 | mingw|mingw32) | |
40590 | echo "$as_me:$LINENO: checking for winsock" >&5 | |
40591 | echo $ECHO_N "checking for winsock... $ECHO_C" >&6 | |
40592 | save_LIBS="$LIBS" | |
40593 | for curlib in ws2_32 wsock32; do | |
40594 | LIBS="$LIBS -l$curlib" | |
40595 | cat >conftest.$ac_ext <<_ACEOF | |
40596 | /* confdefs.h. */ | |
40597 | _ACEOF | |
40598 | cat confdefs.h >>conftest.$ac_ext | |
40599 | cat >>conftest.$ac_ext <<_ACEOF | |
40600 | /* end confdefs.h. */ | |
40601 | ||
40602 | char __attribute__((stdcall)) socket(int,int,int); | |
40603 | char __attribute__((stdcall)) select(int,int,int,int,int); | |
40604 | char __attribute__((stdcall)) closesocket(int); | |
40605 | char __attribute__((stdcall)) gethostname(int,int); | |
40606 | ||
40607 | int | |
40608 | main () | |
40609 | { | |
40610 | ||
40611 | socket(1,2,3); | |
40612 | select(1,2,3,4,5); | |
40613 | closesocket(1); | |
40614 | gethostname(1,2); | |
40615 | ||
40616 | ; | |
40617 | return 0; | |
40618 | } | |
40619 | _ACEOF | |
40620 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
40622 | (eval $ac_link) 2>conftest.er1 | |
40623 | ac_status=$? | |
40624 | grep -v '^ *+' conftest.er1 >conftest.err | |
40625 | rm -f conftest.er1 | |
40626 | cat conftest.err >&5 | |
40627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40628 | (exit $ac_status); } && | |
6263d81f | 40629 | { ac_try='test -z "$ac_c_werror_flag" |
40630 | || test ! -s conftest.err' | |
07d1f987 | 40631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40632 | (eval $ac_try) 2>&5 | |
40633 | ac_status=$? | |
40634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40635 | (exit $ac_status); }; } && | |
40636 | { ac_try='test -s conftest$ac_exeext' | |
40637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
40638 | (eval $ac_try) 2>&5 | |
40639 | ac_status=$? | |
40640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40641 | (exit $ac_status); }; }; then | |
40642 | have_winsock=yes | |
40643 | else | |
40644 | echo "$as_me: failed program was:" >&5 | |
40645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
40646 | ||
40647 | have_winsock=no | |
40648 | fi | |
40649 | rm -f conftest.err conftest.$ac_objext \ | |
40650 | conftest$ac_exeext conftest.$ac_ext | |
40651 | ||
40652 | if test $have_winsock = yes; then | |
40653 | ac_cv_func_select='yes' | |
40654 | if test $curlib = ws2_32; then | |
40655 | have_winsock=winsock2 | |
40656 | fi | |
40657 | break | |
40658 | fi | |
40659 | LIBS="$save_LIBS" | |
40660 | done | |
40661 | echo "$as_me:$LINENO: result: $have_winsock" >&5 | |
40662 | echo "${ECHO_T}$have_winsock" >&6 | |
40663 | ;; | |
40664 | esac | |
94d48591 | 40665 | |
33f5f8b9 | 40666 | echo "$as_me:$LINENO: checking for unix domain sockets" >&5 |
40667 | echo $ECHO_N "checking for unix domain sockets... $ECHO_C" >&6 | |
40668 | if test "${squid_cv_unixsocket+set}" = set; then | |
40669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3c641669 | 40670 | else |
33f5f8b9 | 40671 | |
40672 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 40673 | /* confdefs.h. */ |
40674 | _ACEOF | |
40675 | cat confdefs.h >>conftest.$ac_ext | |
40676 | cat >>conftest.$ac_ext <<_ACEOF | |
40677 | /* end confdefs.h. */ | |
3c641669 | 40678 | |
40679 | #include <sys/types.h> | |
40680 | #include <stdlib.h> | |
40681 | #include <stddef.h> | |
40682 | #include <sys/socket.h> | |
40683 | #include <sys/un.h> | |
33f5f8b9 | 40684 | int |
40685 | main () | |
40686 | { | |
3c641669 | 40687 | |
33f5f8b9 | 40688 | struct sockaddr_un sunaddr; |
3c641669 | 40689 | sunaddr.sun_family = AF_UNIX; |
40690 | ||
33f5f8b9 | 40691 | ; |
40692 | return 0; | |
40693 | } | |
40694 | _ACEOF | |
40695 | rm -f conftest.$ac_objext | |
40696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 40697 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 40698 | ac_status=$? |
af3004ff | 40699 | grep -v '^ *+' conftest.er1 >conftest.err |
40700 | rm -f conftest.er1 | |
40701 | cat conftest.err >&5 | |
33f5f8b9 | 40702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40703 | (exit $ac_status); } && | |
6263d81f | 40704 | { ac_try='test -z "$ac_c_werror_flag" |
40705 | || test ! -s conftest.err' | |
af3004ff | 40706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40707 | (eval $ac_try) 2>&5 | |
40708 | ac_status=$? | |
40709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40710 | (exit $ac_status); }; } && | |
40711 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 40712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40713 | (eval $ac_try) 2>&5 | |
40714 | ac_status=$? | |
40715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40716 | (exit $ac_status); }; }; then | |
3c641669 | 40717 | squid_cv_unixsocket=yes |
40718 | else | |
33f5f8b9 | 40719 | echo "$as_me: failed program was:" >&5 |
ad21602a | 40720 | sed 's/^/| /' conftest.$ac_ext >&5 |
40721 | ||
33f5f8b9 | 40722 | squid_cv_unixsocket=no |
3c641669 | 40723 | fi |
af3004ff | 40724 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3c641669 | 40725 | fi |
33f5f8b9 | 40726 | echo "$as_me:$LINENO: result: $squid_cv_unixsocket" >&5 |
40727 | echo "${ECHO_T}$squid_cv_unixsocket" >&6 | |
3c641669 | 40728 | if test x"$squid_cv_unixsocket" = x"yes"; then |
33f5f8b9 | 40729 | |
40730 | cat >>confdefs.h <<\_ACEOF | |
3c641669 | 40731 | #define HAVE_UNIXSOCKET 1 |
33f5f8b9 | 40732 | _ACEOF |
3c641669 | 40733 | |
40734 | fi | |
40735 | ||
94d48591 | 40736 | if test "x$ac_cv_enabled_dlmalloc" = "xyes" ; then |
40737 | echo "skipping libmalloc check (--enable-dlmalloc specified)" | |
40738 | else | |
33f5f8b9 | 40739 | |
40740 | echo "$as_me:$LINENO: checking for main in -lgnumalloc" >&5 | |
40741 | echo $ECHO_N "checking for main in -lgnumalloc... $ECHO_C" >&6 | |
40742 | if test "${ac_cv_lib_gnumalloc_main+set}" = set; then | |
40743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
090089c4 | 40744 | else |
33f5f8b9 | 40745 | ac_check_lib_save_LIBS=$LIBS |
8a15e65e | 40746 | LIBS="-lgnumalloc $LIBS" |
33f5f8b9 | 40747 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 40748 | /* confdefs.h. */ |
40749 | _ACEOF | |
40750 | cat confdefs.h >>conftest.$ac_ext | |
40751 | cat >>conftest.$ac_ext <<_ACEOF | |
40752 | /* end confdefs.h. */ | |
090089c4 | 40753 | |
090089c4 | 40754 | |
33f5f8b9 | 40755 | int |
40756 | main () | |
40757 | { | |
40758 | main (); | |
40759 | ; | |
40760 | return 0; | |
40761 | } | |
40762 | _ACEOF | |
40763 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40764 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 40765 | (eval $ac_link) 2>conftest.er1 |
f5691f9c | 40766 | ac_status=$? |
af3004ff | 40767 | grep -v '^ *+' conftest.er1 >conftest.err |
40768 | rm -f conftest.er1 | |
40769 | cat conftest.err >&5 | |
f5691f9c | 40770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40771 | (exit $ac_status); } && | |
6263d81f | 40772 | { ac_try='test -z "$ac_c_werror_flag" |
40773 | || test ! -s conftest.err' | |
af3004ff | 40774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40775 | (eval $ac_try) 2>&5 | |
40776 | ac_status=$? | |
40777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40778 | (exit $ac_status); }; } && | |
40779 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 40780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40781 | (eval $ac_try) 2>&5 | |
40782 | ac_status=$? | |
40783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40784 | (exit $ac_status); }; }; then | |
40785 | ac_cv_lib_gnumalloc_main=yes | |
40786 | else | |
40787 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 40788 | sed 's/^/| /' conftest.$ac_ext >&5 |
40789 | ||
33f5f8b9 | 40790 | ac_cv_lib_gnumalloc_main=no |
40791 | fi | |
af3004ff | 40792 | rm -f conftest.err conftest.$ac_objext \ |
40793 | conftest$ac_exeext conftest.$ac_ext | |
33f5f8b9 | 40794 | LIBS=$ac_check_lib_save_LIBS |
40795 | fi | |
40796 | echo "$as_me:$LINENO: result: $ac_cv_lib_gnumalloc_main" >&5 | |
40797 | echo "${ECHO_T}$ac_cv_lib_gnumalloc_main" >&6 | |
40798 | if test $ac_cv_lib_gnumalloc_main = yes; then | |
40799 | cat >>confdefs.h <<_ACEOF | |
40800 | #define HAVE_LIBGNUMALLOC 1 | |
40801 | _ACEOF | |
8a15e65e | 40802 | |
40803 | LIBS="-lgnumalloc $LIBS" | |
40804 | ||
090089c4 | 40805 | fi |
40806 | ||
94d48591 | 40807 | if test "$ac_cv_lib_gnumalloc_main" = "yes"; then |
40808 | echo "Disabling extended malloc functions when using gnumalloc" | |
40809 | ac_cv_func_mallinfo=no | |
40810 | ac_cv_func_mallocblksize=no | |
40811 | ac_cv_func_mallopt=no | |
40812 | else | |
40813 | case "$host" in | |
40814 | *-sun-solaris*) | |
40815 | echo "skipping libmalloc check for $host" | |
40816 | ;; | |
40817 | i386-*-freebsd*) | |
40818 | echo "skipping libmalloc check for $host" | |
40819 | ;; | |
40820 | *) | |
33f5f8b9 | 40821 | |
40822 | ||
40823 | echo "$as_me:$LINENO: checking for main in -lmalloc" >&5 | |
40824 | echo $ECHO_N "checking for main in -lmalloc... $ECHO_C" >&6 | |
40825 | if test "${ac_cv_lib_malloc_main+set}" = set; then | |
40826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40827 | else | |
40828 | ac_check_lib_save_LIBS=$LIBS | |
8a15e65e | 40829 | LIBS="-lmalloc $LIBS" |
33f5f8b9 | 40830 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 40831 | /* confdefs.h. */ |
40832 | _ACEOF | |
40833 | cat confdefs.h >>conftest.$ac_ext | |
40834 | cat >>conftest.$ac_ext <<_ACEOF | |
40835 | /* end confdefs.h. */ | |
8a15e65e | 40836 | |
8a15e65e | 40837 | |
33f5f8b9 | 40838 | int |
40839 | main () | |
40840 | { | |
40841 | main (); | |
40842 | ; | |
40843 | return 0; | |
40844 | } | |
40845 | _ACEOF | |
40846 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40847 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 40848 | (eval $ac_link) 2>conftest.er1 |
33f5f8b9 | 40849 | ac_status=$? |
af3004ff | 40850 | grep -v '^ *+' conftest.er1 >conftest.err |
40851 | rm -f conftest.er1 | |
40852 | cat conftest.err >&5 | |
33f5f8b9 | 40853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40854 | (exit $ac_status); } && | |
6263d81f | 40855 | { ac_try='test -z "$ac_c_werror_flag" |
40856 | || test ! -s conftest.err' | |
af3004ff | 40857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40858 | (eval $ac_try) 2>&5 | |
40859 | ac_status=$? | |
40860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40861 | (exit $ac_status); }; } && | |
40862 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 40863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40864 | (eval $ac_try) 2>&5 | |
40865 | ac_status=$? | |
40866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40867 | (exit $ac_status); }; }; then | |
40868 | ac_cv_lib_malloc_main=yes | |
40869 | else | |
40870 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 40871 | sed 's/^/| /' conftest.$ac_ext >&5 |
40872 | ||
33f5f8b9 | 40873 | ac_cv_lib_malloc_main=no |
40874 | fi | |
af3004ff | 40875 | rm -f conftest.err conftest.$ac_objext \ |
40876 | conftest$ac_exeext conftest.$ac_ext | |
33f5f8b9 | 40877 | LIBS=$ac_check_lib_save_LIBS |
40878 | fi | |
40879 | echo "$as_me:$LINENO: result: $ac_cv_lib_malloc_main" >&5 | |
40880 | echo "${ECHO_T}$ac_cv_lib_malloc_main" >&6 | |
40881 | if test $ac_cv_lib_malloc_main = yes; then | |
40882 | cat >>confdefs.h <<_ACEOF | |
40883 | #define HAVE_LIBMALLOC 1 | |
40884 | _ACEOF | |
8a15e65e | 40885 | |
40886 | LIBS="-lmalloc $LIBS" | |
40887 | ||
8a15e65e | 40888 | fi |
40889 | ||
94d48591 | 40890 | ;; |
40891 | esac | |
40892 | fi | |
8a15e65e | 40893 | fi |
94d48591 | 40894 | |
33f5f8b9 | 40895 | |
40896 | echo "$as_me:$LINENO: checking for main in -lbsd" >&5 | |
40897 | echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6 | |
40898 | if test "${ac_cv_lib_bsd_main+set}" = set; then | |
40899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
090089c4 | 40900 | else |
33f5f8b9 | 40901 | ac_check_lib_save_LIBS=$LIBS |
6509a1a0 | 40902 | LIBS="-lbsd $LIBS" |
33f5f8b9 | 40903 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 40904 | /* confdefs.h. */ |
40905 | _ACEOF | |
40906 | cat confdefs.h >>conftest.$ac_ext | |
40907 | cat >>conftest.$ac_ext <<_ACEOF | |
40908 | /* end confdefs.h. */ | |
090089c4 | 40909 | |
3f961930 | 40910 | |
33f5f8b9 | 40911 | int |
40912 | main () | |
40913 | { | |
40914 | main (); | |
40915 | ; | |
40916 | return 0; | |
a33e1d91 | 40917 | } |
40918 | _ACEOF | |
40919 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 40921 | (eval $ac_link) 2>conftest.er1 |
f5691f9c | 40922 | ac_status=$? |
af3004ff | 40923 | grep -v '^ *+' conftest.er1 >conftest.err |
40924 | rm -f conftest.er1 | |
40925 | cat conftest.err >&5 | |
f5691f9c | 40926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a33e1d91 | 40927 | (exit $ac_status); } && |
6263d81f | 40928 | { ac_try='test -z "$ac_c_werror_flag" |
40929 | || test ! -s conftest.err' | |
af3004ff | 40930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40931 | (eval $ac_try) 2>&5 | |
40932 | ac_status=$? | |
40933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40934 | (exit $ac_status); }; } && | |
40935 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 40936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40937 | (eval $ac_try) 2>&5 | |
40938 | ac_status=$? | |
40939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
40940 | (exit $ac_status); }; }; then | |
40941 | ac_cv_lib_bsd_main=yes | |
40942 | else | |
40943 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 40944 | sed 's/^/| /' conftest.$ac_ext >&5 |
40945 | ||
33f5f8b9 | 40946 | ac_cv_lib_bsd_main=no |
40947 | fi | |
af3004ff | 40948 | rm -f conftest.err conftest.$ac_objext \ |
40949 | conftest$ac_exeext conftest.$ac_ext | |
33f5f8b9 | 40950 | LIBS=$ac_check_lib_save_LIBS |
40951 | fi | |
40952 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5 | |
40953 | echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6 | |
40954 | if test $ac_cv_lib_bsd_main = yes; then | |
40955 | cat >>confdefs.h <<_ACEOF | |
40956 | #define HAVE_LIBBSD 1 | |
40957 | _ACEOF | |
6716b242 | 40958 | |
6509a1a0 | 40959 | LIBS="-lbsd $LIBS" |
6716b242 | 40960 | |
090089c4 | 40961 | fi |
40962 | ||
33f5f8b9 | 40963 | echo "$as_me:$LINENO: checking for main in -lregex" >&5 |
40964 | echo $ECHO_N "checking for main in -lregex... $ECHO_C" >&6 | |
40965 | if test "${ac_cv_lib_regex_main+set}" = set; then | |
40966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
090089c4 | 40967 | else |
33f5f8b9 | 40968 | ac_check_lib_save_LIBS=$LIBS |
6509a1a0 | 40969 | LIBS="-lregex $LIBS" |
33f5f8b9 | 40970 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 40971 | /* confdefs.h. */ |
40972 | _ACEOF | |
40973 | cat confdefs.h >>conftest.$ac_ext | |
40974 | cat >>conftest.$ac_ext <<_ACEOF | |
40975 | /* end confdefs.h. */ | |
090089c4 | 40976 | |
090089c4 | 40977 | |
33f5f8b9 | 40978 | int |
40979 | main () | |
40980 | { | |
40981 | main (); | |
40982 | ; | |
40983 | return 0; | |
40984 | } | |
40985 | _ACEOF | |
40986 | rm -f conftest.$ac_objext conftest$ac_exeext | |
40987 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 40988 | (eval $ac_link) 2>conftest.er1 |
33f5f8b9 | 40989 | ac_status=$? |
af3004ff | 40990 | grep -v '^ *+' conftest.er1 >conftest.err |
40991 | rm -f conftest.er1 | |
40992 | cat conftest.err >&5 | |
33f5f8b9 | 40993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
40994 | (exit $ac_status); } && | |
6263d81f | 40995 | { ac_try='test -z "$ac_c_werror_flag" |
40996 | || test ! -s conftest.err' | |
af3004ff | 40997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
40998 | (eval $ac_try) 2>&5 | |
40999 | ac_status=$? | |
41000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41001 | (exit $ac_status); }; } && | |
41002 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 41003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41004 | (eval $ac_try) 2>&5 | |
41005 | ac_status=$? | |
41006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41007 | (exit $ac_status); }; }; then | |
41008 | ac_cv_lib_regex_main=yes | |
41009 | else | |
41010 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 41011 | sed 's/^/| /' conftest.$ac_ext >&5 |
41012 | ||
33f5f8b9 | 41013 | ac_cv_lib_regex_main=no |
41014 | fi | |
af3004ff | 41015 | rm -f conftest.err conftest.$ac_objext \ |
41016 | conftest$ac_exeext conftest.$ac_ext | |
33f5f8b9 | 41017 | LIBS=$ac_check_lib_save_LIBS |
41018 | fi | |
41019 | echo "$as_me:$LINENO: result: $ac_cv_lib_regex_main" >&5 | |
41020 | echo "${ECHO_T}$ac_cv_lib_regex_main" >&6 | |
41021 | if test $ac_cv_lib_regex_main = yes; then | |
6509a1a0 | 41022 | REGEXLIB="-lregex" |
090089c4 | 41023 | fi |
41024 | ||
33f5f8b9 | 41025 | |
41026 | echo "$as_me:$LINENO: checking for gethostbyname in -lbind" >&5 | |
41027 | echo $ECHO_N "checking for gethostbyname in -lbind... $ECHO_C" >&6 | |
41028 | if test "${ac_cv_lib_bind_gethostbyname+set}" = set; then | |
41029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
04a56fa3 | 41030 | else |
33f5f8b9 | 41031 | ac_check_lib_save_LIBS=$LIBS |
04a56fa3 | 41032 | LIBS="-lbind $LIBS" |
33f5f8b9 | 41033 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 41034 | /* confdefs.h. */ |
41035 | _ACEOF | |
41036 | cat confdefs.h >>conftest.$ac_ext | |
41037 | cat >>conftest.$ac_ext <<_ACEOF | |
41038 | /* end confdefs.h. */ | |
33f5f8b9 | 41039 | |
04a56fa3 | 41040 | /* Override any gcc2 internal prototype to avoid an error. */ |
33f5f8b9 | 41041 | #ifdef __cplusplus |
41042 | extern "C" | |
41043 | #endif | |
04a56fa3 | 41044 | /* We use char because int might match the return type of a gcc2 |
33f5f8b9 | 41045 | builtin and then its argument prototype would still apply. */ |
41046 | char gethostbyname (); | |
33f5f8b9 | 41047 | int |
41048 | main () | |
41049 | { | |
41050 | gethostbyname (); | |
41051 | ; | |
41052 | return 0; | |
41053 | } | |
41054 | _ACEOF | |
41055 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 41057 | (eval $ac_link) 2>conftest.er1 |
33f5f8b9 | 41058 | ac_status=$? |
af3004ff | 41059 | grep -v '^ *+' conftest.er1 >conftest.err |
41060 | rm -f conftest.er1 | |
41061 | cat conftest.err >&5 | |
33f5f8b9 | 41062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41063 | (exit $ac_status); } && | |
6263d81f | 41064 | { ac_try='test -z "$ac_c_werror_flag" |
41065 | || test ! -s conftest.err' | |
af3004ff | 41066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41067 | (eval $ac_try) 2>&5 | |
41068 | ac_status=$? | |
41069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41070 | (exit $ac_status); }; } && | |
41071 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 41072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41073 | (eval $ac_try) 2>&5 | |
41074 | ac_status=$? | |
41075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41076 | (exit $ac_status); }; }; then | |
41077 | ac_cv_lib_bind_gethostbyname=yes | |
41078 | else | |
41079 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 41080 | sed 's/^/| /' conftest.$ac_ext >&5 |
41081 | ||
33f5f8b9 | 41082 | ac_cv_lib_bind_gethostbyname=no |
41083 | fi | |
af3004ff | 41084 | rm -f conftest.err conftest.$ac_objext \ |
41085 | conftest$ac_exeext conftest.$ac_ext | |
33f5f8b9 | 41086 | LIBS=$ac_check_lib_save_LIBS |
41087 | fi | |
41088 | echo "$as_me:$LINENO: result: $ac_cv_lib_bind_gethostbyname" >&5 | |
41089 | echo "${ECHO_T}$ac_cv_lib_bind_gethostbyname" >&6 | |
41090 | if test $ac_cv_lib_bind_gethostbyname = yes; then | |
41091 | cat >>confdefs.h <<_ACEOF | |
41092 | #define HAVE_LIBBIND 1 | |
41093 | _ACEOF | |
04a56fa3 | 41094 | |
41095 | LIBS="-lbind $LIBS" | |
41096 | ||
04a56fa3 | 41097 | fi |
41098 | ||
41099 | if test $ac_cv_lib_bind_gethostbyname = "no" ; then | |
41100 | case "$host" in | |
78743365 | 41101 | i386-*-freebsd*) |
41102 | echo "skipping libresolv checks for $host" | |
41103 | ;; | |
41104 | *) | |
33f5f8b9 | 41105 | echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5 |
41106 | echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6 | |
41107 | if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then | |
41108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac4437b7 | 41109 | else |
33f5f8b9 | 41110 | ac_check_lib_save_LIBS=$LIBS |
6509a1a0 | 41111 | LIBS="-lresolv $LIBS" |
33f5f8b9 | 41112 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 41113 | /* confdefs.h. */ |
41114 | _ACEOF | |
41115 | cat confdefs.h >>conftest.$ac_ext | |
41116 | cat >>conftest.$ac_ext <<_ACEOF | |
41117 | /* end confdefs.h. */ | |
33f5f8b9 | 41118 | |
6509a1a0 | 41119 | /* Override any gcc2 internal prototype to avoid an error. */ |
33f5f8b9 | 41120 | #ifdef __cplusplus |
41121 | extern "C" | |
41122 | #endif | |
6509a1a0 | 41123 | /* We use char because int might match the return type of a gcc2 |
33f5f8b9 | 41124 | builtin and then its argument prototype would still apply. */ |
41125 | char inet_aton (); | |
33f5f8b9 | 41126 | int |
41127 | main () | |
41128 | { | |
41129 | inet_aton (); | |
41130 | ; | |
41131 | return 0; | |
41132 | } | |
41133 | _ACEOF | |
41134 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 41136 | (eval $ac_link) 2>conftest.er1 |
41137 | ac_status=$? | |
41138 | grep -v '^ *+' conftest.er1 >conftest.err | |
41139 | rm -f conftest.er1 | |
41140 | cat conftest.err >&5 | |
41141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41142 | (exit $ac_status); } && | |
6263d81f | 41143 | { ac_try='test -z "$ac_c_werror_flag" |
41144 | || test ! -s conftest.err' | |
af3004ff | 41145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41146 | (eval $ac_try) 2>&5 | |
41147 | ac_status=$? | |
41148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41149 | (exit $ac_status); }; } && | |
41150 | { ac_try='test -s conftest$ac_exeext' | |
41151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41152 | (eval $ac_try) 2>&5 | |
41153 | ac_status=$? | |
41154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41155 | (exit $ac_status); }; }; then | |
41156 | ac_cv_lib_resolv_inet_aton=yes | |
41157 | else | |
41158 | echo "$as_me: failed program was:" >&5 | |
41159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41160 | ||
41161 | ac_cv_lib_resolv_inet_aton=no | |
41162 | fi | |
41163 | rm -f conftest.err conftest.$ac_objext \ | |
41164 | conftest$ac_exeext conftest.$ac_ext | |
41165 | LIBS=$ac_check_lib_save_LIBS | |
41166 | fi | |
41167 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5 | |
41168 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6 | |
41169 | if test $ac_cv_lib_resolv_inet_aton = yes; then | |
41170 | ||
41171 | echo "$as_me:$LINENO: checking for inet_aton in -l44bsd" >&5 | |
41172 | echo $ECHO_N "checking for inet_aton in -l44bsd... $ECHO_C" >&6 | |
41173 | if test "${ac_cv_lib_44bsd_inet_aton+set}" = set; then | |
41174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41175 | else | |
41176 | ac_check_lib_save_LIBS=$LIBS | |
41177 | LIBS="-l44bsd $LIBS" | |
41178 | cat >conftest.$ac_ext <<_ACEOF | |
41179 | /* confdefs.h. */ | |
41180 | _ACEOF | |
41181 | cat confdefs.h >>conftest.$ac_ext | |
41182 | cat >>conftest.$ac_ext <<_ACEOF | |
41183 | /* end confdefs.h. */ | |
41184 | ||
41185 | /* Override any gcc2 internal prototype to avoid an error. */ | |
41186 | #ifdef __cplusplus | |
41187 | extern "C" | |
41188 | #endif | |
41189 | /* We use char because int might match the return type of a gcc2 | |
41190 | builtin and then its argument prototype would still apply. */ | |
41191 | char inet_aton (); | |
41192 | int | |
41193 | main () | |
41194 | { | |
41195 | inet_aton (); | |
41196 | ; | |
41197 | return 0; | |
41198 | } | |
41199 | _ACEOF | |
41200 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
41202 | (eval $ac_link) 2>conftest.er1 | |
33f5f8b9 | 41203 | ac_status=$? |
af3004ff | 41204 | grep -v '^ *+' conftest.er1 >conftest.err |
41205 | rm -f conftest.er1 | |
41206 | cat conftest.err >&5 | |
33f5f8b9 | 41207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41208 | (exit $ac_status); } && | |
6263d81f | 41209 | { ac_try='test -z "$ac_c_werror_flag" |
41210 | || test ! -s conftest.err' | |
33f5f8b9 | 41211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41212 | (eval $ac_try) 2>&5 | |
41213 | ac_status=$? | |
41214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
af3004ff | 41215 | (exit $ac_status); }; } && |
41216 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 41217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41218 | (eval $ac_try) 2>&5 | |
41219 | ac_status=$? | |
41220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41221 | (exit $ac_status); }; }; then | |
41222 | ac_cv_lib_44bsd_inet_aton=yes | |
41223 | else | |
41224 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 41225 | sed 's/^/| /' conftest.$ac_ext >&5 |
41226 | ||
33f5f8b9 | 41227 | ac_cv_lib_44bsd_inet_aton=no |
41228 | fi | |
af3004ff | 41229 | rm -f conftest.err conftest.$ac_objext \ |
41230 | conftest$ac_exeext conftest.$ac_ext | |
33f5f8b9 | 41231 | LIBS=$ac_check_lib_save_LIBS |
41232 | fi | |
41233 | echo "$as_me:$LINENO: result: $ac_cv_lib_44bsd_inet_aton" >&5 | |
41234 | echo "${ECHO_T}$ac_cv_lib_44bsd_inet_aton" >&6 | |
41235 | if test $ac_cv_lib_44bsd_inet_aton = yes; then | |
41236 | cat >>confdefs.h <<_ACEOF | |
41237 | #define HAVE_LIB44BSD 1 | |
41238 | _ACEOF | |
8a15e65e | 41239 | |
41240 | LIBS="-l44bsd $LIBS" | |
41241 | ||
090089c4 | 41242 | fi |
41243 | ||
8a15e65e | 41244 | fi |
8a15e65e | 41245 | |
33f5f8b9 | 41246 | |
41247 | echo "$as_me:$LINENO: checking for main in -lresolv" >&5 | |
41248 | echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6 | |
41249 | if test "${ac_cv_lib_resolv_main+set}" = set; then | |
41250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8a15e65e | 41251 | else |
33f5f8b9 | 41252 | ac_check_lib_save_LIBS=$LIBS |
6509a1a0 | 41253 | LIBS="-lresolv $LIBS" |
33f5f8b9 | 41254 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 41255 | /* confdefs.h. */ |
41256 | _ACEOF | |
41257 | cat confdefs.h >>conftest.$ac_ext | |
41258 | cat >>conftest.$ac_ext <<_ACEOF | |
41259 | /* end confdefs.h. */ | |
090089c4 | 41260 | |
090089c4 | 41261 | |
33f5f8b9 | 41262 | int |
41263 | main () | |
41264 | { | |
41265 | main (); | |
41266 | ; | |
41267 | return 0; | |
41268 | } | |
41269 | _ACEOF | |
41270 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 41272 | (eval $ac_link) 2>conftest.er1 |
33f5f8b9 | 41273 | ac_status=$? |
af3004ff | 41274 | grep -v '^ *+' conftest.er1 >conftest.err |
41275 | rm -f conftest.er1 | |
41276 | cat conftest.err >&5 | |
33f5f8b9 | 41277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41278 | (exit $ac_status); } && | |
6263d81f | 41279 | { ac_try='test -z "$ac_c_werror_flag" |
41280 | || test ! -s conftest.err' | |
af3004ff | 41281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41282 | (eval $ac_try) 2>&5 | |
41283 | ac_status=$? | |
41284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41285 | (exit $ac_status); }; } && | |
41286 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 41287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41288 | (eval $ac_try) 2>&5 | |
41289 | ac_status=$? | |
41290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41291 | (exit $ac_status); }; }; then | |
41292 | ac_cv_lib_resolv_main=yes | |
41293 | else | |
41294 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 41295 | sed 's/^/| /' conftest.$ac_ext >&5 |
41296 | ||
33f5f8b9 | 41297 | ac_cv_lib_resolv_main=no |
41298 | fi | |
af3004ff | 41299 | rm -f conftest.err conftest.$ac_objext \ |
41300 | conftest$ac_exeext conftest.$ac_ext | |
33f5f8b9 | 41301 | LIBS=$ac_check_lib_save_LIBS |
41302 | fi | |
41303 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5 | |
41304 | echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6 | |
41305 | if test $ac_cv_lib_resolv_main = yes; then | |
41306 | cat >>confdefs.h <<_ACEOF | |
41307 | #define HAVE_LIBRESOLV 1 | |
41308 | _ACEOF | |
8a15e65e | 41309 | |
6509a1a0 | 41310 | LIBS="-lresolv $LIBS" |
8a15e65e | 41311 | |
090089c4 | 41312 | fi |
41313 | ||
78743365 | 41314 | ;; |
04a56fa3 | 41315 | esac |
41316 | fi | |
795c3ae0 | 41317 | case "$host_os" in |
41318 | mingw|mingw32) | |
41319 | echo "Use MSVCRT for math functions." | |
41320 | ;; | |
41321 | *) | |
33f5f8b9 | 41322 | |
41323 | echo "$as_me:$LINENO: checking for main in -lm" >&5 | |
41324 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 | |
41325 | if test "${ac_cv_lib_m_main+set}" = set; then | |
41326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e0bddc45 | 41327 | else |
33f5f8b9 | 41328 | ac_check_lib_save_LIBS=$LIBS |
e0bddc45 | 41329 | LIBS="-lm $LIBS" |
33f5f8b9 | 41330 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 41331 | /* confdefs.h. */ |
41332 | _ACEOF | |
41333 | cat confdefs.h >>conftest.$ac_ext | |
41334 | cat >>conftest.$ac_ext <<_ACEOF | |
41335 | /* end confdefs.h. */ | |
e0bddc45 | 41336 | |
e0bddc45 | 41337 | |
33f5f8b9 | 41338 | int |
41339 | main () | |
41340 | { | |
41341 | main (); | |
41342 | ; | |
41343 | return 0; | |
41344 | } | |
41345 | _ACEOF | |
41346 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41347 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 41348 | (eval $ac_link) 2>conftest.er1 |
33f5f8b9 | 41349 | ac_status=$? |
af3004ff | 41350 | grep -v '^ *+' conftest.er1 >conftest.err |
41351 | rm -f conftest.er1 | |
41352 | cat conftest.err >&5 | |
33f5f8b9 | 41353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41354 | (exit $ac_status); } && | |
6263d81f | 41355 | { ac_try='test -z "$ac_c_werror_flag" |
41356 | || test ! -s conftest.err' | |
af3004ff | 41357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41358 | (eval $ac_try) 2>&5 | |
41359 | ac_status=$? | |
41360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41361 | (exit $ac_status); }; } && | |
41362 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 41363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41364 | (eval $ac_try) 2>&5 | |
41365 | ac_status=$? | |
41366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41367 | (exit $ac_status); }; }; then | |
41368 | ac_cv_lib_m_main=yes | |
41369 | else | |
41370 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 41371 | sed 's/^/| /' conftest.$ac_ext >&5 |
41372 | ||
33f5f8b9 | 41373 | ac_cv_lib_m_main=no |
41374 | fi | |
af3004ff | 41375 | rm -f conftest.err conftest.$ac_objext \ |
41376 | conftest$ac_exeext conftest.$ac_ext | |
33f5f8b9 | 41377 | LIBS=$ac_check_lib_save_LIBS |
41378 | fi | |
41379 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 | |
41380 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 | |
41381 | if test $ac_cv_lib_m_main = yes; then | |
41382 | cat >>confdefs.h <<_ACEOF | |
41383 | #define HAVE_LIBM 1 | |
41384 | _ACEOF | |
e0bddc45 | 41385 | |
41386 | LIBS="-lm $LIBS" | |
41387 | ||
e0bddc45 | 41388 | fi |
41389 | ||
795c3ae0 | 41390 | ;; |
41391 | esac | |
090089c4 | 41392 | |
33f5f8b9 | 41393 | echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5 |
41394 | echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6 | |
41395 | if test "${ac_cv_lib_crypt_crypt+set}" = set; then | |
41396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
090089c4 | 41397 | else |
33f5f8b9 | 41398 | ac_check_lib_save_LIBS=$LIBS |
090089c4 | 41399 | LIBS="-lcrypt $LIBS" |
33f5f8b9 | 41400 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 41401 | /* confdefs.h. */ |
41402 | _ACEOF | |
41403 | cat confdefs.h >>conftest.$ac_ext | |
41404 | cat >>conftest.$ac_ext <<_ACEOF | |
41405 | /* end confdefs.h. */ | |
33f5f8b9 | 41406 | |
03a0d3b0 | 41407 | /* Override any gcc2 internal prototype to avoid an error. */ |
33f5f8b9 | 41408 | #ifdef __cplusplus |
41409 | extern "C" | |
41410 | #endif | |
03a0d3b0 | 41411 | /* We use char because int might match the return type of a gcc2 |
33f5f8b9 | 41412 | builtin and then its argument prototype would still apply. */ |
528b2c61 | 41413 | char crypt (); |
33f5f8b9 | 41414 | int |
41415 | main () | |
41416 | { | |
41417 | crypt (); | |
41418 | ; | |
41419 | return 0; | |
41420 | } | |
41421 | _ACEOF | |
41422 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41423 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 41424 | (eval $ac_link) 2>conftest.er1 |
33f5f8b9 | 41425 | ac_status=$? |
af3004ff | 41426 | grep -v '^ *+' conftest.er1 >conftest.err |
41427 | rm -f conftest.er1 | |
41428 | cat conftest.err >&5 | |
33f5f8b9 | 41429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41430 | (exit $ac_status); } && | |
6263d81f | 41431 | { ac_try='test -z "$ac_c_werror_flag" |
41432 | || test ! -s conftest.err' | |
af3004ff | 41433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41434 | (eval $ac_try) 2>&5 | |
41435 | ac_status=$? | |
41436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41437 | (exit $ac_status); }; } && | |
41438 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 41439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41440 | (eval $ac_try) 2>&5 | |
41441 | ac_status=$? | |
41442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41443 | (exit $ac_status); }; }; then | |
41444 | ac_cv_lib_crypt_crypt=yes | |
41445 | else | |
41446 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 41447 | sed 's/^/| /' conftest.$ac_ext >&5 |
41448 | ||
33f5f8b9 | 41449 | ac_cv_lib_crypt_crypt=no |
41450 | fi | |
af3004ff | 41451 | rm -f conftest.err conftest.$ac_objext \ |
41452 | conftest$ac_exeext conftest.$ac_ext | |
33f5f8b9 | 41453 | LIBS=$ac_check_lib_save_LIBS |
41454 | fi | |
41455 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5 | |
41456 | echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6 | |
41457 | if test $ac_cv_lib_crypt_crypt = yes; then | |
042b1f8a | 41458 | CRYPTLIB="-lcrypt" |
042b1f8a | 41459 | fi |
0f5a16f8 | 41460 | |
0f5a16f8 | 41461 | |
042b1f8a | 41462 | |
0205c9c8 | 41463 | if test "$with_dl" = "yes"; then |
33f5f8b9 | 41464 | |
41465 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
41466 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
41467 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
41468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
090089c4 | 41469 | else |
33f5f8b9 | 41470 | ac_check_lib_save_LIBS=$LIBS |
042b1f8a | 41471 | LIBS="-ldl $LIBS" |
33f5f8b9 | 41472 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 41473 | /* confdefs.h. */ |
41474 | _ACEOF | |
41475 | cat confdefs.h >>conftest.$ac_ext | |
41476 | cat >>conftest.$ac_ext <<_ACEOF | |
41477 | /* end confdefs.h. */ | |
33f5f8b9 | 41478 | |
042b1f8a | 41479 | /* Override any gcc2 internal prototype to avoid an error. */ |
33f5f8b9 | 41480 | #ifdef __cplusplus |
41481 | extern "C" | |
41482 | #endif | |
042b1f8a | 41483 | /* We use char because int might match the return type of a gcc2 |
33f5f8b9 | 41484 | builtin and then its argument prototype would still apply. */ |
41485 | char dlopen (); | |
33f5f8b9 | 41486 | int |
41487 | main () | |
41488 | { | |
41489 | dlopen (); | |
41490 | ; | |
41491 | return 0; | |
41492 | } | |
41493 | _ACEOF | |
41494 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41495 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 41496 | (eval $ac_link) 2>conftest.er1 |
33f5f8b9 | 41497 | ac_status=$? |
af3004ff | 41498 | grep -v '^ *+' conftest.er1 >conftest.err |
41499 | rm -f conftest.er1 | |
41500 | cat conftest.err >&5 | |
33f5f8b9 | 41501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41502 | (exit $ac_status); } && | |
6263d81f | 41503 | { ac_try='test -z "$ac_c_werror_flag" |
41504 | || test ! -s conftest.err' | |
af3004ff | 41505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41506 | (eval $ac_try) 2>&5 | |
41507 | ac_status=$? | |
41508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41509 | (exit $ac_status); }; } && | |
41510 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 41511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41512 | (eval $ac_try) 2>&5 | |
41513 | ac_status=$? | |
41514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41515 | (exit $ac_status); }; }; then | |
41516 | ac_cv_lib_dl_dlopen=yes | |
41517 | else | |
41518 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 41519 | sed 's/^/| /' conftest.$ac_ext >&5 |
41520 | ||
33f5f8b9 | 41521 | ac_cv_lib_dl_dlopen=no |
41522 | fi | |
af3004ff | 41523 | rm -f conftest.err conftest.$ac_objext \ |
41524 | conftest$ac_exeext conftest.$ac_ext | |
33f5f8b9 | 41525 | LIBS=$ac_check_lib_save_LIBS |
41526 | fi | |
41527 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
41528 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
41529 | if test $ac_cv_lib_dl_dlopen = yes; then | |
41530 | cat >>confdefs.h <<_ACEOF | |
41531 | #define HAVE_LIBDL 1 | |
41532 | _ACEOF | |
0205c9c8 | 41533 | |
41534 | LIBS="-ldl $LIBS" | |
41535 | ||
042b1f8a | 41536 | fi |
41537 | ||
0205c9c8 | 41538 | fi |
090089c4 | 41539 | |
0205c9c8 | 41540 | if test "$with_pthreads" = "yes"; then |
fd58136d | 41541 | SQUID_CFLAGS="$SQUID_CFLAGS -D_REENTRANT" |
41542 | SQUID_CXXFLAGS="$SQUID_CXXFLAGS -D_REENTRANT" | |
8fab2eba | 41543 | case "$host" in |
41544 | i386-unknown-freebsd*) | |
41545 | if test "$GCC" = "yes" ; then | |
41546 | if test -z "$PRESET_LDFLAGS"; then | |
41547 | LDFLAGS="$LDFLAGS -pthread" | |
41548 | fi | |
41549 | fi | |
41550 | ;; | |
41551 | *-solaris2.*) | |
41552 | if test "$GCC" = "yes" ; then | |
fd58136d | 41553 | SQUID_CFLAGS="$SQUID_CFLAGS -pthreads" |
41554 | SQUID_CXXFLAGS="$SQUID_CXXFLAGS -pthreads" | |
8fab2eba | 41555 | else |
fd58136d | 41556 | SQUID_CFLAGS="$SQUID_CFLAGS -mt" |
41557 | SQUID_CXXFLAGS="$SQUID_CXXFLAGS -mt" | |
8fab2eba | 41558 | fi |
41559 | ;; | |
41560 | esac | |
33f5f8b9 | 41561 | |
41562 | echo "$as_me:$LINENO: checking for main in -lpthread" >&5 | |
41563 | echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6 | |
41564 | if test "${ac_cv_lib_pthread_main+set}" = set; then | |
41565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
47619a23 | 41566 | else |
33f5f8b9 | 41567 | ac_check_lib_save_LIBS=$LIBS |
47619a23 | 41568 | LIBS="-lpthread $LIBS" |
33f5f8b9 | 41569 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 41570 | /* confdefs.h. */ |
41571 | _ACEOF | |
41572 | cat confdefs.h >>conftest.$ac_ext | |
41573 | cat >>conftest.$ac_ext <<_ACEOF | |
41574 | /* end confdefs.h. */ | |
47619a23 | 41575 | |
47619a23 | 41576 | |
33f5f8b9 | 41577 | int |
41578 | main () | |
41579 | { | |
41580 | main (); | |
41581 | ; | |
41582 | return 0; | |
41583 | } | |
41584 | _ACEOF | |
41585 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41586 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 41587 | (eval $ac_link) 2>conftest.er1 |
33f5f8b9 | 41588 | ac_status=$? |
af3004ff | 41589 | grep -v '^ *+' conftest.er1 >conftest.err |
41590 | rm -f conftest.er1 | |
41591 | cat conftest.err >&5 | |
33f5f8b9 | 41592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41593 | (exit $ac_status); } && | |
6263d81f | 41594 | { ac_try='test -z "$ac_c_werror_flag" |
41595 | || test ! -s conftest.err' | |
af3004ff | 41596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41597 | (eval $ac_try) 2>&5 | |
41598 | ac_status=$? | |
41599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41600 | (exit $ac_status); }; } && | |
41601 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 41602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41603 | (eval $ac_try) 2>&5 | |
41604 | ac_status=$? | |
41605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41606 | (exit $ac_status); }; }; then | |
41607 | ac_cv_lib_pthread_main=yes | |
41608 | else | |
41609 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 41610 | sed 's/^/| /' conftest.$ac_ext >&5 |
41611 | ||
33f5f8b9 | 41612 | ac_cv_lib_pthread_main=no |
41613 | fi | |
af3004ff | 41614 | rm -f conftest.err conftest.$ac_objext \ |
41615 | conftest$ac_exeext conftest.$ac_ext | |
33f5f8b9 | 41616 | LIBS=$ac_check_lib_save_LIBS |
41617 | fi | |
41618 | echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5 | |
41619 | echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6 | |
41620 | if test $ac_cv_lib_pthread_main = yes; then | |
41621 | cat >>confdefs.h <<_ACEOF | |
41622 | #define HAVE_LIBPTHREAD 1 | |
41623 | _ACEOF | |
0205c9c8 | 41624 | |
41625 | LIBS="-lpthread $LIBS" | |
41626 | ||
47619a23 | 41627 | fi |
41628 | ||
0205c9c8 | 41629 | fi |
47619a23 | 41630 | |
0205c9c8 | 41631 | if test "$with_aio" = "yes"; then |
33f5f8b9 | 41632 | |
41633 | echo "$as_me:$LINENO: checking for aio_read in -lrt" >&5 | |
41634 | echo $ECHO_N "checking for aio_read in -lrt... $ECHO_C" >&6 | |
41635 | if test "${ac_cv_lib_rt_aio_read+set}" = set; then | |
41636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f85c88f3 | 41637 | else |
33f5f8b9 | 41638 | ac_check_lib_save_LIBS=$LIBS |
f85c88f3 | 41639 | LIBS="-lrt $LIBS" |
33f5f8b9 | 41640 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 41641 | /* confdefs.h. */ |
41642 | _ACEOF | |
41643 | cat confdefs.h >>conftest.$ac_ext | |
41644 | cat >>conftest.$ac_ext <<_ACEOF | |
41645 | /* end confdefs.h. */ | |
33f5f8b9 | 41646 | |
f85c88f3 | 41647 | /* Override any gcc2 internal prototype to avoid an error. */ |
33f5f8b9 | 41648 | #ifdef __cplusplus |
41649 | extern "C" | |
41650 | #endif | |
f85c88f3 | 41651 | /* We use char because int might match the return type of a gcc2 |
33f5f8b9 | 41652 | builtin and then its argument prototype would still apply. */ |
41653 | char aio_read (); | |
33f5f8b9 | 41654 | int |
41655 | main () | |
41656 | { | |
41657 | aio_read (); | |
41658 | ; | |
41659 | return 0; | |
41660 | } | |
41661 | _ACEOF | |
41662 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 41664 | (eval $ac_link) 2>conftest.er1 |
33f5f8b9 | 41665 | ac_status=$? |
af3004ff | 41666 | grep -v '^ *+' conftest.er1 >conftest.err |
41667 | rm -f conftest.er1 | |
41668 | cat conftest.err >&5 | |
33f5f8b9 | 41669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41670 | (exit $ac_status); } && | |
6263d81f | 41671 | { ac_try='test -z "$ac_c_werror_flag" |
41672 | || test ! -s conftest.err' | |
af3004ff | 41673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41674 | (eval $ac_try) 2>&5 | |
41675 | ac_status=$? | |
41676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41677 | (exit $ac_status); }; } && | |
41678 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 41679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41680 | (eval $ac_try) 2>&5 | |
41681 | ac_status=$? | |
41682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41683 | (exit $ac_status); }; }; then | |
41684 | ac_cv_lib_rt_aio_read=yes | |
41685 | else | |
41686 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 41687 | sed 's/^/| /' conftest.$ac_ext >&5 |
41688 | ||
33f5f8b9 | 41689 | ac_cv_lib_rt_aio_read=no |
41690 | fi | |
af3004ff | 41691 | rm -f conftest.err conftest.$ac_objext \ |
41692 | conftest$ac_exeext conftest.$ac_ext | |
33f5f8b9 | 41693 | LIBS=$ac_check_lib_save_LIBS |
41694 | fi | |
41695 | echo "$as_me:$LINENO: result: $ac_cv_lib_rt_aio_read" >&5 | |
41696 | echo "${ECHO_T}$ac_cv_lib_rt_aio_read" >&6 | |
41697 | if test $ac_cv_lib_rt_aio_read = yes; then | |
41698 | cat >>confdefs.h <<_ACEOF | |
41699 | #define HAVE_LIBRT 1 | |
41700 | _ACEOF | |
0205c9c8 | 41701 | |
41702 | LIBS="-lrt $LIBS" | |
41703 | ||
967aecd2 | 41704 | else |
41705 | ||
41706 | echo "$as_me:$LINENO: checking for aio_read in -laio" >&5 | |
41707 | echo $ECHO_N "checking for aio_read in -laio... $ECHO_C" >&6 | |
41708 | if test "${ac_cv_lib_aio_aio_read+set}" = set; then | |
41709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41710 | else | |
41711 | ac_check_lib_save_LIBS=$LIBS | |
41712 | LIBS="-laio $LIBS" | |
41713 | cat >conftest.$ac_ext <<_ACEOF | |
41714 | /* confdefs.h. */ | |
41715 | _ACEOF | |
41716 | cat confdefs.h >>conftest.$ac_ext | |
41717 | cat >>conftest.$ac_ext <<_ACEOF | |
41718 | /* end confdefs.h. */ | |
41719 | ||
41720 | /* Override any gcc2 internal prototype to avoid an error. */ | |
41721 | #ifdef __cplusplus | |
41722 | extern "C" | |
41723 | #endif | |
41724 | /* We use char because int might match the return type of a gcc2 | |
41725 | builtin and then its argument prototype would still apply. */ | |
41726 | char aio_read (); | |
41727 | int | |
41728 | main () | |
41729 | { | |
41730 | aio_read (); | |
41731 | ; | |
41732 | return 0; | |
41733 | } | |
41734 | _ACEOF | |
41735 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41736 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
41737 | (eval $ac_link) 2>conftest.er1 | |
41738 | ac_status=$? | |
41739 | grep -v '^ *+' conftest.er1 >conftest.err | |
41740 | rm -f conftest.er1 | |
41741 | cat conftest.err >&5 | |
41742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41743 | (exit $ac_status); } && | |
6263d81f | 41744 | { ac_try='test -z "$ac_c_werror_flag" |
41745 | || test ! -s conftest.err' | |
967aecd2 | 41746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41747 | (eval $ac_try) 2>&5 | |
41748 | ac_status=$? | |
41749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41750 | (exit $ac_status); }; } && | |
41751 | { ac_try='test -s conftest$ac_exeext' | |
41752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41753 | (eval $ac_try) 2>&5 | |
41754 | ac_status=$? | |
41755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41756 | (exit $ac_status); }; }; then | |
41757 | ac_cv_lib_aio_aio_read=yes | |
41758 | else | |
41759 | echo "$as_me: failed program was:" >&5 | |
41760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41761 | ||
41762 | ac_cv_lib_aio_aio_read=no | |
41763 | fi | |
41764 | rm -f conftest.err conftest.$ac_objext \ | |
41765 | conftest$ac_exeext conftest.$ac_ext | |
41766 | LIBS=$ac_check_lib_save_LIBS | |
41767 | fi | |
41768 | echo "$as_me:$LINENO: result: $ac_cv_lib_aio_aio_read" >&5 | |
41769 | echo "${ECHO_T}$ac_cv_lib_aio_aio_read" >&6 | |
41770 | if test $ac_cv_lib_aio_aio_read = yes; then | |
41771 | cat >>confdefs.h <<_ACEOF | |
41772 | #define HAVE_LIBAIO 1 | |
41773 | _ACEOF | |
41774 | ||
41775 | LIBS="-laio $LIBS" | |
41776 | ||
41777 | fi | |
41778 | ||
f85c88f3 | 41779 | fi |
41780 | ||
0205c9c8 | 41781 | fi |
f85c88f3 | 41782 | |
86ec11aa | 41783 | case "$host" in |
41784 | *-pc-sco3.2*) | |
33f5f8b9 | 41785 | |
41786 | echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 | |
41787 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 | |
41788 | if test "${ac_cv_lib_intl_strftime+set}" = set; then | |
41789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
86ec11aa | 41790 | else |
33f5f8b9 | 41791 | ac_check_lib_save_LIBS=$LIBS |
86ec11aa | 41792 | LIBS="-lintl $LIBS" |
33f5f8b9 | 41793 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 41794 | /* confdefs.h. */ |
41795 | _ACEOF | |
41796 | cat confdefs.h >>conftest.$ac_ext | |
41797 | cat >>conftest.$ac_ext <<_ACEOF | |
41798 | /* end confdefs.h. */ | |
33f5f8b9 | 41799 | |
86ec11aa | 41800 | /* Override any gcc2 internal prototype to avoid an error. */ |
33f5f8b9 | 41801 | #ifdef __cplusplus |
41802 | extern "C" | |
41803 | #endif | |
86ec11aa | 41804 | /* We use char because int might match the return type of a gcc2 |
33f5f8b9 | 41805 | builtin and then its argument prototype would still apply. */ |
41806 | char strftime (); | |
33f5f8b9 | 41807 | int |
41808 | main () | |
41809 | { | |
41810 | strftime (); | |
41811 | ; | |
41812 | return 0; | |
41813 | } | |
41814 | _ACEOF | |
41815 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41816 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 41817 | (eval $ac_link) 2>conftest.er1 |
33f5f8b9 | 41818 | ac_status=$? |
af3004ff | 41819 | grep -v '^ *+' conftest.er1 >conftest.err |
41820 | rm -f conftest.er1 | |
41821 | cat conftest.err >&5 | |
33f5f8b9 | 41822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
41823 | (exit $ac_status); } && | |
6263d81f | 41824 | { ac_try='test -z "$ac_c_werror_flag" |
41825 | || test ! -s conftest.err' | |
af3004ff | 41826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41827 | (eval $ac_try) 2>&5 | |
41828 | ac_status=$? | |
41829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41830 | (exit $ac_status); }; } && | |
41831 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 41832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41833 | (eval $ac_try) 2>&5 | |
41834 | ac_status=$? | |
41835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41836 | (exit $ac_status); }; }; then | |
41837 | ac_cv_lib_intl_strftime=yes | |
41838 | else | |
41839 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 41840 | sed 's/^/| /' conftest.$ac_ext >&5 |
41841 | ||
33f5f8b9 | 41842 | ac_cv_lib_intl_strftime=no |
41843 | fi | |
af3004ff | 41844 | rm -f conftest.err conftest.$ac_objext \ |
41845 | conftest$ac_exeext conftest.$ac_ext | |
33f5f8b9 | 41846 | LIBS=$ac_check_lib_save_LIBS |
41847 | fi | |
41848 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 | |
41849 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 | |
41850 | if test $ac_cv_lib_intl_strftime = yes; then | |
41851 | cat >>confdefs.h <<_ACEOF | |
41852 | #define HAVE_LIBINTL 1 | |
41853 | _ACEOF | |
86ec11aa | 41854 | |
41855 | LIBS="-lintl $LIBS" | |
41856 | ||
86ec11aa | 41857 | fi |
41858 | ||
41859 | ;; | |
41860 | esac | |
41861 | ||
30f36b47 | 41862 | case "$host_os" in |
41863 | mingw|mingw32) | |
41864 | LIB_LDAP="-lwldap32" | |
41865 | LIB_LBER="" | |
41866 | ;; | |
41867 | *) | |
41868 | LIB_LDAP="-lldap" | |
41869 | echo "$as_me:$LINENO: checking for main in -llber" >&5 | |
41870 | echo $ECHO_N "checking for main in -llber... $ECHO_C" >&6 | |
41871 | if test "${ac_cv_lib_lber_main+set}" = set; then | |
41872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
41873 | else | |
41874 | ac_check_lib_save_LIBS=$LIBS | |
41875 | LIBS="-llber $LIBS" | |
41876 | cat >conftest.$ac_ext <<_ACEOF | |
41877 | /* confdefs.h. */ | |
41878 | _ACEOF | |
41879 | cat confdefs.h >>conftest.$ac_ext | |
41880 | cat >>conftest.$ac_ext <<_ACEOF | |
41881 | /* end confdefs.h. */ | |
41882 | ||
41883 | ||
41884 | int | |
41885 | main () | |
41886 | { | |
41887 | main (); | |
41888 | ; | |
41889 | return 0; | |
41890 | } | |
41891 | _ACEOF | |
41892 | rm -f conftest.$ac_objext conftest$ac_exeext | |
41893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
41894 | (eval $ac_link) 2>conftest.er1 | |
41895 | ac_status=$? | |
41896 | grep -v '^ *+' conftest.er1 >conftest.err | |
41897 | rm -f conftest.er1 | |
41898 | cat conftest.err >&5 | |
41899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41900 | (exit $ac_status); } && | |
6263d81f | 41901 | { ac_try='test -z "$ac_c_werror_flag" |
41902 | || test ! -s conftest.err' | |
30f36b47 | 41903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41904 | (eval $ac_try) 2>&5 | |
41905 | ac_status=$? | |
41906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41907 | (exit $ac_status); }; } && | |
41908 | { ac_try='test -s conftest$ac_exeext' | |
41909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
41910 | (eval $ac_try) 2>&5 | |
41911 | ac_status=$? | |
41912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41913 | (exit $ac_status); }; }; then | |
41914 | ac_cv_lib_lber_main=yes | |
41915 | else | |
41916 | echo "$as_me: failed program was:" >&5 | |
41917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41918 | ||
41919 | ac_cv_lib_lber_main=no | |
41920 | fi | |
41921 | rm -f conftest.err conftest.$ac_objext \ | |
41922 | conftest$ac_exeext conftest.$ac_ext | |
41923 | LIBS=$ac_check_lib_save_LIBS | |
41924 | fi | |
41925 | echo "$as_me:$LINENO: result: $ac_cv_lib_lber_main" >&5 | |
41926 | echo "${ECHO_T}$ac_cv_lib_lber_main" >&6 | |
41927 | if test $ac_cv_lib_lber_main = yes; then | |
41928 | LIB_LBER="-llber" | |
41929 | fi | |
41930 | ||
41931 | ;; | |
41932 | esac | |
41933 | ||
41934 | ||
41935 | ||
fcfda3ce | 41936 | DBLIB= |
a258dfca | 41937 | echo "$as_me:$LINENO: checking if dbopen needs -ldb" >&5 |
41938 | echo $ECHO_N "checking if dbopen needs -ldb... $ECHO_C" >&6 | |
41939 | if test "${ac_cv_dbopen_libdb+set}" = set; then | |
fcfda3ce | 41940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
41941 | else | |
fcfda3ce | 41942 | |
32d0bbd7 | 41943 | SAVED_LIBS="$LIBS"; LIBS="$LIBS -ldb" |
a258dfca | 41944 | cat >conftest.$ac_ext <<_ACEOF |
20d16514 | 41945 | /* confdefs.h. */ |
41946 | _ACEOF | |
41947 | cat confdefs.h >>conftest.$ac_ext | |
41948 | cat >>conftest.$ac_ext <<_ACEOF | |
41949 | /* end confdefs.h. */ | |
41950 | ||
a258dfca | 41951 | #if HAVE_SYS_TYPES_H |
41952 | #include <sys/types.h> | |
20d16514 | 41953 | #endif |
a258dfca | 41954 | #if HAVE_LIMITS_H |
41955 | #include <limits.h> | |
41956 | #endif | |
41957 | #if HAVE_DB_185_H | |
41958 | #include <db_185.h> | |
41959 | #elif HAVE_DB_H | |
41960 | #include <db.h> | |
20d16514 | 41961 | #endif |
20d16514 | 41962 | int |
41963 | main () | |
41964 | { | |
a258dfca | 41965 | dbopen((void *)0L, 0, 0, DB_HASH, (void *)0L) |
20d16514 | 41966 | ; |
41967 | return 0; | |
41968 | } | |
41969 | _ACEOF | |
32d0bbd7 | 41970 | rm -f conftest.$ac_objext conftest$ac_exeext |
41971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
41972 | (eval $ac_link) 2>conftest.er1 | |
20d16514 | 41973 | ac_status=$? |
41974 | grep -v '^ *+' conftest.er1 >conftest.err | |
41975 | rm -f conftest.er1 | |
41976 | cat conftest.err >&5 | |
41977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41978 | (exit $ac_status); } && | |
6263d81f | 41979 | { ac_try='test -z "$ac_c_werror_flag" |
41980 | || test ! -s conftest.err' | |
20d16514 | 41981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41982 | (eval $ac_try) 2>&5 | |
41983 | ac_status=$? | |
41984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41985 | (exit $ac_status); }; } && | |
32d0bbd7 | 41986 | { ac_try='test -s conftest$ac_exeext' |
20d16514 | 41987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
41988 | (eval $ac_try) 2>&5 | |
41989 | ac_status=$? | |
41990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
41991 | (exit $ac_status); }; }; then | |
32d0bbd7 | 41992 | ac_cv_dbopen_libdb="yes" |
20d16514 | 41993 | else |
41994 | echo "$as_me: failed program was:" >&5 | |
41995 | sed 's/^/| /' conftest.$ac_ext >&5 | |
41996 | ||
a258dfca | 41997 | ac_cv_dbopen_libdb="no" |
fcfda3ce | 41998 | fi |
32d0bbd7 | 41999 | rm -f conftest.err conftest.$ac_objext \ |
42000 | conftest$ac_exeext conftest.$ac_ext | |
42001 | LIBS="$SAVED_LIBS" | |
fcfda3ce | 42002 | |
a258dfca | 42003 | fi |
42004 | echo "$as_me:$LINENO: result: $ac_cv_dbopen_libdb" >&5 | |
42005 | echo "${ECHO_T}$ac_cv_dbopen_libdb" >&6 | |
2b2161bb | 42006 | if test $ac_cv_dbopen_libdb = yes; then |
32d0bbd7 | 42007 | LIB_DB="-ldb" |
42008 | fi | |
fcfda3ce | 42009 | |
42010 | ||
77f675ad | 42011 | case "$host" in |
88738790 | 42012 | i386-*-solaris2.*) |
58f24c1d | 42013 | if test "$GCC" = "yes"; then |
42014 | echo "Removing -O for gcc on $host" | |
80e92d6d | 42015 | CFLAGS="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`" |
58f24c1d | 42016 | fi |
42017 | ;; | |
77f675ad | 42018 | *-sgi-irix*) |
42019 | echo "Removing -lsocket for IRIX..." | |
6716b242 | 42020 | LIBS=`echo $LIBS | sed -e s/-lsocket//` |
77f675ad | 42021 | echo "Removing -lnsl for IRIX..." |
6716b242 | 42022 | LIBS=`echo $LIBS | sed -e s/-lnsl//` |
c415c128 | 42023 | ac_cv_lib_nsl_main=no |
b44c0fb4 | 42024 | echo "Removing -lbsd for IRIX..." |
42025 | LIBS=`echo $LIBS | sed -e s/-lbsd//` | |
77f675ad | 42026 | ;; |
4ba0bd0e | 42027 | *-ibm-aix*) |
42028 | echo "Removing -lbsd for AIX..." | |
42029 | LIBS=`echo $LIBS | sed -e s/-lbsd//` | |
21be5e88 | 42030 | case "$host" in |
42031 | *-ibm-aix4*) | |
42032 | echo "disabling snprintf/vsnprintf for $host" | |
42033 | ac_cv_func_snprintf=no | |
42034 | ac_cv_func_vsnprintf=no | |
42035 | ;; | |
42036 | esac | |
4ba0bd0e | 42037 | ;; |
30a4f2a8 | 42038 | *m88k*) |
fd58136d | 42039 | SQUID_CFLAGS="$SQUID_CFLAGS -D_SQUID_MOTOROLA_" |
42040 | SQUID_CXXFLAGS="$SQUID_CXXFLAGS -D_SQUID_MOTOROLA_" | |
33f5f8b9 | 42041 | |
42042 | cat >>confdefs.h <<\_ACEOF | |
58f24c1d | 42043 | #define GETTIMEOFDAY_NO_TZP 1 |
33f5f8b9 | 42044 | _ACEOF |
58f24c1d | 42045 | |
30a4f2a8 | 42046 | ;; |
580ce039 | 42047 | *-*-solaris2.[0-4]) |
33f5f8b9 | 42048 | cat >>confdefs.h <<\_ACEOF |
58f24c1d | 42049 | #define GETTIMEOFDAY_NO_TZP 1 |
33f5f8b9 | 42050 | _ACEOF |
8a7f0105 | 42051 | |
42052 | ;; | |
711fa75e | 42053 | *-sony-newsos[56]*) |
33f5f8b9 | 42054 | cat >>confdefs.h <<\_ACEOF |
8a7f0105 | 42055 | #define GETTIMEOFDAY_NO_TZP 1 |
33f5f8b9 | 42056 | _ACEOF |
30a4f2a8 | 42057 | |
58f24c1d | 42058 | ;; |
77f675ad | 42059 | esac |
42060 | ||
57faa85a | 42061 | # Remove optimization for GCC 2.95.[123] |
d20b1cd0 | 42062 | # gcc -O[2] on *BSD and Linux (x86) causes pointers to magically become NULL |
42063 | if test "$GCC" = "yes"; then | |
42064 | GCCVER=`$CC -v 2>&1 | awk '$2 == "version" {print $3}'` | |
42065 | case "$GCCVER" in | |
57faa85a | 42066 | 2.95.[123]) |
d20b1cd0 | 42067 | echo "Removing -O for gcc on $host with GCC $GCCVER" |
42068 | CFLAGS="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`" | |
42069 | ;; | |
42070 | esac | |
42071 | fi | |
42072 | ||
176d10ee | 42073 | # Recommended by Balint Nagy Endre <bne@CareNet.hu> |
42074 | case "$host" in | |
42075 | *-univel-sysv4.2MP) | |
42076 | if test `uname -v` = "2.03"; then | |
42077 | echo "disabling mallinfo for $host" | |
42078 | ac_cv_func_mallinfo=no | |
42079 | fi | |
42080 | ;; | |
42081 | esac | |
42082 | ||
84cecfd2 | 42083 | # Disable poll() on certain platforms. Override by setting ac_cv_func_poll |
42084 | # when running configure. | |
42085 | if test -z "$ac_cv_func_poll"; then | |
42086 | case "$host" in | |
42087 | alpha-dec-osf3.*) | |
42088 | # John Kay (jkay@nlanr.net) 19970818 | |
42089 | echo "disabling poll for $host..." | |
42090 | ac_cv_func_poll='no' | |
42091 | ;; | |
42092 | *-hp-hpux*.*) | |
42093 | # Duane Wessels | |
42094 | echo "disabling poll for $host..." | |
42095 | ac_cv_func_poll='no' | |
42096 | ;; | |
42097 | *-linux-*) | |
4d683a65 | 42098 | # Henrik Nordstrom (hno@squid-cache.org) 19980817 |
9bb83c8b | 42099 | # poll is problematic on Linux. We disable it |
42100 | # by default until Linux gets it right. | |
b6a2f15e | 42101 | rev=`uname -r | awk -F. '{printf "%03d%03d",$1,$2}'` |
42102 | if test $rev -lt 002002; then | |
42103 | echo "disabling poll for $host < 2.2..." | |
42104 | ac_cv_func_poll='no' | |
42105 | fi | |
84cecfd2 | 42106 | ;; |
c68e9c6b | 42107 | powerpc-ibm-aix4.1.*) |
42108 | # Mike Laster (mlaster@metavillage.com) 19981021 | |
42109 | echo "disabling poll for $host..." | |
42110 | ac_cv_func_poll='no' | |
42111 | ;; | |
86ec11aa | 42112 | *-pc-sco3.2*) |
42113 | # Robert Side <rside@aiinc.bc.ca> | |
42114 | # Mon, 18 Jan 1999 17:48:00 GMT | |
42115 | echo "disabling poll for $host..." | |
42116 | ac_cv_func_poll='no' | |
42117 | ;; | |
84cecfd2 | 42118 | esac |
42119 | fi | |
176d10ee | 42120 | |
795c3ae0 | 42121 | case "$host_os" in |
42122 | mingw|mingw32) | |
42123 | ac_cv_func_statfs='yes' | |
42124 | ;; | |
42125 | esac | |
42126 | ||
33f5f8b9 | 42127 | |
42128 | ||
42129 | ||
42130 | ||
42131 | ||
42132 | ||
42133 | ||
42134 | ||
42135 | ||
42136 | ||
42137 | ||
42138 | ||
42139 | ||
42140 | ||
42141 | ||
42142 | ||
42143 | ||
42144 | ||
42145 | ||
42146 | ||
42147 | ||
42148 | ||
42149 | ||
42150 | ||
42151 | ||
42152 | ||
42153 | ||
42154 | ||
42155 | ||
42156 | ||
42157 | ||
42158 | ||
42159 | ||
42160 | ||
42161 | ||
42162 | ||
42163 | ||
42164 | ||
42165 | ||
42166 | ||
42167 | ||
42168 | ||
42169 | ||
42170 | ||
42171 | ||
42172 | ||
f9576890 | 42173 | |
42174 | ||
42175 | ||
42176 | ||
33f5f8b9 | 42177 | |
42178 | ||
c8a31e86 | 42179 | |
abae1390 | 42180 | |
afbb1069 | 42181 | |
33f5f8b9 | 42182 | |
42183 | ||
6716b242 | 42184 | for ac_func in \ |
fe0810ac | 42185 | backtrace_symbols_fd \ |
e5a6c5f5 | 42186 | bcopy \ |
42187 | bswap_16 \ | |
42188 | bswap_32 \ | |
f9576890 | 42189 | bswap16 \ |
42190 | bswap32 \ | |
df087e68 | 42191 | crypt \ |
4ac29a5b | 42192 | fchmod \ |
6716b242 | 42193 | getdtablesize \ |
8505e57b | 42194 | getpagesize \ |
593f8a68 | 42195 | getpass \ |
e5a6c5f5 | 42196 | getrlimit \ |
30a4f2a8 | 42197 | getrusage \ |
9c1d8929 | 42198 | getspnam \ |
f9576890 | 42199 | htobe16 \ |
42200 | htole16 \ | |
30a4f2a8 | 42201 | lrand48 \ |
6716b242 | 42202 | mallinfo \ |
0f5efab0 | 42203 | mallocblksize \ |
6716b242 | 42204 | mallopt \ |
2ae6b9b0 | 42205 | memcpy \ |
30a4f2a8 | 42206 | memmove \ |
dac27377 | 42207 | memset \ |
b99a6dec | 42208 | mkstemp \ |
1812b6c7 | 42209 | mktime \ |
88738790 | 42210 | mstats \ |
84cecfd2 | 42211 | poll \ |
abae1390 | 42212 | prctl \ |
e5a6c5f5 | 42213 | pthread_attr_setschedparam \ |
cd748f27 | 42214 | pthread_attr_setscope \ |
42215 | pthread_setschedparam \ | |
42b51993 | 42216 | pthread_sigmask \ |
c68e9c6b | 42217 | putenv \ |
b1e77ec1 | 42218 | random \ |
6716b242 | 42219 | regcomp \ |
42220 | regexec \ | |
42221 | regfree \ | |
30a4f2a8 | 42222 | res_init \ |
3f628dde | 42223 | rint \ |
c8a31e86 | 42224 | sbrk \ |
e5a6c5f5 | 42225 | select \ |
234967c9 | 42226 | seteuid \ |
c415c128 | 42227 | setgroups \ |
30a4f2a8 | 42228 | setpgrp \ |
6716b242 | 42229 | setrlimit \ |
30a4f2a8 | 42230 | setsid \ |
42231 | sigaction \ | |
11430c03 | 42232 | snprintf \ |
1c9bc448 | 42233 | socketpair \ |
30a4f2a8 | 42234 | srand48 \ |
b1e77ec1 | 42235 | srandom \ |
b7db09a3 | 42236 | statfs \ |
afbb1069 | 42237 | strsep \ |
6716b242 | 42238 | sysconf \ |
42239 | syslog \ | |
234967c9 | 42240 | timegm \ |
28da5e0d | 42241 | vsnprintf \ |
6716b242 | 42242 | |
42243 | do | |
33f5f8b9 | 42244 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
42245 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42246 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42247 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42248 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42249 | else | |
42250 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 42251 | /* confdefs.h. */ |
42252 | _ACEOF | |
42253 | cat confdefs.h >>conftest.$ac_ext | |
42254 | cat >>conftest.$ac_ext <<_ACEOF | |
42255 | /* end confdefs.h. */ | |
af3004ff | 42256 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42257 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42258 | #define $ac_func innocuous_$ac_func | |
42259 | ||
c68e9c6b | 42260 | /* System header to define __stub macros and hopefully few prototypes, |
ad21602a | 42261 | which can conflict with char $ac_func (); below. |
42262 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42263 | <limits.h> exists even on freestanding compilers. */ | |
af3004ff | 42264 | |
ad21602a | 42265 | #ifdef __STDC__ |
42266 | # include <limits.h> | |
42267 | #else | |
42268 | # include <assert.h> | |
42269 | #endif | |
af3004ff | 42270 | |
42271 | #undef $ac_func | |
42272 | ||
c68e9c6b | 42273 | /* Override any gcc2 internal prototype to avoid an error. */ |
33f5f8b9 | 42274 | #ifdef __cplusplus |
42275 | extern "C" | |
ad21602a | 42276 | { |
33f5f8b9 | 42277 | #endif |
c68e9c6b | 42278 | /* We use char because int might match the return type of a gcc2 |
33f5f8b9 | 42279 | builtin and then its argument prototype would still apply. */ |
42280 | char $ac_func (); | |
c68e9c6b | 42281 | /* The GNU C library defines this for functions which it implements |
42282 | to always fail with ENOSYS. Some functions are actually named | |
42283 | something starting with __ and the normal name is an alias. */ | |
42284 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42285 | choke me | |
42286 | #else | |
ad21602a | 42287 | char (*f) () = $ac_func; |
42288 | #endif | |
42289 | #ifdef __cplusplus | |
42290 | } | |
c68e9c6b | 42291 | #endif |
42292 | ||
ad21602a | 42293 | int |
42294 | main () | |
42295 | { | |
42296 | return f != $ac_func; | |
33f5f8b9 | 42297 | ; |
42298 | return 0; | |
42299 | } | |
42300 | _ACEOF | |
42301 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 42303 | (eval $ac_link) 2>conftest.er1 |
33f5f8b9 | 42304 | ac_status=$? |
af3004ff | 42305 | grep -v '^ *+' conftest.er1 >conftest.err |
42306 | rm -f conftest.er1 | |
42307 | cat conftest.err >&5 | |
33f5f8b9 | 42308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42309 | (exit $ac_status); } && | |
6263d81f | 42310 | { ac_try='test -z "$ac_c_werror_flag" |
42311 | || test ! -s conftest.err' | |
af3004ff | 42312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42313 | (eval $ac_try) 2>&5 | |
42314 | ac_status=$? | |
42315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42316 | (exit $ac_status); }; } && | |
42317 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 42318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42319 | (eval $ac_try) 2>&5 | |
42320 | ac_status=$? | |
42321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42322 | (exit $ac_status); }; }; then | |
42323 | eval "$as_ac_var=yes" | |
42324 | else | |
42325 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 42326 | sed 's/^/| /' conftest.$ac_ext >&5 |
42327 | ||
33f5f8b9 | 42328 | eval "$as_ac_var=no" |
42329 | fi | |
af3004ff | 42330 | rm -f conftest.err conftest.$ac_objext \ |
42331 | conftest$ac_exeext conftest.$ac_ext | |
33f5f8b9 | 42332 | fi |
42333 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42334 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42335 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42336 | cat >>confdefs.h <<_ACEOF | |
42337 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42338 | _ACEOF | |
c68e9c6b | 42339 | |
c68e9c6b | 42340 | fi |
42341 | done | |
42342 | ||
42343 | ||
33f5f8b9 | 42344 | |
1b3db6d9 | 42345 | |
87de40f0 | 42346 | if test "$ac_cv_func_kqueue" = "yes" ; then |
42347 | SELECT_TYPE="kqueue" | |
33f5f8b9 | 42348 | |
42349 | cat >>confdefs.h <<\_ACEOF | |
87de40f0 | 42350 | #define USE_KQUEUE 1 |
33f5f8b9 | 42351 | _ACEOF |
1b3db6d9 | 42352 | |
87de40f0 | 42353 | elif test "$ac_cv_func_epoll" = "yes" ; then |
42354 | SELECT_TYPE="epoll" | |
33f5f8b9 | 42355 | |
42356 | cat >>confdefs.h <<\_ACEOF | |
87de40f0 | 42357 | #define USE_EPOLL 1 |
33f5f8b9 | 42358 | _ACEOF |
1b3db6d9 | 42359 | |
980ac155 | 42360 | echo "$as_me:$LINENO: checking for epoll_create in -lepoll" >&5 |
42361 | echo $ECHO_N "checking for epoll_create in -lepoll... $ECHO_C" >&6 | |
42362 | if test "${ac_cv_lib_epoll_epoll_create+set}" = set; then | |
42363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42364 | else | |
42365 | ac_check_lib_save_LIBS=$LIBS | |
42366 | LIBS="-lepoll $LIBS" | |
42367 | cat >conftest.$ac_ext <<_ACEOF | |
42368 | /* confdefs.h. */ | |
42369 | _ACEOF | |
42370 | cat confdefs.h >>conftest.$ac_ext | |
42371 | cat >>conftest.$ac_ext <<_ACEOF | |
42372 | /* end confdefs.h. */ | |
42373 | ||
42374 | /* Override any gcc2 internal prototype to avoid an error. */ | |
42375 | #ifdef __cplusplus | |
42376 | extern "C" | |
42377 | #endif | |
42378 | /* We use char because int might match the return type of a gcc2 | |
42379 | builtin and then its argument prototype would still apply. */ | |
42380 | char epoll_create (); | |
42381 | int | |
42382 | main () | |
42383 | { | |
42384 | epoll_create (); | |
42385 | ; | |
42386 | return 0; | |
42387 | } | |
42388 | _ACEOF | |
42389 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
42391 | (eval $ac_link) 2>conftest.er1 | |
42392 | ac_status=$? | |
42393 | grep -v '^ *+' conftest.er1 >conftest.err | |
42394 | rm -f conftest.er1 | |
42395 | cat conftest.err >&5 | |
42396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42397 | (exit $ac_status); } && | |
6263d81f | 42398 | { ac_try='test -z "$ac_c_werror_flag" |
42399 | || test ! -s conftest.err' | |
980ac155 | 42400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42401 | (eval $ac_try) 2>&5 | |
42402 | ac_status=$? | |
42403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42404 | (exit $ac_status); }; } && | |
42405 | { ac_try='test -s conftest$ac_exeext' | |
42406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42407 | (eval $ac_try) 2>&5 | |
42408 | ac_status=$? | |
42409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42410 | (exit $ac_status); }; }; then | |
42411 | ac_cv_lib_epoll_epoll_create=yes | |
42412 | else | |
42413 | echo "$as_me: failed program was:" >&5 | |
42414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42415 | ||
42416 | ac_cv_lib_epoll_epoll_create=no | |
42417 | fi | |
42418 | rm -f conftest.err conftest.$ac_objext \ | |
42419 | conftest$ac_exeext conftest.$ac_ext | |
42420 | LIBS=$ac_check_lib_save_LIBS | |
42421 | fi | |
42422 | echo "$as_me:$LINENO: result: $ac_cv_lib_epoll_epoll_create" >&5 | |
42423 | echo "${ECHO_T}$ac_cv_lib_epoll_epoll_create" >&6 | |
42424 | if test $ac_cv_lib_epoll_epoll_create = yes; then | |
42425 | EPOLL_LIBS="-lepoll" | |
42426 | fi | |
42427 | ||
42428 | ||
87de40f0 | 42429 | elif test "$ac_cv_func_poll" = "yes" ; then |
42430 | SELECT_TYPE="poll" | |
33f5f8b9 | 42431 | |
42432 | cat >>confdefs.h <<\_ACEOF | |
87de40f0 | 42433 | #define USE_POLL 1 |
33f5f8b9 | 42434 | _ACEOF |
92b9f1fd | 42435 | |
87de40f0 | 42436 | elif test "$ac_cv_func_select" = "yes" ; then |
2339d2e1 | 42437 | case "$host_os" in |
42438 | mingw|mingw32) | |
42439 | SELECT_TYPE="select_win32" | |
42440 | ||
42441 | cat >>confdefs.h <<\_ACEOF | |
42442 | #define USE_SELECT_WIN32 1 | |
42443 | _ACEOF | |
42444 | ||
42445 | ;; | |
42446 | *) | |
42447 | SELECT_TYPE="select" | |
867db1c2 | 42448 | |
42449 | cat >>confdefs.h <<\_ACEOF | |
87de40f0 | 42450 | #define USE_SELECT 1 |
867db1c2 | 42451 | _ACEOF |
42452 | ||
2339d2e1 | 42453 | ;; |
42454 | esac | |
1b3db6d9 | 42455 | else |
867db1c2 | 42456 | echo "Eep! Can't find poll, kqueue, epoll, or select!" |
1b3db6d9 | 42457 | echo "I'll try select and hope for the best." |
42458 | SELECT_TYPE="select" | |
33f5f8b9 | 42459 | cat >>confdefs.h <<\_ACEOF |
1b3db6d9 | 42460 | #define USE_SELECT 1 |
33f5f8b9 | 42461 | _ACEOF |
1b3db6d9 | 42462 | |
42463 | fi | |
42464 | echo "Using ${SELECT_TYPE} for select loop." | |
1b3db6d9 | 42465 | |
42466 | ||
33f5f8b9 | 42467 | echo "$as_me:$LINENO: checking if setresuid is implemented" >&5 |
42468 | echo $ECHO_N "checking if setresuid is implemented... $ECHO_C" >&6 | |
42469 | if test "${ac_cv_func_setresuid+set}" = set; then | |
42470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
60939927 | 42471 | else |
42472 | if test "$cross_compiling" = yes; then | |
ad21602a | 42473 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
42474 | See \`config.log' for more details." >&5 | |
42475 | echo "$as_me: error: cannot run test program while cross compiling | |
42476 | See \`config.log' for more details." >&2;} | |
33f5f8b9 | 42477 | { (exit 1); exit 1; }; } |
60939927 | 42478 | else |
33f5f8b9 | 42479 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 42480 | /* confdefs.h. */ |
42481 | _ACEOF | |
42482 | cat confdefs.h >>conftest.$ac_ext | |
42483 | cat >>conftest.$ac_ext <<_ACEOF | |
42484 | /* end confdefs.h. */ | |
60939927 | 42485 | |
42486 | #include <stdlib.h> | |
5c51415d | 42487 | int main() { |
42488 | if(setresuid(-1,-1,-1)) { | |
42489 | perror("setresuid:"); | |
42490 | exit(1); | |
60939927 | 42491 | } |
42492 | exit(0); | |
5c51415d | 42493 | } |
33f5f8b9 | 42494 | |
42495 | _ACEOF | |
42496 | rm -f conftest$ac_exeext | |
42497 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
42498 | (eval $ac_link) 2>&5 | |
42499 | ac_status=$? | |
42500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42501 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
42502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42503 | (eval $ac_try) 2>&5 | |
42504 | ac_status=$? | |
42505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42506 | (exit $ac_status); }; }; then | |
60939927 | 42507 | ac_cv_func_setresuid="yes" |
42508 | else | |
33f5f8b9 | 42509 | echo "$as_me: program exited with status $ac_status" >&5 |
42510 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 42511 | sed 's/^/| /' conftest.$ac_ext >&5 |
42512 | ||
33f5f8b9 | 42513 | ( exit $ac_status ) |
42514 | ac_cv_func_setresuid="no" | |
60939927 | 42515 | fi |
af3004ff | 42516 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
60939927 | 42517 | fi |
dd0004a0 | 42518 | |
60939927 | 42519 | fi |
33f5f8b9 | 42520 | echo "$as_me:$LINENO: result: $ac_cv_func_setresuid" >&5 |
42521 | echo "${ECHO_T}$ac_cv_func_setresuid" >&6 | |
5c51415d | 42522 | if test "$ac_cv_func_setresuid" = "yes" ; then |
33f5f8b9 | 42523 | |
42524 | cat >>confdefs.h <<\_ACEOF | |
5c51415d | 42525 | #define HAVE_SETRESUID 1 |
33f5f8b9 | 42526 | _ACEOF |
5c51415d | 42527 | |
42528 | fi | |
42529 | ||
c3d0c8b5 | 42530 | |
42531 | ||
42532 | if false; then | |
42533 | NEED_OWN_SNPRINTF_TRUE= | |
42534 | NEED_OWN_SNPRINTF_FALSE='#' | |
42535 | else | |
42536 | NEED_OWN_SNPRINTF_TRUE='#' | |
42537 | NEED_OWN_SNPRINTF_FALSE= | |
42538 | fi | |
ad21602a | 42539 | |
c3d0c8b5 | 42540 | if test "$ac_cv_func_snprintf" = "no" || test "$ac_cv_func_vsnprintf" = "no" ; then |
33f5f8b9 | 42541 | |
c3d0c8b5 | 42542 | |
42543 | if true; then | |
42544 | NEED_OWN_SNPRINTF_TRUE= | |
42545 | NEED_OWN_SNPRINTF_FALSE='#' | |
42546 | else | |
42547 | NEED_OWN_SNPRINTF_TRUE='#' | |
42548 | NEED_OWN_SNPRINTF_FALSE= | |
42549 | fi | |
ad21602a | 42550 | |
c3d0c8b5 | 42551 | fi |
33f5f8b9 | 42552 | |
afbb1069 | 42553 | |
42554 | ||
42555 | if false; then | |
42556 | NEED_OWN_STRSEP_TRUE= | |
42557 | NEED_OWN_STRSEP_FALSE='#' | |
42558 | else | |
42559 | NEED_OWN_STRSEP_TRUE='#' | |
42560 | NEED_OWN_STRSEP_FALSE= | |
42561 | fi | |
42562 | ||
42563 | if test "$ac_cv_func_strsep" = "no" ; then | |
42564 | ||
42565 | ||
42566 | if true; then | |
42567 | NEED_OWN_STRSEP_TRUE= | |
42568 | NEED_OWN_STRSEP_FALSE='#' | |
42569 | else | |
42570 | NEED_OWN_STRSEP_TRUE='#' | |
42571 | NEED_OWN_STRSEP_FALSE= | |
42572 | fi | |
42573 | ||
42574 | fi | |
42575 | ||
97f82c6c | 42576 | echo "$as_me:$LINENO: checking if va_copy is implemented" >&5 |
42577 | echo $ECHO_N "checking if va_copy is implemented... $ECHO_C" >&6 | |
42578 | if test "${ac_cv_func_va_copy+set}" = set; then | |
42579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42580 | else | |
42581 | if test "$cross_compiling" = yes; then | |
42582 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
42583 | See \`config.log' for more details." >&5 | |
42584 | echo "$as_me: error: cannot run test program while cross compiling | |
42585 | See \`config.log' for more details." >&2;} | |
42586 | { (exit 1); exit 1; }; } | |
42587 | else | |
42588 | cat >conftest.$ac_ext <<_ACEOF | |
97f82c6c | 42589 | /* confdefs.h. */ |
42590 | _ACEOF | |
42591 | cat confdefs.h >>conftest.$ac_ext | |
42592 | cat >>conftest.$ac_ext <<_ACEOF | |
42593 | /* end confdefs.h. */ | |
42594 | ||
42595 | #include <stdarg.h> | |
42596 | void f (int i, ...) { | |
42597 | va_list args1, args2; | |
42598 | va_start (args1, i); | |
42599 | va_copy (args2, args1); | |
42600 | if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42) | |
42601 | exit (1); | |
42602 | va_end (args1); va_end (args2); | |
42603 | } | |
42604 | int main() { | |
42605 | f (0, 42); | |
42606 | return 0; | |
42607 | } | |
42608 | ||
42609 | _ACEOF | |
42610 | rm -f conftest$ac_exeext | |
42611 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
42612 | (eval $ac_link) 2>&5 | |
42613 | ac_status=$? | |
42614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42615 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
42616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42617 | (eval $ac_try) 2>&5 | |
42618 | ac_status=$? | |
42619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42620 | (exit $ac_status); }; }; then | |
42621 | ac_cv_func_va_copy="yes" | |
42622 | else | |
42623 | echo "$as_me: program exited with status $ac_status" >&5 | |
42624 | echo "$as_me: failed program was:" >&5 | |
42625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42626 | ||
42627 | ( exit $ac_status ) | |
42628 | ac_cv_func_va_copy="no" | |
42629 | fi | |
af3004ff | 42630 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97f82c6c | 42631 | fi |
42632 | ||
42633 | fi | |
42634 | echo "$as_me:$LINENO: result: $ac_cv_func_va_copy" >&5 | |
42635 | echo "${ECHO_T}$ac_cv_func_va_copy" >&6 | |
42636 | if test "$ac_cv_func_va_copy" = "yes" ; then | |
42637 | ||
42638 | cat >>confdefs.h <<\_ACEOF | |
42639 | #define HAVE_VA_COPY 1 | |
42640 | _ACEOF | |
42641 | ||
42642 | fi | |
42643 | ||
42644 | echo "$as_me:$LINENO: checking if __va_copy is implemented" >&5 | |
42645 | echo $ECHO_N "checking if __va_copy is implemented... $ECHO_C" >&6 | |
42646 | if test "${ac_cv_func___va_copy+set}" = set; then | |
42647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42648 | else | |
42649 | if test "$cross_compiling" = yes; then | |
42650 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
42651 | See \`config.log' for more details." >&5 | |
42652 | echo "$as_me: error: cannot run test program while cross compiling | |
42653 | See \`config.log' for more details." >&2;} | |
42654 | { (exit 1); exit 1; }; } | |
42655 | else | |
42656 | cat >conftest.$ac_ext <<_ACEOF | |
97f82c6c | 42657 | /* confdefs.h. */ |
42658 | _ACEOF | |
42659 | cat confdefs.h >>conftest.$ac_ext | |
42660 | cat >>conftest.$ac_ext <<_ACEOF | |
42661 | /* end confdefs.h. */ | |
42662 | ||
42663 | #include <stdarg.h> | |
42664 | void f (int i, ...) { | |
42665 | va_list args1, args2; | |
42666 | va_start (args1, i); | |
42667 | __va_copy (args2, args1); | |
42668 | if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42) | |
42669 | exit (1); | |
42670 | va_end (args1); va_end (args2); | |
42671 | } | |
42672 | int main() { | |
42673 | f (0, 42); | |
42674 | return 0; | |
42675 | } | |
42676 | ||
42677 | _ACEOF | |
42678 | rm -f conftest$ac_exeext | |
42679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
42680 | (eval $ac_link) 2>&5 | |
42681 | ac_status=$? | |
42682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42683 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
42684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
42685 | (eval $ac_try) 2>&5 | |
42686 | ac_status=$? | |
42687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42688 | (exit $ac_status); }; }; then | |
42689 | ac_cv_func___va_copy="yes" | |
42690 | else | |
42691 | echo "$as_me: program exited with status $ac_status" >&5 | |
42692 | echo "$as_me: failed program was:" >&5 | |
42693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
42694 | ||
42695 | ( exit $ac_status ) | |
42696 | ac_cv_func___va_copy="no" | |
42697 | fi | |
af3004ff | 42698 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97f82c6c | 42699 | fi |
42700 | ||
42701 | fi | |
42702 | echo "$as_me:$LINENO: result: $ac_cv_func___va_copy" >&5 | |
42703 | echo "${ECHO_T}$ac_cv_func___va_copy" >&6 | |
42704 | if test "$ac_cv_func___va_copy" = "yes" ; then | |
42705 | ||
42706 | cat >>confdefs.h <<\_ACEOF | |
42707 | #define HAVE___VA_COPY 1 | |
42708 | _ACEOF | |
42709 | ||
42710 | fi | |
42711 | ||
5cafc1d6 | 42712 | if test "$IPF_TRANSPARENT" ; then |
33f5f8b9 | 42713 | echo "$as_me:$LINENO: checking if IP-Filter header files are installed" >&5 |
42714 | echo $ECHO_N "checking if IP-Filter header files are installed... $ECHO_C" >&6 | |
42b51993 | 42715 | # hold on to your hats... |
42716 | if test "$ac_cv_header_ip_compat_h" = "yes" || | |
42717 | test "$ac_cv_header_ip_fil_compat_h" = "yes" || | |
87d21d8b | 42718 | test "$ac_cv_header_netinet_ip_compat_h" = "yes" || |
42719 | test "$ac_cv_header_netinet_ip_fil_compat_h" = "yes" ; then | |
42b51993 | 42720 | have_ipfilter_compat_header="yes" |
42721 | fi | |
42722 | if test "x$have_ipfilter_compat_header" = "xyes" && | |
eb824054 | 42723 | test "$ac_cv_header_ip_fil_h" = "yes" && |
42724 | test "$ac_cv_header_ip_nat_h" = "yes" ; then | |
42725 | IPF_TRANSPARENT="yes" | |
33f5f8b9 | 42726 | cat >>confdefs.h <<\_ACEOF |
eb824054 | 42727 | #define IPF_TRANSPARENT 1 |
33f5f8b9 | 42728 | _ACEOF |
5cafc1d6 | 42729 | |
42b51993 | 42730 | elif test "$have_ipfilter_compat_header" = "yes" && |
eb824054 | 42731 | test "$ac_cv_header_netinet_ip_fil_h" = "yes" && |
42732 | test "$ac_cv_header_netinet_ip_nat_h" = "yes" ; then | |
5cafc1d6 | 42733 | IPF_TRANSPARENT="yes" |
33f5f8b9 | 42734 | cat >>confdefs.h <<\_ACEOF |
5cafc1d6 | 42735 | #define IPF_TRANSPARENT 1 |
33f5f8b9 | 42736 | _ACEOF |
eb824054 | 42737 | |
42738 | else | |
42739 | IPF_TRANSPARENT="no" | |
33f5f8b9 | 42740 | cat >>confdefs.h <<\_ACEOF |
eb824054 | 42741 | #define IPF_TRANSPARENT 0 |
33f5f8b9 | 42742 | _ACEOF |
5cafc1d6 | 42743 | |
42744 | fi | |
33f5f8b9 | 42745 | echo "$as_me:$LINENO: result: $IPF_TRANSPARENT" >&5 |
42746 | echo "${ECHO_T}$IPF_TRANSPARENT" >&6 | |
42747 | fi | |
5cafc1d6 | 42748 | if test "$IPF_TRANSPARENT" = "no" ; then |
42749 | echo "WARNING: Cannot find necessary IP-Filter header files" | |
42750 | echo " Transparent Proxy support WILL NOT be enabled" | |
42751 | sleep 10 | |
77d50320 | 42752 | elif test "$IPF_TRANSPARENT" = "yes" ; then |
42753 | case "$host" in | |
42754 | *-solaris*) | |
42755 | solrev=`uname -r | sh -c 'IFS=. read j n x; echo $n'` | |
42756 | CFLAGS="-DSOLARIS2=$solrev $CFLAGS" | |
ecf2ebcf | 42757 | CXXFLAGS="-DSOLARIS2=$solrev $CXXFLAGS" |
77d50320 | 42758 | ;; |
42759 | *) | |
42760 | ;; | |
42761 | esac | |
5cafc1d6 | 42762 | fi |
42763 | ||
0205c9c8 | 42764 | if test "$PF_TRANSPARENT" ; then |
33f5f8b9 | 42765 | echo "$as_me:$LINENO: checking if PF header file is installed" >&5 |
42766 | echo $ECHO_N "checking if PF header file is installed... $ECHO_C" >&6 | |
0205c9c8 | 42767 | # hold on to your hats... |
42768 | if test "$ac_cv_header_net_pfvar_h" = "yes"; then | |
42769 | PF_TRANSPARENT="yes" | |
33f5f8b9 | 42770 | cat >>confdefs.h <<\_ACEOF |
0205c9c8 | 42771 | #define PF_TRANSPARENT 1 |
33f5f8b9 | 42772 | _ACEOF |
0205c9c8 | 42773 | |
42774 | else | |
42775 | PF_TRANSPARENT="no" | |
33f5f8b9 | 42776 | cat >>confdefs.h <<\_ACEOF |
0205c9c8 | 42777 | #define PF_TRANSPARENT 0 |
33f5f8b9 | 42778 | _ACEOF |
0205c9c8 | 42779 | |
42780 | fi | |
33f5f8b9 | 42781 | echo "$as_me:$LINENO: result: $PF_TRANSPARENT" >&5 |
42782 | echo "${ECHO_T}$PF_TRANSPARENT" >&6 | |
0205c9c8 | 42783 | fi |
42784 | if test "$PF_TRANSPARENT" = "no" ; then | |
42785 | echo "WARNING: Cannot find necessary PF header file" | |
42786 | echo " Transparent Proxy support WILL NOT be enabled" | |
42787 | sleep 10 | |
42788 | fi | |
42789 | ||
d852fbad | 42790 | if test "$LINUX_NETFILTER" ; then |
82fd361a | 42791 | echo "$as_me:$LINENO: checking if Linux (Netfilter) kernel header files are installed" >&5 |
42792 | echo $ECHO_N "checking if Linux (Netfilter) kernel header files are installed... $ECHO_C" >&6 | |
d852fbad | 42793 | # hold on to your hats... |
42794 | if test "$ac_cv_header_linux_netfilter_ipv4_h" = "yes"; then | |
42795 | LINUX_NETFILTER="yes" | |
33f5f8b9 | 42796 | cat >>confdefs.h <<\_ACEOF |
d852fbad | 42797 | #define LINUX_NETFILTER 1 |
33f5f8b9 | 42798 | _ACEOF |
d852fbad | 42799 | |
42800 | else | |
42801 | LINUX_NETFILTER="no" | |
33f5f8b9 | 42802 | cat >>confdefs.h <<\_ACEOF |
d852fbad | 42803 | #define LINUX_NETFILTER 0 |
33f5f8b9 | 42804 | _ACEOF |
d852fbad | 42805 | |
42806 | fi | |
33f5f8b9 | 42807 | echo "$as_me:$LINENO: result: $LINUX_NETFILTER" >&5 |
42808 | echo "${ECHO_T}$LINUX_NETFILTER" >&6 | |
42809 | fi | |
d852fbad | 42810 | if test "$LINUX_NETFILTER" = "no" ; then |
82fd361a | 42811 | echo "WARNING: Cannot find necessary Linux kernel (Netfilter) header files" |
42812 | echo " Linux Transparent Proxy support WILL NOT be enabled" | |
d852fbad | 42813 | sleep 10 |
42814 | fi | |
42815 | ||
91bc414e | 42816 | if test -z "$USE_GNUREGEX" ; then |
42817 | case "$host" in | |
42818 | *-sun-solaris2.[0-4]) | |
42819 | USE_GNUREGEX="yes" | |
42820 | ;; | |
42821 | *-next-nextstep*) | |
42822 | USE_GNUREGEX="yes" | |
42823 | ;; | |
42824 | esac | |
42825 | fi | |
33f5f8b9 | 42826 | echo "$as_me:$LINENO: checking if GNUregex needs to be compiled" >&5 |
42827 | echo $ECHO_N "checking if GNUregex needs to be compiled... $ECHO_C" >&6 | |
91bc414e | 42828 | if test -z "$USE_GNUREGEX"; then |
55878dfd | 42829 | if test "$ac_cv_func_regcomp" = "no" || test "$USE_GNUREGEX" = "yes" ; then |
74946a0f | 42830 | USE_GNUREGEX="yes" |
2f0eed11 | 42831 | else |
33f5f8b9 | 42832 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 42833 | /* confdefs.h. */ |
42834 | _ACEOF | |
42835 | cat confdefs.h >>conftest.$ac_ext | |
42836 | cat >>conftest.$ac_ext <<_ACEOF | |
42837 | /* end confdefs.h. */ | |
0cccc031 | 42838 | #include <sys/types.h> |
91bc414e | 42839 | #include <regex.h> |
33f5f8b9 | 42840 | int |
42841 | main () | |
42842 | { | |
91bc414e | 42843 | regex_t t; regcomp(&t,"",0); |
33f5f8b9 | 42844 | ; |
42845 | return 0; | |
42846 | } | |
42847 | _ACEOF | |
42848 | rm -f conftest.$ac_objext | |
42849 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 42850 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 42851 | ac_status=$? |
af3004ff | 42852 | grep -v '^ *+' conftest.er1 >conftest.err |
42853 | rm -f conftest.er1 | |
42854 | cat conftest.err >&5 | |
33f5f8b9 | 42855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42856 | (exit $ac_status); } && | |
6263d81f | 42857 | { ac_try='test -z "$ac_c_werror_flag" |
42858 | || test ! -s conftest.err' | |
af3004ff | 42859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42860 | (eval $ac_try) 2>&5 | |
42861 | ac_status=$? | |
42862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42863 | (exit $ac_status); }; } && | |
42864 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 42865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42866 | (eval $ac_try) 2>&5 | |
42867 | ac_status=$? | |
42868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42869 | (exit $ac_status); }; }; then | |
91bc414e | 42870 | USE_GNUREGEX="no" |
42871 | else | |
33f5f8b9 | 42872 | echo "$as_me: failed program was:" >&5 |
ad21602a | 42873 | sed 's/^/| /' conftest.$ac_ext >&5 |
42874 | ||
33f5f8b9 | 42875 | USE_GNUREGEX="yes" |
91bc414e | 42876 | fi |
af3004ff | 42877 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
91bc414e | 42878 | fi |
2f0eed11 | 42879 | fi |
33f5f8b9 | 42880 | echo "$as_me:$LINENO: result: $USE_GNUREGEX" >&5 |
42881 | echo "${ECHO_T}$USE_GNUREGEX" >&6 | |
74946a0f | 42882 | if test "$USE_GNUREGEX" = "yes"; then |
ac4437b7 | 42883 | REGEXLIB="-lregex" |
7a081912 | 42884 | LIBREGEX="libregex.a" |
33f5f8b9 | 42885 | |
42886 | cat >>confdefs.h <<\_ACEOF | |
74946a0f | 42887 | #define USE_GNUREGEX 1 |
33f5f8b9 | 42888 | _ACEOF |
74946a0f | 42889 | |
7a081912 | 42890 | fi |
42891 | ||
ac4437b7 | 42892 | |
2f0eed11 | 42893 | |
33f5f8b9 | 42894 | |
42895 | ||
42896 | ||
815a81ff | 42897 | |
3f6fcd8a | 42898 | for ac_func in \ |
3d0cf10e | 42899 | drand48 \ |
3f6fcd8a | 42900 | tempnam \ |
719dbbeb | 42901 | strerror \ |
815a81ff | 42902 | initgroups |
3f6fcd8a | 42903 | |
42904 | do | |
33f5f8b9 | 42905 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
42906 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
42907 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
42908 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
42909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
42910 | else | |
42911 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 42912 | /* confdefs.h. */ |
42913 | _ACEOF | |
42914 | cat confdefs.h >>conftest.$ac_ext | |
42915 | cat >>conftest.$ac_ext <<_ACEOF | |
42916 | /* end confdefs.h. */ | |
af3004ff | 42917 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
42918 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
42919 | #define $ac_func innocuous_$ac_func | |
42920 | ||
3f6fcd8a | 42921 | /* System header to define __stub macros and hopefully few prototypes, |
ad21602a | 42922 | which can conflict with char $ac_func (); below. |
42923 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
42924 | <limits.h> exists even on freestanding compilers. */ | |
af3004ff | 42925 | |
ad21602a | 42926 | #ifdef __STDC__ |
42927 | # include <limits.h> | |
42928 | #else | |
42929 | # include <assert.h> | |
42930 | #endif | |
af3004ff | 42931 | |
42932 | #undef $ac_func | |
42933 | ||
dd0004a0 | 42934 | /* Override any gcc2 internal prototype to avoid an error. */ |
42935 | #ifdef __cplusplus | |
42936 | extern "C" | |
ad21602a | 42937 | { |
dd0004a0 | 42938 | #endif |
42939 | /* We use char because int might match the return type of a gcc2 | |
42940 | builtin and then its argument prototype would still apply. */ | |
42941 | char $ac_func (); | |
3f6fcd8a | 42942 | /* The GNU C library defines this for functions which it implements |
42943 | to always fail with ENOSYS. Some functions are actually named | |
42944 | something starting with __ and the normal name is an alias. */ | |
42945 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
42946 | choke me | |
42947 | #else | |
ad21602a | 42948 | char (*f) () = $ac_func; |
42949 | #endif | |
42950 | #ifdef __cplusplus | |
42951 | } | |
3f6fcd8a | 42952 | #endif |
42953 | ||
ad21602a | 42954 | int |
42955 | main () | |
42956 | { | |
42957 | return f != $ac_func; | |
33f5f8b9 | 42958 | ; |
42959 | return 0; | |
42960 | } | |
42961 | _ACEOF | |
42962 | rm -f conftest.$ac_objext conftest$ac_exeext | |
42963 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 42964 | (eval $ac_link) 2>conftest.er1 |
33f5f8b9 | 42965 | ac_status=$? |
af3004ff | 42966 | grep -v '^ *+' conftest.er1 >conftest.err |
42967 | rm -f conftest.er1 | |
42968 | cat conftest.err >&5 | |
33f5f8b9 | 42969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
42970 | (exit $ac_status); } && | |
6263d81f | 42971 | { ac_try='test -z "$ac_c_werror_flag" |
42972 | || test ! -s conftest.err' | |
af3004ff | 42973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42974 | (eval $ac_try) 2>&5 | |
42975 | ac_status=$? | |
42976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42977 | (exit $ac_status); }; } && | |
42978 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 42979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
42980 | (eval $ac_try) 2>&5 | |
42981 | ac_status=$? | |
42982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
42983 | (exit $ac_status); }; }; then | |
42984 | eval "$as_ac_var=yes" | |
42985 | else | |
42986 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 42987 | sed 's/^/| /' conftest.$ac_ext >&5 |
42988 | ||
33f5f8b9 | 42989 | eval "$as_ac_var=no" |
42990 | fi | |
af3004ff | 42991 | rm -f conftest.err conftest.$ac_objext \ |
42992 | conftest$ac_exeext conftest.$ac_ext | |
33f5f8b9 | 42993 | fi |
42994 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
42995 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
42996 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
42997 | cat >>confdefs.h <<_ACEOF | |
42998 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
42999 | _ACEOF | |
43000 | ||
43001 | else | |
af3004ff | 43002 | case $LIBOBJS in |
43003 | "$ac_func.$ac_objext" | \ | |
43004 | *" $ac_func.$ac_objext" | \ | |
43005 | "$ac_func.$ac_objext "* | \ | |
43006 | *" $ac_func.$ac_objext "* ) ;; | |
43007 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;; | |
43008 | esac | |
43009 | ||
3f6fcd8a | 43010 | fi |
3f6fcd8a | 43011 | done |
43012 | ||
43013 | ||
b1e77ec1 | 43014 | |
33f5f8b9 | 43015 | echo "$as_me:$LINENO: checking Default FD_SETSIZE value" >&5 |
43016 | echo $ECHO_N "checking Default FD_SETSIZE value... $ECHO_C" >&6 | |
e924600d | 43017 | if test "$cross_compiling" = yes; then |
43018 | DEFAULT_FD_SETSIZE=256 | |
43019 | else | |
33f5f8b9 | 43020 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 43021 | /* confdefs.h. */ |
43022 | _ACEOF | |
43023 | cat confdefs.h >>conftest.$ac_ext | |
43024 | cat >>conftest.$ac_ext <<_ACEOF | |
43025 | /* end confdefs.h. */ | |
e924600d | 43026 | |
43027 | #if HAVE_STDIO_H | |
43028 | #include <stdio.h> | |
43029 | #endif | |
43030 | #if HAVE_UNISTD_H | |
43031 | #include <unistd.h> | |
43032 | #endif | |
43033 | #if HAVE_SYS_TIME_H | |
43034 | #include <sys/time.h> | |
43035 | #endif | |
43036 | #if HAVE_SYS_SELECT_H | |
43037 | #include <sys/select.h> | |
43038 | #endif | |
43039 | #if HAVE_SYS_TYPES_H | |
43040 | #include <sys/types.h> | |
43041 | #endif | |
43042 | main() { | |
635e6242 | 43043 | FILE *fp = fopen("conftestval", "w"); |
43044 | fprintf (fp, "%d\n", FD_SETSIZE); | |
e924600d | 43045 | exit(0); |
43046 | } | |
43047 | ||
33f5f8b9 | 43048 | _ACEOF |
43049 | rm -f conftest$ac_exeext | |
43050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
43051 | (eval $ac_link) 2>&5 | |
43052 | ac_status=$? | |
43053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43054 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
43055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43056 | (eval $ac_try) 2>&5 | |
43057 | ac_status=$? | |
43058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43059 | (exit $ac_status); }; }; then | |
e924600d | 43060 | DEFAULT_FD_SETSIZE=`cat conftestval` |
43061 | else | |
33f5f8b9 | 43062 | echo "$as_me: program exited with status $ac_status" >&5 |
43063 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 43064 | sed 's/^/| /' conftest.$ac_ext >&5 |
43065 | ||
33f5f8b9 | 43066 | ( exit $ac_status ) |
43067 | DEFAULT_FD_SETSIZE=256 | |
e924600d | 43068 | fi |
af3004ff | 43069 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e924600d | 43070 | fi |
33f5f8b9 | 43071 | echo "$as_me:$LINENO: result: $DEFAULT_FD_SETSIZE" >&5 |
43072 | echo "${ECHO_T}$DEFAULT_FD_SETSIZE" >&6 | |
3f961930 | 43073 | |
33f5f8b9 | 43074 | cat >>confdefs.h <<_ACEOF |
e924600d | 43075 | #define DEFAULT_FD_SETSIZE $DEFAULT_FD_SETSIZE |
33f5f8b9 | 43076 | _ACEOF |
e924600d | 43077 | |
43078 | ||
ba077dfb | 43079 | |
33f5f8b9 | 43080 | echo "$as_me:$LINENO: checking Maximum number of filedescriptors we can open" >&5 |
43081 | echo $ECHO_N "checking Maximum number of filedescriptors we can open... $ECHO_C" >&6 | |
ba077dfb | 43082 | if test -n "$squid_filedescriptors_num" ; then |
43083 | SQUID_MAXFD=$squid_filedescriptors_num | |
33f5f8b9 | 43084 | echo "$as_me:$LINENO: result: $SQUID_MAXFD (user-forced)" >&5 |
43085 | echo "${ECHO_T}$SQUID_MAXFD (user-forced)" >&6 | |
ba077dfb | 43086 | else |
43087 | TLDFLAGS="$LDFLAGS" | |
43088 | case $host in | |
43089 | i386-unknown-freebsd*) | |
43090 | if echo "$LDFLAGS" | grep -q pthread; then | |
43091 | LDFLAGS=`echo $LDFLAGS | sed -e "s/-pthread//"` | |
43092 | fi | |
43093 | esac | |
43094 | if test "$cross_compiling" = yes; then | |
431d84c5 | 43095 | SQUID_MAXFD=256 |
234967c9 | 43096 | else |
33f5f8b9 | 43097 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 43098 | /* confdefs.h. */ |
43099 | _ACEOF | |
43100 | cat confdefs.h >>conftest.$ac_ext | |
43101 | cat >>conftest.$ac_ext <<_ACEOF | |
43102 | /* end confdefs.h. */ | |
234967c9 | 43103 | |
8cca06da | 43104 | #include <stdio.h> |
234967c9 | 43105 | #include <unistd.h> |
30a4f2a8 | 43106 | #include <sys/time.h> /* needed on FreeBSD */ |
234967c9 | 43107 | #include <sys/param.h> |
43108 | #include <sys/resource.h> | |
43109 | main() { | |
635e6242 | 43110 | FILE *fp; |
234967c9 | 43111 | int i,j; |
42b51993 | 43112 | #if defined(__CYGWIN32__) || defined (__CYGWIN__) |
509e66c9 | 43113 | /* getrlimit and sysconf returns bogous values on cygwin32. |
df087e68 | 43114 | * Number of fds is virtually unlimited in cygwin (sys/param.h) |
509e66c9 | 43115 | * __CYGWIN32__ is deprecated. |
df087e68 | 43116 | */ |
43117 | i = NOFILE; | |
509e66c9 | 43118 | #else |
43119 | #if HAVE_SETRLIMIT | |
234967c9 | 43120 | struct rlimit rl; |
43121 | #if defined(RLIMIT_NOFILE) | |
43122 | if (getrlimit(RLIMIT_NOFILE, &rl) < 0) { | |
43123 | perror("getrlimit: RLIMIT_NOFILE"); | |
43124 | } else { | |
43125 | rl.rlim_cur = rl.rlim_max; /* set it to the max */ | |
43126 | if (setrlimit(RLIMIT_NOFILE, &rl) < 0) { | |
43127 | perror("setrlimit: RLIMIT_NOFILE"); | |
43128 | } | |
43129 | } | |
43130 | #elif defined(RLIMIT_OFILE) | |
43131 | if (getrlimit(RLIMIT_OFILE, &rl) < 0) { | |
43132 | perror("getrlimit: RLIMIT_OFILE"); | |
43133 | } else { | |
43134 | rl.rlim_cur = rl.rlim_max; /* set it to the max */ | |
43135 | if (setrlimit(RLIMIT_OFILE, &rl) < 0) { | |
43136 | perror("setrlimit: RLIMIT_OFILE"); | |
43137 | } | |
43138 | } | |
43139 | #endif /* RLIMIT_NOFILE */ | |
43140 | #endif /* HAVE_SETRLIMIT */ | |
d9399075 | 43141 | /* by starting at 2^14, we will never get higher |
43142 | than 2^15 for SQUID_MAXFD */ | |
43143 | i = j = 1<<14; | |
43144 | while (j) { | |
43145 | j >>= 1; | |
33f5f8b9 | 43146 | if (dup2(0, i) < 0) { |
d9399075 | 43147 | i -= j; |
43148 | } else { | |
43149 | close(i); | |
43150 | i += j; | |
43151 | } | |
43152 | } | |
43153 | i++; | |
509e66c9 | 43154 | #endif /* IF !DEF CYGWIN */ |
635e6242 | 43155 | fp = fopen("conftestval", "w"); |
e721bd8c | 43156 | fprintf (fp, "%d\n", i & ~0x3F); |
234967c9 | 43157 | exit(0); |
43158 | } | |
33f5f8b9 | 43159 | |
43160 | _ACEOF | |
43161 | rm -f conftest$ac_exeext | |
43162 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
43163 | (eval $ac_link) 2>&5 | |
43164 | ac_status=$? | |
43165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43166 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
43167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43168 | (eval $ac_try) 2>&5 | |
43169 | ac_status=$? | |
43170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43171 | (exit $ac_status); }; }; then | |
431d84c5 | 43172 | SQUID_MAXFD=`cat conftestval` |
234967c9 | 43173 | else |
33f5f8b9 | 43174 | echo "$as_me: program exited with status $ac_status" >&5 |
43175 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 43176 | sed 's/^/| /' conftest.$ac_ext >&5 |
43177 | ||
33f5f8b9 | 43178 | ( exit $ac_status ) |
43179 | SQUID_MAXFD=256 | |
234967c9 | 43180 | fi |
af3004ff | 43181 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b1e77ec1 | 43182 | fi |
07d1f987 | 43183 | case "$host_os" in |
43184 | mingw|mingw32) | |
43185 | SQUID_MAXFD="2048" | |
43186 | ;; | |
43187 | esac | |
33f5f8b9 | 43188 | echo "$as_me:$LINENO: result: $SQUID_MAXFD" >&5 |
43189 | echo "${ECHO_T}$SQUID_MAXFD" >&6 | |
ba077dfb | 43190 | fi |
33f5f8b9 | 43191 | |
43192 | cat >>confdefs.h <<_ACEOF | |
431d84c5 | 43193 | #define SQUID_MAXFD $SQUID_MAXFD |
33f5f8b9 | 43194 | _ACEOF |
234967c9 | 43195 | |
b9cc811d | 43196 | if test "$SQUID_MAXFD" -lt 512 ; then |
80ab193b | 43197 | echo "WARNING: $SQUID_MAXFD may not be enough filedescriptors if your" |
43198 | echo " cache will be very busy. Please see the FAQ page" | |
8891f20f | 43199 | echo " http://www.squid-cache.org/FAQ/FAQ-11.html#filedescriptors" |
22df58ea | 43200 | echo " on how to increase your filedescriptor limit" |
933cc58d | 43201 | sleep 10 |
80ab193b | 43202 | fi |
c76d8acc | 43203 | LDFLAGS="$TLDFLAGS" |
234967c9 | 43204 | |
d8f639f1 | 43205 | if test `expr $SQUID_MAXFD % 64` != 0; then |
e721bd8c | 43206 | echo "WARNING: $SQUID_MAXFD is not an multiple of 64. This may cause issues" |
43207 | echo " on certain platforms." | |
43208 | sleep 10 | |
43209 | fi | |
43210 | ||
33f5f8b9 | 43211 | echo "$as_me:$LINENO: checking Default UDP send buffer size" >&5 |
43212 | echo $ECHO_N "checking Default UDP send buffer size... $ECHO_C" >&6 | |
30a4f2a8 | 43213 | if test "$cross_compiling" = yes; then |
33f5f8b9 | 43214 | SQUID_DETECT_UDP_SO_SNDBUF=16384 |
30a4f2a8 | 43215 | else |
33f5f8b9 | 43216 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 43217 | /* confdefs.h. */ |
43218 | _ACEOF | |
43219 | cat confdefs.h >>conftest.$ac_ext | |
43220 | cat >>conftest.$ac_ext <<_ACEOF | |
43221 | /* end confdefs.h. */ | |
30a4f2a8 | 43222 | |
8cca06da | 43223 | #include <stdlib.h> |
43224 | #include <stdio.h> | |
30a4f2a8 | 43225 | #include <sys/types.h> |
43226 | #include <sys/socket.h> | |
43227 | #include <netinet/in.h> | |
43228 | main () | |
43229 | { | |
635e6242 | 43230 | FILE *fp; |
30a4f2a8 | 43231 | int fd,val=0,len=sizeof(int); |
43232 | if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1); | |
43233 | if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1); | |
43234 | if (val<=0) exit(1); | |
635e6242 | 43235 | fp = fopen("conftestval", "w"); |
43236 | fprintf (fp, "%d\n", val); | |
30a4f2a8 | 43237 | exit(0); |
43238 | } | |
43239 | ||
33f5f8b9 | 43240 | _ACEOF |
43241 | rm -f conftest$ac_exeext | |
43242 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
43243 | (eval $ac_link) 2>&5 | |
43244 | ac_status=$? | |
43245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43246 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
43247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43248 | (eval $ac_try) 2>&5 | |
43249 | ac_status=$? | |
43250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43251 | (exit $ac_status); }; }; then | |
43252 | SQUID_DETECT_UDP_SO_SNDBUF=`cat conftestval` | |
43253 | else | |
43254 | echo "$as_me: program exited with status $ac_status" >&5 | |
43255 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 43256 | sed 's/^/| /' conftest.$ac_ext >&5 |
43257 | ||
33f5f8b9 | 43258 | ( exit $ac_status ) |
43259 | SQUID_DETECT_UDP_SO_SNDBUF=16384 | |
43260 | fi | |
af3004ff | 43261 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 43262 | fi |
43263 | echo "$as_me:$LINENO: result: $SQUID_DETECT_UDP_SO_SNDBUF" >&5 | |
43264 | echo "${ECHO_T}$SQUID_DETECT_UDP_SO_SNDBUF" >&6 | |
43265 | ||
43266 | cat >>confdefs.h <<_ACEOF | |
43267 | #define SQUID_DETECT_UDP_SO_SNDBUF $SQUID_DETECT_UDP_SO_SNDBUF | |
43268 | _ACEOF | |
43269 | ||
43270 | ||
43271 | echo "$as_me:$LINENO: checking Default UDP receive buffer size" >&5 | |
43272 | echo $ECHO_N "checking Default UDP receive buffer size... $ECHO_C" >&6 | |
30a4f2a8 | 43273 | if test "$cross_compiling" = yes; then |
33f5f8b9 | 43274 | SQUID_DETECT_UDP_SO_RCVBUF=16384 |
30a4f2a8 | 43275 | else |
33f5f8b9 | 43276 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 43277 | /* confdefs.h. */ |
43278 | _ACEOF | |
43279 | cat confdefs.h >>conftest.$ac_ext | |
43280 | cat >>conftest.$ac_ext <<_ACEOF | |
43281 | /* end confdefs.h. */ | |
30a4f2a8 | 43282 | |
8cca06da | 43283 | #include <stdlib.h> |
43284 | #include <stdio.h> | |
30a4f2a8 | 43285 | #include <sys/types.h> |
43286 | #include <sys/socket.h> | |
43287 | #include <netinet/in.h> | |
43288 | main () | |
43289 | { | |
635e6242 | 43290 | FILE *fp; |
30a4f2a8 | 43291 | int fd,val=0,len=sizeof(int); |
43292 | if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1); | |
43293 | if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1); | |
33f5f8b9 | 43294 | if (val <= 0) exit(1); |
43295 | fp = fopen("conftestval", "w"); | |
43296 | fprintf (fp, "%d\n", val); | |
43297 | exit(0); | |
43298 | } | |
30a4f2a8 | 43299 | |
33f5f8b9 | 43300 | _ACEOF |
43301 | rm -f conftest$ac_exeext | |
43302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
43303 | (eval $ac_link) 2>&5 | |
43304 | ac_status=$? | |
43305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43306 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
43307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43308 | (eval $ac_try) 2>&5 | |
43309 | ac_status=$? | |
43310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43311 | (exit $ac_status); }; }; then | |
43312 | SQUID_DETECT_UDP_SO_RCVBUF=`cat conftestval` | |
43313 | else | |
43314 | echo "$as_me: program exited with status $ac_status" >&5 | |
43315 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 43316 | sed 's/^/| /' conftest.$ac_ext >&5 |
43317 | ||
33f5f8b9 | 43318 | ( exit $ac_status ) |
43319 | SQUID_DETECT_UDP_SO_RCVBUF=16384 | |
43320 | fi | |
af3004ff | 43321 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 43322 | fi |
43323 | echo "$as_me:$LINENO: result: $SQUID_DETECT_UDP_SO_RCVBUF" >&5 | |
43324 | echo "${ECHO_T}$SQUID_DETECT_UDP_SO_RCVBUF" >&6 | |
43325 | ||
43326 | cat >>confdefs.h <<_ACEOF | |
43327 | #define SQUID_DETECT_UDP_SO_RCVBUF $SQUID_DETECT_UDP_SO_RCVBUF | |
43328 | _ACEOF | |
43329 | ||
43330 | ||
43331 | echo "$as_me:$LINENO: checking Default TCP send buffer size" >&5 | |
43332 | echo $ECHO_N "checking Default TCP send buffer size... $ECHO_C" >&6 | |
30a4f2a8 | 43333 | if test "$cross_compiling" = yes; then |
1c481e00 | 43334 | SQUID_TCP_SO_SNDBUF=16384 |
30a4f2a8 | 43335 | else |
33f5f8b9 | 43336 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 43337 | /* confdefs.h. */ |
43338 | _ACEOF | |
43339 | cat confdefs.h >>conftest.$ac_ext | |
43340 | cat >>conftest.$ac_ext <<_ACEOF | |
43341 | /* end confdefs.h. */ | |
30a4f2a8 | 43342 | |
8cca06da | 43343 | #include <stdlib.h> |
43344 | #include <stdio.h> | |
30a4f2a8 | 43345 | #include <sys/types.h> |
43346 | #include <sys/socket.h> | |
43347 | #include <netinet/in.h> | |
43348 | main () | |
43349 | { | |
635e6242 | 43350 | FILE *fp; |
30a4f2a8 | 43351 | int fd,val=0,len=sizeof(int); |
43352 | if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1); | |
43353 | if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1); | |
43354 | if (val <= 0) exit(1); | |
33f5f8b9 | 43355 | fp = fopen("conftestval", "w"); |
635e6242 | 43356 | fprintf (fp, "%d\n", val); |
30a4f2a8 | 43357 | exit(0); |
43358 | } | |
43359 | ||
33f5f8b9 | 43360 | _ACEOF |
43361 | rm -f conftest$ac_exeext | |
43362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
43363 | (eval $ac_link) 2>&5 | |
43364 | ac_status=$? | |
43365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43366 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
43367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43368 | (eval $ac_try) 2>&5 | |
43369 | ac_status=$? | |
43370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43371 | (exit $ac_status); }; }; then | |
30a4f2a8 | 43372 | SQUID_TCP_SO_SNDBUF=`cat conftestval` |
43373 | else | |
33f5f8b9 | 43374 | echo "$as_me: program exited with status $ac_status" >&5 |
43375 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 43376 | sed 's/^/| /' conftest.$ac_ext >&5 |
43377 | ||
33f5f8b9 | 43378 | ( exit $ac_status ) |
43379 | SQUID_TCP_SO_SNDBUF=16384 | |
30a4f2a8 | 43380 | fi |
af3004ff | 43381 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b1e77ec1 | 43382 | fi |
33f5f8b9 | 43383 | echo "$as_me:$LINENO: result: $SQUID_TCP_SO_SNDBUF" >&5 |
43384 | echo "${ECHO_T}$SQUID_TCP_SO_SNDBUF" >&6 | |
9d8247e0 | 43385 | if test $SQUID_TCP_SO_SNDBUF -gt 32768; then |
43386 | echo "Limiting send buffer size to 32K" | |
43387 | SQUID_TCP_SO_SNDBUF=32768 | |
43388 | fi | |
3f961930 | 43389 | |
33f5f8b9 | 43390 | cat >>confdefs.h <<_ACEOF |
30a4f2a8 | 43391 | #define SQUID_TCP_SO_SNDBUF $SQUID_TCP_SO_SNDBUF |
33f5f8b9 | 43392 | _ACEOF |
30a4f2a8 | 43393 | |
43394 | ||
33f5f8b9 | 43395 | echo "$as_me:$LINENO: checking Default TCP receive buffer size" >&5 |
43396 | echo $ECHO_N "checking Default TCP receive buffer size... $ECHO_C" >&6 | |
30a4f2a8 | 43397 | if test "$cross_compiling" = yes; then |
1c481e00 | 43398 | SQUID_TCP_SO_RCVBUF=16384 |
30a4f2a8 | 43399 | else |
33f5f8b9 | 43400 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 43401 | /* confdefs.h. */ |
43402 | _ACEOF | |
43403 | cat confdefs.h >>conftest.$ac_ext | |
43404 | cat >>conftest.$ac_ext <<_ACEOF | |
43405 | /* end confdefs.h. */ | |
30a4f2a8 | 43406 | |
8cca06da | 43407 | #include <stdlib.h> |
43408 | #include <stdio.h> | |
30a4f2a8 | 43409 | #include <sys/types.h> |
43410 | #include <sys/socket.h> | |
43411 | #include <netinet/in.h> | |
43412 | main () | |
43413 | { | |
635e6242 | 43414 | FILE *fp; |
30a4f2a8 | 43415 | int fd,val=0,len=sizeof(int); |
43416 | if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1); | |
43417 | if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1); | |
43418 | if (val <= 0) exit(1); | |
33f5f8b9 | 43419 | fp = fopen("conftestval", "w"); |
635e6242 | 43420 | fprintf (fp, "%d\n", val); |
30a4f2a8 | 43421 | exit(0); |
43422 | } | |
43423 | ||
33f5f8b9 | 43424 | _ACEOF |
43425 | rm -f conftest$ac_exeext | |
43426 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
43427 | (eval $ac_link) 2>&5 | |
43428 | ac_status=$? | |
43429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43430 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
43431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43432 | (eval $ac_try) 2>&5 | |
43433 | ac_status=$? | |
43434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43435 | (exit $ac_status); }; }; then | |
30a4f2a8 | 43436 | SQUID_TCP_SO_RCVBUF=`cat conftestval` |
43437 | else | |
33f5f8b9 | 43438 | echo "$as_me: program exited with status $ac_status" >&5 |
43439 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 43440 | sed 's/^/| /' conftest.$ac_ext >&5 |
43441 | ||
33f5f8b9 | 43442 | ( exit $ac_status ) |
43443 | SQUID_TCP_SO_RCVBUF=16384 | |
30a4f2a8 | 43444 | fi |
af3004ff | 43445 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b1e77ec1 | 43446 | fi |
33f5f8b9 | 43447 | echo "$as_me:$LINENO: result: $SQUID_TCP_SO_RCVBUF" >&5 |
43448 | echo "${ECHO_T}$SQUID_TCP_SO_RCVBUF" >&6 | |
9d8247e0 | 43449 | if test $SQUID_TCP_SO_RCVBUF -gt 65535; then |
43450 | echo "Limiting receive buffer size to 64K" | |
43451 | SQUID_TCP_SO_RCVBUF=65535 | |
43452 | fi | |
3f961930 | 43453 | |
33f5f8b9 | 43454 | cat >>confdefs.h <<_ACEOF |
30a4f2a8 | 43455 | #define SQUID_TCP_SO_RCVBUF $SQUID_TCP_SO_RCVBUF |
33f5f8b9 | 43456 | _ACEOF |
30a4f2a8 | 43457 | |
33f5f8b9 | 43458 | echo "$as_me:$LINENO: checking if sys_errlist is already defined" >&5 |
43459 | echo $ECHO_N "checking if sys_errlist is already defined... $ECHO_C" >&6 | |
43460 | if test "${ac_cv_needs_sys_errlist+set}" = set; then | |
43461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c51415d | 43462 | else |
33f5f8b9 | 43463 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 43464 | /* confdefs.h. */ |
43465 | _ACEOF | |
43466 | cat confdefs.h >>conftest.$ac_ext | |
43467 | cat >>conftest.$ac_ext <<_ACEOF | |
43468 | /* end confdefs.h. */ | |
30a4f2a8 | 43469 | #include <stdio.h> |
33f5f8b9 | 43470 | int |
43471 | main () | |
43472 | { | |
9bc73deb | 43473 | char *s = sys_errlist; |
33f5f8b9 | 43474 | ; |
43475 | return 0; | |
43476 | } | |
43477 | _ACEOF | |
43478 | rm -f conftest.$ac_objext | |
43479 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 43480 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 43481 | ac_status=$? |
af3004ff | 43482 | grep -v '^ *+' conftest.er1 >conftest.err |
43483 | rm -f conftest.er1 | |
43484 | cat conftest.err >&5 | |
33f5f8b9 | 43485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43486 | (exit $ac_status); } && | |
6263d81f | 43487 | { ac_try='test -z "$ac_c_werror_flag" |
43488 | || test ! -s conftest.err' | |
af3004ff | 43489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43490 | (eval $ac_try) 2>&5 | |
43491 | ac_status=$? | |
43492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43493 | (exit $ac_status); }; } && | |
43494 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 43495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43496 | (eval $ac_try) 2>&5 | |
43497 | ac_status=$? | |
43498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43499 | (exit $ac_status); }; }; then | |
5c51415d | 43500 | ac_cv_needs_sys_errlist="no" |
30a4f2a8 | 43501 | else |
33f5f8b9 | 43502 | echo "$as_me: failed program was:" >&5 |
ad21602a | 43503 | sed 's/^/| /' conftest.$ac_ext >&5 |
43504 | ||
33f5f8b9 | 43505 | ac_cv_needs_sys_errlist="yes" |
5c51415d | 43506 | fi |
af3004ff | 43507 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5c51415d | 43508 | |
43509 | fi | |
33f5f8b9 | 43510 | echo "$as_me:$LINENO: result: $ac_cv_needs_sys_errlist" >&5 |
43511 | echo "${ECHO_T}$ac_cv_needs_sys_errlist" >&6 | |
5c51415d | 43512 | if test "$ac_cv_needs_sys_errlist" = "yes" ; then |
33f5f8b9 | 43513 | |
43514 | cat >>confdefs.h <<\_ACEOF | |
30a4f2a8 | 43515 | #define NEED_SYS_ERRLIST 1 |
33f5f8b9 | 43516 | _ACEOF |
30a4f2a8 | 43517 | |
43518 | fi | |
30a4f2a8 | 43519 | |
33f5f8b9 | 43520 | echo "$as_me:$LINENO: checking for libresolv _dns_ttl_ hack" >&5 |
43521 | echo $ECHO_N "checking for libresolv _dns_ttl_ hack... $ECHO_C" >&6 | |
43522 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 43523 | /* confdefs.h. */ |
43524 | _ACEOF | |
43525 | cat confdefs.h >>conftest.$ac_ext | |
43526 | cat >>conftest.$ac_ext <<_ACEOF | |
43527 | /* end confdefs.h. */ | |
6bf65235 | 43528 | extern int _dns_ttl_; |
33f5f8b9 | 43529 | int |
43530 | main () | |
43531 | { | |
6bf65235 | 43532 | return _dns_ttl_; |
33f5f8b9 | 43533 | ; |
43534 | return 0; | |
43535 | } | |
43536 | _ACEOF | |
43537 | rm -f conftest.$ac_objext conftest$ac_exeext | |
43538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
af3004ff | 43539 | (eval $ac_link) 2>conftest.er1 |
33f5f8b9 | 43540 | ac_status=$? |
af3004ff | 43541 | grep -v '^ *+' conftest.er1 >conftest.err |
43542 | rm -f conftest.er1 | |
43543 | cat conftest.err >&5 | |
33f5f8b9 | 43544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43545 | (exit $ac_status); } && | |
6263d81f | 43546 | { ac_try='test -z "$ac_c_werror_flag" |
43547 | || test ! -s conftest.err' | |
af3004ff | 43548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43549 | (eval $ac_try) 2>&5 | |
43550 | ac_status=$? | |
43551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43552 | (exit $ac_status); }; } && | |
43553 | { ac_try='test -s conftest$ac_exeext' | |
33f5f8b9 | 43554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43555 | (eval $ac_try) 2>&5 | |
43556 | ac_status=$? | |
43557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43558 | (exit $ac_status); }; }; then | |
43559 | echo "$as_me:$LINENO: result: yes" >&5 | |
43560 | echo "${ECHO_T}yes" >&6 | |
43561 | ||
43562 | cat >>confdefs.h <<\_ACEOF | |
6bf65235 | 43563 | #define LIBRESOLV_DNS_TTL_HACK 1 |
33f5f8b9 | 43564 | _ACEOF |
6bf65235 | 43565 | |
43566 | else | |
33f5f8b9 | 43567 | echo "$as_me: failed program was:" >&5 |
ad21602a | 43568 | sed 's/^/| /' conftest.$ac_ext >&5 |
43569 | ||
33f5f8b9 | 43570 | echo "$as_me:$LINENO: result: no" >&5 |
43571 | echo "${ECHO_T}no" >&6 | |
6bf65235 | 43572 | fi |
af3004ff | 43573 | rm -f conftest.err conftest.$ac_objext \ |
43574 | conftest$ac_exeext conftest.$ac_ext | |
6bf65235 | 43575 | |
33f5f8b9 | 43576 | echo "$as_me:$LINENO: checking if inet_ntoa() actually works" >&5 |
43577 | echo $ECHO_N "checking if inet_ntoa() actually works... $ECHO_C" >&6 | |
a937d5e3 | 43578 | if test "$cross_compiling" = yes; then |
43579 | INET_NTOA_RESULT="broken" | |
43580 | else | |
33f5f8b9 | 43581 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 43582 | /* confdefs.h. */ |
43583 | _ACEOF | |
43584 | cat confdefs.h >>conftest.$ac_ext | |
43585 | cat >>conftest.$ac_ext <<_ACEOF | |
43586 | /* end confdefs.h. */ | |
a937d5e3 | 43587 | |
43588 | #include <stdlib.h> | |
43589 | #include <stdio.h> | |
43590 | #include <sys/types.h> | |
43591 | #include <netinet/in.h> | |
43592 | #include <arpa/inet.h> | |
43593 | main () | |
43594 | { | |
635e6242 | 43595 | FILE *fp; |
a937d5e3 | 43596 | struct in_addr in; |
43597 | in.s_addr = inet_addr("1.2.3.4"); | |
33f5f8b9 | 43598 | fp = fopen("conftestval", "w"); |
635e6242 | 43599 | fprintf (fp, "%s\n", inet_ntoa(in)); |
a937d5e3 | 43600 | exit(0); |
43601 | } | |
43602 | ||
33f5f8b9 | 43603 | _ACEOF |
43604 | rm -f conftest$ac_exeext | |
43605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
43606 | (eval $ac_link) 2>&5 | |
43607 | ac_status=$? | |
43608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43609 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
43610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
43611 | (eval $ac_try) 2>&5 | |
43612 | ac_status=$? | |
43613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43614 | (exit $ac_status); }; }; then | |
a937d5e3 | 43615 | INET_NTOA_RESULT=`cat conftestval` |
43616 | else | |
33f5f8b9 | 43617 | echo "$as_me: program exited with status $ac_status" >&5 |
43618 | echo "$as_me: failed program was:" >&5 | |
ad21602a | 43619 | sed 's/^/| /' conftest.$ac_ext >&5 |
43620 | ||
33f5f8b9 | 43621 | ( exit $ac_status ) |
43622 | INET_NTOA_RESULT="broken" | |
a937d5e3 | 43623 | fi |
af3004ff | 43624 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a937d5e3 | 43625 | fi |
a937d5e3 | 43626 | if test "$INET_NTOA_RESULT" = "1.2.3.4" ; then |
33f5f8b9 | 43627 | echo "$as_me:$LINENO: result: \"yes\"" >&5 |
43628 | echo "${ECHO_T}\"yes\"" >&6 | |
a937d5e3 | 43629 | else |
33f5f8b9 | 43630 | echo "$as_me:$LINENO: result: \"no\"" >&5 |
43631 | echo "${ECHO_T}\"no\"" >&6 | |
07d1f987 | 43632 | case "$host_os" in |
43633 | mingw|mingw32) | |
43634 | echo "Using Win32 resolver instead." | |
43635 | ;; | |
43636 | *) | |
43637 | echo "Will use our own inet_ntoa()." | |
43638 | case $LIBOBJS in | |
af3004ff | 43639 | "inet_ntoa.$ac_objext" | \ |
43640 | *" inet_ntoa.$ac_objext" | \ | |
43641 | "inet_ntoa.$ac_objext "* | \ | |
43642 | *" inet_ntoa.$ac_objext "* ) ;; | |
43643 | *) LIBOBJS="$LIBOBJS inet_ntoa.$ac_objext" ;; | |
43644 | esac | |
43645 | ||
07d1f987 | 43646 | # echo "WARNING: This looks bad, and probably prevents Squid from working." |
43647 | # echo " If you're on IRIX and using GCC 2.8, you probably need" | |
43648 | # echo " to use the IRIX C compiler instead." | |
43649 | # sleep 10 | |
43650 | ;; | |
43651 | esac | |
a937d5e3 | 43652 | fi |
43653 | ||
b6a2f15e | 43654 | if test "$ac_cv_header_sys_statvfs_h" = "yes" ; then |
33f5f8b9 | 43655 | echo "$as_me:$LINENO: checking for working statvfs() interface" >&5 |
43656 | echo $ECHO_N "checking for working statvfs() interface... $ECHO_C" >&6 | |
43657 | cat >conftest.$ac_ext <<_ACEOF | |
ad21602a | 43658 | /* confdefs.h. */ |
43659 | _ACEOF | |
43660 | cat confdefs.h >>conftest.$ac_ext | |
43661 | cat >>conftest.$ac_ext <<_ACEOF | |
43662 | /* end confdefs.h. */ | |
c68e9c6b | 43663 | |
43664 | #include <stdlib.h> | |
43665 | #include <stdio.h> | |
43666 | #include <sys/types.h> | |
43667 | #include <sys/statvfs.h> | |
43668 | ||
33f5f8b9 | 43669 | int |
43670 | main () | |
43671 | { | |
c68e9c6b | 43672 | |
43673 | struct statvfs sfs; | |
33f5f8b9 | 43674 | sfs.f_blocks = sfs.f_bfree = sfs.f_frsize = |
c68e9c6b | 43675 | sfs.f_files = sfs.f_ffree = 0; |
43676 | statvfs("/tmp", &sfs); | |
43677 | ||
33f5f8b9 | 43678 | ; |
43679 | return 0; | |
43680 | } | |
43681 | _ACEOF | |
43682 | rm -f conftest.$ac_objext | |
43683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 43684 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 43685 | ac_status=$? |
af3004ff | 43686 | grep -v '^ *+' conftest.er1 >conftest.err |
43687 | rm -f conftest.er1 | |
43688 | cat conftest.err >&5 | |
33f5f8b9 | 43689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43690 | (exit $ac_status); } && | |
6263d81f | 43691 | { ac_try='test -z "$ac_c_werror_flag" |
43692 | || test ! -s conftest.err' | |
af3004ff | 43693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43694 | (eval $ac_try) 2>&5 | |
43695 | ac_status=$? | |
43696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43697 | (exit $ac_status); }; } && | |
43698 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 43699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43700 | (eval $ac_try) 2>&5 | |
43701 | ac_status=$? | |
43702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43703 | (exit $ac_status); }; }; then | |
c68e9c6b | 43704 | ac_cv_func_statvfs=yes |
43705 | else | |
33f5f8b9 | 43706 | echo "$as_me: failed program was:" >&5 |
ad21602a | 43707 | sed 's/^/| /' conftest.$ac_ext >&5 |
43708 | ||
33f5f8b9 | 43709 | ac_cv_func_statvfs=no |
c68e9c6b | 43710 | fi |
af3004ff | 43711 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
33f5f8b9 | 43712 | echo "$as_me:$LINENO: result: $ac_cv_func_statvfs" >&5 |
43713 | echo "${ECHO_T}$ac_cv_func_statvfs" >&6 | |
6b8e7481 | 43714 | if test "$ac_cv_func_statvfs" = "yes" ; then |
33f5f8b9 | 43715 | |
43716 | cat >>confdefs.h <<\_ACEOF | |
b6a2f15e | 43717 | #define HAVE_STATVFS 1 |
33f5f8b9 | 43718 | _ACEOF |
b6a2f15e | 43719 | |
6b8e7481 | 43720 | fi |
c68e9c6b | 43721 | fi |
43722 | ||
33f5f8b9 | 43723 | echo "$as_me:$LINENO: checking for _res.nsaddr_list" >&5 |
43724 | echo $ECHO_N "checking for _res.nsaddr_list... $ECHO_C" >&6 | |
43725 | if test "${ac_cv_have_res_nsaddr_list+set}" = set; then | |
43726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c68e9c6b | 43727 | else |
33f5f8b9 | 43728 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 43729 | /* confdefs.h. */ |
43730 | _ACEOF | |
43731 | cat confdefs.h >>conftest.$ac_ext | |
43732 | cat >>conftest.$ac_ext <<_ACEOF | |
43733 | /* end confdefs.h. */ | |
c68e9c6b | 43734 | |
43735 | #if HAVE_SYS_TYPES_H | |
43736 | #include <sys/types.h> | |
43737 | #endif | |
43738 | #if HAVE_NETINET_IN_H | |
43739 | #include <netinet/in.h> | |
43740 | #endif | |
43741 | #if HAVE_ARPA_INET_H | |
43742 | #include <arpa/inet.h> | |
43743 | #endif | |
43744 | #if HAVE_ARPA_NAMESER_H | |
43745 | #include <arpa/nameser.h> | |
43746 | #endif | |
43747 | #if HAVE_RESOLV_H | |
43748 | #include <resolv.h> | |
43749 | #endif | |
43750 | ||
33f5f8b9 | 43751 | int |
43752 | main () | |
43753 | { | |
c68e9c6b | 43754 | _res.nsaddr_list[0]; |
33f5f8b9 | 43755 | ; |
43756 | return 0; | |
43757 | } | |
43758 | _ACEOF | |
43759 | rm -f conftest.$ac_objext | |
43760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 43761 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 43762 | ac_status=$? |
af3004ff | 43763 | grep -v '^ *+' conftest.er1 >conftest.err |
43764 | rm -f conftest.er1 | |
43765 | cat conftest.err >&5 | |
33f5f8b9 | 43766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43767 | (exit $ac_status); } && | |
6263d81f | 43768 | { ac_try='test -z "$ac_c_werror_flag" |
43769 | || test ! -s conftest.err' | |
af3004ff | 43770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43771 | (eval $ac_try) 2>&5 | |
43772 | ac_status=$? | |
43773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43774 | (exit $ac_status); }; } && | |
43775 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 43776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43777 | (eval $ac_try) 2>&5 | |
43778 | ac_status=$? | |
43779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43780 | (exit $ac_status); }; }; then | |
c68e9c6b | 43781 | ac_cv_have_res_nsaddr_list="yes" |
43782 | else | |
33f5f8b9 | 43783 | echo "$as_me: failed program was:" >&5 |
ad21602a | 43784 | sed 's/^/| /' conftest.$ac_ext >&5 |
43785 | ||
33f5f8b9 | 43786 | ac_cv_have_res_nsaddr_list="no" |
c68e9c6b | 43787 | fi |
af3004ff | 43788 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c68e9c6b | 43789 | fi |
33f5f8b9 | 43790 | echo "$as_me:$LINENO: result: $ac_cv_have_res_nsaddr_list" >&5 |
43791 | echo "${ECHO_T}$ac_cv_have_res_nsaddr_list" >&6 | |
c68e9c6b | 43792 | if test $ac_cv_have_res_nsaddr_list = "yes" ; then |
33f5f8b9 | 43793 | |
43794 | cat >>confdefs.h <<\_ACEOF | |
c68e9c6b | 43795 | #define HAVE_RES_NSADDR_LIST 1 |
33f5f8b9 | 43796 | _ACEOF |
c68e9c6b | 43797 | |
43798 | fi | |
43799 | ||
43800 | if test $ac_cv_have_res_nsaddr_list = "no" ; then | |
33f5f8b9 | 43801 | echo "$as_me:$LINENO: checking for _res.ns_list" >&5 |
43802 | echo $ECHO_N "checking for _res.ns_list... $ECHO_C" >&6 | |
43803 | if test "${ac_cv_have_res_ns_list+set}" = set; then | |
43804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c68e9c6b | 43805 | else |
33f5f8b9 | 43806 | cat >conftest.$ac_ext <<_ACEOF |
ad21602a | 43807 | /* confdefs.h. */ |
43808 | _ACEOF | |
43809 | cat confdefs.h >>conftest.$ac_ext | |
43810 | cat >>conftest.$ac_ext <<_ACEOF | |
43811 | /* end confdefs.h. */ | |
c68e9c6b | 43812 | |
43813 | #if HAVE_SYS_TYPES_H | |
43814 | #include <sys/types.h> | |
43815 | #endif | |
43816 | #if HAVE_NETINET_IN_H | |
43817 | #include <netinet/in.h> | |
43818 | #endif | |
43819 | #if HAVE_ARPA_INET_H | |
43820 | #include <arpa/inet.h> | |
43821 | #endif | |
43822 | #if HAVE_ARPA_NAMESER_H | |
43823 | #include <arpa/nameser.h> | |
43824 | #endif | |
43825 | #if HAVE_RESOLV_H | |
43826 | #include <resolv.h> | |
43827 | #endif | |
43828 | ||
33f5f8b9 | 43829 | int |
43830 | main () | |
43831 | { | |
c68e9c6b | 43832 | _res.ns_list[0].addr; |
33f5f8b9 | 43833 | ; |
43834 | return 0; | |
43835 | } | |
43836 | _ACEOF | |
43837 | rm -f conftest.$ac_objext | |
43838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
af3004ff | 43839 | (eval $ac_compile) 2>conftest.er1 |
33f5f8b9 | 43840 | ac_status=$? |
af3004ff | 43841 | grep -v '^ *+' conftest.er1 >conftest.err |
43842 | rm -f conftest.er1 | |
43843 | cat conftest.err >&5 | |
33f5f8b9 | 43844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
43845 | (exit $ac_status); } && | |
6263d81f | 43846 | { ac_try='test -z "$ac_c_werror_flag" |
43847 | || test ! -s conftest.err' | |
af3004ff | 43848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43849 | (eval $ac_try) 2>&5 | |
43850 | ac_status=$? | |
43851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43852 | (exit $ac_status); }; } && | |
43853 | { ac_try='test -s conftest.$ac_objext' | |
33f5f8b9 | 43854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
43855 | (eval $ac_try) 2>&5 | |
43856 | ac_status=$? | |
43857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
43858 | (exit $ac_status); }; }; then | |
c68e9c6b | 43859 | ac_cv_have_res_ns_list="yes" |
43860 | else | |
33f5f8b9 | 43861 | echo "$as_me: failed program was:" >&5 |
ad21602a | 43862 | sed 's/^/| /' conftest.$ac_ext >&5 |
43863 | ||
33f5f8b9 | 43864 | ac_cv_have_res_ns_list="no" |
c68e9c6b | 43865 | fi |
af3004ff | 43866 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c68e9c6b | 43867 | fi |
33f5f8b9 | 43868 | echo "$as_me:$LINENO: result: $ac_cv_have_res_ns_list" >&5 |
43869 | echo "${ECHO_T}$ac_cv_have_res_ns_list" >&6 | |
c68e9c6b | 43870 | if test $ac_cv_have_res_ns_list = "yes" ; then |
33f5f8b9 | 43871 | |
43872 | cat >>confdefs.h <<\_ACEOF | |
c68e9c6b | 43873 | #define HAVE_RES_NS_LIST 1 |
33f5f8b9 | 43874 | _ACEOF |
c68e9c6b | 43875 | |
43876 | fi | |
43877 | fi | |
43878 | ||
090089c4 | 43879 | XTRA_OBJS='' |
6509a1a0 | 43880 | if test "$ac_cv_lib_malloc_main" = "yes" ; then |
090089c4 | 43881 | if test -r /usr/lib/debug/malloc.o ; then |
43882 | XTRA_OBJS="$XTRA_OBJS /usr/lib/debug/malloc.o" | |
43883 | fi | |
43884 | if test -r /usr/lib/debug/mallocmap.o ; then | |
43885 | XTRA_OBJS="$XTRA_OBJS /usr/lib/debug/mallocmap.o" | |
43886 | fi | |
43887 | fi | |
c6af3af4 | 43888 | |
090089c4 | 43889 | |
43890 | ||
38fea766 | 43891 | if test -z "$XTRA_LIBS"; then |
43892 | XTRA_LIBS="$LIBS" | |
0f5a16f8 | 43893 | XTRA_LIBS=`echo $XTRA_LIBS | sed -e "s/ */ /g"` |
38fea766 | 43894 | LIBS='' |
43895 | fi | |
090089c4 | 43896 | |
090089c4 | 43897 | |
33f5f8b9 | 43898 | rm -f core |
090089c4 | 43899 | |
8ab86a75 | 43900 | ac_config_files="$ac_config_files Makefile lib/Makefile scripts/Makefile scripts/RunCache scripts/RunAccel src/Makefile src/fs/Makefile src/repl/Makefile src/auth/Makefile contrib/Makefile snmplib/Makefile icons/Makefile errors/Makefile test-suite/Makefile doc/Makefile helpers/Makefile helpers/basic_auth/Makefile helpers/basic_auth/LDAP/Makefile helpers/basic_auth/MSNT/Makefile helpers/basic_auth/NCSA/Makefile helpers/basic_auth/PAM/Makefile helpers/basic_auth/SMB/Makefile helpers/basic_auth/mswin_sspi/Makefile helpers/basic_auth/YP/Makefile helpers/basic_auth/getpwnam/Makefile helpers/basic_auth/multi-domain-NTLM/Makefile helpers/basic_auth/SASL/Makefile helpers/digest_auth/Makefile helpers/digest_auth/password/Makefile helpers/digest_auth/ldap/Makefile helpers/ntlm_auth/Makefile helpers/ntlm_auth/fakeauth/Makefile helpers/ntlm_auth/no_check/Makefile helpers/ntlm_auth/SMB/Makefile helpers/ntlm_auth/SMB/smbval/Makefile helpers/ntlm_auth/mswin_sspi/Makefile helpers/negotiate_auth/Makefile helpers/negotiate_auth/mswin_sspi/Makefile helpers/external_acl/Makefile helpers/external_acl/ip_user/Makefile helpers/external_acl/ldap_group/Makefile helpers/external_acl/session/Makefile helpers/external_acl/unix_group/Makefile helpers/external_acl/wbinfo_group/Makefile helpers/external_acl/mswin_lm_group/Makefile tools/Makefile" |
33f5f8b9 | 43901 | |
12a5c9fd | 43902 | |
43903 | ||
43904 | ||
43905 | subdirs="$subdirs lib/libTrie" | |
43906 | ||
43907 | ||
f5691f9c | 43908 | |
43909 | subdirs="$subdirs lib/cppunit-1.10.0" | |
43910 | ||
43911 | ||
33f5f8b9 | 43912 | cat >confcache <<\_ACEOF |
090089c4 | 43913 | # This file is a shell script that caches the results of configure |
43914 | # tests run on this system so they can be shared between configure | |
33f5f8b9 | 43915 | # scripts and configure runs, see configure's option --config-cache. |
43916 | # It is not useful on other systems. If it contains results you don't | |
43917 | # want to keep, you may remove or edit it. | |
090089c4 | 43918 | # |
33f5f8b9 | 43919 | # config.status only pays attention to the cache file if you give it |
43920 | # the --recheck option to rerun configure. | |
090089c4 | 43921 | # |
ad21602a | 43922 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
33f5f8b9 | 43923 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
43924 | # following values. | |
43925 | ||
43926 | _ACEOF | |
43927 | ||
133b6d90 | 43928 | # The following way of writing the cache mishandles newlines in values, |
43929 | # but we know of no workaround that is simple, portable, and efficient. | |
43930 | # So, don't put newlines in cache variables' values. | |
090089c4 | 43931 | # Ultrix sh set writes to stderr and can't be redirected directly, |
43932 | # and sets the high bit in the cache file unless we assign to the vars. | |
33f5f8b9 | 43933 | { |
43934 | (set) 2>&1 | | |
43935 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
43936 | *ac_space=\ *) | |
43937 | # `set' does not quote correctly, so add quotes (double-quote | |
43938 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
43939 | sed -n \ | |
af3004ff | 43940 | "s/'/'\\\\''/g; |
43941 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
33f5f8b9 | 43942 | ;; |
43943 | *) | |
43944 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
43945 | sed -n \ | |
af3004ff | 43946 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
33f5f8b9 | 43947 | ;; |
43948 | esac; | |
43949 | } | | |
43950 | sed ' | |
43951 | t clear | |
43952 | : clear | |
43953 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
43954 | t end | |
43955 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
43956 | : end' >>confcache | |
ad21602a | 43957 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
090089c4 | 43958 | if test -w $cache_file; then |
33f5f8b9 | 43959 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
43960 | cat confcache >$cache_file | |
090089c4 | 43961 | else |
43962 | echo "not updating unwritable cache $cache_file" | |
43963 | fi | |
43964 | fi | |
43965 | rm -f confcache | |
43966 | ||
090089c4 | 43967 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
43968 | # Let make expand exec_prefix. | |
43969 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
43970 | ||
33f5f8b9 | 43971 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
43972 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
43973 | # trailing colons and then remove the whole line if VPATH becomes empty | |
43974 | # (actually we leave an empty line to preserve line numbers). | |
090089c4 | 43975 | if test "x$srcdir" = x.; then |
af3004ff | 43976 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
33f5f8b9 | 43977 | s/:*\$(srcdir):*/:/; |
43978 | s/:*\${srcdir}:*/:/; | |
43979 | s/:*@srcdir@:*/:/; | |
af3004ff | 43980 | s/^\([^=]*=[ ]*\):*/\1/; |
33f5f8b9 | 43981 | s/:*$//; |
af3004ff | 43982 | s/^[^=]*=[ ]*$//; |
33f5f8b9 | 43983 | }' |
090089c4 | 43984 | fi |
43985 | ||
3f961930 | 43986 | DEFS=-DHAVE_CONFIG_H |
090089c4 | 43987 | |
ad21602a | 43988 | ac_libobjs= |
43989 | ac_ltlibobjs= | |
43990 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
43991 | # 1. Remove the extension, and $U if already installed. | |
43992 | ac_i=`echo "$ac_i" | | |
af3004ff | 43993 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
ad21602a | 43994 | # 2. Add them. |
43995 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
43996 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
43997 | done | |
43998 | LIBOBJS=$ac_libobjs | |
43999 | ||
44000 | LTLIBOBJS=$ac_ltlibobjs | |
44001 | ||
44002 | ||
44003 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
44004 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
44005 | Usually this means the macro was only invoked conditionally." >&5 | |
44006 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
44007 | Usually this means the macro was only invoked conditionally." >&2;} | |
44008 | { (exit 1); exit 1; }; } | |
44009 | fi | |
44010 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
44011 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
44012 | Usually this means the macro was only invoked conditionally." >&5 | |
44013 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
44014 | Usually this means the macro was only invoked conditionally." >&2;} | |
44015 | { (exit 1); exit 1; }; } | |
44016 | fi | |
44017 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
44018 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
44019 | Usually this means the macro was only invoked conditionally." >&5 | |
44020 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
44021 | Usually this means the macro was only invoked conditionally." >&2;} | |
44022 | { (exit 1); exit 1; }; } | |
44023 | fi | |
44024 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
44025 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. | |
44026 | Usually this means the macro was only invoked conditionally." >&5 | |
44027 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | |
44028 | Usually this means the macro was only invoked conditionally." >&2;} | |
44029 | { (exit 1); exit 1; }; } | |
44030 | fi | |
44031 | if test -z "${ENABLE_WIN32SPECIFIC_TRUE}" && test -z "${ENABLE_WIN32SPECIFIC_FALSE}"; then | |
44032 | { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WIN32SPECIFIC\" was never defined. | |
44033 | Usually this means the macro was only invoked conditionally." >&5 | |
44034 | echo "$as_me: error: conditional \"ENABLE_WIN32SPECIFIC\" was never defined. | |
44035 | Usually this means the macro was only invoked conditionally." >&2;} | |
44036 | { (exit 1); exit 1; }; } | |
44037 | fi | |
44038 | if test -z "${ENABLE_WIN32SPECIFIC_TRUE}" && test -z "${ENABLE_WIN32SPECIFIC_FALSE}"; then | |
44039 | { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WIN32SPECIFIC\" was never defined. | |
44040 | Usually this means the macro was only invoked conditionally." >&5 | |
44041 | echo "$as_me: error: conditional \"ENABLE_WIN32SPECIFIC\" was never defined. | |
44042 | Usually this means the macro was only invoked conditionally." >&2;} | |
44043 | { (exit 1); exit 1; }; } | |
44044 | fi | |
bfd36867 | 44045 | if test -z "${USE_IPC_WIN32_TRUE}" && test -z "${USE_IPC_WIN32_FALSE}"; then |
44046 | { { echo "$as_me:$LINENO: error: conditional \"USE_IPC_WIN32\" was never defined. | |
44047 | Usually this means the macro was only invoked conditionally." >&5 | |
44048 | echo "$as_me: error: conditional \"USE_IPC_WIN32\" was never defined. | |
44049 | Usually this means the macro was only invoked conditionally." >&2;} | |
44050 | { (exit 1); exit 1; }; } | |
44051 | fi | |
44052 | if test -z "${USE_IPC_WIN32_TRUE}" && test -z "${USE_IPC_WIN32_FALSE}"; then | |
44053 | { { echo "$as_me:$LINENO: error: conditional \"USE_IPC_WIN32\" was never defined. | |
44054 | Usually this means the macro was only invoked conditionally." >&5 | |
44055 | echo "$as_me: error: conditional \"USE_IPC_WIN32\" was never defined. | |
44056 | Usually this means the macro was only invoked conditionally." >&2;} | |
44057 | { (exit 1); exit 1; }; } | |
44058 | fi | |
c7cee0a7 | 44059 | if test -z "${USE_AIOPS_WIN32_TRUE}" && test -z "${USE_AIOPS_WIN32_FALSE}"; then |
44060 | { { echo "$as_me:$LINENO: error: conditional \"USE_AIOPS_WIN32\" was never defined. | |
44061 | Usually this means the macro was only invoked conditionally." >&5 | |
44062 | echo "$as_me: error: conditional \"USE_AIOPS_WIN32\" was never defined. | |
44063 | Usually this means the macro was only invoked conditionally." >&2;} | |
44064 | { (exit 1); exit 1; }; } | |
44065 | fi | |
c2158752 | 44066 | if test -z "${USE_AIO_WIN32_TRUE}" && test -z "${USE_AIO_WIN32_FALSE}"; then |
44067 | { { echo "$as_me:$LINENO: error: conditional \"USE_AIO_WIN32\" was never defined. | |
44068 | Usually this means the macro was only invoked conditionally." >&5 | |
44069 | echo "$as_me: error: conditional \"USE_AIO_WIN32\" was never defined. | |
44070 | Usually this means the macro was only invoked conditionally." >&2;} | |
44071 | { (exit 1); exit 1; }; } | |
44072 | fi | |
ad21602a | 44073 | if test -z "${ENABLE_PINGER_TRUE}" && test -z "${ENABLE_PINGER_FALSE}"; then |
44074 | { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PINGER\" was never defined. | |
44075 | Usually this means the macro was only invoked conditionally." >&5 | |
44076 | echo "$as_me: error: conditional \"ENABLE_PINGER\" was never defined. | |
44077 | Usually this means the macro was only invoked conditionally." >&2;} | |
44078 | { (exit 1); exit 1; }; } | |
44079 | fi | |
44080 | if test -z "${ENABLE_PINGER_TRUE}" && test -z "${ENABLE_PINGER_FALSE}"; then | |
44081 | { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PINGER\" was never defined. | |
44082 | Usually this means the macro was only invoked conditionally." >&5 | |
44083 | echo "$as_me: error: conditional \"ENABLE_PINGER\" was never defined. | |
44084 | Usually this means the macro was only invoked conditionally." >&2;} | |
44085 | { (exit 1); exit 1; }; } | |
44086 | fi | |
44087 | if test -z "${USE_DELAY_POOLS_TRUE}" && test -z "${USE_DELAY_POOLS_FALSE}"; then | |
44088 | { { echo "$as_me:$LINENO: error: conditional \"USE_DELAY_POOLS\" was never defined. | |
44089 | Usually this means the macro was only invoked conditionally." >&5 | |
44090 | echo "$as_me: error: conditional \"USE_DELAY_POOLS\" was never defined. | |
44091 | Usually this means the macro was only invoked conditionally." >&2;} | |
44092 | { (exit 1); exit 1; }; } | |
44093 | fi | |
44094 | if test -z "${USE_DELAY_POOLS_TRUE}" && test -z "${USE_DELAY_POOLS_FALSE}"; then | |
44095 | { { echo "$as_me:$LINENO: error: conditional \"USE_DELAY_POOLS\" was never defined. | |
44096 | Usually this means the macro was only invoked conditionally." >&5 | |
44097 | echo "$as_me: error: conditional \"USE_DELAY_POOLS\" was never defined. | |
44098 | Usually this means the macro was only invoked conditionally." >&2;} | |
44099 | { (exit 1); exit 1; }; } | |
44100 | fi | |
44101 | if test -z "${USE_ESI_TRUE}" && test -z "${USE_ESI_FALSE}"; then | |
44102 | { { echo "$as_me:$LINENO: error: conditional \"USE_ESI\" was never defined. | |
44103 | Usually this means the macro was only invoked conditionally." >&5 | |
44104 | echo "$as_me: error: conditional \"USE_ESI\" was never defined. | |
44105 | Usually this means the macro was only invoked conditionally." >&2;} | |
44106 | { (exit 1); exit 1; }; } | |
44107 | fi | |
44108 | if test -z "${USE_ESI_TRUE}" && test -z "${USE_ESI_FALSE}"; then | |
44109 | { { echo "$as_me:$LINENO: error: conditional \"USE_ESI\" was never defined. | |
44110 | Usually this means the macro was only invoked conditionally." >&5 | |
44111 | echo "$as_me: error: conditional \"USE_ESI\" was never defined. | |
44112 | Usually this means the macro was only invoked conditionally." >&2;} | |
44113 | { (exit 1); exit 1; }; } | |
44114 | fi | |
2f2d507f | 44115 | if test -z "${USE_ICAP_CLIENT_TRUE}" && test -z "${USE_ICAP_CLIENT_FALSE}"; then |
44116 | { { echo "$as_me:$LINENO: error: conditional \"USE_ICAP_CLIENT\" was never defined. | |
44117 | Usually this means the macro was only invoked conditionally." >&5 | |
44118 | echo "$as_me: error: conditional \"USE_ICAP_CLIENT\" was never defined. | |
44119 | Usually this means the macro was only invoked conditionally." >&2;} | |
44120 | { (exit 1); exit 1; }; } | |
44121 | fi | |
44122 | if test -z "${USE_ICAP_CLIENT_TRUE}" && test -z "${USE_ICAP_CLIENT_FALSE}"; then | |
44123 | { { echo "$as_me:$LINENO: error: conditional \"USE_ICAP_CLIENT\" was never defined. | |
44124 | Usually this means the macro was only invoked conditionally." >&5 | |
44125 | echo "$as_me: error: conditional \"USE_ICAP_CLIENT\" was never defined. | |
44126 | Usually this means the macro was only invoked conditionally." >&2;} | |
44127 | { (exit 1); exit 1; }; } | |
44128 | fi | |
ad21602a | 44129 | if test -z "${USE_SNMP_TRUE}" && test -z "${USE_SNMP_FALSE}"; then |
44130 | { { echo "$as_me:$LINENO: error: conditional \"USE_SNMP\" was never defined. | |
44131 | Usually this means the macro was only invoked conditionally." >&5 | |
44132 | echo "$as_me: error: conditional \"USE_SNMP\" was never defined. | |
44133 | Usually this means the macro was only invoked conditionally." >&2;} | |
44134 | { (exit 1); exit 1; }; } | |
44135 | fi | |
44136 | if test -z "${USE_SNMP_TRUE}" && test -z "${USE_SNMP_FALSE}"; then | |
44137 | { { echo "$as_me:$LINENO: error: conditional \"USE_SNMP\" was never defined. | |
44138 | Usually this means the macro was only invoked conditionally." >&5 | |
44139 | echo "$as_me: error: conditional \"USE_SNMP\" was never defined. | |
44140 | Usually this means the macro was only invoked conditionally." >&2;} | |
44141 | { (exit 1); exit 1; }; } | |
44142 | fi | |
44143 | if test -z "${ENABLE_ARP_ACL_TRUE}" && test -z "${ENABLE_ARP_ACL_FALSE}"; then | |
44144 | { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ARP_ACL\" was never defined. | |
44145 | Usually this means the macro was only invoked conditionally." >&5 | |
44146 | echo "$as_me: error: conditional \"ENABLE_ARP_ACL\" was never defined. | |
44147 | Usually this means the macro was only invoked conditionally." >&2;} | |
44148 | { (exit 1); exit 1; }; } | |
44149 | fi | |
44150 | if test -z "${ENABLE_ARP_ACL_TRUE}" && test -z "${ENABLE_ARP_ACL_FALSE}"; then | |
44151 | { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ARP_ACL\" was never defined. | |
44152 | Usually this means the macro was only invoked conditionally." >&5 | |
44153 | echo "$as_me: error: conditional \"ENABLE_ARP_ACL\" was never defined. | |
44154 | Usually this means the macro was only invoked conditionally." >&2;} | |
44155 | { (exit 1); exit 1; }; } | |
44156 | fi | |
44157 | if test -z "${ENABLE_HTCP_TRUE}" && test -z "${ENABLE_HTCP_FALSE}"; then | |
44158 | { { echo "$as_me:$LINENO: error: conditional \"ENABLE_HTCP\" was never defined. | |
44159 | Usually this means the macro was only invoked conditionally." >&5 | |
44160 | echo "$as_me: error: conditional \"ENABLE_HTCP\" was never defined. | |
44161 | Usually this means the macro was only invoked conditionally." >&2;} | |
44162 | { (exit 1); exit 1; }; } | |
44163 | fi | |
44164 | if test -z "${ENABLE_HTCP_TRUE}" && test -z "${ENABLE_HTCP_FALSE}"; then | |
44165 | { { echo "$as_me:$LINENO: error: conditional \"ENABLE_HTCP\" was never defined. | |
44166 | Usually this means the macro was only invoked conditionally." >&5 | |
44167 | echo "$as_me: error: conditional \"ENABLE_HTCP\" was never defined. | |
44168 | Usually this means the macro was only invoked conditionally." >&2;} | |
44169 | { (exit 1); exit 1; }; } | |
44170 | fi | |
44171 | if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then | |
44172 | { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined. | |
44173 | Usually this means the macro was only invoked conditionally." >&5 | |
44174 | echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined. | |
44175 | Usually this means the macro was only invoked conditionally." >&2;} | |
44176 | { (exit 1); exit 1; }; } | |
44177 | fi | |
44178 | if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then | |
44179 | { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined. | |
44180 | Usually this means the macro was only invoked conditionally." >&5 | |
44181 | echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined. | |
44182 | Usually this means the macro was only invoked conditionally." >&2;} | |
44183 | { (exit 1); exit 1; }; } | |
44184 | fi | |
44185 | if test -z "${NEED_OWN_MD5_TRUE}" && test -z "${NEED_OWN_MD5_FALSE}"; then | |
44186 | { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_MD5\" was never defined. | |
44187 | Usually this means the macro was only invoked conditionally." >&5 | |
44188 | echo "$as_me: error: conditional \"NEED_OWN_MD5\" was never defined. | |
44189 | Usually this means the macro was only invoked conditionally." >&2;} | |
44190 | { (exit 1); exit 1; }; } | |
44191 | fi | |
44192 | if test -z "${NEED_OWN_MD5_TRUE}" && test -z "${NEED_OWN_MD5_FALSE}"; then | |
44193 | { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_MD5\" was never defined. | |
44194 | Usually this means the macro was only invoked conditionally." >&5 | |
44195 | echo "$as_me: error: conditional \"NEED_OWN_MD5\" was never defined. | |
44196 | Usually this means the macro was only invoked conditionally." >&2;} | |
44197 | { (exit 1); exit 1; }; } | |
44198 | fi | |
ad21602a | 44199 | if test -z "${MAKE_LEAKFINDER_TRUE}" && test -z "${MAKE_LEAKFINDER_FALSE}"; then |
44200 | { { echo "$as_me:$LINENO: error: conditional \"MAKE_LEAKFINDER\" was never defined. | |
44201 | Usually this means the macro was only invoked conditionally." >&5 | |
44202 | echo "$as_me: error: conditional \"MAKE_LEAKFINDER\" was never defined. | |
44203 | Usually this means the macro was only invoked conditionally." >&2;} | |
44204 | { (exit 1); exit 1; }; } | |
44205 | fi | |
44206 | if test -z "${MAKE_LEAKFINDER_TRUE}" && test -z "${MAKE_LEAKFINDER_FALSE}"; then | |
44207 | { { echo "$as_me:$LINENO: error: conditional \"MAKE_LEAKFINDER\" was never defined. | |
44208 | Usually this means the macro was only invoked conditionally." >&5 | |
44209 | echo "$as_me: error: conditional \"MAKE_LEAKFINDER\" was never defined. | |
44210 | Usually this means the macro was only invoked conditionally." >&2;} | |
44211 | { (exit 1); exit 1; }; } | |
44212 | fi | |
44213 | if test -z "${ENABLE_IDENT_TRUE}" && test -z "${ENABLE_IDENT_FALSE}"; then | |
44214 | { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IDENT\" was never defined. | |
44215 | Usually this means the macro was only invoked conditionally." >&5 | |
44216 | echo "$as_me: error: conditional \"ENABLE_IDENT\" was never defined. | |
44217 | Usually this means the macro was only invoked conditionally." >&2;} | |
44218 | { (exit 1); exit 1; }; } | |
44219 | fi | |
44220 | if test -z "${ENABLE_IDENT_TRUE}" && test -z "${ENABLE_IDENT_FALSE}"; then | |
44221 | { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IDENT\" was never defined. | |
44222 | Usually this means the macro was only invoked conditionally." >&5 | |
44223 | echo "$as_me: error: conditional \"ENABLE_IDENT\" was never defined. | |
44224 | Usually this means the macro was only invoked conditionally." >&2;} | |
44225 | { (exit 1); exit 1; }; } | |
44226 | fi | |
44227 | if test -z "${USE_DNSSERVER_TRUE}" && test -z "${USE_DNSSERVER_FALSE}"; then | |
44228 | { { echo "$as_me:$LINENO: error: conditional \"USE_DNSSERVER\" was never defined. | |
44229 | Usually this means the macro was only invoked conditionally." >&5 | |
44230 | echo "$as_me: error: conditional \"USE_DNSSERVER\" was never defined. | |
44231 | Usually this means the macro was only invoked conditionally." >&2;} | |
44232 | { (exit 1); exit 1; }; } | |
44233 | fi | |
44234 | if test -z "${USE_DNSSERVER_TRUE}" && test -z "${USE_DNSSERVER_FALSE}"; then | |
44235 | { { echo "$as_me:$LINENO: error: conditional \"USE_DNSSERVER\" was never defined. | |
44236 | Usually this means the macro was only invoked conditionally." >&5 | |
44237 | echo "$as_me: error: conditional \"USE_DNSSERVER\" was never defined. | |
44238 | Usually this means the macro was only invoked conditionally." >&2;} | |
44239 | { (exit 1); exit 1; }; } | |
44240 | fi | |
44241 | if test -z "${ENABLE_UNLINKD_TRUE}" && test -z "${ENABLE_UNLINKD_FALSE}"; then | |
44242 | { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UNLINKD\" was never defined. | |
44243 | Usually this means the macro was only invoked conditionally." >&5 | |
44244 | echo "$as_me: error: conditional \"ENABLE_UNLINKD\" was never defined. | |
44245 | Usually this means the macro was only invoked conditionally." >&2;} | |
44246 | { (exit 1); exit 1; }; } | |
44247 | fi | |
44248 | if test -z "${ENABLE_UNLINKD_TRUE}" && test -z "${ENABLE_UNLINKD_FALSE}"; then | |
44249 | { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UNLINKD\" was never defined. | |
44250 | Usually this means the macro was only invoked conditionally." >&5 | |
44251 | echo "$as_me: error: conditional \"ENABLE_UNLINKD\" was never defined. | |
44252 | Usually this means the macro was only invoked conditionally." >&2;} | |
44253 | { (exit 1); exit 1; }; } | |
44254 | fi | |
44255 | if test -z "${ENABLE_XPROF_STATS_TRUE}" && test -z "${ENABLE_XPROF_STATS_FALSE}"; then | |
44256 | { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XPROF_STATS\" was never defined. | |
44257 | Usually this means the macro was only invoked conditionally." >&5 | |
44258 | echo "$as_me: error: conditional \"ENABLE_XPROF_STATS\" was never defined. | |
44259 | Usually this means the macro was only invoked conditionally." >&2;} | |
44260 | { (exit 1); exit 1; }; } | |
44261 | fi | |
44262 | if test -z "${ENABLE_XPROF_STATS_TRUE}" && test -z "${ENABLE_XPROF_STATS_FALSE}"; then | |
44263 | { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XPROF_STATS\" was never defined. | |
44264 | Usually this means the macro was only invoked conditionally." >&5 | |
44265 | echo "$as_me: error: conditional \"ENABLE_XPROF_STATS\" was never defined. | |
44266 | Usually this means the macro was only invoked conditionally." >&2;} | |
44267 | { (exit 1); exit 1; }; } | |
44268 | fi | |
44269 | if test -z "${NEED_OWN_SNPRINTF_TRUE}" && test -z "${NEED_OWN_SNPRINTF_FALSE}"; then | |
44270 | { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_SNPRINTF\" was never defined. | |
44271 | Usually this means the macro was only invoked conditionally." >&5 | |
44272 | echo "$as_me: error: conditional \"NEED_OWN_SNPRINTF\" was never defined. | |
44273 | Usually this means the macro was only invoked conditionally." >&2;} | |
44274 | { (exit 1); exit 1; }; } | |
44275 | fi | |
44276 | if test -z "${NEED_OWN_SNPRINTF_TRUE}" && test -z "${NEED_OWN_SNPRINTF_FALSE}"; then | |
44277 | { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_SNPRINTF\" was never defined. | |
44278 | Usually this means the macro was only invoked conditionally." >&5 | |
44279 | echo "$as_me: error: conditional \"NEED_OWN_SNPRINTF\" was never defined. | |
44280 | Usually this means the macro was only invoked conditionally." >&2;} | |
44281 | { (exit 1); exit 1; }; } | |
44282 | fi | |
afbb1069 | 44283 | if test -z "${NEED_OWN_STRSEP_TRUE}" && test -z "${NEED_OWN_STRSEP_FALSE}"; then |
44284 | { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_STRSEP\" was never defined. | |
44285 | Usually this means the macro was only invoked conditionally." >&5 | |
44286 | echo "$as_me: error: conditional \"NEED_OWN_STRSEP\" was never defined. | |
44287 | Usually this means the macro was only invoked conditionally." >&2;} | |
44288 | { (exit 1); exit 1; }; } | |
44289 | fi | |
44290 | if test -z "${NEED_OWN_STRSEP_TRUE}" && test -z "${NEED_OWN_STRSEP_FALSE}"; then | |
44291 | { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_STRSEP\" was never defined. | |
44292 | Usually this means the macro was only invoked conditionally." >&5 | |
44293 | echo "$as_me: error: conditional \"NEED_OWN_STRSEP\" was never defined. | |
44294 | Usually this means the macro was only invoked conditionally." >&2;} | |
44295 | { (exit 1); exit 1; }; } | |
44296 | fi | |
b65c7b0d | 44297 | |
33f5f8b9 | 44298 | : ${CONFIG_STATUS=./config.status} |
44299 | ac_clean_files_save=$ac_clean_files | |
44300 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
44301 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
44302 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
44303 | cat >$CONFIG_STATUS <<_ACEOF | |
44304 | #! $SHELL | |
44305 | # Generated by $as_me. | |
3f961930 | 44306 | # Run this file to recreate the current configuration. |
3f961930 | 44307 | # Compiler output produced by configure, useful for debugging |
33f5f8b9 | 44308 | # configure, is in config.log if it exists. |
b65c7b0d | 44309 | |
33f5f8b9 | 44310 | debug=false |
ad21602a | 44311 | ac_cs_recheck=false |
44312 | ac_cs_silent=false | |
33f5f8b9 | 44313 | SHELL=\${CONFIG_SHELL-$SHELL} |
44314 | _ACEOF | |
44315 | ||
44316 | cat >>$CONFIG_STATUS <<\_ACEOF | |
33f5f8b9 | 44317 | ## --------------------- ## |
44318 | ## M4sh Initialization. ## | |
44319 | ## --------------------- ## | |
44320 | ||
44321 | # Be Bourne compatible | |
44322 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
44323 | emulate sh | |
44324 | NULLCMD=: | |
ad21602a | 44325 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
44326 | # is contrary to our usage. Disable this feature. | |
44327 | alias -g '${1+"$@"}'='"$@"' | |
33f5f8b9 | 44328 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
44329 | set -o posix | |
44330 | fi | |
af3004ff | 44331 | DUALCASE=1; export DUALCASE # for MKS sh |
33f5f8b9 | 44332 | |
33f5f8b9 | 44333 | # Support unset when possible. |
af3004ff | 44334 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
33f5f8b9 | 44335 | as_unset=unset |
44336 | else | |
44337 | as_unset=false | |
44338 | fi | |
44339 | ||
ad21602a | 44340 | |
44341 | # Work around bugs in pre-3.0 UWIN ksh. | |
44342 | $as_unset ENV MAIL MAILPATH | |
44343 | PS1='$ ' | |
44344 | PS2='> ' | |
44345 | PS4='+ ' | |
44346 | ||
44347 | # NLS nuisances. | |
44348 | for as_var in \ | |
44349 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
44350 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
44351 | LC_TELEPHONE LC_TIME | |
44352 | do | |
af3004ff | 44353 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
ad21602a | 44354 | eval $as_var=C; export $as_var |
44355 | else | |
44356 | $as_unset $as_var | |
44357 | fi | |
44358 | done | |
44359 | ||
44360 | # Required to use basename. | |
44361 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
44362 | as_expr=expr | |
44363 | else | |
44364 | as_expr=false | |
44365 | fi | |
44366 | ||
44367 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
44368 | as_basename=basename | |
44369 | else | |
44370 | as_basename=false | |
44371 | fi | |
33f5f8b9 | 44372 | |
44373 | ||
44374 | # Name of the executable. | |
ad21602a | 44375 | as_me=`$as_basename "$0" || |
33f5f8b9 | 44376 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
44377 | X"$0" : 'X\(//\)$' \| \ | |
44378 | X"$0" : 'X\(/\)$' \| \ | |
44379 | . : '\(.\)' 2>/dev/null || | |
44380 | echo X/"$0" | | |
44381 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
44382 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
44383 | /^X\/\(\/\).*/{ s//\1/; q; } | |
44384 | s/.*/./; q'` | |
44385 | ||
ad21602a | 44386 | |
33f5f8b9 | 44387 | # PATH needs CR, and LINENO needs CR and PATH. |
44388 | # Avoid depending upon Character Ranges. | |
44389 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
44390 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
44391 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
44392 | as_cr_digits='0123456789' | |
44393 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
44394 | ||
44395 | # The user is always right. | |
44396 | if test "${PATH_SEPARATOR+set}" != set; then | |
ad21602a | 44397 | echo "#! /bin/sh" >conf$$.sh |
44398 | echo "exit 0" >>conf$$.sh | |
44399 | chmod +x conf$$.sh | |
44400 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
33f5f8b9 | 44401 | PATH_SEPARATOR=';' |
44402 | else | |
44403 | PATH_SEPARATOR=: | |
44404 | fi | |
ad21602a | 44405 | rm -f conf$$.sh |
33f5f8b9 | 44406 | fi |
44407 | ||
44408 | ||
44409 | as_lineno_1=$LINENO | |
44410 | as_lineno_2=$LINENO | |
44411 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
44412 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
44413 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
44414 | # Find who we are. Look in the path if we contain no path at all | |
44415 | # relative or not. | |
44416 | case $0 in | |
44417 | *[\\/]* ) as_myself=$0 ;; | |
44418 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44419 | for as_dir in $PATH | |
b65c7b0d | 44420 | do |
33f5f8b9 | 44421 | IFS=$as_save_IFS |
44422 | test -z "$as_dir" && as_dir=. | |
44423 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
44424 | done | |
44425 | ||
44426 | ;; | |
b65c7b0d | 44427 | esac |
33f5f8b9 | 44428 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
44429 | # in which case we are not to be found in the path. | |
44430 | if test "x$as_myself" = x; then | |
44431 | as_myself=$0 | |
44432 | fi | |
44433 | if test ! -f "$as_myself"; then | |
44434 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
44435 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
44436 | { (exit 1); exit 1; }; } | |
44437 | fi | |
44438 | case $CONFIG_SHELL in | |
44439 | '') | |
44440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
44441 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
44442 | do | |
44443 | IFS=$as_save_IFS | |
44444 | test -z "$as_dir" && as_dir=. | |
44445 | for as_base in sh bash ksh sh5; do | |
44446 | case $as_dir in | |
44447 | /*) | |
44448 | if ("$as_dir/$as_base" -c ' | |
44449 | as_lineno_1=$LINENO | |
44450 | as_lineno_2=$LINENO | |
44451 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
44452 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
44453 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
ad21602a | 44454 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
44455 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
33f5f8b9 | 44456 | CONFIG_SHELL=$as_dir/$as_base |
44457 | export CONFIG_SHELL | |
44458 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
44459 | fi;; | |
44460 | esac | |
44461 | done | |
b65c7b0d | 44462 | done |
33f5f8b9 | 44463 | ;; |
44464 | esac | |
b65c7b0d | 44465 | |
33f5f8b9 | 44466 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
44467 | # uniformly replaced by the line number. The first 'sed' inserts a | |
44468 | # line-number line before each line; the second 'sed' does the real | |
44469 | # work. The second script uses 'N' to pair each line-number line | |
44470 | # with the numbered line, and appends trailing '-' during | |
44471 | # substitution so that $LINENO is not a special case at line end. | |
44472 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
44473 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
44474 | sed '=' <$as_myself | | |
44475 | sed ' | |
44476 | N | |
44477 | s,$,-, | |
44478 | : loop | |
44479 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
44480 | t loop | |
44481 | s,-$,, | |
44482 | s,^['$as_cr_digits']*\n,, | |
44483 | ' >$as_me.lineno && | |
44484 | chmod +x $as_me.lineno || | |
44485 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
44486 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
44487 | { (exit 1); exit 1; }; } | |
44488 | ||
44489 | # Don't try to exec as it changes $[0], causing all sort of problems | |
44490 | # (the dirname of $[0] is not the place where we might find the | |
44491 | # original and so on. Autoconf is especially sensible to this). | |
44492 | . ./$as_me.lineno | |
44493 | # Exit status is that of the last command. | |
44494 | exit | |
44495 | } | |
b65c7b0d | 44496 | |
33f5f8b9 | 44497 | |
44498 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
44499 | *c*,-n*) ECHO_N= ECHO_C=' | |
44500 | ' ECHO_T=' ' ;; | |
44501 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
44502 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
44503 | esac | |
44504 | ||
44505 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
44506 | as_expr=expr | |
44507 | else | |
44508 | as_expr=false | |
44509 | fi | |
44510 | ||
44511 | rm -f conf$$ conf$$.exe conf$$.file | |
44512 | echo >conf$$.file | |
44513 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
44514 | # We could just check for DJGPP; but this test a) works b) is more generic | |
44515 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
44516 | if test -f conf$$.exe; then | |
44517 | # Don't use ln at all; we don't have any links | |
44518 | as_ln_s='cp -p' | |
3f961930 | 44519 | else |
33f5f8b9 | 44520 | as_ln_s='ln -s' |
3f961930 | 44521 | fi |
33f5f8b9 | 44522 | elif ln conf$$.file conf$$ 2>/dev/null; then |
44523 | as_ln_s=ln | |
44524 | else | |
44525 | as_ln_s='cp -p' | |
44526 | fi | |
44527 | rm -f conf$$ conf$$.exe conf$$.file | |
44528 | ||
ad21602a | 44529 | if mkdir -p . 2>/dev/null; then |
44530 | as_mkdir_p=: | |
44531 | else | |
af3004ff | 44532 | test -d ./-p && rmdir ./-p |
ad21602a | 44533 | as_mkdir_p=false |
44534 | fi | |
44535 | ||
33f5f8b9 | 44536 | as_executable_p="test -f" |
44537 | ||
44538 | # Sed expression to map a string onto a valid CPP name. | |
af3004ff | 44539 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
33f5f8b9 | 44540 | |
44541 | # Sed expression to map a string onto a valid variable name. | |
af3004ff | 44542 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
33f5f8b9 | 44543 | |
44544 | ||
44545 | # IFS | |
44546 | # We need space, tab and new line, in precisely that order. | |
44547 | as_nl=' | |
44548 | ' | |
44549 | IFS=" $as_nl" | |
44550 | ||
44551 | # CDPATH. | |
ad21602a | 44552 | $as_unset CDPATH |
33f5f8b9 | 44553 | |
44554 | exec 6>&1 | |
44555 | ||
44556 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
44557 | # report actual input values of CONFIG_FILES etc. instead of their | |
44558 | # values after options handling. Logging --version etc. is OK. | |
44559 | exec 5>>config.log | |
44560 | { | |
44561 | echo | |
44562 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
44563 | ## Running $as_me. ## | |
44564 | _ASBOX | |
44565 | } >&5 | |
44566 | cat >&5 <<_CSEOF | |
44567 | ||
505c100d | 44568 | This file was extended by Squid Web Proxy $as_me 3.0.PRE4-CVS, which was |
af3004ff | 44569 | generated by GNU Autoconf 2.59. Invocation command line was |
33f5f8b9 | 44570 | |
44571 | CONFIG_FILES = $CONFIG_FILES | |
44572 | CONFIG_HEADERS = $CONFIG_HEADERS | |
44573 | CONFIG_LINKS = $CONFIG_LINKS | |
44574 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
44575 | $ $0 $@ | |
44576 | ||
44577 | _CSEOF | |
44578 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
44579 | echo >&5 | |
44580 | _ACEOF | |
44581 | ||
44582 | # Files that config.status was made for. | |
44583 | if test -n "$ac_config_files"; then | |
44584 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
44585 | fi | |
44586 | ||
44587 | if test -n "$ac_config_headers"; then | |
44588 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
44589 | fi | |
44590 | ||
44591 | if test -n "$ac_config_links"; then | |
44592 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
44593 | fi | |
44594 | ||
44595 | if test -n "$ac_config_commands"; then | |
44596 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
44597 | fi | |
44598 | ||
44599 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44600 | ||
44601 | ac_cs_usage="\ | |
44602 | \`$as_me' instantiates files from templates according to the | |
44603 | current configuration. | |
44604 | ||
44605 | Usage: $0 [OPTIONS] [FILE]... | |
44606 | ||
44607 | -h, --help print this help, then exit | |
44608 | -V, --version print version number, then exit | |
ad21602a | 44609 | -q, --quiet do not print progress messages |
33f5f8b9 | 44610 | -d, --debug don't remove temporary files |
44611 | --recheck update $as_me by reconfiguring in the same conditions | |
44612 | --file=FILE[:TEMPLATE] | |
af3004ff | 44613 | instantiate the configuration file FILE |
33f5f8b9 | 44614 | --header=FILE[:TEMPLATE] |
af3004ff | 44615 | instantiate the configuration header FILE |
33f5f8b9 | 44616 | |
44617 | Configuration files: | |
44618 | $config_files | |
44619 | ||
44620 | Configuration headers: | |
44621 | $config_headers | |
44622 | ||
44623 | Configuration commands: | |
44624 | $config_commands | |
44625 | ||
44626 | Report bugs to <bug-autoconf@gnu.org>." | |
44627 | _ACEOF | |
44628 | ||
44629 | cat >>$CONFIG_STATUS <<_ACEOF | |
44630 | ac_cs_version="\\ | |
505c100d | 44631 | Squid Web Proxy config.status 3.0.PRE4-CVS |
af3004ff | 44632 | configured by $0, generated by GNU Autoconf 2.59, |
33f5f8b9 | 44633 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
44634 | ||
af3004ff | 44635 | Copyright (C) 2003 Free Software Foundation, Inc. |
33f5f8b9 | 44636 | This config.status script is free software; the Free Software Foundation |
44637 | gives unlimited permission to copy, distribute and modify it." | |
44638 | srcdir=$srcdir | |
44639 | INSTALL="$INSTALL" | |
44640 | _ACEOF | |
44641 | ||
44642 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44643 | # If no file are specified by the user, then we need to provide default | |
44644 | # value. By we need to know if files were specified by the user. | |
44645 | ac_need_defaults=: | |
44646 | while test $# != 0 | |
44647 | do | |
44648 | case $1 in | |
44649 | --*=*) | |
44650 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
44651 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
ad21602a | 44652 | ac_shift=: |
44653 | ;; | |
44654 | -*) | |
44655 | ac_option=$1 | |
44656 | ac_optarg=$2 | |
44657 | ac_shift=shift | |
33f5f8b9 | 44658 | ;; |
33f5f8b9 | 44659 | *) # This is not an option, so the user has probably given explicit |
44660 | # arguments. | |
ad21602a | 44661 | ac_option=$1 |
33f5f8b9 | 44662 | ac_need_defaults=false;; |
44663 | esac | |
44664 | ||
ad21602a | 44665 | case $ac_option in |
33f5f8b9 | 44666 | # Handling of the options. |
44667 | _ACEOF | |
8b036616 | 44668 | cat >>$CONFIG_STATUS <<\_ACEOF |
ad21602a | 44669 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
44670 | ac_cs_recheck=: ;; | |
33f5f8b9 | 44671 | --version | --vers* | -V ) |
44672 | echo "$ac_cs_version"; exit 0 ;; | |
44673 | --he | --h) | |
44674 | # Conflict between --help and --header | |
44675 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
44676 | Try \`$0 --help' for more information." >&5 | |
44677 | echo "$as_me: error: ambiguous option: $1 | |
44678 | Try \`$0 --help' for more information." >&2;} | |
44679 | { (exit 1); exit 1; }; };; | |
44680 | --help | --hel | -h ) | |
44681 | echo "$ac_cs_usage"; exit 0 ;; | |
44682 | --debug | --d* | -d ) | |
44683 | debug=: ;; | |
44684 | --file | --fil | --fi | --f ) | |
ad21602a | 44685 | $ac_shift |
44686 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
33f5f8b9 | 44687 | ac_need_defaults=false;; |
44688 | --header | --heade | --head | --hea ) | |
ad21602a | 44689 | $ac_shift |
44690 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
33f5f8b9 | 44691 | ac_need_defaults=false;; |
ad21602a | 44692 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
44693 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
44694 | ac_cs_silent=: ;; | |
33f5f8b9 | 44695 | |
44696 | # This is an error. | |
44697 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
44698 | Try \`$0 --help' for more information." >&5 | |
44699 | echo "$as_me: error: unrecognized option: $1 | |
44700 | Try \`$0 --help' for more information." >&2;} | |
44701 | { (exit 1); exit 1; }; } ;; | |
44702 | ||
44703 | *) ac_config_targets="$ac_config_targets $1" ;; | |
44704 | ||
44705 | esac | |
44706 | shift | |
44707 | done | |
44708 | ||
ad21602a | 44709 | ac_configure_extra_args= |
44710 | ||
44711 | if $ac_cs_silent; then | |
44712 | exec 6>/dev/null | |
44713 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
44714 | fi | |
44715 | ||
44716 | _ACEOF | |
44717 | cat >>$CONFIG_STATUS <<_ACEOF | |
44718 | if \$ac_cs_recheck; then | |
44719 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
44720 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
44721 | fi | |
44722 | ||
33f5f8b9 | 44723 | _ACEOF |
44724 | ||
44725 | cat >>$CONFIG_STATUS <<_ACEOF | |
44726 | # | |
44727 | # INIT-COMMANDS section. | |
44728 | # | |
44729 | ||
ad21602a | 44730 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
33f5f8b9 | 44731 | |
44732 | _ACEOF | |
44733 | ||
44734 | ||
44735 | ||
44736 | cat >>$CONFIG_STATUS <<\_ACEOF | |
44737 | for ac_config_target in $ac_config_targets | |
44738 | do | |
44739 | case "$ac_config_target" in | |
44740 | # Handling of arguments. | |
44741 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
44742 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
44743 | "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; | |
44744 | "scripts/RunCache" ) CONFIG_FILES="$CONFIG_FILES scripts/RunCache" ;; | |
44745 | "scripts/RunAccel" ) CONFIG_FILES="$CONFIG_FILES scripts/RunAccel" ;; | |
44746 | "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
44747 | "src/fs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/fs/Makefile" ;; | |
44748 | "src/repl/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/repl/Makefile" ;; | |
44749 | "src/auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/auth/Makefile" ;; | |
33f5f8b9 | 44750 | "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; |
44751 | "snmplib/Makefile" ) CONFIG_FILES="$CONFIG_FILES snmplib/Makefile" ;; | |
44752 | "icons/Makefile" ) CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;; | |
44753 | "errors/Makefile" ) CONFIG_FILES="$CONFIG_FILES errors/Makefile" ;; | |
932f2fb4 | 44754 | "test-suite/Makefile" ) CONFIG_FILES="$CONFIG_FILES test-suite/Makefile" ;; |
33f5f8b9 | 44755 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
44756 | "helpers/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/Makefile" ;; | |
44757 | "helpers/basic_auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/Makefile" ;; | |
44758 | "helpers/basic_auth/LDAP/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/LDAP/Makefile" ;; | |
44759 | "helpers/basic_auth/MSNT/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/MSNT/Makefile" ;; | |
44760 | "helpers/basic_auth/NCSA/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/NCSA/Makefile" ;; | |
44761 | "helpers/basic_auth/PAM/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/PAM/Makefile" ;; | |
44762 | "helpers/basic_auth/SMB/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/SMB/Makefile" ;; | |
ce4caa86 | 44763 | "helpers/basic_auth/mswin_sspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/mswin_sspi/Makefile" ;; |
33f5f8b9 | 44764 | "helpers/basic_auth/YP/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/YP/Makefile" ;; |
44765 | "helpers/basic_auth/getpwnam/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/getpwnam/Makefile" ;; | |
44766 | "helpers/basic_auth/multi-domain-NTLM/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/multi-domain-NTLM/Makefile" ;; | |
44767 | "helpers/basic_auth/SASL/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/SASL/Makefile" ;; | |
33f5f8b9 | 44768 | "helpers/digest_auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/digest_auth/Makefile" ;; |
44769 | "helpers/digest_auth/password/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/digest_auth/password/Makefile" ;; | |
2ea126b2 | 44770 | "helpers/digest_auth/ldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/digest_auth/ldap/Makefile" ;; |
33f5f8b9 | 44771 | "helpers/ntlm_auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/Makefile" ;; |
44772 | "helpers/ntlm_auth/fakeauth/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/fakeauth/Makefile" ;; | |
44773 | "helpers/ntlm_auth/no_check/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/no_check/Makefile" ;; | |
44774 | "helpers/ntlm_auth/SMB/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/SMB/Makefile" ;; | |
44775 | "helpers/ntlm_auth/SMB/smbval/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/SMB/smbval/Makefile" ;; | |
ce4caa86 | 44776 | "helpers/ntlm_auth/mswin_sspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/mswin_sspi/Makefile" ;; |
44777 | "helpers/negotiate_auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/negotiate_auth/Makefile" ;; | |
44778 | "helpers/negotiate_auth/mswin_sspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/negotiate_auth/mswin_sspi/Makefile" ;; | |
33f5f8b9 | 44779 | "helpers/external_acl/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/external_acl/Makefile" ;; |
44780 | "helpers/external_acl/ip_user/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/external_acl/ip_user/Makefile" ;; | |
44781 | "helpers/external_acl/ldap_group/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/external_acl/ldap_group/Makefile" ;; | |
d135c6f5 | 44782 | "helpers/external_acl/session/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/external_acl/session/Makefile" ;; |
33f5f8b9 | 44783 | "helpers/external_acl/unix_group/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/external_acl/unix_group/Makefile" ;; |
44784 | "helpers/external_acl/wbinfo_group/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/external_acl/wbinfo_group/Makefile" ;; | |
a512dcc5 | 44785 | "helpers/external_acl/mswin_lm_group/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/external_acl/mswin_lm_group/Makefile" ;; |
8ab86a75 | 44786 | "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
ad21602a | 44787 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
33f5f8b9 | 44788 | "include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/autoconf.h" ;; |
44789 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
44790 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
44791 | { (exit 1); exit 1; }; };; | |
44792 | esac | |
44793 | done | |
44794 | ||
44795 | # If the user did not use the arguments to specify the items to instantiate, | |
44796 | # then the envvar interface is used. Set only those that are not. | |
44797 | # We use the long form for the default assignment because of an extremely | |
44798 | # bizarre bug on SunOS 4.1.3. | |
44799 | if $ac_need_defaults; then | |
44800 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
44801 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
44802 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
44803 | fi | |
44804 | ||
ad21602a | 44805 | # Have a temporary directory for convenience. Make it in the build tree |
44806 | # simply because there is no reason to put it here, and in addition, | |
44807 | # creating and moving files from /tmp can sometimes cause problems. | |
33f5f8b9 | 44808 | # Create a temporary directory, and hook for its removal unless debugging. |
44809 | $debug || | |
44810 | { | |
44811 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
44812 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
44813 | } | |
44814 | ||
44815 | # Create a (secure) tmp directory for tmp files. | |
ad21602a | 44816 | |
33f5f8b9 | 44817 | { |
ad21602a | 44818 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
33f5f8b9 | 44819 | test -n "$tmp" && test -d "$tmp" |
44820 | } || | |
44821 | { | |
ad21602a | 44822 | tmp=./confstat$$-$RANDOM |
33f5f8b9 | 44823 | (umask 077 && mkdir $tmp) |
44824 | } || | |
44825 | { | |
ad21602a | 44826 | echo "$me: cannot create a temporary directory in ." >&2 |
33f5f8b9 | 44827 | { (exit 1); exit 1; } |
44828 | } | |
44829 | ||
44830 | _ACEOF | |
44831 | ||
44832 | cat >>$CONFIG_STATUS <<_ACEOF | |
44833 | ||
44834 | # | |
44835 | # CONFIG_FILES section. | |
44836 | # | |
44837 | ||
44838 | # No need to generate the scripts if there are no CONFIG_FILES. | |
44839 | # This happens for instance when ./config.status config.h | |
44840 | if test -n "\$CONFIG_FILES"; then | |
44841 | # Protect against being on the right side of a sed subst in config.status. | |
44842 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
44843 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
44844 | s,@SHELL@,$SHELL,;t t | |
44845 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
44846 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
44847 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
44848 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
44849 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
44850 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
44851 | s,@exec_prefix@,$exec_prefix,;t t | |
44852 | s,@prefix@,$prefix,;t t | |
44853 | s,@program_transform_name@,$program_transform_name,;t t | |
44854 | s,@bindir@,$bindir,;t t | |
44855 | s,@sbindir@,$sbindir,;t t | |
44856 | s,@libexecdir@,$libexecdir,;t t | |
44857 | s,@datadir@,$datadir,;t t | |
44858 | s,@sysconfdir@,$sysconfdir,;t t | |
44859 | s,@sharedstatedir@,$sharedstatedir,;t t | |
44860 | s,@localstatedir@,$localstatedir,;t t | |
44861 | s,@libdir@,$libdir,;t t | |
44862 | s,@includedir@,$includedir,;t t | |
44863 | s,@oldincludedir@,$oldincludedir,;t t | |
44864 | s,@infodir@,$infodir,;t t | |
44865 | s,@mandir@,$mandir,;t t | |
44866 | s,@build_alias@,$build_alias,;t t | |
44867 | s,@host_alias@,$host_alias,;t t | |
44868 | s,@target_alias@,$target_alias,;t t | |
44869 | s,@DEFS@,$DEFS,;t t | |
44870 | s,@ECHO_C@,$ECHO_C,;t t | |
44871 | s,@ECHO_N@,$ECHO_N,;t t | |
44872 | s,@ECHO_T@,$ECHO_T,;t t | |
44873 | s,@LIBS@,$LIBS,;t t | |
44874 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
44875 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
44876 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
ad21602a | 44877 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
33f5f8b9 | 44878 | s,@PACKAGE@,$PACKAGE,;t t |
44879 | s,@VERSION@,$VERSION,;t t | |
33f5f8b9 | 44880 | s,@ACLOCAL@,$ACLOCAL,;t t |
44881 | s,@AUTOCONF@,$AUTOCONF,;t t | |
44882 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
44883 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
44884 | s,@MAKEINFO@,$MAKEINFO,;t t | |
33f5f8b9 | 44885 | s,@install_sh@,$install_sh,;t t |
ad21602a | 44886 | s,@STRIP@,$STRIP,;t t |
44887 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
33f5f8b9 | 44888 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
07d1f987 | 44889 | s,@mkdir_p@,$mkdir_p,;t t |
33f5f8b9 | 44890 | s,@AWK@,$AWK,;t t |
44891 | s,@SET_MAKE@,$SET_MAKE,;t t | |
ad21602a | 44892 | s,@am__leading_dot@,$am__leading_dot,;t t |
07d1f987 | 44893 | s,@AMTAR@,$AMTAR,;t t |
44894 | s,@am__tar@,$am__tar,;t t | |
44895 | s,@am__untar@,$am__untar,;t t | |
33f5f8b9 | 44896 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
44897 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
44898 | s,@MAINT@,$MAINT,;t t | |
44899 | s,@CC@,$CC,;t t | |
44900 | s,@CFLAGS@,$CFLAGS,;t t | |
44901 | s,@LDFLAGS@,$LDFLAGS,;t t | |
44902 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
44903 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
ad21602a | 44904 | s,@EXEEXT@,$EXEEXT,;t t |
44905 | s,@OBJEXT@,$OBJEXT,;t t | |
44906 | s,@DEPDIR@,$DEPDIR,;t t | |
33f5f8b9 | 44907 | s,@am__include@,$am__include,;t t |
44908 | s,@am__quote@,$am__quote,;t t | |
ad21602a | 44909 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
44910 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
44911 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
33f5f8b9 | 44912 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
ad21602a | 44913 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t |
44914 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
33f5f8b9 | 44915 | s,@CXX@,$CXX,;t t |
44916 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
44917 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
44918 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t | |
ad21602a | 44919 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t |
44920 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t | |
33f5f8b9 | 44921 | s,@build@,$build,;t t |
44922 | s,@build_cpu@,$build_cpu,;t t | |
44923 | s,@build_vendor@,$build_vendor,;t t | |
44924 | s,@build_os@,$build_os,;t t | |
44925 | s,@host@,$host,;t t | |
44926 | s,@host_cpu@,$host_cpu,;t t | |
44927 | s,@host_vendor@,$host_vendor,;t t | |
44928 | s,@host_os@,$host_os,;t t | |
a33e1d91 | 44929 | s,@EGREP@,$EGREP,;t t |
44930 | s,@LN_S@,$LN_S,;t t | |
44931 | s,@ECHO@,$ECHO,;t t | |
44932 | s,@AR@,$AR,;t t | |
44933 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
44934 | s,@RANLIB@,$RANLIB,;t t | |
44935 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
44936 | s,@CPP@,$CPP,;t t | |
44937 | s,@CXXCPP@,$CXXCPP,;t t | |
44938 | s,@F77@,$F77,;t t | |
44939 | s,@FFLAGS@,$FFLAGS,;t t | |
44940 | s,@ac_ct_F77@,$ac_ct_F77,;t t | |
44941 | s,@LIBTOOL@,$LIBTOOL,;t t | |
44942 | s,@LIBADD_DL@,$LIBADD_DL,;t t | |
33f5f8b9 | 44943 | s,@CGIEXT@,$CGIEXT,;t t |
44944 | s,@ENABLE_WIN32SPECIFIC_TRUE@,$ENABLE_WIN32SPECIFIC_TRUE,;t t | |
44945 | s,@ENABLE_WIN32SPECIFIC_FALSE@,$ENABLE_WIN32SPECIFIC_FALSE,;t t | |
07d1f987 | 44946 | s,@WIN32_PSAPI@,$WIN32_PSAPI,;t t |
bfd36867 | 44947 | s,@USE_IPC_WIN32_TRUE@,$USE_IPC_WIN32_TRUE,;t t |
44948 | s,@USE_IPC_WIN32_FALSE@,$USE_IPC_WIN32_FALSE,;t t | |
ced2e74b | 44949 | s,@MINGW_LIBS@,$MINGW_LIBS,;t t |
e16674da | 44950 | s,@CACHE_HTTP_PORT@,$CACHE_HTTP_PORT,;t t |
44951 | s,@CACHE_ICP_PORT@,$CACHE_ICP_PORT,;t t | |
fa3c7377 | 44952 | s,@SQUID_CFLAGS@,$SQUID_CFLAGS,;t t |
44953 | s,@SQUID_CXXFLAGS@,$SQUID_CXXFLAGS,;t t | |
33f5f8b9 | 44954 | s,@LIBDLMALLOC@,$LIBDLMALLOC,;t t |
44955 | s,@LIB_MALLOC@,$LIB_MALLOC,;t t | |
44956 | s,@STORE_OBJS@,$STORE_OBJS,;t t | |
44957 | s,@STORE_LIBS@,$STORE_LIBS,;t t | |
70fd1c3d | 44958 | s,@STORE_LINKOBJS@,$STORE_LINKOBJS,;t t |
6a2814f7 | 44959 | s,@STORE_TESTS@,$STORE_TESTS,;t t |
6e6cb8f0 | 44960 | s,@DISK_LIBS@,$DISK_LIBS,;t t |
44961 | s,@DISK_PROGRAMS@,$DISK_PROGRAMS,;t t | |
44962 | s,@DISK_LINKOBJS@,$DISK_LINKOBJS,;t t | |
c7cee0a7 | 44963 | s,@USE_AIOPS_WIN32_TRUE@,$USE_AIOPS_WIN32_TRUE,;t t |
44964 | s,@USE_AIOPS_WIN32_FALSE@,$USE_AIOPS_WIN32_FALSE,;t t | |
c2158752 | 44965 | s,@USE_AIO_WIN32_TRUE@,$USE_AIO_WIN32_TRUE,;t t |
44966 | s,@USE_AIO_WIN32_FALSE@,$USE_AIO_WIN32_FALSE,;t t | |
33f5f8b9 | 44967 | s,@REPL_POLICIES@,$REPL_POLICIES,;t t |
44968 | s,@REPL_OBJS@,$REPL_OBJS,;t t | |
44969 | s,@REPL_LIBS@,$REPL_LIBS,;t t | |
44970 | s,@ENABLE_PINGER_TRUE@,$ENABLE_PINGER_TRUE,;t t | |
44971 | s,@ENABLE_PINGER_FALSE@,$ENABLE_PINGER_FALSE,;t t | |
44972 | s,@USE_DELAY_POOLS_TRUE@,$USE_DELAY_POOLS_TRUE,;t t | |
44973 | s,@USE_DELAY_POOLS_FALSE@,$USE_DELAY_POOLS_FALSE,;t t | |
12a5c9fd | 44974 | s,@USE_ESI_TRUE@,$USE_ESI_TRUE,;t t |
44975 | s,@USE_ESI_FALSE@,$USE_ESI_FALSE,;t t | |
2f2d507f | 44976 | s,@USE_ICAP_CLIENT_TRUE@,$USE_ICAP_CLIENT_TRUE,;t t |
44977 | s,@USE_ICAP_CLIENT_FALSE@,$USE_ICAP_CLIENT_FALSE,;t t | |
958bc9ca | 44978 | s,@ICAP_LIBS@,$ICAP_LIBS,;t t |
33f5f8b9 | 44979 | s,@USE_SNMP_TRUE@,$USE_SNMP_TRUE,;t t |
44980 | s,@USE_SNMP_FALSE@,$USE_SNMP_FALSE,;t t | |
44981 | s,@SNMPLIB@,$SNMPLIB,;t t | |
44982 | s,@makesnmplib@,$makesnmplib,;t t | |
b0dd28ba | 44983 | s,@ENABLE_ARP_ACL_TRUE@,$ENABLE_ARP_ACL_TRUE,;t t |
44984 | s,@ENABLE_ARP_ACL_FALSE@,$ENABLE_ARP_ACL_FALSE,;t t | |
33f5f8b9 | 44985 | s,@ENABLE_HTCP_TRUE@,$ENABLE_HTCP_TRUE,;t t |
44986 | s,@ENABLE_HTCP_FALSE@,$ENABLE_HTCP_FALSE,;t t | |
44987 | s,@ENABLE_SSL_TRUE@,$ENABLE_SSL_TRUE,;t t | |
44988 | s,@ENABLE_SSL_FALSE@,$ENABLE_SSL_FALSE,;t t | |
44989 | s,@NEED_OWN_MD5_TRUE@,$NEED_OWN_MD5_TRUE,;t t | |
44990 | s,@NEED_OWN_MD5_FALSE@,$NEED_OWN_MD5_FALSE,;t t | |
44991 | s,@SSLLIB@,$SSLLIB,;t t | |
44992 | s,@ERR_DEFAULT_LANGUAGE@,$ERR_DEFAULT_LANGUAGE,;t t | |
44993 | s,@ERR_LANGUAGES@,$ERR_LANGUAGES,;t t | |
44994 | s,@MAKE_LEAKFINDER_TRUE@,$MAKE_LEAKFINDER_TRUE,;t t | |
44995 | s,@MAKE_LEAKFINDER_FALSE@,$MAKE_LEAKFINDER_FALSE,;t t | |
8000a965 | 44996 | s,@ENABLE_IDENT_TRUE@,$ENABLE_IDENT_TRUE,;t t |
44997 | s,@ENABLE_IDENT_FALSE@,$ENABLE_IDENT_FALSE,;t t | |
33f5f8b9 | 44998 | s,@USE_DNSSERVER_TRUE@,$USE_DNSSERVER_TRUE,;t t |
44999 | s,@USE_DNSSERVER_FALSE@,$USE_DNSSERVER_FALSE,;t t | |
45000 | s,@OPT_DEFAULT_HOSTS@,$OPT_DEFAULT_HOSTS,;t t | |
45001 | s,@AUTH_MODULES@,$AUTH_MODULES,;t t | |
33f5f8b9 | 45002 | s,@AUTH_LIBS@,$AUTH_LIBS,;t t |
a33e1d91 | 45003 | s,@AUTH_LINKOBJS@,$AUTH_LINKOBJS,;t t |
45004 | s,@AUTH_OBJS@,$AUTH_OBJS,;t t | |
33f5f8b9 | 45005 | s,@BASIC_AUTH_HELPERS@,$BASIC_AUTH_HELPERS,;t t |
45006 | s,@NTLM_AUTH_HELPERS@,$NTLM_AUTH_HELPERS,;t t | |
ce4caa86 | 45007 | s,@NEGOTIATE_AUTH_HELPERS@,$NEGOTIATE_AUTH_HELPERS,;t t |
33f5f8b9 | 45008 | s,@DIGEST_AUTH_HELPERS@,$DIGEST_AUTH_HELPERS,;t t |
45009 | s,@EXTERNAL_ACL_HELPERS@,$EXTERNAL_ACL_HELPERS,;t t | |
a33e1d91 | 45010 | s,@LIBSASL@,$LIBSASL,;t t |
33f5f8b9 | 45011 | s,@ENABLE_UNLINKD_TRUE@,$ENABLE_UNLINKD_TRUE,;t t |
45012 | s,@ENABLE_UNLINKD_FALSE@,$ENABLE_UNLINKD_FALSE,;t t | |
45013 | s,@ENABLE_XPROF_STATS_TRUE@,$ENABLE_XPROF_STATS_TRUE,;t t | |
45014 | s,@ENABLE_XPROF_STATS_FALSE@,$ENABLE_XPROF_STATS_FALSE,;t t | |
8b5e106b | 45015 | s,@CPPUNITCONFIG@,$CPPUNITCONFIG,;t t |
45016 | s,@SQUID_CPPUNIT_LIBS@,$SQUID_CPPUNIT_LIBS,;t t | |
a33e1d91 | 45017 | s,@SQUID_CPPUNIT_LA@,$SQUID_CPPUNIT_LA,;t t |
45018 | s,@SQUID_CPPUNIT_INC@,$SQUID_CPPUNIT_INC,;t t | |
45019 | s,@SQUID_CPPUNIT_DIR@,$SQUID_CPPUNIT_DIR,;t t | |
33f5f8b9 | 45020 | s,@SH@,$SH,;t t |
45021 | s,@FALSE@,$FALSE,;t t | |
45022 | s,@TRUE@,$TRUE,;t t | |
45023 | s,@RM@,$RM,;t t | |
45024 | s,@MV@,$MV,;t t | |
45025 | s,@MKDIR@,$MKDIR,;t t | |
45026 | s,@LN@,$LN,;t t | |
45027 | s,@PERL@,$PERL,;t t | |
33f5f8b9 | 45028 | s,@AR_R@,$AR_R,;t t |
45029 | s,@ALLOCA@,$ALLOCA,;t t | |
45030 | s,@CRYPTLIB@,$CRYPTLIB,;t t | |
30f36b47 | 45031 | s,@LIB_LDAP@,$LIB_LDAP,;t t |
45032 | s,@LIB_LBER@,$LIB_LBER,;t t | |
20d16514 | 45033 | s,@LIB_DB@,$LIB_DB,;t t |
980ac155 | 45034 | s,@EPOLL_LIBS@,$EPOLL_LIBS,;t t |
33f5f8b9 | 45035 | s,@NEED_OWN_SNPRINTF_TRUE@,$NEED_OWN_SNPRINTF_TRUE,;t t |
45036 | s,@NEED_OWN_SNPRINTF_FALSE@,$NEED_OWN_SNPRINTF_FALSE,;t t | |
afbb1069 | 45037 | s,@NEED_OWN_STRSEP_TRUE@,$NEED_OWN_STRSEP_TRUE,;t t |
45038 | s,@NEED_OWN_STRSEP_FALSE@,$NEED_OWN_STRSEP_FALSE,;t t | |
33f5f8b9 | 45039 | s,@REGEXLIB@,$REGEXLIB,;t t |
45040 | s,@LIBREGEX@,$LIBREGEX,;t t | |
45041 | s,@LIBOBJS@,$LIBOBJS,;t t | |
45042 | s,@XTRA_OBJS@,$XTRA_OBJS,;t t | |
45043 | s,@XTRA_LIBS@,$XTRA_LIBS,;t t | |
12a5c9fd | 45044 | s,@subdirs@,$subdirs,;t t |
ad21602a | 45045 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
33f5f8b9 | 45046 | CEOF |
45047 | ||
45048 | _ACEOF | |
45049 | ||
45050 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45051 | # Split the substitutions into bite-sized pieces for seds with | |
45052 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
45053 | ac_max_sed_lines=48 | |
45054 | ac_sed_frag=1 # Number of current file. | |
45055 | ac_beg=1 # First line for current file. | |
45056 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
45057 | ac_more_lines=: | |
45058 | ac_sed_cmds= | |
45059 | while $ac_more_lines; do | |
45060 | if test $ac_beg -gt 1; then | |
45061 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
45062 | else | |
45063 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
45064 | fi | |
45065 | if test ! -s $tmp/subs.frag; then | |
45066 | ac_more_lines=false | |
b1e77ec1 | 45067 | else |
33f5f8b9 | 45068 | # The purpose of the label and of the branching condition is to |
45069 | # speed up the sed processing (if there are no `@' at all, there | |
45070 | # is no need to browse any of the substitutions). | |
45071 | # These are the two extra sed commands mentioned above. | |
45072 | (echo ':t | |
45073 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
45074 | if test -z "$ac_sed_cmds"; then | |
af3004ff | 45075 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
33f5f8b9 | 45076 | else |
af3004ff | 45077 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
33f5f8b9 | 45078 | fi |
45079 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
45080 | ac_beg=$ac_end | |
45081 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
b1e77ec1 | 45082 | fi |
33f5f8b9 | 45083 | done |
45084 | if test -z "$ac_sed_cmds"; then | |
45085 | ac_sed_cmds=cat | |
b1e77ec1 | 45086 | fi |
33f5f8b9 | 45087 | fi # test -n "$CONFIG_FILES" |
45088 | ||
45089 | _ACEOF | |
45090 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45091 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
133b6d90 | 45092 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
33f5f8b9 | 45093 | case $ac_file in |
45094 | - | *:- | *:-:* ) # input from stdin | |
af3004ff | 45095 | cat >$tmp/stdin |
45096 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
45097 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
33f5f8b9 | 45098 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
af3004ff | 45099 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
33f5f8b9 | 45100 | * ) ac_file_in=$ac_file.in ;; |
45101 | esac | |
45102 | ||
45103 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
45104 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
45105 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
af3004ff | 45106 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
45107 | X"$ac_file" : 'X\(//\)$' \| \ | |
45108 | X"$ac_file" : 'X\(/\)' \| \ | |
45109 | . : '\(.\)' 2>/dev/null || | |
33f5f8b9 | 45110 | echo X"$ac_file" | |
45111 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45112 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45113 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45114 | /^X\(\/\).*/{ s//\1/; q; } | |
45115 | s/.*/./; q'` | |
ad21602a | 45116 | { if $as_mkdir_p; then |
45117 | mkdir -p "$ac_dir" | |
45118 | else | |
45119 | as_dir="$ac_dir" | |
45120 | as_dirs= | |
45121 | while test ! -d "$as_dir"; do | |
45122 | as_dirs="$as_dir $as_dirs" | |
45123 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
45124 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
af3004ff | 45125 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
45126 | X"$as_dir" : 'X\(//\)$' \| \ | |
45127 | X"$as_dir" : 'X\(/\)' \| \ | |
45128 | . : '\(.\)' 2>/dev/null || | |
ad21602a | 45129 | echo X"$as_dir" | |
45130 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45131 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45132 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45133 | /^X\(\/\).*/{ s//\1/; q; } | |
45134 | s/.*/./; q'` | |
45135 | done | |
45136 | test ! -n "$as_dirs" || mkdir $as_dirs | |
45137 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
45138 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
45139 | { (exit 1); exit 1; }; }; } | |
090089c4 | 45140 | |
33f5f8b9 | 45141 | ac_builddir=. |
090089c4 | 45142 | |
33f5f8b9 | 45143 | if test "$ac_dir" != .; then |
45144 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
45145 | # A "../" for each directory in $ac_dir_suffix. | |
45146 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
45147 | else | |
45148 | ac_dir_suffix= ac_top_builddir= | |
45149 | fi | |
090089c4 | 45150 | |
33f5f8b9 | 45151 | case $srcdir in |
45152 | .) # No --srcdir option. We are building in place. | |
45153 | ac_srcdir=. | |
45154 | if test -z "$ac_top_builddir"; then | |
45155 | ac_top_srcdir=. | |
45156 | else | |
45157 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
45158 | fi ;; | |
45159 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
45160 | ac_srcdir=$srcdir$ac_dir_suffix; | |
45161 | ac_top_srcdir=$srcdir ;; | |
090089c4 | 45162 | *) # Relative path. |
33f5f8b9 | 45163 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
45164 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
45165 | esac | |
af3004ff | 45166 | |
45167 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
45168 | # the directories may not exist. | |
45169 | case `pwd` in | |
45170 | .) ac_abs_builddir="$ac_dir";; | |
45171 | *) | |
45172 | case "$ac_dir" in | |
45173 | .) ac_abs_builddir=`pwd`;; | |
45174 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
45175 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
45176 | esac;; | |
45177 | esac | |
45178 | case $ac_abs_builddir in | |
45179 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
45180 | *) | |
45181 | case ${ac_top_builddir}. in | |
45182 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
45183 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
45184 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
45185 | esac;; | |
45186 | esac | |
45187 | case $ac_abs_builddir in | |
45188 | .) ac_abs_srcdir=$ac_srcdir;; | |
45189 | *) | |
45190 | case $ac_srcdir in | |
45191 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
45192 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
45193 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
45194 | esac;; | |
45195 | esac | |
45196 | case $ac_abs_builddir in | |
45197 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
45198 | *) | |
45199 | case $ac_top_srcdir in | |
45200 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
45201 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
45202 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
45203 | esac;; | |
45204 | esac | |
133b6d90 | 45205 | |
b65c7b0d | 45206 | |
33f5f8b9 | 45207 | case $INSTALL in |
45208 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
45209 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
3f961930 | 45210 | esac |
b65c7b0d | 45211 | |
6263d81f | 45212 | if test x"$ac_file" != x-; then |
45213 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
45214 | echo "$as_me: creating $ac_file" >&6;} | |
45215 | rm -f "$ac_file" | |
45216 | fi | |
33f5f8b9 | 45217 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
45218 | # use $as_me), people would be surprised to read: | |
45219 | # /* config.h. Generated by config.status. */ | |
45220 | if test x"$ac_file" = x-; then | |
45221 | configure_input= | |
45222 | else | |
45223 | configure_input="$ac_file. " | |
45224 | fi | |
45225 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
af3004ff | 45226 | sed 's,.*/,,'` by configure." |
33f5f8b9 | 45227 | |
45228 | # First look for the input files in the build tree, otherwise in the | |
45229 | # src tree. | |
45230 | ac_file_inputs=`IFS=: | |
45231 | for f in $ac_file_in; do | |
45232 | case $f in | |
45233 | -) echo $tmp/stdin ;; | |
45234 | [\\/$]*) | |
af3004ff | 45235 | # Absolute (can't be DOS-style, as IFS=:) |
45236 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
33f5f8b9 | 45237 | echo "$as_me: error: cannot find input file: $f" >&2;} |
45238 | { (exit 1); exit 1; }; } | |
af3004ff | 45239 | echo "$f";; |
33f5f8b9 | 45240 | *) # Relative |
af3004ff | 45241 | if test -f "$f"; then |
45242 | # Build tree | |
45243 | echo "$f" | |
45244 | elif test -f "$srcdir/$f"; then | |
45245 | # Source tree | |
45246 | echo "$srcdir/$f" | |
45247 | else | |
45248 | # /dev/null tree | |
45249 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
33f5f8b9 | 45250 | echo "$as_me: error: cannot find input file: $f" >&2;} |
45251 | { (exit 1); exit 1; }; } | |
af3004ff | 45252 | fi;; |
33f5f8b9 | 45253 | esac |
45254 | done` || { (exit 1); exit 1; } | |
45255 | _ACEOF | |
45256 | cat >>$CONFIG_STATUS <<_ACEOF | |
45257 | sed "$ac_vpsub | |
45258 | $extrasub | |
45259 | _ACEOF | |
45260 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45261 | :t | |
45262 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
45263 | s,@configure_input@,$configure_input,;t t | |
45264 | s,@srcdir@,$ac_srcdir,;t t | |
45265 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
45266 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
45267 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
45268 | s,@builddir@,$ac_builddir,;t t | |
45269 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
45270 | s,@top_builddir@,$ac_top_builddir,;t t | |
45271 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
45272 | s,@INSTALL@,$ac_INSTALL,;t t | |
45273 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
45274 | rm -f $tmp/stdin | |
45275 | if test x"$ac_file" != x-; then | |
45276 | mv $tmp/out $ac_file | |
45277 | else | |
45278 | cat $tmp/out | |
45279 | rm -f $tmp/out | |
45280 | fi | |
45281 | ||
45282 | done | |
45283 | _ACEOF | |
45284 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45285 | ||
45286 | # | |
45287 | # CONFIG_HEADER section. | |
45288 | # | |
090089c4 | 45289 | |
45290 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
45291 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
45292 | # | |
45293 | # ac_d sets the value in "#define NAME VALUE" lines. | |
af3004ff | 45294 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
45295 | ac_dB='[ ].*$,\1#\2' | |
33f5f8b9 | 45296 | ac_dC=' ' |
45297 | ac_dD=',;t' | |
45298 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
af3004ff | 45299 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
33f5f8b9 | 45300 | ac_uB='$,\1#\2define\3' |
090089c4 | 45301 | ac_uC=' ' |
33f5f8b9 | 45302 | ac_uD=',;t' |
45303 | ||
45304 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
133b6d90 | 45305 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
33f5f8b9 | 45306 | case $ac_file in |
45307 | - | *:- | *:-:* ) # input from stdin | |
af3004ff | 45308 | cat >$tmp/stdin |
45309 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
45310 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
33f5f8b9 | 45311 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
af3004ff | 45312 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
33f5f8b9 | 45313 | * ) ac_file_in=$ac_file.in ;; |
090089c4 | 45314 | esac |
45315 | ||
33f5f8b9 | 45316 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
45317 | echo "$as_me: creating $ac_file" >&6;} | |
45318 | ||
45319 | # First look for the input files in the build tree, otherwise in the | |
45320 | # src tree. | |
45321 | ac_file_inputs=`IFS=: | |
45322 | for f in $ac_file_in; do | |
45323 | case $f in | |
45324 | -) echo $tmp/stdin ;; | |
45325 | [\\/$]*) | |
af3004ff | 45326 | # Absolute (can't be DOS-style, as IFS=:) |
45327 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
33f5f8b9 | 45328 | echo "$as_me: error: cannot find input file: $f" >&2;} |
45329 | { (exit 1); exit 1; }; } | |
af3004ff | 45330 | # Do quote $f, to prevent DOS paths from being IFS'd. |
45331 | echo "$f";; | |
33f5f8b9 | 45332 | *) # Relative |
af3004ff | 45333 | if test -f "$f"; then |
45334 | # Build tree | |
45335 | echo "$f" | |
45336 | elif test -f "$srcdir/$f"; then | |
45337 | # Source tree | |
45338 | echo "$srcdir/$f" | |
45339 | else | |
45340 | # /dev/null tree | |
45341 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
33f5f8b9 | 45342 | echo "$as_me: error: cannot find input file: $f" >&2;} |
45343 | { (exit 1); exit 1; }; } | |
af3004ff | 45344 | fi;; |
33f5f8b9 | 45345 | esac |
45346 | done` || { (exit 1); exit 1; } | |
45347 | # Remove the trailing spaces. | |
af3004ff | 45348 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
33f5f8b9 | 45349 | |
45350 | _ACEOF | |
45351 | ||
45352 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
45353 | # `conftest.undefs', that substitutes the proper values into | |
45354 | # config.h.in to produce config.h. The first handles `#define' | |
45355 | # templates, and the second `#undef' templates. | |
45356 | # And first: Protect against being on the right side of a sed subst in | |
45357 | # config.status. Protect against being in an unquoted here document | |
45358 | # in config.status. | |
45359 | rm -f conftest.defines conftest.undefs | |
45360 | # Using a here document instead of a string reduces the quoting nightmare. | |
45361 | # Putting comments in sed scripts is not portable. | |
45362 | # | |
45363 | # `end' is used to avoid that the second main sed command (meant for | |
45364 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
45365 | # See the Autoconf documentation for `clear'. | |
45366 | cat >confdef2sed.sed <<\_ACEOF | |
45367 | s/[\\&,]/\\&/g | |
45368 | s,[\\$`],\\&,g | |
45369 | t clear | |
45370 | : clear | |
af3004ff | 45371 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
33f5f8b9 | 45372 | t end |
af3004ff | 45373 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
33f5f8b9 | 45374 | : end |
45375 | _ACEOF | |
45376 | # If some macros were called several times there might be several times | |
45377 | # the same #defines, which is useless. Nevertheless, we may not want to | |
45378 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
45379 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
45380 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
45381 | rm -f confdef2sed.sed | |
090089c4 | 45382 | |
45383 | # This sed command replaces #undef with comments. This is necessary, for | |
45384 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
45385 | # on some systems where configure will not decide to define it. | |
33f5f8b9 | 45386 | cat >>conftest.undefs <<\_ACEOF |
af3004ff | 45387 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
33f5f8b9 | 45388 | _ACEOF |
45389 | ||
45390 | # Break up conftest.defines because some shells have a limit on the size | |
45391 | # of here documents, and old seds have small limits too (100 cmds). | |
45392 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
af3004ff | 45393 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
33f5f8b9 | 45394 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
45395 | echo ' :' >>$CONFIG_STATUS | |
45396 | rm -f conftest.tail | |
45397 | while grep . conftest.defines >/dev/null | |
45398 | do | |
45399 | # Write a limited-size here document to $tmp/defines.sed. | |
45400 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
45401 | # Speed up: don't consider the non `#define' lines. | |
af3004ff | 45402 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
33f5f8b9 | 45403 | # Work around the forget-to-reset-the-flag bug. |
45404 | echo 't clr' >>$CONFIG_STATUS | |
45405 | echo ': clr' >>$CONFIG_STATUS | |
45406 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
45407 | echo 'CEOF | |
45408 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
45409 | rm -f $tmp/in | |
45410 | mv $tmp/out $tmp/in | |
45411 | ' >>$CONFIG_STATUS | |
45412 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
45413 | rm -f conftest.defines | |
45414 | mv conftest.tail conftest.defines | |
45415 | done | |
45416 | rm -f conftest.defines | |
ad21602a | 45417 | echo ' fi # grep' >>$CONFIG_STATUS |
33f5f8b9 | 45418 | echo >>$CONFIG_STATUS |
090089c4 | 45419 | |
33f5f8b9 | 45420 | # Break up conftest.undefs because some shells have a limit on the size |
45421 | # of here documents, and old seds have small limits too (100 cmds). | |
45422 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
090089c4 | 45423 | rm -f conftest.tail |
33f5f8b9 | 45424 | while grep . conftest.undefs >/dev/null |
090089c4 | 45425 | do |
33f5f8b9 | 45426 | # Write a limited-size here document to $tmp/undefs.sed. |
45427 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
45428 | # Speed up: don't consider the non `#undef' | |
af3004ff | 45429 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
33f5f8b9 | 45430 | # Work around the forget-to-reset-the-flag bug. |
45431 | echo 't clr' >>$CONFIG_STATUS | |
45432 | echo ': clr' >>$CONFIG_STATUS | |
45433 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
090089c4 | 45434 | echo 'CEOF |
33f5f8b9 | 45435 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
45436 | rm -f $tmp/in | |
45437 | mv $tmp/out $tmp/in | |
45438 | ' >>$CONFIG_STATUS | |
45439 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
45440 | rm -f conftest.undefs | |
45441 | mv conftest.tail conftest.undefs | |
090089c4 | 45442 | done |
33f5f8b9 | 45443 | rm -f conftest.undefs |
45444 | ||
45445 | cat >>$CONFIG_STATUS <<\_ACEOF | |
45446 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
45447 | # use $as_me), people would be surprised to read: | |
45448 | # /* config.h. Generated by config.status. */ | |
45449 | if test x"$ac_file" = x-; then | |
45450 | echo "/* Generated by configure. */" >$tmp/config.h | |
090089c4 | 45451 | else |
33f5f8b9 | 45452 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
b65c7b0d | 45453 | fi |
33f5f8b9 | 45454 | cat $tmp/in >>$tmp/config.h |
45455 | rm -f $tmp/in | |
45456 | if test x"$ac_file" != x-; then | |
ad21602a | 45457 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
33f5f8b9 | 45458 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
45459 | echo "$as_me: $ac_file is unchanged" >&6;} | |
45460 | else | |
45461 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
45462 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
af3004ff | 45463 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
45464 | X"$ac_file" : 'X\(//\)$' \| \ | |
45465 | X"$ac_file" : 'X\(/\)' \| \ | |
45466 | . : '\(.\)' 2>/dev/null || | |
33f5f8b9 | 45467 | echo X"$ac_file" | |
45468 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45469 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45470 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45471 | /^X\(\/\).*/{ s//\1/; q; } | |
45472 | s/.*/./; q'` | |
ad21602a | 45473 | { if $as_mkdir_p; then |
45474 | mkdir -p "$ac_dir" | |
45475 | else | |
45476 | as_dir="$ac_dir" | |
45477 | as_dirs= | |
45478 | while test ! -d "$as_dir"; do | |
45479 | as_dirs="$as_dir $as_dirs" | |
45480 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
45481 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
af3004ff | 45482 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
45483 | X"$as_dir" : 'X\(//\)$' \| \ | |
45484 | X"$as_dir" : 'X\(/\)' \| \ | |
45485 | . : '\(.\)' 2>/dev/null || | |
ad21602a | 45486 | echo X"$as_dir" | |
45487 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45488 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45489 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45490 | /^X\(\/\).*/{ s//\1/; q; } | |
45491 | s/.*/./; q'` | |
45492 | done | |
45493 | test ! -n "$as_dirs" || mkdir $as_dirs | |
45494 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
45495 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
45496 | { (exit 1); exit 1; }; }; } | |
3f961930 | 45497 | |
33f5f8b9 | 45498 | rm -f $ac_file |
45499 | mv $tmp/config.h $ac_file | |
45500 | fi | |
45501 | else | |
45502 | cat $tmp/config.h | |
45503 | rm -f $tmp/config.h | |
45504 | fi | |
ad21602a | 45505 | # Compute $ac_file's index in $config_headers. |
45506 | _am_stamp_count=1 | |
45507 | for _am_header in $config_headers :; do | |
45508 | case $_am_header in | |
45509 | $ac_file | $ac_file:* ) | |
45510 | break ;; | |
45511 | * ) | |
45512 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
33f5f8b9 | 45513 | esac |
45514 | done | |
ad21602a | 45515 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || |
45516 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
af3004ff | 45517 | X$ac_file : 'X\(//\)[^/]' \| \ |
45518 | X$ac_file : 'X\(//\)$' \| \ | |
45519 | X$ac_file : 'X\(/\)' \| \ | |
45520 | . : '\(.\)' 2>/dev/null || | |
ad21602a | 45521 | echo X$ac_file | |
45522 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45523 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45524 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45525 | /^X\(\/\).*/{ s//\1/; q; } | |
45526 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
45527 | done | |
33f5f8b9 | 45528 | _ACEOF |
45529 | cat >>$CONFIG_STATUS <<\_ACEOF | |
a2794549 | 45530 | |
33f5f8b9 | 45531 | # |
45532 | # CONFIG_COMMANDS section. | |
45533 | # | |
45534 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
45535 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
45536 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
45537 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
45538 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
af3004ff | 45539 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
45540 | X"$ac_dest" : 'X\(//\)$' \| \ | |
45541 | X"$ac_dest" : 'X\(/\)' \| \ | |
45542 | . : '\(.\)' 2>/dev/null || | |
33f5f8b9 | 45543 | echo X"$ac_dest" | |
45544 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45545 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45546 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45547 | /^X\(\/\).*/{ s//\1/; q; } | |
45548 | s/.*/./; q'` | |
af3004ff | 45549 | { if $as_mkdir_p; then |
45550 | mkdir -p "$ac_dir" | |
45551 | else | |
45552 | as_dir="$ac_dir" | |
45553 | as_dirs= | |
45554 | while test ! -d "$as_dir"; do | |
45555 | as_dirs="$as_dir $as_dirs" | |
45556 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
45557 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
45558 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
45559 | X"$as_dir" : 'X\(//\)$' \| \ | |
45560 | X"$as_dir" : 'X\(/\)' \| \ | |
45561 | . : '\(.\)' 2>/dev/null || | |
45562 | echo X"$as_dir" | | |
45563 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45564 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45565 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45566 | /^X\(\/\).*/{ s//\1/; q; } | |
45567 | s/.*/./; q'` | |
45568 | done | |
45569 | test ! -n "$as_dirs" || mkdir $as_dirs | |
45570 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
45571 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
45572 | { (exit 1); exit 1; }; }; } | |
45573 | ||
33f5f8b9 | 45574 | ac_builddir=. |
45575 | ||
45576 | if test "$ac_dir" != .; then | |
45577 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
45578 | # A "../" for each directory in $ac_dir_suffix. | |
45579 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
45580 | else | |
45581 | ac_dir_suffix= ac_top_builddir= | |
45582 | fi | |
45583 | ||
45584 | case $srcdir in | |
45585 | .) # No --srcdir option. We are building in place. | |
45586 | ac_srcdir=. | |
45587 | if test -z "$ac_top_builddir"; then | |
45588 | ac_top_srcdir=. | |
45589 | else | |
45590 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
45591 | fi ;; | |
45592 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
45593 | ac_srcdir=$srcdir$ac_dir_suffix; | |
45594 | ac_top_srcdir=$srcdir ;; | |
45595 | *) # Relative path. | |
45596 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
45597 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
45598 | esac | |
af3004ff | 45599 | |
45600 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
45601 | # the directories may not exist. | |
45602 | case `pwd` in | |
45603 | .) ac_abs_builddir="$ac_dir";; | |
45604 | *) | |
45605 | case "$ac_dir" in | |
45606 | .) ac_abs_builddir=`pwd`;; | |
45607 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
45608 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
45609 | esac;; | |
45610 | esac | |
45611 | case $ac_abs_builddir in | |
45612 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
45613 | *) | |
45614 | case ${ac_top_builddir}. in | |
45615 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
45616 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
45617 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
45618 | esac;; | |
45619 | esac | |
45620 | case $ac_abs_builddir in | |
45621 | .) ac_abs_srcdir=$ac_srcdir;; | |
45622 | *) | |
45623 | case $ac_srcdir in | |
45624 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
45625 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
45626 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
45627 | esac;; | |
45628 | esac | |
45629 | case $ac_abs_builddir in | |
45630 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
45631 | *) | |
45632 | case $ac_top_srcdir in | |
45633 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
45634 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
45635 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
45636 | esac;; | |
45637 | esac | |
33f5f8b9 | 45638 | |
45639 | ||
45640 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
45641 | echo "$as_me: executing $ac_dest commands" >&6;} | |
45642 | case $ac_dest in | |
ad21602a | 45643 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
45644 | # Strip MF so we end up with the name of the file. | |
45645 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
45646 | # Check whether this is an Automake generated Makefile or not. | |
45647 | # We used to match only the files named `Makefile.in', but | |
45648 | # some people rename them; so instead we look at the file content. | |
45649 | # Grep'ing the first line is not enough: some people post-process | |
45650 | # each Makefile.in and add a new line on top of each file to say so. | |
45651 | # So let's grep whole file. | |
45652 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
45653 | dirpart=`(dirname "$mf") 2>/dev/null || | |
45654 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
af3004ff | 45655 | X"$mf" : 'X\(//\)[^/]' \| \ |
45656 | X"$mf" : 'X\(//\)$' \| \ | |
45657 | X"$mf" : 'X\(/\)' \| \ | |
45658 | . : '\(.\)' 2>/dev/null || | |
ad21602a | 45659 | echo X"$mf" | |
45660 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45661 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45662 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45663 | /^X\(\/\).*/{ s//\1/; q; } | |
45664 | s/.*/./; q'` | |
45665 | else | |
45666 | continue | |
45667 | fi | |
07d1f987 | 45668 | # Extract the definition of DEPDIR, am__include, and am__quote |
45669 | # from the Makefile without running `make'. | |
45670 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
a2794549 | 45671 | test -z "$DEPDIR" && continue |
07d1f987 | 45672 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
45673 | test -z "am__include" && continue | |
45674 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
a2794549 | 45675 | # When using ansi2knr, U may be empty or an underscore; expand it |
07d1f987 | 45676 | U=`sed -n 's/^U = //p' < "$mf"` |
45677 | # Find all dependency output files, they are included files with | |
45678 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
45679 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
45680 | # expansion. | |
45681 | for file in `sed -n " | |
45682 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
a2794549 | 45683 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
45684 | # Make sure the directory exists. | |
45685 | test -f "$dirpart/$file" && continue | |
ad21602a | 45686 | fdir=`(dirname "$file") 2>/dev/null || |
45687 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
af3004ff | 45688 | X"$file" : 'X\(//\)[^/]' \| \ |
45689 | X"$file" : 'X\(//\)$' \| \ | |
45690 | X"$file" : 'X\(/\)' \| \ | |
45691 | . : '\(.\)' 2>/dev/null || | |
ad21602a | 45692 | echo X"$file" | |
45693 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45694 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45695 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45696 | /^X\(\/\).*/{ s//\1/; q; } | |
45697 | s/.*/./; q'` | |
45698 | { if $as_mkdir_p; then | |
45699 | mkdir -p $dirpart/$fdir | |
45700 | else | |
45701 | as_dir=$dirpart/$fdir | |
45702 | as_dirs= | |
45703 | while test ! -d "$as_dir"; do | |
45704 | as_dirs="$as_dir $as_dirs" | |
45705 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
45706 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
af3004ff | 45707 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
45708 | X"$as_dir" : 'X\(//\)$' \| \ | |
45709 | X"$as_dir" : 'X\(/\)' \| \ | |
45710 | . : '\(.\)' 2>/dev/null || | |
ad21602a | 45711 | echo X"$as_dir" | |
45712 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45713 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45714 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45715 | /^X\(\/\).*/{ s//\1/; q; } | |
45716 | s/.*/./; q'` | |
45717 | done | |
45718 | test ! -n "$as_dirs" || mkdir $as_dirs | |
45719 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
45720 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
45721 | { (exit 1); exit 1; }; }; } | |
45722 | ||
a2794549 | 45723 | # echo "creating $dirpart/$file" |
45724 | echo '# dummy' > "$dirpart/$file" | |
45725 | done | |
45726 | done | |
33f5f8b9 | 45727 | ;; |
45728 | esac | |
45729 | done | |
45730 | _ACEOF | |
a2794549 | 45731 | |
33f5f8b9 | 45732 | cat >>$CONFIG_STATUS <<\_ACEOF |
090089c4 | 45733 | |
33f5f8b9 | 45734 | { (exit 0); exit 0; } |
45735 | _ACEOF | |
090089c4 | 45736 | chmod +x $CONFIG_STATUS |
33f5f8b9 | 45737 | ac_clean_files=$ac_clean_files_save |
45738 | ||
45739 | ||
45740 | # configure is writing to config.log, and then calls config.status. | |
45741 | # config.status does its own redirection, appending to config.log. | |
45742 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
45743 | # by configure, so config.status won't be able to write to it; its | |
45744 | # output is simply discarded. So we exec the FD to /dev/null, | |
45745 | # effectively closing config.log, so it can be properly (re)opened and | |
45746 | # appended to by config.status. When coming back to configure, we | |
45747 | # need to make the FD available again. | |
45748 | if test "$no_create" != yes; then | |
45749 | ac_cs_success=: | |
ad21602a | 45750 | ac_config_status_args= |
45751 | test "$silent" = yes && | |
45752 | ac_config_status_args="$ac_config_status_args --quiet" | |
33f5f8b9 | 45753 | exec 5>/dev/null |
ad21602a | 45754 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
33f5f8b9 | 45755 | exec 5>>config.log |
45756 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
45757 | # would make configure fail if this is the last instruction. | |
45758 | $ac_cs_success || { (exit 1); exit 1; } | |
45759 | fi | |
090089c4 | 45760 | |
12a5c9fd | 45761 | # |
45762 | # CONFIG_SUBDIRS section. | |
45763 | # | |
45764 | if test "$no_recursion" != yes; then | |
45765 | ||
45766 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
45767 | ac_sub_configure_args= | |
6263d81f | 45768 | # Add --quiet option if used |
45769 | test "$silent" = yes && | |
45770 | ac_sub_configure_args="$ac_sub_configure_args --quiet" | |
12a5c9fd | 45771 | ac_prev= |
45772 | for ac_arg in $ac_configure_args; do | |
45773 | if test -n "$ac_prev"; then | |
45774 | ac_prev= | |
45775 | continue | |
45776 | fi | |
45777 | case $ac_arg in | |
45778 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
45779 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
45780 | ac_prev=cache_file ;; | |
45781 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
45782 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
45783 | | --c=*) | |
45784 | ;; | |
45785 | --config-cache | -C) | |
45786 | ;; | |
45787 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
45788 | ac_prev=srcdir ;; | |
45789 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
45790 | ;; | |
45791 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
45792 | ac_prev=prefix ;; | |
45793 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
45794 | ;; | |
45795 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
45796 | esac | |
45797 | done | |
45798 | ||
45799 | # Always prepend --prefix to ensure using the same prefix | |
45800 | # in subdir configurations. | |
45801 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
45802 | ||
45803 | ac_popdir=`pwd` | |
45804 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
45805 | ||
45806 | # Do not complain, so a configure script can configure whichever | |
45807 | # parts of a large source tree are present. | |
45808 | test -d $srcdir/$ac_dir || continue | |
45809 | ||
45810 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
45811 | echo "$as_me: configuring in $ac_dir" >&6;} | |
ad21602a | 45812 | { if $as_mkdir_p; then |
45813 | mkdir -p "$ac_dir" | |
45814 | else | |
45815 | as_dir="$ac_dir" | |
45816 | as_dirs= | |
45817 | while test ! -d "$as_dir"; do | |
45818 | as_dirs="$as_dir $as_dirs" | |
45819 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
45820 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
af3004ff | 45821 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
45822 | X"$as_dir" : 'X\(//\)$' \| \ | |
45823 | X"$as_dir" : 'X\(/\)' \| \ | |
45824 | . : '\(.\)' 2>/dev/null || | |
ad21602a | 45825 | echo X"$as_dir" | |
45826 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
45827 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
45828 | /^X\(\/\/\)$/{ s//\1/; q; } | |
45829 | /^X\(\/\).*/{ s//\1/; q; } | |
45830 | s/.*/./; q'` | |
45831 | done | |
45832 | test ! -n "$as_dirs" || mkdir $as_dirs | |
45833 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
45834 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
45835 | { (exit 1); exit 1; }; }; } | |
12a5c9fd | 45836 | |
45837 | ac_builddir=. | |
45838 | ||
45839 | if test "$ac_dir" != .; then | |
45840 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
45841 | # A "../" for each directory in $ac_dir_suffix. | |
45842 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
45843 | else | |
45844 | ac_dir_suffix= ac_top_builddir= | |
45845 | fi | |
45846 | ||
45847 | case $srcdir in | |
45848 | .) # No --srcdir option. We are building in place. | |
45849 | ac_srcdir=. | |
45850 | if test -z "$ac_top_builddir"; then | |
45851 | ac_top_srcdir=. | |
45852 | else | |
45853 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
45854 | fi ;; | |
45855 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
45856 | ac_srcdir=$srcdir$ac_dir_suffix; | |
45857 | ac_top_srcdir=$srcdir ;; | |
45858 | *) # Relative path. | |
45859 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
45860 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
45861 | esac | |
af3004ff | 45862 | |
45863 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
45864 | # the directories may not exist. | |
45865 | case `pwd` in | |
45866 | .) ac_abs_builddir="$ac_dir";; | |
45867 | *) | |
45868 | case "$ac_dir" in | |
45869 | .) ac_abs_builddir=`pwd`;; | |
45870 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
45871 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
45872 | esac;; | |
45873 | esac | |
45874 | case $ac_abs_builddir in | |
45875 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
45876 | *) | |
45877 | case ${ac_top_builddir}. in | |
45878 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
45879 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
45880 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
45881 | esac;; | |
45882 | esac | |
45883 | case $ac_abs_builddir in | |
45884 | .) ac_abs_srcdir=$ac_srcdir;; | |
45885 | *) | |
45886 | case $ac_srcdir in | |
45887 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
45888 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
45889 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
45890 | esac;; | |
45891 | esac | |
45892 | case $ac_abs_builddir in | |
45893 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
45894 | *) | |
45895 | case $ac_top_srcdir in | |
45896 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
45897 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
45898 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
45899 | esac;; | |
45900 | esac | |
12a5c9fd | 45901 | |
45902 | ||
45903 | cd $ac_dir | |
45904 | ||
45905 | # Check for guested configure; otherwise get Cygnus style configure. | |
45906 | if test -f $ac_srcdir/configure.gnu; then | |
45907 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
45908 | elif test -f $ac_srcdir/configure; then | |
45909 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
45910 | elif test -f $ac_srcdir/configure.in; then | |
45911 | ac_sub_configure=$ac_configure | |
45912 | else | |
45913 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
45914 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
45915 | ac_sub_configure= | |
45916 | fi | |
45917 | ||
45918 | # The recursion is here. | |
45919 | if test -n "$ac_sub_configure"; then | |
45920 | # Make the cache file name correct relative to the subdirectory. | |
45921 | case $cache_file in | |
45922 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
45923 | *) # Relative path. | |
af3004ff | 45924 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
12a5c9fd | 45925 | esac |
45926 | ||
45927 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
45928 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
45929 | # The eval makes quoting arguments work. | |
45930 | eval $ac_sub_configure $ac_sub_configure_args \ | |
af3004ff | 45931 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
45932 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
12a5c9fd | 45933 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
45934 | { (exit 1); exit 1; }; } | |
45935 | fi | |
45936 | ||
6263d81f | 45937 | cd $ac_popdir |
12a5c9fd | 45938 | done |
45939 | fi | |
45940 |