]> git.ipfire.org Git - thirdparty/squid.git/blob - configure
Use lowercase for syslog tags
[thirdparty/squid.git] / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.464 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for Squid Web Proxy 3.0.PRE6-CVS.
5 #
6 # Report bugs to <http://www.squid-cache.org/bugs/>.
7 #
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
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=:
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+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
32 fi
33
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
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
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
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
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
80
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
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
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
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
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; }
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
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
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.
244 $as_unset CDPATH
245
246
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.
284 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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, ...
291 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
292 echo_test_string=`eval $cmd` &&
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
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 #
411 ac_default_prefix=/usr/local
412 ac_config_libobj_dir=.
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.
425 PACKAGE_NAME='Squid Web Proxy'
426 PACKAGE_TARNAME='squid'
427 PACKAGE_VERSION='3.0.PRE6-CVS'
428 PACKAGE_STRING='Squid Web Proxy 3.0.PRE6-CVS'
429 PACKAGE_BUGREPORT='http://www.squid-cache.org/bugs/'
430
431 ac_unique_file="src/main.cc"
432 ac_default_prefix=/usr/local/squid
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
470 ac_subdirs_all="$ac_subdirs_all lib/libTrie"
471 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 SH FALSE TRUE RM MV MKDIR LN PERL AR_R ALLOCA CRYPTLIB LIB_LDAP LIB_LBER LIB_DB EPOLL_LIBS USE_POLL_TRUE USE_POLL_FALSE USE_EPOLL_TRUE USE_EPOLL_FALSE USE_SELECT_TRUE USE_SELECT_FALSE USE_SELECT_SIMPLE_TRUE USE_SELECT_SIMPLE_FALSE USE_SELECT_WIN32_TRUE USE_SELECT_WIN32_FALSE USE_KQUEUE_TRUE USE_KQUEUE_FALSE USE_DEVPOLL_TRUE USE_DEVPOLL_FALSE NEED_OWN_SNPRINTF_TRUE NEED_OWN_SNPRINTF_FALSE NEED_OWN_STRSEP_TRUE NEED_OWN_STRSEP_FALSE NEED_OWN_STRTOLL_TRUE NEED_OWN_STRTOLL_FALSE REGEXLIB LIBREGEX LIBOBJS XTRA_OBJS XTRA_LIBS subdirs LTLIBOBJS'
472 ac_subst_files=''
473
474 # Initialize some variables set by options.
475 ac_init_help=
476 ac_init_version=false
477 # The variables have the same names as the options, with
478 # dashes changed to underlines.
479 cache_file=/dev/null
480 exec_prefix=NONE
481 no_create=
482 no_recursion=
483 prefix=NONE
484 program_prefix=NONE
485 program_suffix=NONE
486 program_transform_name=s,x,x,
487 silent=
488 site=
489 srcdir=
490 verbose=
491 x_includes=NONE
492 x_libraries=NONE
493
494 # Installation directory options.
495 # These are left unexpanded so users can "make install exec_prefix=/foo"
496 # and all the variables that are supposed to be based on exec_prefix
497 # by default will actually change.
498 # Use braces instead of parens because sh, perl, etc. also accept them.
499 bindir='${exec_prefix}/bin'
500 sbindir='${exec_prefix}/sbin'
501 libexecdir='${exec_prefix}/libexec'
502 datadir='${prefix}/share'
503 sysconfdir='${prefix}/etc'
504 sharedstatedir='${prefix}/com'
505 localstatedir='${prefix}/var'
506 libdir='${exec_prefix}/lib'
507 includedir='${prefix}/include'
508 oldincludedir='/usr/include'
509 infodir='${prefix}/info'
510 mandir='${prefix}/man'
511
512 ac_prev=
513 for ac_option
514 do
515 # If the previous option needs an argument, assign it.
516 if test -n "$ac_prev"; then
517 eval "$ac_prev=\$ac_option"
518 ac_prev=
519 continue
520 fi
521
522 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523
524 # Accept the important Cygnus configure options, so we can diagnose typos.
525
526 case $ac_option in
527
528 -bindir | --bindir | --bindi | --bind | --bin | --bi)
529 ac_prev=bindir ;;
530 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531 bindir=$ac_optarg ;;
532
533 -build | --build | --buil | --bui | --bu)
534 ac_prev=build_alias ;;
535 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536 build_alias=$ac_optarg ;;
537
538 -cache-file | --cache-file | --cache-fil | --cache-fi \
539 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540 ac_prev=cache_file ;;
541 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543 cache_file=$ac_optarg ;;
544
545 --config-cache | -C)
546 cache_file=config.cache ;;
547
548 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549 ac_prev=datadir ;;
550 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551 | --da=*)
552 datadir=$ac_optarg ;;
553
554 -disable-* | --disable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 eval "enable_$ac_feature=no" ;;
562
563 -enable-* | --enable-*)
564 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568 { (exit 1); exit 1; }; }
569 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570 case $ac_option in
571 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572 *) ac_optarg=yes ;;
573 esac
574 eval "enable_$ac_feature='$ac_optarg'" ;;
575
576 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578 | --exec | --exe | --ex)
579 ac_prev=exec_prefix ;;
580 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582 | --exec=* | --exe=* | --ex=*)
583 exec_prefix=$ac_optarg ;;
584
585 -gas | --gas | --ga | --g)
586 # Obsolete; use --with-gas.
587 with_gas=yes ;;
588
589 -help | --help | --hel | --he | -h)
590 ac_init_help=long ;;
591 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592 ac_init_help=recursive ;;
593 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594 ac_init_help=short ;;
595
596 -host | --host | --hos | --ho)
597 ac_prev=host_alias ;;
598 -host=* | --host=* | --hos=* | --ho=*)
599 host_alias=$ac_optarg ;;
600
601 -includedir | --includedir | --includedi | --included | --include \
602 | --includ | --inclu | --incl | --inc)
603 ac_prev=includedir ;;
604 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605 | --includ=* | --inclu=* | --incl=* | --inc=*)
606 includedir=$ac_optarg ;;
607
608 -infodir | --infodir | --infodi | --infod | --info | --inf)
609 ac_prev=infodir ;;
610 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611 infodir=$ac_optarg ;;
612
613 -libdir | --libdir | --libdi | --libd)
614 ac_prev=libdir ;;
615 -libdir=* | --libdir=* | --libdi=* | --libd=*)
616 libdir=$ac_optarg ;;
617
618 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619 | --libexe | --libex | --libe)
620 ac_prev=libexecdir ;;
621 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622 | --libexe=* | --libex=* | --libe=*)
623 libexecdir=$ac_optarg ;;
624
625 -localstatedir | --localstatedir | --localstatedi | --localstated \
626 | --localstate | --localstat | --localsta | --localst \
627 | --locals | --local | --loca | --loc | --lo)
628 ac_prev=localstatedir ;;
629 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632 localstatedir=$ac_optarg ;;
633
634 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635 ac_prev=mandir ;;
636 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 mandir=$ac_optarg ;;
638
639 -nfp | --nfp | --nf)
640 # Obsolete; use --without-fp.
641 with_fp=no ;;
642
643 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644 | --no-cr | --no-c | -n)
645 no_create=yes ;;
646
647 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649 no_recursion=yes ;;
650
651 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653 | --oldin | --oldi | --old | --ol | --o)
654 ac_prev=oldincludedir ;;
655 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658 oldincludedir=$ac_optarg ;;
659
660 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661 ac_prev=prefix ;;
662 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663 prefix=$ac_optarg ;;
664
665 -program-prefix | --program-prefix | --program-prefi | --program-pref \
666 | --program-pre | --program-pr | --program-p)
667 ac_prev=program_prefix ;;
668 -program-prefix=* | --program-prefix=* | --program-prefi=* \
669 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670 program_prefix=$ac_optarg ;;
671
672 -program-suffix | --program-suffix | --program-suffi | --program-suff \
673 | --program-suf | --program-su | --program-s)
674 ac_prev=program_suffix ;;
675 -program-suffix=* | --program-suffix=* | --program-suffi=* \
676 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677 program_suffix=$ac_optarg ;;
678
679 -program-transform-name | --program-transform-name \
680 | --program-transform-nam | --program-transform-na \
681 | --program-transform-n | --program-transform- \
682 | --program-transform | --program-transfor \
683 | --program-transfo | --program-transf \
684 | --program-trans | --program-tran \
685 | --progr-tra | --program-tr | --program-t)
686 ac_prev=program_transform_name ;;
687 -program-transform-name=* | --program-transform-name=* \
688 | --program-transform-nam=* | --program-transform-na=* \
689 | --program-transform-n=* | --program-transform-=* \
690 | --program-transform=* | --program-transfor=* \
691 | --program-transfo=* | --program-transf=* \
692 | --program-trans=* | --program-tran=* \
693 | --progr-tra=* | --program-tr=* | --program-t=*)
694 program_transform_name=$ac_optarg ;;
695
696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697 | -silent | --silent | --silen | --sile | --sil)
698 silent=yes ;;
699
700 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701 ac_prev=sbindir ;;
702 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703 | --sbi=* | --sb=*)
704 sbindir=$ac_optarg ;;
705
706 -sharedstatedir | --sharedstatedir | --sharedstatedi \
707 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708 | --sharedst | --shareds | --shared | --share | --shar \
709 | --sha | --sh)
710 ac_prev=sharedstatedir ;;
711 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714 | --sha=* | --sh=*)
715 sharedstatedir=$ac_optarg ;;
716
717 -site | --site | --sit)
718 ac_prev=site ;;
719 -site=* | --site=* | --sit=*)
720 site=$ac_optarg ;;
721
722 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723 ac_prev=srcdir ;;
724 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725 srcdir=$ac_optarg ;;
726
727 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728 | --syscon | --sysco | --sysc | --sys | --sy)
729 ac_prev=sysconfdir ;;
730 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732 sysconfdir=$ac_optarg ;;
733
734 -target | --target | --targe | --targ | --tar | --ta | --t)
735 ac_prev=target_alias ;;
736 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737 target_alias=$ac_optarg ;;
738
739 -v | -verbose | --verbose | --verbos | --verbo | --verb)
740 verbose=yes ;;
741
742 -version | --version | --versio | --versi | --vers | -V)
743 ac_init_version=: ;;
744
745 -with-* | --with-*)
746 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747 # Reject names that are not valid shell variable names.
748 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749 { echo "$as_me: error: invalid package name: $ac_package" >&2
750 { (exit 1); exit 1; }; }
751 ac_package=`echo $ac_package| sed 's/-/_/g'`
752 case $ac_option in
753 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754 *) ac_optarg=yes ;;
755 esac
756 eval "with_$ac_package='$ac_optarg'" ;;
757
758 -without-* | --without-*)
759 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760 # Reject names that are not valid shell variable names.
761 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762 { echo "$as_me: error: invalid package name: $ac_package" >&2
763 { (exit 1); exit 1; }; }
764 ac_package=`echo $ac_package | sed 's/-/_/g'`
765 eval "with_$ac_package=no" ;;
766
767 --x)
768 # Obsolete; use --with-x.
769 with_x=yes ;;
770
771 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772 | --x-incl | --x-inc | --x-in | --x-i)
773 ac_prev=x_includes ;;
774 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776 x_includes=$ac_optarg ;;
777
778 -x-libraries | --x-libraries | --x-librarie | --x-librari \
779 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780 ac_prev=x_libraries ;;
781 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783 x_libraries=$ac_optarg ;;
784
785 -*) { echo "$as_me: error: unrecognized option: $ac_option
786 Try \`$0 --help' for more information." >&2
787 { (exit 1); exit 1; }; }
788 ;;
789
790 *=*)
791 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792 # Reject names that are not valid shell variable names.
793 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795 { (exit 1); exit 1; }; }
796 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797 eval "$ac_envvar='$ac_optarg'"
798 export $ac_envvar ;;
799
800 *)
801 # FIXME: should be removed in autoconf 3.0.
802 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806 ;;
807
808 esac
809 done
810
811 if test -n "$ac_prev"; then
812 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813 { echo "$as_me: error: missing argument to $ac_option" >&2
814 { (exit 1); exit 1; }; }
815 fi
816
817 # Be sure to have absolute paths.
818 for ac_var in exec_prefix prefix
819 do
820 eval ac_val=$`echo $ac_var`
821 case $ac_val in
822 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824 { (exit 1); exit 1; }; };;
825 esac
826 done
827
828 # Be sure to have absolute paths.
829 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830 localstatedir libdir includedir oldincludedir infodir mandir
831 do
832 eval ac_val=$`echo $ac_var`
833 case $ac_val in
834 [\\/$]* | ?:[\\/]* ) ;;
835 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836 { (exit 1); exit 1; }; };;
837 esac
838 done
839
840 # There might be people who depend on the old broken behavior: `$host'
841 # used to hold the argument of --host etc.
842 # FIXME: To remove some day.
843 build=$build_alias
844 host=$host_alias
845 target=$target_alias
846
847 # FIXME: To remove some day.
848 if test "x$host_alias" != x; then
849 if test "x$build_alias" = x; then
850 cross_compiling=maybe
851 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852 If a cross compiler is detected then cross compile mode will be used." >&2
853 elif test "x$build_alias" != "x$host_alias"; then
854 cross_compiling=yes
855 fi
856 fi
857
858 ac_tool_prefix=
859 test -n "$host_alias" && ac_tool_prefix=$host_alias-
860
861 test "$silent" = yes && exec 6>/dev/null
862
863
864 # Find the source files, if location was not specified.
865 if test -z "$srcdir"; then
866 ac_srcdir_defaulted=yes
867 # Try the directory containing this script, then its parent.
868 ac_confdir=`(dirname "$0") 2>/dev/null ||
869 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870 X"$0" : 'X\(//\)[^/]' \| \
871 X"$0" : 'X\(//\)$' \| \
872 X"$0" : 'X\(/\)' \| \
873 . : '\(.\)' 2>/dev/null ||
874 echo X"$0" |
875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877 /^X\(\/\/\)$/{ s//\1/; q; }
878 /^X\(\/\).*/{ s//\1/; q; }
879 s/.*/./; q'`
880 srcdir=$ac_confdir
881 if test ! -r $srcdir/$ac_unique_file; then
882 srcdir=..
883 fi
884 else
885 ac_srcdir_defaulted=no
886 fi
887 if test ! -r $srcdir/$ac_unique_file; then
888 if test "$ac_srcdir_defaulted" = yes; then
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890 { (exit 1); exit 1; }; }
891 else
892 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893 { (exit 1); exit 1; }; }
894 fi
895 fi
896 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898 { (exit 1); exit 1; }; }
899 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900 ac_env_build_alias_set=${build_alias+set}
901 ac_env_build_alias_value=$build_alias
902 ac_cv_env_build_alias_set=${build_alias+set}
903 ac_cv_env_build_alias_value=$build_alias
904 ac_env_host_alias_set=${host_alias+set}
905 ac_env_host_alias_value=$host_alias
906 ac_cv_env_host_alias_set=${host_alias+set}
907 ac_cv_env_host_alias_value=$host_alias
908 ac_env_target_alias_set=${target_alias+set}
909 ac_env_target_alias_value=$target_alias
910 ac_cv_env_target_alias_set=${target_alias+set}
911 ac_cv_env_target_alias_value=$target_alias
912 ac_env_CC_set=${CC+set}
913 ac_env_CC_value=$CC
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXXCPP_set=${CXXCPP+set}
941 ac_env_CXXCPP_value=$CXXCPP
942 ac_cv_env_CXXCPP_set=${CXXCPP+set}
943 ac_cv_env_CXXCPP_value=$CXXCPP
944 ac_env_F77_set=${F77+set}
945 ac_env_F77_value=$F77
946 ac_cv_env_F77_set=${F77+set}
947 ac_cv_env_F77_value=$F77
948 ac_env_FFLAGS_set=${FFLAGS+set}
949 ac_env_FFLAGS_value=$FFLAGS
950 ac_cv_env_FFLAGS_set=${FFLAGS+set}
951 ac_cv_env_FFLAGS_value=$FFLAGS
952
953 #
954 # Report the --help message.
955 #
956 if test "$ac_init_help" = "long"; then
957 # Omit some internal or obsolete options to make the list less imposing.
958 # This message is too long to be a string in the A/UX 3.1 sh.
959 cat <<_ACEOF
960 \`configure' configures Squid Web Proxy 3.0.PRE6-CVS to adapt to many kinds of systems.
961
962 Usage: $0 [OPTION]... [VAR=VALUE]...
963
964 To assign environment variables (e.g., CC, CFLAGS...), specify them as
965 VAR=VALUE. See below for descriptions of some of the useful variables.
966
967 Defaults for the options are specified in brackets.
968
969 Configuration:
970 -h, --help display this help and exit
971 --help=short display options specific to this package
972 --help=recursive display the short help of all the included packages
973 -V, --version display version information and exit
974 -q, --quiet, --silent do not print \`checking...' messages
975 --cache-file=FILE cache test results in FILE [disabled]
976 -C, --config-cache alias for \`--cache-file=config.cache'
977 -n, --no-create do not create output files
978 --srcdir=DIR find the sources in DIR [configure dir or \`..']
979
980 _ACEOF
981
982 cat <<_ACEOF
983 Installation directories:
984 --prefix=PREFIX install architecture-independent files in PREFIX
985 [$ac_default_prefix]
986 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
987 [PREFIX]
988
989 By default, \`make install' will install all the files in
990 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
991 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
992 for instance \`--prefix=\$HOME'.
993
994 For better control, use the options below.
995
996 Fine tuning of the installation directories:
997 --bindir=DIR user executables [EPREFIX/bin]
998 --sbindir=DIR system admin executables [EPREFIX/sbin]
999 --libexecdir=DIR program executables [EPREFIX/libexec]
1000 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1001 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1002 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1003 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1004 --libdir=DIR object code libraries [EPREFIX/lib]
1005 --includedir=DIR C header files [PREFIX/include]
1006 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1007 --infodir=DIR info documentation [PREFIX/info]
1008 --mandir=DIR man documentation [PREFIX/man]
1009 _ACEOF
1010
1011 cat <<\_ACEOF
1012
1013 Program names:
1014 --program-prefix=PREFIX prepend PREFIX to installed program names
1015 --program-suffix=SUFFIX append SUFFIX to installed program names
1016 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1017
1018 System types:
1019 --build=BUILD configure for building on BUILD [guessed]
1020 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1021 _ACEOF
1022 fi
1023
1024 if test -n "$ac_init_help"; then
1025 case $ac_init_help in
1026 short | recursive ) echo "Configuration of Squid Web Proxy 3.0.PRE6-CVS:";;
1027 esac
1028 cat <<\_ACEOF
1029
1030 Optional Features:
1031 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1032 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1033 --enable-maintainer-mode enable make rules and dependencies not useful
1034 (and sometimes confusing) to the casual installer
1035 --disable-dependency-tracking speeds up one-time build
1036 --enable-dependency-tracking do not reject slow dependency extractors
1037 --enable-shared[=PKGS]
1038 build shared libraries [default=no]
1039 --enable-static[=PKGS]
1040 build static libraries [default=yes]
1041 --enable-fast-install[=PKGS]
1042 optimize for fast installation [default=yes]
1043 --disable-libtool-lock avoid locking (might break parallel builds)
1044 --enable-dlmalloc=LIB Compile & use the malloc package by Doug Lea
1045 --enable-gnuregex Compile GNUregex. Unless you have reason to use this
1046 option, you should not enable it. This library file
1047 is usually only required on Windows and very old
1048 Unix boxes which do not have their own regex library
1049 built in.
1050 --disable-optimizations Don't compile Squid with compiler optimizations enabled.
1051 Optimization is good for production builds, but not
1052 good for debugging. During development, use
1053 --disable-optimizations to reduce compilation times
1054 and allow easier debugging. This option implicitly
1055 also enabled --disable-inline
1056 --disable-inline Don't compile trivial methods as inline. Squid
1057 is coded with much of the code able to be inlined.
1058 Inlining is good for production builds, but not
1059 good for development. During development, use
1060 --disable-inline to reduce compilation times and
1061 allow incremental builds to be quick. For
1062 production builds, or load tests, use
1063 --enable-inline to have squid make all trivial
1064 methods inlinable by the compiler.
1065 --enable-debug-cbdata Provide some debug information in cbdata
1066 --enable-xmalloc-statistics
1067 Show malloc statistics in status page
1068 --disable-carp Disable CARP support
1069 --enable-async-io=N_THREADS
1070 Shorthand for
1071 --with-aufs-threads=N_THREADS
1072 --with-pthreads
1073 --enable-storeio=ufs,aufs
1074 --enable-storeio=\"list of modules\"
1075 Build support for the list of store I/O modules.
1076 The default is only to build the "ufs" module.
1077 See src/fs for a list of available modules, or
1078 Programmers Guide section <not yet written>
1079 for details on how to build your custom store module
1080 --enable-disk-io=\"list of modules\"
1081 Build support for the list of disk I/O modules.
1082 The default is only to build the "Blocking" module.
1083 See src/DiskIO for a list of available modules, or
1084 Programmers Guide section <not yet written>
1085 for details on how to build your custom disk module
1086 --enable-removal-policies=\"list of policies\"
1087 Build support for the list of removal policies.
1088 The default is only to build the "lru" module.
1089 See src/repl for a list of available modules, or
1090 Programmers Guide section 9.9 for details on how
1091 to build your custom policy
1092 --enable-icmp Enable ICMP pinging
1093 --enable-delay-pools Enable delay pools to limit bandwidth usage
1094 --enable-esi Enable ESI for accelerators. Requires libexpat.
1095 Enabling ESI will cause squid to follow the Edge
1096 Acceleration Specification (www.esi.org). This
1097 causes squid to IGNORE client Cache-Control headers.
1098 DO NOT use this in a squid configured as a web
1099 proxy, ONLY use it in a squid configured for
1100 webserver acceleration.
1101 --enable-icap-client Enable the ICAP client.
1102 --enable-useragent-log Enable logging of User-Agent header
1103 --enable-referer-log Enable logging of Referer header
1104 --disable-wccp Disable Web Cache Coordination Protocol
1105 --disable-wccpv2 Disable Web Cache Coordination V2 Protocol
1106 --enable-kill-parent-hack
1107 Kill parent on shutdown
1108 --enable-snmp Enable SNMP monitoring
1109 --enable-cachemgr-hostname=hostname
1110 Make cachemgr.cgi default to this host
1111 --enable-arp-acl Enable use of ARP ACL lists (ether address)
1112 --enable-htcp Enable HTCP protocol
1113 --enable-ssl Enable ssl gatewaying support using OpenSSL
1114 --enable-forw-via-db Enable Forw/Via database
1115 --enable-cache-digests Use Cache Digests
1116 see http://www.squid-cache.org/FAQ/FAQ-16.html
1117 --enable-default-err-language=lang
1118 Select default language for Error pages (see
1119 errors directory)
1120 --enable-err-languages=\"lang1 lang2..\"
1121 Select languages to be installed. (All will be
1122 installed by default)
1123 --enable-poll Enable poll() support.
1124 --disable-poll Disable poll() support.
1125 --enable-select Enable select() support.
1126 --disable-select Disable select() support.
1127 --enable-kqueue Enable kqueue() support (experimental).
1128 --disable-kqueue Disable kqueue() support.
1129 --enable-epoll Enable epoll() support.
1130 --disable-epoll Disable epoll() support.
1131 --disable-http-violations
1132 This allows you to remove code which is known to
1133 violate the HTTP protocol specification.
1134 --enable-ipfw-transparent
1135 Enable Transparent Proxy support for systems
1136 using FreeBSD IPFW style redirection.
1137 --enable-ipf-transparent
1138 Enable Transparent Proxy support for systems
1139 using IP-Filter network address redirection.
1140 --enable-pf-transparent
1141 Enable Transparent Proxy support for systems
1142 using PF network address redirection.
1143 --enable-linux-netfilter
1144 Enable Transparent Proxy support for Linux (Netfilter) systems.
1145 --enable-linux-tproxy
1146 Enable real Transparent Proxy support for Netfilter TPROXY.
1147 --enable-leakfinder
1148 Enable Leak Finding code. Enabling this alone
1149 does nothing; you also have to modify the source
1150 code to use the leak finding functions. Probably
1151 Useful for hackers only.
1152 --disable-ident-lookups
1153 This allows you to remove code that performs
1154 Ident (RFC 931) lookups.
1155 --disable-internal-dns This prevents Squid from directly sending and
1156 receiving DNS messages, and instead enables the
1157 old external 'dnsserver' processes.
1158 --enable-default-hostsfile=path
1159 Select default location for hosts file.
1160 See hosts_file directive in squid.conf for details
1161 --enable-auth=\"list of auth scheme modules\"
1162 Build support for the list of authentication schemes.
1163 The default is to build support for the Basic scheme.
1164 See src/auth for a list of available modules, or
1165 Programmers Guide section authentication schemes
1166 for details on how to build your custom auth scheme
1167 module
1168 --enable-basic-auth-helpers=\"list of helpers\"
1169 This option selects which basic scheme proxy_auth
1170 helpers to build and install as part of the normal
1171 build process. For a list of available
1172 helpers see the helpers/basic_auth directory.
1173 --enable-ntlm-auth-helpers=\"list of helpers\"
1174 This option selects which proxy_auth ntlm helpers
1175 to build and install as part of the normal build
1176 process. For a list of available helpers see
1177 the helpers/ntlm_auth directory.
1178 --enable-negotiate-auth-helpers=\"list of helpers\"
1179 This option selects which proxy_auth negotiate helpers
1180 to build and install as part of the normal build
1181 process. For a list of available helpers see
1182 the helpers/negotiate_auth directory.
1183 --enable-digest-auth-helpers=\"list of helpers\"
1184 This option selects which digest scheme authentication
1185 helpers to build and install as part of the normal build
1186 process. For a list of available helpers see the
1187 helpers/digest_auth directory.
1188 --enable-ntlm-fail-open Enable NTLM fail open, where a helper that fails one of the
1189 Authentication steps can allow squid to still authenticate
1190 the user.
1191 --enable-external-acl-helpers=\"list of helpers\"
1192 This option selects which external_acl helpers to
1193 build and install as part of the normal build
1194 process. For a list of available helpers see the
1195 helpers/external_acl directory.
1196 --disable-mempools Disable memPools. Note that this option now simply sets the
1197 default behaviour. Specific classes can override this at runtime, and
1198 only lib/MemPool.c needs to be altered to change the squid-wide
1199 default for all classes.
1200 --enable-win32-service Compile Squid as a WIN32 Service
1201 Works only on Windows NT and Windows 2000 Platforms.
1202 --disable-unlinkd Do not use unlinkd
1203 --enable-stacktraces Enable automatic call backtrace on fatal errors
1204 --enable-cpu-profiling
1205 This option allows you to see which internal functions
1206 in Squid are consuming how much CPU. Compiles in probes
1207 that measure time spent in probed functions. Needs
1208 source modifications to add new probes. This is meant
1209 for developers to assist in performance optimisations
1210 of Squid internal functions.
1211 If you are not developer and not interested in the stats
1212 you shouldn't enable this, as overhead added, although
1213 small, is still overhead. See lib/Profiler.c for more.
1214
1215 --enable-x-accelerator-vary
1216 Enable support for the X-Accelerator-Vary
1217 HTTP header. Can be used to indicate
1218 variance within an accelerator setup.
1219 Typically used together with other code
1220 that adds custom HTTP headers to the requests.
1221
1222 Optional Packages:
1223 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1224 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1225 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1226 --with-pic try to use only PIC/non-PIC objects [default=use
1227 both]
1228 --with-tags[=TAGS]
1229 include additional configurations [automatic]
1230 --with-aufs-threads=N_THREADS
1231 Tune the number of worker threads for the aufs object
1232 store.
1233 --with-pthreads Use POSIX Threads
1234 --with-aio Use POSIX AIO
1235 --with-dl Use dynamic linking
1236 --with-openssl=prefix
1237 Compile with the OpenSSL libraries. The path to
1238 the OpenSSL development libraries and headers
1239 installation can be specified if outside of the
1240 system standard directories
1241 --with-coss-membuf-size COSS membuf size (default 1048576 bytes)
1242 --with-large-files Enable support for large files (logs etc). Still
1243 experimental.
1244 --with-build-environment=model
1245 The build environment to use. Normally one of
1246 POSIX_V6_ILP32_OFF32 32 bits
1247 POSIX_V6_ILP32_OFFBIG 32 bits with large file support
1248 POSIX_V6_LP64_OFF64 64 bits
1249 POSIX_V6_LPBIG_OFFBIG large pointers and files
1250 XBS5_ILP32_OFF32 32 bits (legacy)
1251 XBS5_ILP32_OFFBIG 32 bits with large file support (legacy)
1252 XBS5_LP64_OFF64 64 bits (legacy)
1253 XBS5_LPBIG_OFFBIG large pointers and files (legacy)
1254 default The default for your OS
1255 --with-valgrind Include debug instrumentation for use with valgrind
1256 --with-filedescriptors=NUMBER Force squid to support NUMBER filedescriptors
1257 --with-cppunit-basedir=/path/to/cppunit-base
1258 Path where the cppunit headers are libraries are found
1259 for unit testing.
1260
1261
1262 Some influential environment variables:
1263 CC C compiler command
1264 CFLAGS C compiler flags
1265 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1266 nonstandard directory <lib dir>
1267 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1268 headers in a nonstandard directory <include dir>
1269 CXX C++ compiler command
1270 CXXFLAGS C++ compiler flags
1271 CPP C preprocessor
1272 CXXCPP C++ preprocessor
1273 F77 Fortran 77 compiler command
1274 FFLAGS Fortran 77 compiler flags
1275
1276 Use these variables to override the choices made by `configure' or to help
1277 it to find libraries and programs with nonstandard names/locations.
1278
1279 Report bugs to <http://www.squid-cache.org/bugs/>.
1280 _ACEOF
1281 fi
1282
1283 if test "$ac_init_help" = "recursive"; then
1284 # If there are subdirs, report their specific --help.
1285 ac_popdir=`pwd`
1286 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1287 test -d $ac_dir || continue
1288 ac_builddir=.
1289
1290 if test "$ac_dir" != .; then
1291 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1292 # A "../" for each directory in $ac_dir_suffix.
1293 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1294 else
1295 ac_dir_suffix= ac_top_builddir=
1296 fi
1297
1298 case $srcdir in
1299 .) # No --srcdir option. We are building in place.
1300 ac_srcdir=.
1301 if test -z "$ac_top_builddir"; then
1302 ac_top_srcdir=.
1303 else
1304 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1305 fi ;;
1306 [\\/]* | ?:[\\/]* ) # Absolute path.
1307 ac_srcdir=$srcdir$ac_dir_suffix;
1308 ac_top_srcdir=$srcdir ;;
1309 *) # Relative path.
1310 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1311 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1312 esac
1313
1314 # Do not use `cd foo && pwd` to compute absolute paths, because
1315 # the directories may not exist.
1316 case `pwd` in
1317 .) ac_abs_builddir="$ac_dir";;
1318 *)
1319 case "$ac_dir" in
1320 .) ac_abs_builddir=`pwd`;;
1321 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1322 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1323 esac;;
1324 esac
1325 case $ac_abs_builddir in
1326 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1327 *)
1328 case ${ac_top_builddir}. in
1329 .) ac_abs_top_builddir=$ac_abs_builddir;;
1330 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1331 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1332 esac;;
1333 esac
1334 case $ac_abs_builddir in
1335 .) ac_abs_srcdir=$ac_srcdir;;
1336 *)
1337 case $ac_srcdir in
1338 .) ac_abs_srcdir=$ac_abs_builddir;;
1339 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1340 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1341 esac;;
1342 esac
1343 case $ac_abs_builddir in
1344 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1345 *)
1346 case $ac_top_srcdir in
1347 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1348 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1349 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1350 esac;;
1351 esac
1352
1353 cd $ac_dir
1354 # Check for guested configure; otherwise get Cygnus style configure.
1355 if test -f $ac_srcdir/configure.gnu; then
1356 echo
1357 $SHELL $ac_srcdir/configure.gnu --help=recursive
1358 elif test -f $ac_srcdir/configure; then
1359 echo
1360 $SHELL $ac_srcdir/configure --help=recursive
1361 elif test -f $ac_srcdir/configure.ac ||
1362 test -f $ac_srcdir/configure.in; then
1363 echo
1364 $ac_configure --help
1365 else
1366 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1367 fi
1368 cd $ac_popdir
1369 done
1370 fi
1371
1372 test -n "$ac_init_help" && exit 0
1373 if $ac_init_version; then
1374 cat <<\_ACEOF
1375 Squid Web Proxy configure 3.0.PRE6-CVS
1376 generated by GNU Autoconf 2.59
1377
1378 Copyright (C) 2003 Free Software Foundation, Inc.
1379 This configure script is free software; the Free Software Foundation
1380 gives unlimited permission to copy, distribute and modify it.
1381 _ACEOF
1382 exit 0
1383 fi
1384 exec 5>config.log
1385 cat >&5 <<_ACEOF
1386 This file contains any messages produced by compilers while
1387 running configure, to aid debugging if configure makes a mistake.
1388
1389 It was created by Squid Web Proxy $as_me 3.0.PRE6-CVS, which was
1390 generated by GNU Autoconf 2.59. Invocation command line was
1391
1392 $ $0 $@
1393
1394 _ACEOF
1395 {
1396 cat <<_ASUNAME
1397 ## --------- ##
1398 ## Platform. ##
1399 ## --------- ##
1400
1401 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1402 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1403 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1404 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1405 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1406
1407 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1408 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1409
1410 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1411 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1412 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1413 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1414 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1415 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1416 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1417
1418 _ASUNAME
1419
1420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1421 for as_dir in $PATH
1422 do
1423 IFS=$as_save_IFS
1424 test -z "$as_dir" && as_dir=.
1425 echo "PATH: $as_dir"
1426 done
1427
1428 } >&5
1429
1430 cat >&5 <<_ACEOF
1431
1432
1433 ## ----------- ##
1434 ## Core tests. ##
1435 ## ----------- ##
1436
1437 _ACEOF
1438
1439
1440 # Keep a trace of the command line.
1441 # Strip out --no-create and --no-recursion so they do not pile up.
1442 # Strip out --silent because we don't want to record it for future runs.
1443 # Also quote any args containing shell meta-characters.
1444 # Make two passes to allow for proper duplicate-argument suppression.
1445 ac_configure_args=
1446 ac_configure_args0=
1447 ac_configure_args1=
1448 ac_sep=
1449 ac_must_keep_next=false
1450 for ac_pass in 1 2
1451 do
1452 for ac_arg
1453 do
1454 case $ac_arg in
1455 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1457 | -silent | --silent | --silen | --sile | --sil)
1458 continue ;;
1459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1460 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1461 esac
1462 case $ac_pass in
1463 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1464 2)
1465 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1466 if test $ac_must_keep_next = true; then
1467 ac_must_keep_next=false # Got value, back to normal.
1468 else
1469 case $ac_arg in
1470 *=* | --config-cache | -C | -disable-* | --disable-* \
1471 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1472 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1473 | -with-* | --with-* | -without-* | --without-* | --x)
1474 case "$ac_configure_args0 " in
1475 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1476 esac
1477 ;;
1478 -* ) ac_must_keep_next=true ;;
1479 esac
1480 fi
1481 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1482 # Get rid of the leading space.
1483 ac_sep=" "
1484 ;;
1485 esac
1486 done
1487 done
1488 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1489 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1490
1491 # When interrupted or exit'd, cleanup temporary files, and complete
1492 # config.log. We remove comments because anyway the quotes in there
1493 # would cause problems or look ugly.
1494 # WARNING: Be sure not to use single quotes in there, as some shells,
1495 # such as our DU 5.0 friend, will then `close' the trap.
1496 trap 'exit_status=$?
1497 # Save into config.log some information that might help in debugging.
1498 {
1499 echo
1500
1501 cat <<\_ASBOX
1502 ## ---------------- ##
1503 ## Cache variables. ##
1504 ## ---------------- ##
1505 _ASBOX
1506 echo
1507 # The following way of writing the cache mishandles newlines in values,
1508 {
1509 (set) 2>&1 |
1510 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1511 *ac_space=\ *)
1512 sed -n \
1513 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1514 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1515 ;;
1516 *)
1517 sed -n \
1518 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1519 ;;
1520 esac;
1521 }
1522 echo
1523
1524 cat <<\_ASBOX
1525 ## ----------------- ##
1526 ## Output variables. ##
1527 ## ----------------- ##
1528 _ASBOX
1529 echo
1530 for ac_var in $ac_subst_vars
1531 do
1532 eval ac_val=$`echo $ac_var`
1533 echo "$ac_var='"'"'$ac_val'"'"'"
1534 done | sort
1535 echo
1536
1537 if test -n "$ac_subst_files"; then
1538 cat <<\_ASBOX
1539 ## ------------- ##
1540 ## Output files. ##
1541 ## ------------- ##
1542 _ASBOX
1543 echo
1544 for ac_var in $ac_subst_files
1545 do
1546 eval ac_val=$`echo $ac_var`
1547 echo "$ac_var='"'"'$ac_val'"'"'"
1548 done | sort
1549 echo
1550 fi
1551
1552 if test -s confdefs.h; then
1553 cat <<\_ASBOX
1554 ## ----------- ##
1555 ## confdefs.h. ##
1556 ## ----------- ##
1557 _ASBOX
1558 echo
1559 sed "/^$/d" confdefs.h | sort
1560 echo
1561 fi
1562 test "$ac_signal" != 0 &&
1563 echo "$as_me: caught signal $ac_signal"
1564 echo "$as_me: exit $exit_status"
1565 } >&5
1566 rm -f core *.core &&
1567 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1568 exit $exit_status
1569 ' 0
1570 for ac_signal in 1 2 13 15; do
1571 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1572 done
1573 ac_signal=0
1574
1575 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1576 rm -rf conftest* confdefs.h
1577 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1578 echo >confdefs.h
1579
1580 # Predefined preprocessor variables.
1581
1582 cat >>confdefs.h <<_ACEOF
1583 #define PACKAGE_NAME "$PACKAGE_NAME"
1584 _ACEOF
1585
1586
1587 cat >>confdefs.h <<_ACEOF
1588 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1589 _ACEOF
1590
1591
1592 cat >>confdefs.h <<_ACEOF
1593 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1594 _ACEOF
1595
1596
1597 cat >>confdefs.h <<_ACEOF
1598 #define PACKAGE_STRING "$PACKAGE_STRING"
1599 _ACEOF
1600
1601
1602 cat >>confdefs.h <<_ACEOF
1603 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1604 _ACEOF
1605
1606
1607 # Let the site file select an alternate cache file if it wants to.
1608 # Prefer explicitly selected file to automatically selected ones.
1609 if test -z "$CONFIG_SITE"; then
1610 if test "x$prefix" != xNONE; then
1611 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1612 else
1613 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1614 fi
1615 fi
1616 for ac_site_file in $CONFIG_SITE; do
1617 if test -r "$ac_site_file"; then
1618 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1619 echo "$as_me: loading site script $ac_site_file" >&6;}
1620 sed 's/^/| /' "$ac_site_file" >&5
1621 . "$ac_site_file"
1622 fi
1623 done
1624
1625 if test -r "$cache_file"; then
1626 # Some versions of bash will fail to source /dev/null (special
1627 # files actually), so we avoid doing that.
1628 if test -f "$cache_file"; then
1629 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1630 echo "$as_me: loading cache $cache_file" >&6;}
1631 case $cache_file in
1632 [\\/]* | ?:[\\/]* ) . $cache_file;;
1633 *) . ./$cache_file;;
1634 esac
1635 fi
1636 else
1637 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1638 echo "$as_me: creating cache $cache_file" >&6;}
1639 >$cache_file
1640 fi
1641
1642 # Check that the precious variables saved in the cache have kept the same
1643 # value.
1644 ac_cache_corrupted=false
1645 for ac_var in `(set) 2>&1 |
1646 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1647 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1648 eval ac_new_set=\$ac_env_${ac_var}_set
1649 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1650 eval ac_new_val="\$ac_env_${ac_var}_value"
1651 case $ac_old_set,$ac_new_set in
1652 set,)
1653 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1654 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1655 ac_cache_corrupted=: ;;
1656 ,set)
1657 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1658 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1659 ac_cache_corrupted=: ;;
1660 ,);;
1661 *)
1662 if test "x$ac_old_val" != "x$ac_new_val"; then
1663 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1664 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1665 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1666 echo "$as_me: former value: $ac_old_val" >&2;}
1667 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1668 echo "$as_me: current value: $ac_new_val" >&2;}
1669 ac_cache_corrupted=:
1670 fi;;
1671 esac
1672 # Pass precious variables to config.status.
1673 if test "$ac_new_set" = set; then
1674 case $ac_new_val in
1675 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1676 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1677 *) ac_arg=$ac_var=$ac_new_val ;;
1678 esac
1679 case " $ac_configure_args " in
1680 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1681 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1682 esac
1683 fi
1684 done
1685 if $ac_cache_corrupted; then
1686 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1687 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1688 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1689 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1690 { (exit 1); exit 1; }; }
1691 fi
1692
1693 ac_ext=c
1694 ac_cpp='$CPP $CPPFLAGS'
1695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726 ac_config_headers="$ac_config_headers include/autoconf.h"
1727
1728 ac_aux_dir=
1729 for ac_dir in cfgaux $srcdir/cfgaux; do
1730 if test -f $ac_dir/install-sh; then
1731 ac_aux_dir=$ac_dir
1732 ac_install_sh="$ac_aux_dir/install-sh -c"
1733 break
1734 elif test -f $ac_dir/install.sh; then
1735 ac_aux_dir=$ac_dir
1736 ac_install_sh="$ac_aux_dir/install.sh -c"
1737 break
1738 elif test -f $ac_dir/shtool; then
1739 ac_aux_dir=$ac_dir
1740 ac_install_sh="$ac_aux_dir/shtool install -c"
1741 break
1742 fi
1743 done
1744 if test -z "$ac_aux_dir"; then
1745 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cfgaux $srcdir/cfgaux" >&5
1746 echo "$as_me: error: cannot find install-sh or install.sh in cfgaux $srcdir/cfgaux" >&2;}
1747 { (exit 1); exit 1; }; }
1748 fi
1749 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1750 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1751 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1752
1753
1754 am__api_version="1.9"
1755 # Find a good install program. We prefer a C program (faster),
1756 # so one script is as good as another. But avoid the broken or
1757 # incompatible versions:
1758 # SysV /etc/install, /usr/sbin/install
1759 # SunOS /usr/etc/install
1760 # IRIX /sbin/install
1761 # AIX /bin/install
1762 # AmigaOS /C/install, which installs bootblocks on floppy discs
1763 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1764 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1765 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1766 # OS/2's system install, which has a completely different semantic
1767 # ./install, which can be erroneously created by make from ./install.sh.
1768 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1769 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1770 if test -z "$INSTALL"; then
1771 if test "${ac_cv_path_install+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1773 else
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 for as_dir in $PATH
1776 do
1777 IFS=$as_save_IFS
1778 test -z "$as_dir" && as_dir=.
1779 # Account for people who put trailing slashes in PATH elements.
1780 case $as_dir/ in
1781 ./ | .// | /cC/* | \
1782 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1783 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1784 /usr/ucb/* ) ;;
1785 *)
1786 # OSF1 and SCO ODT 3.0 have their own names for install.
1787 # Don't use installbsd from OSF since it installs stuff as root
1788 # by default.
1789 for ac_prog in ginstall scoinst install; do
1790 for ac_exec_ext in '' $ac_executable_extensions; do
1791 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1792 if test $ac_prog = install &&
1793 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1794 # AIX install. It has an incompatible calling convention.
1795 :
1796 elif test $ac_prog = install &&
1797 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1798 # program-specific install script used by HP pwplus--don't use.
1799 :
1800 else
1801 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1802 break 3
1803 fi
1804 fi
1805 done
1806 done
1807 ;;
1808 esac
1809 done
1810
1811
1812 fi
1813 if test "${ac_cv_path_install+set}" = set; then
1814 INSTALL=$ac_cv_path_install
1815 else
1816 # As a last resort, use the slow shell script. We don't cache a
1817 # path for INSTALL within a source directory, because that will
1818 # break other packages using the cache if that directory is
1819 # removed, or if the path is relative.
1820 INSTALL=$ac_install_sh
1821 fi
1822 fi
1823 echo "$as_me:$LINENO: result: $INSTALL" >&5
1824 echo "${ECHO_T}$INSTALL" >&6
1825
1826 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1827 # It thinks the first close brace ends the variable substitution.
1828 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1829
1830 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1831
1832 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1833
1834 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1835 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1836 # Just in case
1837 sleep 1
1838 echo timestamp > conftest.file
1839 # Do `set' in a subshell so we don't clobber the current shell's
1840 # arguments. Must try -L first in case configure is actually a
1841 # symlink; some systems play weird games with the mod time of symlinks
1842 # (eg FreeBSD returns the mod time of the symlink's containing
1843 # directory).
1844 if (
1845 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1846 if test "$*" = "X"; then
1847 # -L didn't work.
1848 set X `ls -t $srcdir/configure conftest.file`
1849 fi
1850 rm -f conftest.file
1851 if test "$*" != "X $srcdir/configure conftest.file" \
1852 && test "$*" != "X conftest.file $srcdir/configure"; then
1853
1854 # If neither matched, then we have a broken ls. This can happen
1855 # if, for instance, CONFIG_SHELL is bash and it inherits a
1856 # broken ls alias from the environment. This has actually
1857 # happened. Such a system could not be considered "sane".
1858 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1859 alias in your environment" >&5
1860 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1861 alias in your environment" >&2;}
1862 { (exit 1); exit 1; }; }
1863 fi
1864
1865 test "$2" = conftest.file
1866 )
1867 then
1868 # Ok.
1869 :
1870 else
1871 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1872 Check your system clock" >&5
1873 echo "$as_me: error: newly created file is older than distributed files!
1874 Check your system clock" >&2;}
1875 { (exit 1); exit 1; }; }
1876 fi
1877 echo "$as_me:$LINENO: result: yes" >&5
1878 echo "${ECHO_T}yes" >&6
1879 test "$program_prefix" != NONE &&
1880 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1881 # Use a double $ so make ignores it.
1882 test "$program_suffix" != NONE &&
1883 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1884 # Double any \ or $. echo might interpret backslashes.
1885 # By default was `s,x,x', remove it if useless.
1886 cat <<\_ACEOF >conftest.sed
1887 s/[\\$]/&&/g;s/;s,x,x,$//
1888 _ACEOF
1889 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1890 rm conftest.sed
1891
1892 # expand $ac_aux_dir to an absolute path
1893 am_aux_dir=`cd $ac_aux_dir && pwd`
1894
1895 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1896 # Use eval to expand $SHELL
1897 if eval "$MISSING --run true"; then
1898 am_missing_run="$MISSING --run "
1899 else
1900 am_missing_run=
1901 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1902 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1903 fi
1904
1905 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1906 # We used to keeping the `.' as first argument, in order to
1907 # allow $(mkdir_p) to be used without argument. As in
1908 # $(mkdir_p) $(somedir)
1909 # where $(somedir) is conditionally defined. However this is wrong
1910 # for two reasons:
1911 # 1. if the package is installed by a user who cannot write `.'
1912 # make install will fail,
1913 # 2. the above comment should most certainly read
1914 # $(mkdir_p) $(DESTDIR)$(somedir)
1915 # so it does not work when $(somedir) is undefined and
1916 # $(DESTDIR) is not.
1917 # To support the latter case, we have to write
1918 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1919 # so the `.' trick is pointless.
1920 mkdir_p='mkdir -p --'
1921 else
1922 # On NextStep and OpenStep, the `mkdir' command does not
1923 # recognize any option. It will interpret all options as
1924 # directories to create, and then abort because `.' already
1925 # exists.
1926 for d in ./-p ./--version;
1927 do
1928 test -d $d && rmdir $d
1929 done
1930 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1931 if test -f "$ac_aux_dir/mkinstalldirs"; then
1932 mkdir_p='$(mkinstalldirs)'
1933 else
1934 mkdir_p='$(install_sh) -d'
1935 fi
1936 fi
1937
1938 for ac_prog in gawk mawk nawk awk
1939 do
1940 # Extract the first word of "$ac_prog", so it can be a program name with args.
1941 set dummy $ac_prog; ac_word=$2
1942 echo "$as_me:$LINENO: checking for $ac_word" >&5
1943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1944 if test "${ac_cv_prog_AWK+set}" = set; then
1945 echo $ECHO_N "(cached) $ECHO_C" >&6
1946 else
1947 if test -n "$AWK"; then
1948 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1949 else
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 for as_dir in $PATH
1952 do
1953 IFS=$as_save_IFS
1954 test -z "$as_dir" && as_dir=.
1955 for ac_exec_ext in '' $ac_executable_extensions; do
1956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1957 ac_cv_prog_AWK="$ac_prog"
1958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959 break 2
1960 fi
1961 done
1962 done
1963
1964 fi
1965 fi
1966 AWK=$ac_cv_prog_AWK
1967 if test -n "$AWK"; then
1968 echo "$as_me:$LINENO: result: $AWK" >&5
1969 echo "${ECHO_T}$AWK" >&6
1970 else
1971 echo "$as_me:$LINENO: result: no" >&5
1972 echo "${ECHO_T}no" >&6
1973 fi
1974
1975 test -n "$AWK" && break
1976 done
1977
1978 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1979 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1980 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1981 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984 cat >conftest.make <<\_ACEOF
1985 all:
1986 @echo 'ac_maketemp="$(MAKE)"'
1987 _ACEOF
1988 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1989 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1990 if test -n "$ac_maketemp"; then
1991 eval ac_cv_prog_make_${ac_make}_set=yes
1992 else
1993 eval ac_cv_prog_make_${ac_make}_set=no
1994 fi
1995 rm -f conftest.make
1996 fi
1997 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1998 echo "$as_me:$LINENO: result: yes" >&5
1999 echo "${ECHO_T}yes" >&6
2000 SET_MAKE=
2001 else
2002 echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6
2004 SET_MAKE="MAKE=${MAKE-make}"
2005 fi
2006
2007 rm -rf .tst 2>/dev/null
2008 mkdir .tst 2>/dev/null
2009 if test -d .tst; then
2010 am__leading_dot=.
2011 else
2012 am__leading_dot=_
2013 fi
2014 rmdir .tst 2>/dev/null
2015
2016 # test to see if srcdir already configured
2017 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2018 test -f $srcdir/config.status; then
2019 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2020 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2021 { (exit 1); exit 1; }; }
2022 fi
2023
2024 # test whether we have cygpath
2025 if test -z "$CYGPATH_W"; then
2026 if (cygpath --version) >/dev/null 2>/dev/null; then
2027 CYGPATH_W='cygpath -w'
2028 else
2029 CYGPATH_W=echo
2030 fi
2031 fi
2032
2033
2034 # Define the identity of the package.
2035 PACKAGE='squid'
2036 VERSION='3.0.PRE6-CVS'
2037
2038
2039 cat >>confdefs.h <<_ACEOF
2040 #define PACKAGE "$PACKAGE"
2041 _ACEOF
2042
2043
2044 cat >>confdefs.h <<_ACEOF
2045 #define VERSION "$VERSION"
2046 _ACEOF
2047
2048 # Some tools Automake needs.
2049
2050 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2051
2052
2053 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2054
2055
2056 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2057
2058
2059 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2060
2061
2062 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2063
2064 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2065
2066 # Installed binaries are usually stripped using `strip' when the user
2067 # run `make install-strip'. However `strip' might not be the right
2068 # tool to use in cross-compilation environments, therefore Automake
2069 # will honor the `STRIP' environment variable to overrule this program.
2070 if test "$cross_compiling" != no; then
2071 if test -n "$ac_tool_prefix"; then
2072 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2073 set dummy ${ac_tool_prefix}strip; ac_word=$2
2074 echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2076 if test "${ac_cv_prog_STRIP+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 else
2079 if test -n "$STRIP"; then
2080 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2081 else
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 for as_dir in $PATH
2084 do
2085 IFS=$as_save_IFS
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2089 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091 break 2
2092 fi
2093 done
2094 done
2095
2096 fi
2097 fi
2098 STRIP=$ac_cv_prog_STRIP
2099 if test -n "$STRIP"; then
2100 echo "$as_me:$LINENO: result: $STRIP" >&5
2101 echo "${ECHO_T}$STRIP" >&6
2102 else
2103 echo "$as_me:$LINENO: result: no" >&5
2104 echo "${ECHO_T}no" >&6
2105 fi
2106
2107 fi
2108 if test -z "$ac_cv_prog_STRIP"; then
2109 ac_ct_STRIP=$STRIP
2110 # Extract the first word of "strip", so it can be a program name with args.
2111 set dummy strip; ac_word=$2
2112 echo "$as_me:$LINENO: checking for $ac_word" >&5
2113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2114 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2115 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 else
2117 if test -n "$ac_ct_STRIP"; then
2118 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2119 else
2120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121 for as_dir in $PATH
2122 do
2123 IFS=$as_save_IFS
2124 test -z "$as_dir" && as_dir=.
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2127 ac_cv_prog_ac_ct_STRIP="strip"
2128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129 break 2
2130 fi
2131 done
2132 done
2133
2134 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2135 fi
2136 fi
2137 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2138 if test -n "$ac_ct_STRIP"; then
2139 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2140 echo "${ECHO_T}$ac_ct_STRIP" >&6
2141 else
2142 echo "$as_me:$LINENO: result: no" >&5
2143 echo "${ECHO_T}no" >&6
2144 fi
2145
2146 STRIP=$ac_ct_STRIP
2147 else
2148 STRIP="$ac_cv_prog_STRIP"
2149 fi
2150
2151 fi
2152 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2153
2154 # We need awk for the "check" target. The system "awk" is bad on
2155 # some platforms.
2156 # Always define AMTAR for backward compatibility.
2157
2158 AMTAR=${AMTAR-"${am_missing_run}tar"}
2159
2160
2161 echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
2162 echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6
2163 # Loop over all known methods to create a tar archive until one works.
2164 _am_tools='gnutar plaintar pax cpio none'
2165 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2166 # Do not fold the above two line into one, because Tru64 sh and
2167 # Solaris sh will not grok spaces in the rhs of `-'.
2168 for _am_tool in $_am_tools
2169 do
2170 case $_am_tool in
2171 gnutar)
2172 for _am_tar in tar gnutar gtar;
2173 do
2174 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2175 ($_am_tar --version) >&5 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); } && break
2179 done
2180 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2181 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2182 am__untar="$_am_tar -xf -"
2183 ;;
2184 plaintar)
2185 # Must skip GNU tar: if it does not support --format= it doesn't create
2186 # ustar tarball either.
2187 (tar --version) >/dev/null 2>&1 && continue
2188 am__tar='tar chf - "$$tardir"'
2189 am__tar_='tar chf - "$tardir"'
2190 am__untar='tar xf -'
2191 ;;
2192 pax)
2193 am__tar='pax -L -x ustar -w "$$tardir"'
2194 am__tar_='pax -L -x ustar -w "$tardir"'
2195 am__untar='pax -r'
2196 ;;
2197 cpio)
2198 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2199 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2200 am__untar='cpio -i -H ustar -d'
2201 ;;
2202 none)
2203 am__tar=false
2204 am__tar_=false
2205 am__untar=false
2206 ;;
2207 esac
2208
2209 # If the value was cached, stop now. We just wanted to have am__tar
2210 # and am__untar set.
2211 test -n "${am_cv_prog_tar_ustar}" && break
2212
2213 # tar/untar a dummy directory, and stop if the command works
2214 rm -rf conftest.dir
2215 mkdir conftest.dir
2216 echo GrepMe > conftest.dir/file
2217 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2218 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }
2222 rm -rf conftest.dir
2223 if test -s conftest.tar; then
2224 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2225 ($am__untar <conftest.tar) >&5 2>&5
2226 ac_status=$?
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); }
2229 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2230 fi
2231 done
2232 rm -rf conftest.dir
2233
2234 if test "${am_cv_prog_tar_ustar+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237 am_cv_prog_tar_ustar=$_am_tool
2238 fi
2239
2240 echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
2241 echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6
2242
2243
2244
2245
2246
2247
2248 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2249 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2250 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2251 if test "${enable_maintainer_mode+set}" = set; then
2252 enableval="$enable_maintainer_mode"
2253 USE_MAINTAINER_MODE=$enableval
2254 else
2255 USE_MAINTAINER_MODE=no
2256 fi;
2257 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2258 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2259
2260
2261 if test $USE_MAINTAINER_MODE = yes; then
2262 MAINTAINER_MODE_TRUE=
2263 MAINTAINER_MODE_FALSE='#'
2264 else
2265 MAINTAINER_MODE_TRUE='#'
2266 MAINTAINER_MODE_FALSE=
2267 fi
2268
2269 MAINT=$MAINTAINER_MODE_TRUE
2270
2271
2272
2273 PRESET_CFLAGS="$CFLAGS"
2274 PRESET_LDFLAGS="$LDFLAGS"
2275
2276 if test -z "$LDFLAGS"; then
2277 LDFLAGS="-g"
2278 fi
2279
2280 ac_ext=c
2281 ac_cpp='$CPP $CPPFLAGS'
2282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2285 if test -n "$ac_tool_prefix"; then
2286 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2287 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2288 echo "$as_me:$LINENO: checking for $ac_word" >&5
2289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2290 if test "${ac_cv_prog_CC+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 else
2293 if test -n "$CC"; then
2294 ac_cv_prog_CC="$CC" # Let the user override the test.
2295 else
2296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 for as_dir in $PATH
2298 do
2299 IFS=$as_save_IFS
2300 test -z "$as_dir" && as_dir=.
2301 for ac_exec_ext in '' $ac_executable_extensions; do
2302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2303 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 break 2
2306 fi
2307 done
2308 done
2309
2310 fi
2311 fi
2312 CC=$ac_cv_prog_CC
2313 if test -n "$CC"; then
2314 echo "$as_me:$LINENO: result: $CC" >&5
2315 echo "${ECHO_T}$CC" >&6
2316 else
2317 echo "$as_me:$LINENO: result: no" >&5
2318 echo "${ECHO_T}no" >&6
2319 fi
2320
2321 fi
2322 if test -z "$ac_cv_prog_CC"; then
2323 ac_ct_CC=$CC
2324 # Extract the first word of "gcc", so it can be a program name with args.
2325 set dummy gcc; ac_word=$2
2326 echo "$as_me:$LINENO: checking for $ac_word" >&5
2327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2328 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331 if test -n "$ac_ct_CC"; then
2332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2333 else
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 for as_dir in $PATH
2336 do
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2341 ac_cv_prog_ac_ct_CC="gcc"
2342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2343 break 2
2344 fi
2345 done
2346 done
2347
2348 fi
2349 fi
2350 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2351 if test -n "$ac_ct_CC"; then
2352 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2353 echo "${ECHO_T}$ac_ct_CC" >&6
2354 else
2355 echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6
2357 fi
2358
2359 CC=$ac_ct_CC
2360 else
2361 CC="$ac_cv_prog_CC"
2362 fi
2363
2364 if test -z "$CC"; then
2365 if test -n "$ac_tool_prefix"; then
2366 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2367 set dummy ${ac_tool_prefix}cc; ac_word=$2
2368 echo "$as_me:$LINENO: checking for $ac_word" >&5
2369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2370 if test "${ac_cv_prog_CC+set}" = set; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 else
2373 if test -n "$CC"; then
2374 ac_cv_prog_CC="$CC" # Let the user override the test.
2375 else
2376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2377 for as_dir in $PATH
2378 do
2379 IFS=$as_save_IFS
2380 test -z "$as_dir" && as_dir=.
2381 for ac_exec_ext in '' $ac_executable_extensions; do
2382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2383 ac_cv_prog_CC="${ac_tool_prefix}cc"
2384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 break 2
2386 fi
2387 done
2388 done
2389
2390 fi
2391 fi
2392 CC=$ac_cv_prog_CC
2393 if test -n "$CC"; then
2394 echo "$as_me:$LINENO: result: $CC" >&5
2395 echo "${ECHO_T}$CC" >&6
2396 else
2397 echo "$as_me:$LINENO: result: no" >&5
2398 echo "${ECHO_T}no" >&6
2399 fi
2400
2401 fi
2402 if test -z "$ac_cv_prog_CC"; then
2403 ac_ct_CC=$CC
2404 # Extract the first word of "cc", so it can be a program name with args.
2405 set dummy cc; ac_word=$2
2406 echo "$as_me:$LINENO: checking for $ac_word" >&5
2407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2408 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2409 echo $ECHO_N "(cached) $ECHO_C" >&6
2410 else
2411 if test -n "$ac_ct_CC"; then
2412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2413 else
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 for as_dir in $PATH
2416 do
2417 IFS=$as_save_IFS
2418 test -z "$as_dir" && as_dir=.
2419 for ac_exec_ext in '' $ac_executable_extensions; do
2420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2421 ac_cv_prog_ac_ct_CC="cc"
2422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 break 2
2424 fi
2425 done
2426 done
2427
2428 fi
2429 fi
2430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2431 if test -n "$ac_ct_CC"; then
2432 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2433 echo "${ECHO_T}$ac_ct_CC" >&6
2434 else
2435 echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6
2437 fi
2438
2439 CC=$ac_ct_CC
2440 else
2441 CC="$ac_cv_prog_CC"
2442 fi
2443
2444 fi
2445 if test -z "$CC"; then
2446 # Extract the first word of "cc", so it can be a program name with args.
2447 set dummy cc; ac_word=$2
2448 echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2450 if test "${ac_cv_prog_CC+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453 if test -n "$CC"; then
2454 ac_cv_prog_CC="$CC" # Let the user override the test.
2455 else
2456 ac_prog_rejected=no
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458 for as_dir in $PATH
2459 do
2460 IFS=$as_save_IFS
2461 test -z "$as_dir" && as_dir=.
2462 for ac_exec_ext in '' $ac_executable_extensions; do
2463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2464 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2465 ac_prog_rejected=yes
2466 continue
2467 fi
2468 ac_cv_prog_CC="cc"
2469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 break 2
2471 fi
2472 done
2473 done
2474
2475 if test $ac_prog_rejected = yes; then
2476 # We found a bogon in the path, so make sure we never use it.
2477 set dummy $ac_cv_prog_CC
2478 shift
2479 if test $# != 0; then
2480 # We chose a different compiler from the bogus one.
2481 # However, it has the same basename, so the bogon will be chosen
2482 # first if we set CC to just the basename; use the full file name.
2483 shift
2484 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2485 fi
2486 fi
2487 fi
2488 fi
2489 CC=$ac_cv_prog_CC
2490 if test -n "$CC"; then
2491 echo "$as_me:$LINENO: result: $CC" >&5
2492 echo "${ECHO_T}$CC" >&6
2493 else
2494 echo "$as_me:$LINENO: result: no" >&5
2495 echo "${ECHO_T}no" >&6
2496 fi
2497
2498 fi
2499 if test -z "$CC"; then
2500 if test -n "$ac_tool_prefix"; then
2501 for ac_prog in cl
2502 do
2503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2505 echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2507 if test "${ac_cv_prog_CC+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 else
2510 if test -n "$CC"; then
2511 ac_cv_prog_CC="$CC" # Let the user override the test.
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2520 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2522 break 2
2523 fi
2524 done
2525 done
2526
2527 fi
2528 fi
2529 CC=$ac_cv_prog_CC
2530 if test -n "$CC"; then
2531 echo "$as_me:$LINENO: result: $CC" >&5
2532 echo "${ECHO_T}$CC" >&6
2533 else
2534 echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6
2536 fi
2537
2538 test -n "$CC" && break
2539 done
2540 fi
2541 if test -z "$CC"; then
2542 ac_ct_CC=$CC
2543 for ac_prog in cl
2544 do
2545 # Extract the first word of "$ac_prog", so it can be a program name with args.
2546 set dummy $ac_prog; ac_word=$2
2547 echo "$as_me:$LINENO: checking for $ac_word" >&5
2548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2549 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2550 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 else
2552 if test -n "$ac_ct_CC"; then
2553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2554 else
2555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 for as_dir in $PATH
2557 do
2558 IFS=$as_save_IFS
2559 test -z "$as_dir" && as_dir=.
2560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2562 ac_cv_prog_ac_ct_CC="$ac_prog"
2563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 break 2
2565 fi
2566 done
2567 done
2568
2569 fi
2570 fi
2571 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2572 if test -n "$ac_ct_CC"; then
2573 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2574 echo "${ECHO_T}$ac_ct_CC" >&6
2575 else
2576 echo "$as_me:$LINENO: result: no" >&5
2577 echo "${ECHO_T}no" >&6
2578 fi
2579
2580 test -n "$ac_ct_CC" && break
2581 done
2582
2583 CC=$ac_ct_CC
2584 fi
2585
2586 fi
2587
2588
2589 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2590 See \`config.log' for more details." >&5
2591 echo "$as_me: error: no acceptable C compiler found in \$PATH
2592 See \`config.log' for more details." >&2;}
2593 { (exit 1); exit 1; }; }
2594
2595 # Provide some information about the compiler.
2596 echo "$as_me:$LINENO:" \
2597 "checking for C compiler version" >&5
2598 ac_compiler=`set X $ac_compile; echo $2`
2599 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2600 (eval $ac_compiler --version </dev/null >&5) 2>&5
2601 ac_status=$?
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }
2604 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2605 (eval $ac_compiler -v </dev/null >&5) 2>&5
2606 ac_status=$?
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }
2609 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2610 (eval $ac_compiler -V </dev/null >&5) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }
2614
2615 cat >conftest.$ac_ext <<_ACEOF
2616 /* confdefs.h. */
2617 _ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h. */
2621
2622 int
2623 main ()
2624 {
2625
2626 ;
2627 return 0;
2628 }
2629 _ACEOF
2630 ac_clean_files_save=$ac_clean_files
2631 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2632 # Try to create an executable without -o first, disregard a.out.
2633 # It will help us diagnose broken compilers, and finding out an intuition
2634 # of exeext.
2635 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2636 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2637 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2638 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2639 (eval $ac_link_default) 2>&5
2640 ac_status=$?
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; then
2643 # Find the output, starting from the most likely. This scheme is
2644 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2645 # resort.
2646
2647 # Be careful to initialize this variable, since it used to be cached.
2648 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2649 ac_cv_exeext=
2650 # b.out is created by i960 compilers.
2651 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2652 do
2653 test -f "$ac_file" || continue
2654 case $ac_file in
2655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2656 ;;
2657 conftest.$ac_ext )
2658 # This is the source file.
2659 ;;
2660 [ab].out )
2661 # We found the default executable, but exeext='' is most
2662 # certainly right.
2663 break;;
2664 *.* )
2665 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2666 # FIXME: I believe we export ac_cv_exeext for Libtool,
2667 # but it would be cool to find out if it's true. Does anybody
2668 # maintain Libtool? --akim.
2669 export ac_cv_exeext
2670 break;;
2671 * )
2672 break;;
2673 esac
2674 done
2675 else
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2678
2679 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2680 See \`config.log' for more details." >&5
2681 echo "$as_me: error: C compiler cannot create executables
2682 See \`config.log' for more details." >&2;}
2683 { (exit 77); exit 77; }; }
2684 fi
2685
2686 ac_exeext=$ac_cv_exeext
2687 echo "$as_me:$LINENO: result: $ac_file" >&5
2688 echo "${ECHO_T}$ac_file" >&6
2689
2690 # Check the compiler produces executables we can run. If not, either
2691 # the compiler is broken, or we cross compile.
2692 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2693 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2694 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2695 # If not cross compiling, check that we can run a simple program.
2696 if test "$cross_compiling" != yes; then
2697 if { ac_try='./$ac_file'
2698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699 (eval $ac_try) 2>&5
2700 ac_status=$?
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; }; then
2703 cross_compiling=no
2704 else
2705 if test "$cross_compiling" = maybe; then
2706 cross_compiling=yes
2707 else
2708 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2709 If you meant to cross compile, use \`--host'.
2710 See \`config.log' for more details." >&5
2711 echo "$as_me: error: cannot run C compiled programs.
2712 If you meant to cross compile, use \`--host'.
2713 See \`config.log' for more details." >&2;}
2714 { (exit 1); exit 1; }; }
2715 fi
2716 fi
2717 fi
2718 echo "$as_me:$LINENO: result: yes" >&5
2719 echo "${ECHO_T}yes" >&6
2720
2721 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2722 ac_clean_files=$ac_clean_files_save
2723 # Check the compiler produces executables we can run. If not, either
2724 # the compiler is broken, or we cross compile.
2725 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2726 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2727 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2728 echo "${ECHO_T}$cross_compiling" >&6
2729
2730 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2731 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2733 (eval $ac_link) 2>&5
2734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; then
2737 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2738 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2739 # work properly (i.e., refer to `conftest.exe'), while it won't with
2740 # `rm'.
2741 for ac_file in conftest.exe conftest conftest.*; do
2742 test -f "$ac_file" || continue
2743 case $ac_file in
2744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2745 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2746 export ac_cv_exeext
2747 break;;
2748 * ) break;;
2749 esac
2750 done
2751 else
2752 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2753 See \`config.log' for more details." >&5
2754 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2755 See \`config.log' for more details." >&2;}
2756 { (exit 1); exit 1; }; }
2757 fi
2758
2759 rm -f conftest$ac_cv_exeext
2760 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2761 echo "${ECHO_T}$ac_cv_exeext" >&6
2762
2763 rm -f conftest.$ac_ext
2764 EXEEXT=$ac_cv_exeext
2765 ac_exeext=$EXEEXT
2766 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2767 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2768 if test "${ac_cv_objext+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 else
2771 cat >conftest.$ac_ext <<_ACEOF
2772 /* confdefs.h. */
2773 _ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2777
2778 int
2779 main ()
2780 {
2781
2782 ;
2783 return 0;
2784 }
2785 _ACEOF
2786 rm -f conftest.o conftest.obj
2787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2788 (eval $ac_compile) 2>&5
2789 ac_status=$?
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; then
2792 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2793 case $ac_file in
2794 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2795 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2796 break;;
2797 esac
2798 done
2799 else
2800 echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2802
2803 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2804 See \`config.log' for more details." >&5
2805 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2806 See \`config.log' for more details." >&2;}
2807 { (exit 1); exit 1; }; }
2808 fi
2809
2810 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2811 fi
2812 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2813 echo "${ECHO_T}$ac_cv_objext" >&6
2814 OBJEXT=$ac_cv_objext
2815 ac_objext=$OBJEXT
2816 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2817 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2818 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2819 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 else
2821 cat >conftest.$ac_ext <<_ACEOF
2822 /* confdefs.h. */
2823 _ACEOF
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h. */
2827
2828 int
2829 main ()
2830 {
2831 #ifndef __GNUC__
2832 choke me
2833 #endif
2834
2835 ;
2836 return 0;
2837 }
2838 _ACEOF
2839 rm -f conftest.$ac_objext
2840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2841 (eval $ac_compile) 2>conftest.er1
2842 ac_status=$?
2843 grep -v '^ *+' conftest.er1 >conftest.err
2844 rm -f conftest.er1
2845 cat conftest.err >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); } &&
2848 { ac_try='test -z "$ac_c_werror_flag"
2849 || test ! -s conftest.err'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 (eval $ac_try) 2>&5
2852 ac_status=$?
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; } &&
2855 { ac_try='test -s conftest.$ac_objext'
2856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 (eval $ac_try) 2>&5
2858 ac_status=$?
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }; }; then
2861 ac_compiler_gnu=yes
2862 else
2863 echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2865
2866 ac_compiler_gnu=no
2867 fi
2868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2869 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2870
2871 fi
2872 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2873 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2874 GCC=`test $ac_compiler_gnu = yes && echo yes`
2875 ac_test_CFLAGS=${CFLAGS+set}
2876 ac_save_CFLAGS=$CFLAGS
2877 CFLAGS="-g"
2878 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2879 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2880 if test "${ac_cv_prog_cc_g+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2882 else
2883 cat >conftest.$ac_ext <<_ACEOF
2884 /* confdefs.h. */
2885 _ACEOF
2886 cat confdefs.h >>conftest.$ac_ext
2887 cat >>conftest.$ac_ext <<_ACEOF
2888 /* end confdefs.h. */
2889
2890 int
2891 main ()
2892 {
2893
2894 ;
2895 return 0;
2896 }
2897 _ACEOF
2898 rm -f conftest.$ac_objext
2899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2900 (eval $ac_compile) 2>conftest.er1
2901 ac_status=$?
2902 grep -v '^ *+' conftest.er1 >conftest.err
2903 rm -f conftest.er1
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } &&
2907 { ac_try='test -z "$ac_c_werror_flag"
2908 || test ! -s conftest.err'
2909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 (eval $ac_try) 2>&5
2911 ac_status=$?
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; } &&
2914 { ac_try='test -s conftest.$ac_objext'
2915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916 (eval $ac_try) 2>&5
2917 ac_status=$?
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; }; then
2920 ac_cv_prog_cc_g=yes
2921 else
2922 echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2924
2925 ac_cv_prog_cc_g=no
2926 fi
2927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2928 fi
2929 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2930 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2931 if test "$ac_test_CFLAGS" = set; then
2932 CFLAGS=$ac_save_CFLAGS
2933 elif test $ac_cv_prog_cc_g = yes; then
2934 if test "$GCC" = yes; then
2935 CFLAGS="-g -O2"
2936 else
2937 CFLAGS="-g"
2938 fi
2939 else
2940 if test "$GCC" = yes; then
2941 CFLAGS="-O2"
2942 else
2943 CFLAGS=
2944 fi
2945 fi
2946 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2947 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2948 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2949 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 else
2951 ac_cv_prog_cc_stdc=no
2952 ac_save_CC=$CC
2953 cat >conftest.$ac_ext <<_ACEOF
2954 /* confdefs.h. */
2955 _ACEOF
2956 cat confdefs.h >>conftest.$ac_ext
2957 cat >>conftest.$ac_ext <<_ACEOF
2958 /* end confdefs.h. */
2959 #include <stdarg.h>
2960 #include <stdio.h>
2961 #include <sys/types.h>
2962 #include <sys/stat.h>
2963 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2964 struct buf { int x; };
2965 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2966 static char *e (p, i)
2967 char **p;
2968 int i;
2969 {
2970 return p[i];
2971 }
2972 static char *f (char * (*g) (char **, int), char **p, ...)
2973 {
2974 char *s;
2975 va_list v;
2976 va_start (v,p);
2977 s = g (p, va_arg (v,int));
2978 va_end (v);
2979 return s;
2980 }
2981
2982 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2983 function prototypes and stuff, but not '\xHH' hex character constants.
2984 These don't provoke an error unfortunately, instead are silently treated
2985 as 'x'. The following induces an error, until -std1 is added to get
2986 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2987 array size at least. It's necessary to write '\x00'==0 to get something
2988 that's true only with -std1. */
2989 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2990
2991 int test (int i, double x);
2992 struct s1 {int (*f) (int a);};
2993 struct s2 {int (*f) (double a);};
2994 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2995 int argc;
2996 char **argv;
2997 int
2998 main ()
2999 {
3000 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3001 ;
3002 return 0;
3003 }
3004 _ACEOF
3005 # Don't try gcc -ansi; that turns off useful extensions and
3006 # breaks some systems' header files.
3007 # AIX -qlanglvl=ansi
3008 # Ultrix and OSF/1 -std1
3009 # HP-UX 10.20 and later -Ae
3010 # HP-UX older versions -Aa -D_HPUX_SOURCE
3011 # SVR4 -Xc -D__EXTENSIONS__
3012 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3013 do
3014 CC="$ac_save_CC $ac_arg"
3015 rm -f conftest.$ac_objext
3016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3017 (eval $ac_compile) 2>conftest.er1
3018 ac_status=$?
3019 grep -v '^ *+' conftest.er1 >conftest.err
3020 rm -f conftest.er1
3021 cat conftest.err >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } &&
3024 { ac_try='test -z "$ac_c_werror_flag"
3025 || test ! -s conftest.err'
3026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027 (eval $ac_try) 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; } &&
3031 { ac_try='test -s conftest.$ac_objext'
3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033 (eval $ac_try) 2>&5
3034 ac_status=$?
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; }; then
3037 ac_cv_prog_cc_stdc=$ac_arg
3038 break
3039 else
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3042
3043 fi
3044 rm -f conftest.err conftest.$ac_objext
3045 done
3046 rm -f conftest.$ac_ext conftest.$ac_objext
3047 CC=$ac_save_CC
3048
3049 fi
3050
3051 case "x$ac_cv_prog_cc_stdc" in
3052 x|xno)
3053 echo "$as_me:$LINENO: result: none needed" >&5
3054 echo "${ECHO_T}none needed" >&6 ;;
3055 *)
3056 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3057 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3058 CC="$CC $ac_cv_prog_cc_stdc" ;;
3059 esac
3060
3061 # Some people use a C++ compiler to compile C. Since we use `exit',
3062 # in C++ we need to declare it. In case someone uses the same compiler
3063 # for both compiling C and C++ we need to have the C++ compiler decide
3064 # the declaration of exit, since it's the most demanding environment.
3065 cat >conftest.$ac_ext <<_ACEOF
3066 #ifndef __cplusplus
3067 choke me
3068 #endif
3069 _ACEOF
3070 rm -f conftest.$ac_objext
3071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3072 (eval $ac_compile) 2>conftest.er1
3073 ac_status=$?
3074 grep -v '^ *+' conftest.er1 >conftest.err
3075 rm -f conftest.er1
3076 cat conftest.err >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } &&
3079 { ac_try='test -z "$ac_c_werror_flag"
3080 || test ! -s conftest.err'
3081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082 (eval $ac_try) 2>&5
3083 ac_status=$?
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; } &&
3086 { ac_try='test -s conftest.$ac_objext'
3087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3088 (eval $ac_try) 2>&5
3089 ac_status=$?
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; }; then
3092 for ac_declaration in \
3093 '' \
3094 'extern "C" void std::exit (int) throw (); using std::exit;' \
3095 'extern "C" void std::exit (int); using std::exit;' \
3096 'extern "C" void exit (int) throw ();' \
3097 'extern "C" void exit (int);' \
3098 'void exit (int);'
3099 do
3100 cat >conftest.$ac_ext <<_ACEOF
3101 /* confdefs.h. */
3102 _ACEOF
3103 cat confdefs.h >>conftest.$ac_ext
3104 cat >>conftest.$ac_ext <<_ACEOF
3105 /* end confdefs.h. */
3106 $ac_declaration
3107 #include <stdlib.h>
3108 int
3109 main ()
3110 {
3111 exit (42);
3112 ;
3113 return 0;
3114 }
3115 _ACEOF
3116 rm -f conftest.$ac_objext
3117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3118 (eval $ac_compile) 2>conftest.er1
3119 ac_status=$?
3120 grep -v '^ *+' conftest.er1 >conftest.err
3121 rm -f conftest.er1
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } &&
3125 { ac_try='test -z "$ac_c_werror_flag"
3126 || test ! -s conftest.err'
3127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128 (eval $ac_try) 2>&5
3129 ac_status=$?
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; } &&
3132 { ac_try='test -s conftest.$ac_objext'
3133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134 (eval $ac_try) 2>&5
3135 ac_status=$?
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }; }; then
3138 :
3139 else
3140 echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3142
3143 continue
3144 fi
3145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3146 cat >conftest.$ac_ext <<_ACEOF
3147 /* confdefs.h. */
3148 _ACEOF
3149 cat confdefs.h >>conftest.$ac_ext
3150 cat >>conftest.$ac_ext <<_ACEOF
3151 /* end confdefs.h. */
3152 $ac_declaration
3153 int
3154 main ()
3155 {
3156 exit (42);
3157 ;
3158 return 0;
3159 }
3160 _ACEOF
3161 rm -f conftest.$ac_objext
3162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3163 (eval $ac_compile) 2>conftest.er1
3164 ac_status=$?
3165 grep -v '^ *+' conftest.er1 >conftest.err
3166 rm -f conftest.er1
3167 cat conftest.err >&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); } &&
3170 { ac_try='test -z "$ac_c_werror_flag"
3171 || test ! -s conftest.err'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3173 (eval $ac_try) 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; } &&
3177 { ac_try='test -s conftest.$ac_objext'
3178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179 (eval $ac_try) 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3183 break
3184 else
3185 echo "$as_me: failed program was:" >&5
3186 sed 's/^/| /' conftest.$ac_ext >&5
3187
3188 fi
3189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3190 done
3191 rm -f conftest*
3192 if test -n "$ac_declaration"; then
3193 echo '#ifdef __cplusplus' >>confdefs.h
3194 echo $ac_declaration >>confdefs.h
3195 echo '#endif' >>confdefs.h
3196 fi
3197
3198 else
3199 echo "$as_me: failed program was:" >&5
3200 sed 's/^/| /' conftest.$ac_ext >&5
3201
3202 fi
3203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3204 ac_ext=c
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209 DEPDIR="${am__leading_dot}deps"
3210
3211 ac_config_commands="$ac_config_commands depfiles"
3212
3213
3214 am_make=${MAKE-make}
3215 cat > confinc << 'END'
3216 am__doit:
3217 @echo done
3218 .PHONY: am__doit
3219 END
3220 # If we don't find an include directive, just comment out the code.
3221 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3222 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3223 am__include="#"
3224 am__quote=
3225 _am_result=none
3226 # First try GNU make style include.
3227 echo "include confinc" > confmf
3228 # We grep out `Entering directory' and `Leaving directory'
3229 # messages which can occur if `w' ends up in MAKEFLAGS.
3230 # In particular we don't look at `^make:' because GNU make might
3231 # be invoked under some other name (usually "gmake"), in which
3232 # case it prints its new name instead of `make'.
3233 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3234 am__include=include
3235 am__quote=
3236 _am_result=GNU
3237 fi
3238 # Now try BSD make style include.
3239 if test "$am__include" = "#"; then
3240 echo '.include "confinc"' > confmf
3241 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3242 am__include=.include
3243 am__quote="\""
3244 _am_result=BSD
3245 fi
3246 fi
3247
3248
3249 echo "$as_me:$LINENO: result: $_am_result" >&5
3250 echo "${ECHO_T}$_am_result" >&6
3251 rm -f confinc confmf
3252
3253 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3254 if test "${enable_dependency_tracking+set}" = set; then
3255 enableval="$enable_dependency_tracking"
3256
3257 fi;
3258 if test "x$enable_dependency_tracking" != xno; then
3259 am_depcomp="$ac_aux_dir/depcomp"
3260 AMDEPBACKSLASH='\'
3261 fi
3262
3263
3264 if test "x$enable_dependency_tracking" != xno; then
3265 AMDEP_TRUE=
3266 AMDEP_FALSE='#'
3267 else
3268 AMDEP_TRUE='#'
3269 AMDEP_FALSE=
3270 fi
3271
3272
3273
3274
3275 depcc="$CC" am_compiler_list=
3276
3277 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3278 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3279 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 else
3282 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3283 # We make a subdir and do the tests there. Otherwise we can end up
3284 # making bogus files that we don't know about and never remove. For
3285 # instance it was reported that on HP-UX the gcc test will end up
3286 # making a dummy file named `D' -- because `-MD' means `put the output
3287 # in D'.
3288 mkdir conftest.dir
3289 # Copy depcomp to subdir because otherwise we won't find it if we're
3290 # using a relative directory.
3291 cp "$am_depcomp" conftest.dir
3292 cd conftest.dir
3293 # We will build objects and dependencies in a subdirectory because
3294 # it helps to detect inapplicable dependency modes. For instance
3295 # both Tru64's cc and ICC support -MD to output dependencies as a
3296 # side effect of compilation, but ICC will put the dependencies in
3297 # the current directory while Tru64 will put them in the object
3298 # directory.
3299 mkdir sub
3300
3301 am_cv_CC_dependencies_compiler_type=none
3302 if test "$am_compiler_list" = ""; then
3303 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3304 fi
3305 for depmode in $am_compiler_list; do
3306 # Setup a source with many dependencies, because some compilers
3307 # like to wrap large dependency lists on column 80 (with \), and
3308 # we should not choose a depcomp mode which is confused by this.
3309 #
3310 # We need to recreate these files for each test, as the compiler may
3311 # overwrite some of them when testing with obscure command lines.
3312 # This happens at least with the AIX C compiler.
3313 : > sub/conftest.c
3314 for i in 1 2 3 4 5 6; do
3315 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3316 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3317 # Solaris 8's {/usr,}/bin/sh.
3318 touch sub/conftst$i.h
3319 done
3320 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3321
3322 case $depmode in
3323 nosideeffect)
3324 # after this tag, mechanisms are not by side-effect, so they'll
3325 # only be used when explicitly requested
3326 if test "x$enable_dependency_tracking" = xyes; then
3327 continue
3328 else
3329 break
3330 fi
3331 ;;
3332 none) break ;;
3333 esac
3334 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3335 # mode. It turns out that the SunPro C++ compiler does not properly
3336 # handle `-M -o', and we need to detect this.
3337 if depmode=$depmode \
3338 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3339 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3340 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3341 >/dev/null 2>conftest.err &&
3342 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3343 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3344 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3345 # icc doesn't choke on unknown options, it will just issue warnings
3346 # or remarks (even with -Werror). So we grep stderr for any message
3347 # that says an option was ignored or not supported.
3348 # When given -MP, icc 7.0 and 7.1 complain thusly:
3349 # icc: Command line warning: ignoring option '-M'; no argument required
3350 # The diagnosis changed in icc 8.0:
3351 # icc: Command line remark: option '-MP' not supported
3352 if (grep 'ignoring option' conftest.err ||
3353 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3354 am_cv_CC_dependencies_compiler_type=$depmode
3355 break
3356 fi
3357 fi
3358 done
3359
3360 cd ..
3361 rm -rf conftest.dir
3362 else
3363 am_cv_CC_dependencies_compiler_type=none
3364 fi
3365
3366 fi
3367 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3368 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3369 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3370
3371
3372
3373 if
3374 test "x$enable_dependency_tracking" != xno \
3375 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3376 am__fastdepCC_TRUE=
3377 am__fastdepCC_FALSE='#'
3378 else
3379 am__fastdepCC_TRUE='#'
3380 am__fastdepCC_FALSE=
3381 fi
3382
3383
3384 if test "x$CC" != xcc; then
3385 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3386 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3387 else
3388 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3389 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3390 fi
3391 set dummy $CC; ac_cc=`echo $2 |
3392 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3393 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396 cat >conftest.$ac_ext <<_ACEOF
3397 /* confdefs.h. */
3398 _ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3402
3403 int
3404 main ()
3405 {
3406
3407 ;
3408 return 0;
3409 }
3410 _ACEOF
3411 # Make sure it works both with $CC and with simple cc.
3412 # We do the test twice because some compilers refuse to overwrite an
3413 # existing .o file with -o, though they will create one.
3414 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3415 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3416 (eval $ac_try) 2>&5
3417 ac_status=$?
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } &&
3420 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421 (eval $ac_try) 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); };
3425 then
3426 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3427 if test "x$CC" != xcc; then
3428 # Test first that cc exists at all.
3429 if { ac_try='cc -c conftest.$ac_ext >&5'
3430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3431 (eval $ac_try) 2>&5
3432 ac_status=$?
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); }; }; then
3435 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3436 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437 (eval $ac_try) 2>&5
3438 ac_status=$?
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); } &&
3441 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); };
3446 then
3447 # cc works too.
3448 :
3449 else
3450 # cc exists but doesn't like -o.
3451 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3452 fi
3453 fi
3454 fi
3455 else
3456 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3457 fi
3458 rm -f conftest*
3459
3460 fi
3461 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3462 echo "$as_me:$LINENO: result: yes" >&5
3463 echo "${ECHO_T}yes" >&6
3464 else
3465 echo "$as_me:$LINENO: result: no" >&5
3466 echo "${ECHO_T}no" >&6
3467
3468 cat >>confdefs.h <<\_ACEOF
3469 #define NO_MINUS_C_MINUS_O 1
3470 _ACEOF
3471
3472 fi
3473
3474 # FIXME: we rely on the cache variable name because
3475 # there is no other way.
3476 set dummy $CC
3477 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3478 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3479 # Losing compiler, so override with the script.
3480 # FIXME: It is wrong to rewrite CC.
3481 # But if we don't then we get into trouble of one sort or another.
3482 # A longer-term fix would be to have automake use am__CC in this case,
3483 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3484 CC="$am_aux_dir/compile $CC"
3485 fi
3486
3487 ac_ext=c
3488 ac_cpp='$CPP $CPPFLAGS'
3489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3492
3493 ac_ext=cc
3494 ac_cpp='$CXXCPP $CPPFLAGS'
3495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3498 if test -n "$ac_tool_prefix"; then
3499 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3500 do
3501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3503 echo "$as_me:$LINENO: checking for $ac_word" >&5
3504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3505 if test "${ac_cv_prog_CXX+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 else
3508 if test -n "$CXX"; then
3509 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3510 else
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 for as_dir in $PATH
3513 do
3514 IFS=$as_save_IFS
3515 test -z "$as_dir" && as_dir=.
3516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3518 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3520 break 2
3521 fi
3522 done
3523 done
3524
3525 fi
3526 fi
3527 CXX=$ac_cv_prog_CXX
3528 if test -n "$CXX"; then
3529 echo "$as_me:$LINENO: result: $CXX" >&5
3530 echo "${ECHO_T}$CXX" >&6
3531 else
3532 echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6
3534 fi
3535
3536 test -n "$CXX" && break
3537 done
3538 fi
3539 if test -z "$CXX"; then
3540 ac_ct_CXX=$CXX
3541 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3542 do
3543 # Extract the first word of "$ac_prog", so it can be a program name with args.
3544 set dummy $ac_prog; ac_word=$2
3545 echo "$as_me:$LINENO: checking for $ac_word" >&5
3546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3547 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550 if test -n "$ac_ct_CXX"; then
3551 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3555 do
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3560 ac_cv_prog_ac_ct_CXX="$ac_prog"
3561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3563 fi
3564 done
3565 done
3566
3567 fi
3568 fi
3569 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3570 if test -n "$ac_ct_CXX"; then
3571 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3572 echo "${ECHO_T}$ac_ct_CXX" >&6
3573 else
3574 echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3576 fi
3577
3578 test -n "$ac_ct_CXX" && break
3579 done
3580 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3581
3582 CXX=$ac_ct_CXX
3583 fi
3584
3585
3586 # Provide some information about the compiler.
3587 echo "$as_me:$LINENO:" \
3588 "checking for C++ compiler version" >&5
3589 ac_compiler=`set X $ac_compile; echo $2`
3590 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3591 (eval $ac_compiler --version </dev/null >&5) 2>&5
3592 ac_status=$?
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }
3595 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3596 (eval $ac_compiler -v </dev/null >&5) 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }
3600 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3601 (eval $ac_compiler -V </dev/null >&5) 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }
3605
3606 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3607 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3608 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611 cat >conftest.$ac_ext <<_ACEOF
3612 /* confdefs.h. */
3613 _ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3617
3618 int
3619 main ()
3620 {
3621 #ifndef __GNUC__
3622 choke me
3623 #endif
3624
3625 ;
3626 return 0;
3627 }
3628 _ACEOF
3629 rm -f conftest.$ac_objext
3630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3631 (eval $ac_compile) 2>conftest.er1
3632 ac_status=$?
3633 grep -v '^ *+' conftest.er1 >conftest.err
3634 rm -f conftest.er1
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } &&
3638 { ac_try='test -z "$ac_cxx_werror_flag"
3639 || test ! -s conftest.err'
3640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641 (eval $ac_try) 2>&5
3642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; } &&
3645 { ac_try='test -s conftest.$ac_objext'
3646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 (eval $ac_try) 2>&5
3648 ac_status=$?
3649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); }; }; then
3651 ac_compiler_gnu=yes
3652 else
3653 echo "$as_me: failed program was:" >&5
3654 sed 's/^/| /' conftest.$ac_ext >&5
3655
3656 ac_compiler_gnu=no
3657 fi
3658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3659 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3660
3661 fi
3662 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3663 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3664 GXX=`test $ac_compiler_gnu = yes && echo yes`
3665 ac_test_CXXFLAGS=${CXXFLAGS+set}
3666 ac_save_CXXFLAGS=$CXXFLAGS
3667 CXXFLAGS="-g"
3668 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3669 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3670 if test "${ac_cv_prog_cxx_g+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 else
3673 cat >conftest.$ac_ext <<_ACEOF
3674 /* confdefs.h. */
3675 _ACEOF
3676 cat confdefs.h >>conftest.$ac_ext
3677 cat >>conftest.$ac_ext <<_ACEOF
3678 /* end confdefs.h. */
3679
3680 int
3681 main ()
3682 {
3683
3684 ;
3685 return 0;
3686 }
3687 _ACEOF
3688 rm -f conftest.$ac_objext
3689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3690 (eval $ac_compile) 2>conftest.er1
3691 ac_status=$?
3692 grep -v '^ *+' conftest.er1 >conftest.err
3693 rm -f conftest.er1
3694 cat conftest.err >&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); } &&
3697 { ac_try='test -z "$ac_cxx_werror_flag"
3698 || test ! -s conftest.err'
3699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3700 (eval $ac_try) 2>&5
3701 ac_status=$?
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; } &&
3704 { ac_try='test -s conftest.$ac_objext'
3705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3706 (eval $ac_try) 2>&5
3707 ac_status=$?
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; }; then
3710 ac_cv_prog_cxx_g=yes
3711 else
3712 echo "$as_me: failed program was:" >&5
3713 sed 's/^/| /' conftest.$ac_ext >&5
3714
3715 ac_cv_prog_cxx_g=no
3716 fi
3717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3718 fi
3719 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3720 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3721 if test "$ac_test_CXXFLAGS" = set; then
3722 CXXFLAGS=$ac_save_CXXFLAGS
3723 elif test $ac_cv_prog_cxx_g = yes; then
3724 if test "$GXX" = yes; then
3725 CXXFLAGS="-g -O2"
3726 else
3727 CXXFLAGS="-g"
3728 fi
3729 else
3730 if test "$GXX" = yes; then
3731 CXXFLAGS="-O2"
3732 else
3733 CXXFLAGS=
3734 fi
3735 fi
3736 for ac_declaration in \
3737 '' \
3738 'extern "C" void std::exit (int) throw (); using std::exit;' \
3739 'extern "C" void std::exit (int); using std::exit;' \
3740 'extern "C" void exit (int) throw ();' \
3741 'extern "C" void exit (int);' \
3742 'void exit (int);'
3743 do
3744 cat >conftest.$ac_ext <<_ACEOF
3745 /* confdefs.h. */
3746 _ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3750 $ac_declaration
3751 #include <stdlib.h>
3752 int
3753 main ()
3754 {
3755 exit (42);
3756 ;
3757 return 0;
3758 }
3759 _ACEOF
3760 rm -f conftest.$ac_objext
3761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3762 (eval $ac_compile) 2>conftest.er1
3763 ac_status=$?
3764 grep -v '^ *+' conftest.er1 >conftest.err
3765 rm -f conftest.er1
3766 cat conftest.err >&5
3767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768 (exit $ac_status); } &&
3769 { ac_try='test -z "$ac_cxx_werror_flag"
3770 || test ! -s conftest.err'
3771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3772 (eval $ac_try) 2>&5
3773 ac_status=$?
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); }; } &&
3776 { ac_try='test -s conftest.$ac_objext'
3777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3778 (eval $ac_try) 2>&5
3779 ac_status=$?
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; }; then
3782 :
3783 else
3784 echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3786
3787 continue
3788 fi
3789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3790 cat >conftest.$ac_ext <<_ACEOF
3791 /* confdefs.h. */
3792 _ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3796 $ac_declaration
3797 int
3798 main ()
3799 {
3800 exit (42);
3801 ;
3802 return 0;
3803 }
3804 _ACEOF
3805 rm -f conftest.$ac_objext
3806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3807 (eval $ac_compile) 2>conftest.er1
3808 ac_status=$?
3809 grep -v '^ *+' conftest.er1 >conftest.err
3810 rm -f conftest.er1
3811 cat conftest.err >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } &&
3814 { ac_try='test -z "$ac_cxx_werror_flag"
3815 || test ! -s conftest.err'
3816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 (eval $ac_try) 2>&5
3818 ac_status=$?
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; } &&
3821 { ac_try='test -s conftest.$ac_objext'
3822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823 (eval $ac_try) 2>&5
3824 ac_status=$?
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); }; }; then
3827 break
3828 else
3829 echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3831
3832 fi
3833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3834 done
3835 rm -f conftest*
3836 if test -n "$ac_declaration"; then
3837 echo '#ifdef __cplusplus' >>confdefs.h
3838 echo $ac_declaration >>confdefs.h
3839 echo '#endif' >>confdefs.h
3840 fi
3841
3842 ac_ext=c
3843 ac_cpp='$CPP $CPPFLAGS'
3844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3847
3848 depcc="$CXX" am_compiler_list=
3849
3850 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3851 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3852 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 else
3855 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3856 # We make a subdir and do the tests there. Otherwise we can end up
3857 # making bogus files that we don't know about and never remove. For
3858 # instance it was reported that on HP-UX the gcc test will end up
3859 # making a dummy file named `D' -- because `-MD' means `put the output
3860 # in D'.
3861 mkdir conftest.dir
3862 # Copy depcomp to subdir because otherwise we won't find it if we're
3863 # using a relative directory.
3864 cp "$am_depcomp" conftest.dir
3865 cd conftest.dir
3866 # We will build objects and dependencies in a subdirectory because
3867 # it helps to detect inapplicable dependency modes. For instance
3868 # both Tru64's cc and ICC support -MD to output dependencies as a
3869 # side effect of compilation, but ICC will put the dependencies in
3870 # the current directory while Tru64 will put them in the object
3871 # directory.
3872 mkdir sub
3873
3874 am_cv_CXX_dependencies_compiler_type=none
3875 if test "$am_compiler_list" = ""; then
3876 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3877 fi
3878 for depmode in $am_compiler_list; do
3879 # Setup a source with many dependencies, because some compilers
3880 # like to wrap large dependency lists on column 80 (with \), and
3881 # we should not choose a depcomp mode which is confused by this.
3882 #
3883 # We need to recreate these files for each test, as the compiler may
3884 # overwrite some of them when testing with obscure command lines.
3885 # This happens at least with the AIX C compiler.
3886 : > sub/conftest.c
3887 for i in 1 2 3 4 5 6; do
3888 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3889 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3890 # Solaris 8's {/usr,}/bin/sh.
3891 touch sub/conftst$i.h
3892 done
3893 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3894
3895 case $depmode in
3896 nosideeffect)
3897 # after this tag, mechanisms are not by side-effect, so they'll
3898 # only be used when explicitly requested
3899 if test "x$enable_dependency_tracking" = xyes; then
3900 continue
3901 else
3902 break
3903 fi
3904 ;;
3905 none) break ;;
3906 esac
3907 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3908 # mode. It turns out that the SunPro C++ compiler does not properly
3909 # handle `-M -o', and we need to detect this.
3910 if depmode=$depmode \
3911 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3912 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3913 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3914 >/dev/null 2>conftest.err &&
3915 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3916 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3917 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3918 # icc doesn't choke on unknown options, it will just issue warnings
3919 # or remarks (even with -Werror). So we grep stderr for any message
3920 # that says an option was ignored or not supported.
3921 # When given -MP, icc 7.0 and 7.1 complain thusly:
3922 # icc: Command line warning: ignoring option '-M'; no argument required
3923 # The diagnosis changed in icc 8.0:
3924 # icc: Command line remark: option '-MP' not supported
3925 if (grep 'ignoring option' conftest.err ||
3926 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3927 am_cv_CXX_dependencies_compiler_type=$depmode
3928 break
3929 fi
3930 fi
3931 done
3932
3933 cd ..
3934 rm -rf conftest.dir
3935 else
3936 am_cv_CXX_dependencies_compiler_type=none
3937 fi
3938
3939 fi
3940 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3941 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3942 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3943
3944
3945
3946 if
3947 test "x$enable_dependency_tracking" != xno \
3948 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3949 am__fastdepCXX_TRUE=
3950 am__fastdepCXX_FALSE='#'
3951 else
3952 am__fastdepCXX_TRUE='#'
3953 am__fastdepCXX_FALSE=
3954 fi
3955
3956
3957 # Make sure we can run config.sub.
3958 $ac_config_sub sun4 >/dev/null 2>&1 ||
3959 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3960 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3961 { (exit 1); exit 1; }; }
3962
3963 echo "$as_me:$LINENO: checking build system type" >&5
3964 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3965 if test "${ac_cv_build+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 else
3968 ac_cv_build_alias=$build_alias
3969 test -z "$ac_cv_build_alias" &&
3970 ac_cv_build_alias=`$ac_config_guess`
3971 test -z "$ac_cv_build_alias" &&
3972 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3973 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3974 { (exit 1); exit 1; }; }
3975 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3976 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3977 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3978 { (exit 1); exit 1; }; }
3979
3980 fi
3981 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3982 echo "${ECHO_T}$ac_cv_build" >&6
3983 build=$ac_cv_build
3984 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3985 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3986 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3987
3988
3989 echo "$as_me:$LINENO: checking host system type" >&5
3990 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3991 if test "${ac_cv_host+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994 ac_cv_host_alias=$host_alias
3995 test -z "$ac_cv_host_alias" &&
3996 ac_cv_host_alias=$ac_cv_build_alias
3997 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3998 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3999 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4000 { (exit 1); exit 1; }; }
4001
4002 fi
4003 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4004 echo "${ECHO_T}$ac_cv_host" >&6
4005 host=$ac_cv_host
4006 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4007 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4008 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4009
4010
4011 # Check whether --enable-shared or --disable-shared was given.
4012 if test "${enable_shared+set}" = set; then
4013 enableval="$enable_shared"
4014 p=${PACKAGE-default}
4015 case $enableval in
4016 yes) enable_shared=yes ;;
4017 no) enable_shared=no ;;
4018 *)
4019 enable_shared=no
4020 # Look at the argument we got. We use all the common list separators.
4021 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4022 for pkg in $enableval; do
4023 IFS="$lt_save_ifs"
4024 if test "X$pkg" = "X$p"; then
4025 enable_shared=yes
4026 fi
4027 done
4028 IFS="$lt_save_ifs"
4029 ;;
4030 esac
4031 else
4032 enable_shared=no
4033 fi;
4034
4035
4036 # Check whether --enable-static or --disable-static was given.
4037 if test "${enable_static+set}" = set; then
4038 enableval="$enable_static"
4039 p=${PACKAGE-default}
4040 case $enableval in
4041 yes) enable_static=yes ;;
4042 no) enable_static=no ;;
4043 *)
4044 enable_static=no
4045 # Look at the argument we got. We use all the common list separators.
4046 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4047 for pkg in $enableval; do
4048 IFS="$lt_save_ifs"
4049 if test "X$pkg" = "X$p"; then
4050 enable_static=yes
4051 fi
4052 done
4053 IFS="$lt_save_ifs"
4054 ;;
4055 esac
4056 else
4057 enable_static=yes
4058 fi;
4059
4060 # Check whether --enable-fast-install or --disable-fast-install was given.
4061 if test "${enable_fast_install+set}" = set; then
4062 enableval="$enable_fast_install"
4063 p=${PACKAGE-default}
4064 case $enableval in
4065 yes) enable_fast_install=yes ;;
4066 no) enable_fast_install=no ;;
4067 *)
4068 enable_fast_install=no
4069 # Look at the argument we got. We use all the common list separators.
4070 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4071 for pkg in $enableval; do
4072 IFS="$lt_save_ifs"
4073 if test "X$pkg" = "X$p"; then
4074 enable_fast_install=yes
4075 fi
4076 done
4077 IFS="$lt_save_ifs"
4078 ;;
4079 esac
4080 else
4081 enable_fast_install=yes
4082 fi;
4083
4084 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4085 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4086 if test "${lt_cv_path_SED+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089 # Loop through the user's path and test for sed and gsed.
4090 # Then use that list of sed's as ones to test for truncation.
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH
4093 do
4094 IFS=$as_save_IFS
4095 test -z "$as_dir" && as_dir=.
4096 for lt_ac_prog in sed gsed; do
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4099 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4100 fi
4101 done
4102 done
4103 done
4104 lt_ac_max=0
4105 lt_ac_count=0
4106 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4107 # along with /bin/sed that truncates output.
4108 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4109 test ! -f $lt_ac_sed && continue
4110 cat /dev/null > conftest.in
4111 lt_ac_count=0
4112 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4113 # Check for GNU sed and select it if it is found.
4114 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4115 lt_cv_path_SED=$lt_ac_sed
4116 break
4117 fi
4118 while true; do
4119 cat conftest.in conftest.in >conftest.tmp
4120 mv conftest.tmp conftest.in
4121 cp conftest.in conftest.nl
4122 echo >>conftest.nl
4123 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4124 cmp -s conftest.out conftest.nl || break
4125 # 10000 chars as input seems more than enough
4126 test $lt_ac_count -gt 10 && break
4127 lt_ac_count=`expr $lt_ac_count + 1`
4128 if test $lt_ac_count -gt $lt_ac_max; then
4129 lt_ac_max=$lt_ac_count
4130 lt_cv_path_SED=$lt_ac_sed
4131 fi
4132 done
4133 done
4134
4135 fi
4136
4137 SED=$lt_cv_path_SED
4138 echo "$as_me:$LINENO: result: $SED" >&5
4139 echo "${ECHO_T}$SED" >&6
4140
4141 echo "$as_me:$LINENO: checking for egrep" >&5
4142 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4143 if test "${ac_cv_prog_egrep+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4146 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4147 then ac_cv_prog_egrep='grep -E'
4148 else ac_cv_prog_egrep='egrep'
4149 fi
4150 fi
4151 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4152 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4153 EGREP=$ac_cv_prog_egrep
4154
4155
4156
4157 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4158 if test "${with_gnu_ld+set}" = set; then
4159 withval="$with_gnu_ld"
4160 test "$withval" = no || with_gnu_ld=yes
4161 else
4162 with_gnu_ld=no
4163 fi;
4164 ac_prog=ld
4165 if test "$GCC" = yes; then
4166 # Check if gcc -print-prog-name=ld gives a path.
4167 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4168 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4169 case $host in
4170 *-*-mingw*)
4171 # gcc leaves a trailing carriage return which upsets mingw
4172 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4173 *)
4174 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4175 esac
4176 case $ac_prog in
4177 # Accept absolute paths.
4178 [\\/]* | ?:[\\/]*)
4179 re_direlt='/[^/][^/]*/\.\./'
4180 # Canonicalize the pathname of ld
4181 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4182 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4183 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4184 done
4185 test -z "$LD" && LD="$ac_prog"
4186 ;;
4187 "")
4188 # If it fails, then pretend we aren't using GCC.
4189 ac_prog=ld
4190 ;;
4191 *)
4192 # If it is relative, then search for the first ld in PATH.
4193 with_gnu_ld=unknown
4194 ;;
4195 esac
4196 elif test "$with_gnu_ld" = yes; then
4197 echo "$as_me:$LINENO: checking for GNU ld" >&5
4198 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4199 else
4200 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4201 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4202 fi
4203 if test "${lt_cv_path_LD+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206 if test -z "$LD"; then
4207 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4208 for ac_dir in $PATH; do
4209 IFS="$lt_save_ifs"
4210 test -z "$ac_dir" && ac_dir=.
4211 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4212 lt_cv_path_LD="$ac_dir/$ac_prog"
4213 # Check to see if the program is GNU ld. I'd rather use --version,
4214 # but apparently some variants of GNU ld only accept -v.
4215 # Break only if it was the GNU/non-GNU ld that we prefer.
4216 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4217 *GNU* | *'with BFD'*)
4218 test "$with_gnu_ld" != no && break
4219 ;;
4220 *)
4221 test "$with_gnu_ld" != yes && break
4222 ;;
4223 esac
4224 fi
4225 done
4226 IFS="$lt_save_ifs"
4227 else
4228 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4229 fi
4230 fi
4231
4232 LD="$lt_cv_path_LD"
4233 if test -n "$LD"; then
4234 echo "$as_me:$LINENO: result: $LD" >&5
4235 echo "${ECHO_T}$LD" >&6
4236 else
4237 echo "$as_me:$LINENO: result: no" >&5
4238 echo "${ECHO_T}no" >&6
4239 fi
4240 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4241 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4242 { (exit 1); exit 1; }; }
4243 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4244 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4245 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4249 case `$LD -v 2>&1 </dev/null` in
4250 *GNU* | *'with BFD'*)
4251 lt_cv_prog_gnu_ld=yes
4252 ;;
4253 *)
4254 lt_cv_prog_gnu_ld=no
4255 ;;
4256 esac
4257 fi
4258 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4259 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4260 with_gnu_ld=$lt_cv_prog_gnu_ld
4261
4262
4263 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4264 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4265 if test "${lt_cv_ld_reload_flag+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 else
4268 lt_cv_ld_reload_flag='-r'
4269 fi
4270 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4271 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4272 reload_flag=$lt_cv_ld_reload_flag
4273 case $reload_flag in
4274 "" | " "*) ;;
4275 *) reload_flag=" $reload_flag" ;;
4276 esac
4277 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4278 case $host_os in
4279 darwin*)
4280 if test "$GCC" = yes; then
4281 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4282 else
4283 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4284 fi
4285 ;;
4286 esac
4287
4288 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4289 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4290 if test "${lt_cv_path_NM+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293 if test -n "$NM"; then
4294 # Let the user override the test.
4295 lt_cv_path_NM="$NM"
4296 else
4297 lt_nm_to_check="${ac_tool_prefix}nm"
4298 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4299 lt_nm_to_check="$lt_nm_to_check nm"
4300 fi
4301 for lt_tmp_nm in $lt_nm_to_check; do
4302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4303 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4304 IFS="$lt_save_ifs"
4305 test -z "$ac_dir" && ac_dir=.
4306 tmp_nm="$ac_dir/$lt_tmp_nm"
4307 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4308 # Check to see if the nm accepts a BSD-compat flag.
4309 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4310 # nm: unknown option "B" ignored
4311 # Tru64's nm complains that /dev/null is an invalid object file
4312 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4313 */dev/null* | *'Invalid file or object type'*)
4314 lt_cv_path_NM="$tmp_nm -B"
4315 break
4316 ;;
4317 *)
4318 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4319 */dev/null*)
4320 lt_cv_path_NM="$tmp_nm -p"
4321 break
4322 ;;
4323 *)
4324 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4325 continue # so that we can try to find one that supports BSD flags
4326 ;;
4327 esac
4328 ;;
4329 esac
4330 fi
4331 done
4332 IFS="$lt_save_ifs"
4333 done
4334 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4335 fi
4336 fi
4337 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4338 echo "${ECHO_T}$lt_cv_path_NM" >&6
4339 NM="$lt_cv_path_NM"
4340
4341 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4342 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4343 LN_S=$as_ln_s
4344 if test "$LN_S" = "ln -s"; then
4345 echo "$as_me:$LINENO: result: yes" >&5
4346 echo "${ECHO_T}yes" >&6
4347 else
4348 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4349 echo "${ECHO_T}no, using $LN_S" >&6
4350 fi
4351
4352 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4353 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4354 if test "${lt_cv_deplibs_check_method+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357 lt_cv_file_magic_cmd='$MAGIC_CMD'
4358 lt_cv_file_magic_test_file=
4359 lt_cv_deplibs_check_method='unknown'
4360 # Need to set the preceding variable on all platforms that support
4361 # interlibrary dependencies.
4362 # 'none' -- dependencies not supported.
4363 # `unknown' -- same as none, but documents that we really don't know.
4364 # 'pass_all' -- all dependencies passed with no checks.
4365 # 'test_compile' -- check by making test program.
4366 # 'file_magic [[regex]]' -- check by looking for files in library path
4367 # which responds to the $file_magic_cmd with a given extended regex.
4368 # If you have `file' or equivalent on your system and you're not sure
4369 # whether `pass_all' will *always* work, you probably want this one.
4370
4371 case $host_os in
4372 aix4* | aix5*)
4373 lt_cv_deplibs_check_method=pass_all
4374 ;;
4375
4376 beos*)
4377 lt_cv_deplibs_check_method=pass_all
4378 ;;
4379
4380 bsdi[45]*)
4381 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4382 lt_cv_file_magic_cmd='/usr/bin/file -L'
4383 lt_cv_file_magic_test_file=/shlib/libc.so
4384 ;;
4385
4386 cygwin*)
4387 # func_win32_libid is a shell function defined in ltmain.sh
4388 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4389 lt_cv_file_magic_cmd='func_win32_libid'
4390 ;;
4391
4392 mingw* | pw32*)
4393 # Base MSYS/MinGW do not provide the 'file' command needed by
4394 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4395 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4396 lt_cv_file_magic_cmd='$OBJDUMP -f'
4397 ;;
4398
4399 darwin* | rhapsody*)
4400 lt_cv_deplibs_check_method=pass_all
4401 ;;
4402
4403 freebsd* | kfreebsd*-gnu | dragonfly*)
4404 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4405 case $host_cpu in
4406 i*86 )
4407 # Not sure whether the presence of OpenBSD here was a mistake.
4408 # Let's accept both of them until this is cleared up.
4409 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4410 lt_cv_file_magic_cmd=/usr/bin/file
4411 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4412 ;;
4413 esac
4414 else
4415 lt_cv_deplibs_check_method=pass_all
4416 fi
4417 ;;
4418
4419 gnu*)
4420 lt_cv_deplibs_check_method=pass_all
4421 ;;
4422
4423 hpux10.20* | hpux11*)
4424 lt_cv_file_magic_cmd=/usr/bin/file
4425 case $host_cpu in
4426 ia64*)
4427 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4428 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4429 ;;
4430 hppa*64*)
4431 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]'
4432 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4433 ;;
4434 *)
4435 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4436 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4437 ;;
4438 esac
4439 ;;
4440
4441 interix3*)
4442 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4443 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4444 ;;
4445
4446 irix5* | irix6* | nonstopux*)
4447 case $LD in
4448 *-32|*"-32 ") libmagic=32-bit;;
4449 *-n32|*"-n32 ") libmagic=N32;;
4450 *-64|*"-64 ") libmagic=64-bit;;
4451 *) libmagic=never-match;;
4452 esac
4453 lt_cv_deplibs_check_method=pass_all
4454 ;;
4455
4456 # This must be Linux ELF.
4457 linux*)
4458 lt_cv_deplibs_check_method=pass_all
4459 ;;
4460
4461 netbsd*)
4462 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4463 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4464 else
4465 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4466 fi
4467 ;;
4468
4469 newos6*)
4470 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4471 lt_cv_file_magic_cmd=/usr/bin/file
4472 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4473 ;;
4474
4475 nto-qnx*)
4476 lt_cv_deplibs_check_method=unknown
4477 ;;
4478
4479 openbsd*)
4480 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4481 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4482 else
4483 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4484 fi
4485 ;;
4486
4487 osf3* | osf4* | osf5*)
4488 lt_cv_deplibs_check_method=pass_all
4489 ;;
4490
4491 solaris*)
4492 lt_cv_deplibs_check_method=pass_all
4493 ;;
4494
4495 sysv4 | sysv4.3*)
4496 case $host_vendor in
4497 motorola)
4498 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]'
4499 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4500 ;;
4501 ncr)
4502 lt_cv_deplibs_check_method=pass_all
4503 ;;
4504 sequent)
4505 lt_cv_file_magic_cmd='/bin/file'
4506 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4507 ;;
4508 sni)
4509 lt_cv_file_magic_cmd='/bin/file'
4510 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4511 lt_cv_file_magic_test_file=/lib/libc.so
4512 ;;
4513 siemens)
4514 lt_cv_deplibs_check_method=pass_all
4515 ;;
4516 pc)
4517 lt_cv_deplibs_check_method=pass_all
4518 ;;
4519 esac
4520 ;;
4521
4522 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4523 lt_cv_deplibs_check_method=pass_all
4524 ;;
4525 esac
4526
4527 fi
4528 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4529 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4530 file_magic_cmd=$lt_cv_file_magic_cmd
4531 deplibs_check_method=$lt_cv_deplibs_check_method
4532 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4533
4534
4535
4536
4537 # If no C compiler was specified, use CC.
4538 LTCC=${LTCC-"$CC"}
4539
4540 # If no C compiler flags were specified, use CFLAGS.
4541 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4542
4543 # Allow CC to be a program name with arguments.
4544 compiler=$CC
4545
4546
4547 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4548 if test "${enable_libtool_lock+set}" = set; then
4549 enableval="$enable_libtool_lock"
4550
4551 fi;
4552 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4553
4554 # Some flags need to be propagated to the compiler or linker for good
4555 # libtool support.
4556 case $host in
4557 ia64-*-hpux*)
4558 # Find out which ABI we are using.
4559 echo 'int i;' > conftest.$ac_ext
4560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4561 (eval $ac_compile) 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }; then
4565 case `/usr/bin/file conftest.$ac_objext` in
4566 *ELF-32*)
4567 HPUX_IA64_MODE="32"
4568 ;;
4569 *ELF-64*)
4570 HPUX_IA64_MODE="64"
4571 ;;
4572 esac
4573 fi
4574 rm -rf conftest*
4575 ;;
4576 *-*-irix6*)
4577 # Find out which ABI we are using.
4578 echo '#line 4578 "configure"' > conftest.$ac_ext
4579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4580 (eval $ac_compile) 2>&5
4581 ac_status=$?
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; then
4584 if test "$lt_cv_prog_gnu_ld" = yes; then
4585 case `/usr/bin/file conftest.$ac_objext` in
4586 *32-bit*)
4587 LD="${LD-ld} -melf32bsmip"
4588 ;;
4589 *N32*)
4590 LD="${LD-ld} -melf32bmipn32"
4591 ;;
4592 *64-bit*)
4593 LD="${LD-ld} -melf64bmip"
4594 ;;
4595 esac
4596 else
4597 case `/usr/bin/file conftest.$ac_objext` in
4598 *32-bit*)
4599 LD="${LD-ld} -32"
4600 ;;
4601 *N32*)
4602 LD="${LD-ld} -n32"
4603 ;;
4604 *64-bit*)
4605 LD="${LD-ld} -64"
4606 ;;
4607 esac
4608 fi
4609 fi
4610 rm -rf conftest*
4611 ;;
4612
4613 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4614 # Find out which ABI we are using.
4615 echo 'int i;' > conftest.$ac_ext
4616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4617 (eval $ac_compile) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; then
4621 case `/usr/bin/file conftest.o` in
4622 *32-bit*)
4623 case $host in
4624 x86_64-*linux*)
4625 LD="${LD-ld} -m elf_i386"
4626 ;;
4627 ppc64-*linux*|powerpc64-*linux*)
4628 LD="${LD-ld} -m elf32ppclinux"
4629 ;;
4630 s390x-*linux*)
4631 LD="${LD-ld} -m elf_s390"
4632 ;;
4633 sparc64-*linux*)
4634 LD="${LD-ld} -m elf32_sparc"
4635 ;;
4636 esac
4637 ;;
4638 *64-bit*)
4639 case $host in
4640 x86_64-*linux*)
4641 LD="${LD-ld} -m elf_x86_64"
4642 ;;
4643 ppc*-*linux*|powerpc*-*linux*)
4644 LD="${LD-ld} -m elf64ppc"
4645 ;;
4646 s390*-*linux*)
4647 LD="${LD-ld} -m elf64_s390"
4648 ;;
4649 sparc*-*linux*)
4650 LD="${LD-ld} -m elf64_sparc"
4651 ;;
4652 esac
4653 ;;
4654 esac
4655 fi
4656 rm -rf conftest*
4657 ;;
4658
4659 *-*-sco3.2v5*)
4660 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4661 SAVE_CFLAGS="$CFLAGS"
4662 CFLAGS="$CFLAGS -belf"
4663 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4664 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4665 if test "${lt_cv_cc_needs_belf+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668 ac_ext=c
4669 ac_cpp='$CPP $CPPFLAGS'
4670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4673
4674 cat >conftest.$ac_ext <<_ACEOF
4675 /* confdefs.h. */
4676 _ACEOF
4677 cat confdefs.h >>conftest.$ac_ext
4678 cat >>conftest.$ac_ext <<_ACEOF
4679 /* end confdefs.h. */
4680
4681 int
4682 main ()
4683 {
4684
4685 ;
4686 return 0;
4687 }
4688 _ACEOF
4689 rm -f conftest.$ac_objext conftest$ac_exeext
4690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4691 (eval $ac_link) 2>conftest.er1
4692 ac_status=$?
4693 grep -v '^ *+' conftest.er1 >conftest.err
4694 rm -f conftest.er1
4695 cat conftest.err >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); } &&
4698 { ac_try='test -z "$ac_c_werror_flag"
4699 || test ! -s conftest.err'
4700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701 (eval $ac_try) 2>&5
4702 ac_status=$?
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); }; } &&
4705 { ac_try='test -s conftest$ac_exeext'
4706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 (eval $ac_try) 2>&5
4708 ac_status=$?
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); }; }; then
4711 lt_cv_cc_needs_belf=yes
4712 else
4713 echo "$as_me: failed program was:" >&5
4714 sed 's/^/| /' conftest.$ac_ext >&5
4715
4716 lt_cv_cc_needs_belf=no
4717 fi
4718 rm -f conftest.err conftest.$ac_objext \
4719 conftest$ac_exeext conftest.$ac_ext
4720 ac_ext=c
4721 ac_cpp='$CPP $CPPFLAGS'
4722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4725
4726 fi
4727 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4728 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4729 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4730 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4731 CFLAGS="$SAVE_CFLAGS"
4732 fi
4733 ;;
4734 sparc*-*solaris*)
4735 # Find out which ABI we are using.
4736 echo 'int i;' > conftest.$ac_ext
4737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4738 (eval $ac_compile) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; then
4742 case `/usr/bin/file conftest.o` in
4743 *64-bit*)
4744 case $lt_cv_prog_gnu_ld in
4745 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4746 *) LD="${LD-ld} -64" ;;
4747 esac
4748 ;;
4749 esac
4750 fi
4751 rm -rf conftest*
4752 ;;
4753
4754
4755 esac
4756
4757 need_locks="$enable_libtool_lock"
4758
4759
4760 ac_ext=c
4761 ac_cpp='$CPP $CPPFLAGS'
4762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4765 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4766 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4767 # On Suns, sometimes $CPP names a directory.
4768 if test -n "$CPP" && test -d "$CPP"; then
4769 CPP=
4770 fi
4771 if test -z "$CPP"; then
4772 if test "${ac_cv_prog_CPP+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4774 else
4775 # Double quotes because CPP needs to be expanded
4776 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4777 do
4778 ac_preproc_ok=false
4779 for ac_c_preproc_warn_flag in '' yes
4780 do
4781 # Use a header file that comes with gcc, so configuring glibc
4782 # with a fresh cross-compiler works.
4783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4784 # <limits.h> exists even on freestanding compilers.
4785 # On the NeXT, cc -E runs the code through the compiler's parser,
4786 # not just through cpp. "Syntax error" is here to catch this case.
4787 cat >conftest.$ac_ext <<_ACEOF
4788 /* confdefs.h. */
4789 _ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4793 #ifdef __STDC__
4794 # include <limits.h>
4795 #else
4796 # include <assert.h>
4797 #endif
4798 Syntax error
4799 _ACEOF
4800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4801 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4802 ac_status=$?
4803 grep -v '^ *+' conftest.er1 >conftest.err
4804 rm -f conftest.er1
4805 cat conftest.err >&5
4806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } >/dev/null; then
4808 if test -s conftest.err; then
4809 ac_cpp_err=$ac_c_preproc_warn_flag
4810 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4811 else
4812 ac_cpp_err=
4813 fi
4814 else
4815 ac_cpp_err=yes
4816 fi
4817 if test -z "$ac_cpp_err"; then
4818 :
4819 else
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4822
4823 # Broken: fails on valid input.
4824 continue
4825 fi
4826 rm -f conftest.err conftest.$ac_ext
4827
4828 # OK, works on sane cases. Now check whether non-existent headers
4829 # can be detected and how.
4830 cat >conftest.$ac_ext <<_ACEOF
4831 /* confdefs.h. */
4832 _ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4836 #include <ac_nonexistent.h>
4837 _ACEOF
4838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4840 ac_status=$?
4841 grep -v '^ *+' conftest.er1 >conftest.err
4842 rm -f conftest.er1
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } >/dev/null; then
4846 if test -s conftest.err; then
4847 ac_cpp_err=$ac_c_preproc_warn_flag
4848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4849 else
4850 ac_cpp_err=
4851 fi
4852 else
4853 ac_cpp_err=yes
4854 fi
4855 if test -z "$ac_cpp_err"; then
4856 # Broken: success on invalid input.
4857 continue
4858 else
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4861
4862 # Passes both tests.
4863 ac_preproc_ok=:
4864 break
4865 fi
4866 rm -f conftest.err conftest.$ac_ext
4867
4868 done
4869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4870 rm -f conftest.err conftest.$ac_ext
4871 if $ac_preproc_ok; then
4872 break
4873 fi
4874
4875 done
4876 ac_cv_prog_CPP=$CPP
4877
4878 fi
4879 CPP=$ac_cv_prog_CPP
4880 else
4881 ac_cv_prog_CPP=$CPP
4882 fi
4883 echo "$as_me:$LINENO: result: $CPP" >&5
4884 echo "${ECHO_T}$CPP" >&6
4885 ac_preproc_ok=false
4886 for ac_c_preproc_warn_flag in '' yes
4887 do
4888 # Use a header file that comes with gcc, so configuring glibc
4889 # with a fresh cross-compiler works.
4890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4891 # <limits.h> exists even on freestanding compilers.
4892 # On the NeXT, cc -E runs the code through the compiler's parser,
4893 # not just through cpp. "Syntax error" is here to catch this case.
4894 cat >conftest.$ac_ext <<_ACEOF
4895 /* confdefs.h. */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4900 #ifdef __STDC__
4901 # include <limits.h>
4902 #else
4903 # include <assert.h>
4904 #endif
4905 Syntax error
4906 _ACEOF
4907 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4908 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4909 ac_status=$?
4910 grep -v '^ *+' conftest.er1 >conftest.err
4911 rm -f conftest.er1
4912 cat conftest.err >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } >/dev/null; then
4915 if test -s conftest.err; then
4916 ac_cpp_err=$ac_c_preproc_warn_flag
4917 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4918 else
4919 ac_cpp_err=
4920 fi
4921 else
4922 ac_cpp_err=yes
4923 fi
4924 if test -z "$ac_cpp_err"; then
4925 :
4926 else
4927 echo "$as_me: failed program was:" >&5
4928 sed 's/^/| /' conftest.$ac_ext >&5
4929
4930 # Broken: fails on valid input.
4931 continue
4932 fi
4933 rm -f conftest.err conftest.$ac_ext
4934
4935 # OK, works on sane cases. Now check whether non-existent headers
4936 # can be detected and how.
4937 cat >conftest.$ac_ext <<_ACEOF
4938 /* confdefs.h. */
4939 _ACEOF
4940 cat confdefs.h >>conftest.$ac_ext
4941 cat >>conftest.$ac_ext <<_ACEOF
4942 /* end confdefs.h. */
4943 #include <ac_nonexistent.h>
4944 _ACEOF
4945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4947 ac_status=$?
4948 grep -v '^ *+' conftest.er1 >conftest.err
4949 rm -f conftest.er1
4950 cat conftest.err >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } >/dev/null; then
4953 if test -s conftest.err; then
4954 ac_cpp_err=$ac_c_preproc_warn_flag
4955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4956 else
4957 ac_cpp_err=
4958 fi
4959 else
4960 ac_cpp_err=yes
4961 fi
4962 if test -z "$ac_cpp_err"; then
4963 # Broken: success on invalid input.
4964 continue
4965 else
4966 echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4968
4969 # Passes both tests.
4970 ac_preproc_ok=:
4971 break
4972 fi
4973 rm -f conftest.err conftest.$ac_ext
4974
4975 done
4976 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4977 rm -f conftest.err conftest.$ac_ext
4978 if $ac_preproc_ok; then
4979 :
4980 else
4981 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4982 See \`config.log' for more details." >&5
4983 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4984 See \`config.log' for more details." >&2;}
4985 { (exit 1); exit 1; }; }
4986 fi
4987
4988 ac_ext=c
4989 ac_cpp='$CPP $CPPFLAGS'
4990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4993
4994
4995 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4996 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4997 if test "${ac_cv_header_stdc+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 else
5000 cat >conftest.$ac_ext <<_ACEOF
5001 /* confdefs.h. */
5002 _ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5006 #include <stdlib.h>
5007 #include <stdarg.h>
5008 #include <string.h>
5009 #include <float.h>
5010
5011 int
5012 main ()
5013 {
5014
5015 ;
5016 return 0;
5017 }
5018 _ACEOF
5019 rm -f conftest.$ac_objext
5020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5021 (eval $ac_compile) 2>conftest.er1
5022 ac_status=$?
5023 grep -v '^ *+' conftest.er1 >conftest.err
5024 rm -f conftest.er1
5025 cat conftest.err >&5
5026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } &&
5028 { ac_try='test -z "$ac_c_werror_flag"
5029 || test ! -s conftest.err'
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031 (eval $ac_try) 2>&5
5032 ac_status=$?
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; } &&
5035 { ac_try='test -s conftest.$ac_objext'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 (eval $ac_try) 2>&5
5038 ac_status=$?
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; }; then
5041 ac_cv_header_stdc=yes
5042 else
5043 echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5045
5046 ac_cv_header_stdc=no
5047 fi
5048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5049
5050 if test $ac_cv_header_stdc = yes; then
5051 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5052 cat >conftest.$ac_ext <<_ACEOF
5053 /* confdefs.h. */
5054 _ACEOF
5055 cat confdefs.h >>conftest.$ac_ext
5056 cat >>conftest.$ac_ext <<_ACEOF
5057 /* end confdefs.h. */
5058 #include <string.h>
5059
5060 _ACEOF
5061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5062 $EGREP "memchr" >/dev/null 2>&1; then
5063 :
5064 else
5065 ac_cv_header_stdc=no
5066 fi
5067 rm -f conftest*
5068
5069 fi
5070
5071 if test $ac_cv_header_stdc = yes; then
5072 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5073 cat >conftest.$ac_ext <<_ACEOF
5074 /* confdefs.h. */
5075 _ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h. */
5079 #include <stdlib.h>
5080
5081 _ACEOF
5082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5083 $EGREP "free" >/dev/null 2>&1; then
5084 :
5085 else
5086 ac_cv_header_stdc=no
5087 fi
5088 rm -f conftest*
5089
5090 fi
5091
5092 if test $ac_cv_header_stdc = yes; then
5093 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5094 if test "$cross_compiling" = yes; then
5095 :
5096 else
5097 cat >conftest.$ac_ext <<_ACEOF
5098 /* confdefs.h. */
5099 _ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5103 #include <ctype.h>
5104 #if ((' ' & 0x0FF) == 0x020)
5105 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5106 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5107 #else
5108 # define ISLOWER(c) \
5109 (('a' <= (c) && (c) <= 'i') \
5110 || ('j' <= (c) && (c) <= 'r') \
5111 || ('s' <= (c) && (c) <= 'z'))
5112 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5113 #endif
5114
5115 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5116 int
5117 main ()
5118 {
5119 int i;
5120 for (i = 0; i < 256; i++)
5121 if (XOR (islower (i), ISLOWER (i))
5122 || toupper (i) != TOUPPER (i))
5123 exit(2);
5124 exit (0);
5125 }
5126 _ACEOF
5127 rm -f conftest$ac_exeext
5128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5129 (eval $ac_link) 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134 (eval $ac_try) 2>&5
5135 ac_status=$?
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }; }; then
5138 :
5139 else
5140 echo "$as_me: program exited with status $ac_status" >&5
5141 echo "$as_me: failed program was:" >&5
5142 sed 's/^/| /' conftest.$ac_ext >&5
5143
5144 ( exit $ac_status )
5145 ac_cv_header_stdc=no
5146 fi
5147 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5148 fi
5149 fi
5150 fi
5151 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5152 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5153 if test $ac_cv_header_stdc = yes; then
5154
5155 cat >>confdefs.h <<\_ACEOF
5156 #define STDC_HEADERS 1
5157 _ACEOF
5158
5159 fi
5160
5161 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5172 inttypes.h stdint.h unistd.h
5173 do
5174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5175 echo "$as_me:$LINENO: checking for $ac_header" >&5
5176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5177 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 else
5180 cat >conftest.$ac_ext <<_ACEOF
5181 /* confdefs.h. */
5182 _ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h. */
5186 $ac_includes_default
5187
5188 #include <$ac_header>
5189 _ACEOF
5190 rm -f conftest.$ac_objext
5191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5192 (eval $ac_compile) 2>conftest.er1
5193 ac_status=$?
5194 grep -v '^ *+' conftest.er1 >conftest.err
5195 rm -f conftest.er1
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } &&
5199 { ac_try='test -z "$ac_c_werror_flag"
5200 || test ! -s conftest.err'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 (eval $ac_try) 2>&5
5203 ac_status=$?
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; } &&
5206 { ac_try='test -s conftest.$ac_objext'
5207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 (eval $ac_try) 2>&5
5209 ac_status=$?
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; }; then
5212 eval "$as_ac_Header=yes"
5213 else
5214 echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.$ac_ext >&5
5216
5217 eval "$as_ac_Header=no"
5218 fi
5219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5220 fi
5221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5224 cat >>confdefs.h <<_ACEOF
5225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5226 _ACEOF
5227
5228 fi
5229
5230 done
5231
5232
5233
5234 for ac_header in dlfcn.h
5235 do
5236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5237 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5238 echo "$as_me:$LINENO: checking for $ac_header" >&5
5239 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5240 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5241 echo $ECHO_N "(cached) $ECHO_C" >&6
5242 fi
5243 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5244 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5245 else
5246 # Is the header compilable?
5247 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5249 cat >conftest.$ac_ext <<_ACEOF
5250 /* confdefs.h. */
5251 _ACEOF
5252 cat confdefs.h >>conftest.$ac_ext
5253 cat >>conftest.$ac_ext <<_ACEOF
5254 /* end confdefs.h. */
5255 $ac_includes_default
5256 #include <$ac_header>
5257 _ACEOF
5258 rm -f conftest.$ac_objext
5259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5260 (eval $ac_compile) 2>conftest.er1
5261 ac_status=$?
5262 grep -v '^ *+' conftest.er1 >conftest.err
5263 rm -f conftest.er1
5264 cat conftest.err >&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); } &&
5267 { ac_try='test -z "$ac_c_werror_flag"
5268 || test ! -s conftest.err'
5269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270 (eval $ac_try) 2>&5
5271 ac_status=$?
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }; } &&
5274 { ac_try='test -s conftest.$ac_objext'
5275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5276 (eval $ac_try) 2>&5
5277 ac_status=$?
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }; }; then
5280 ac_header_compiler=yes
5281 else
5282 echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5284
5285 ac_header_compiler=no
5286 fi
5287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5288 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5289 echo "${ECHO_T}$ac_header_compiler" >&6
5290
5291 # Is the header present?
5292 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5294 cat >conftest.$ac_ext <<_ACEOF
5295 /* confdefs.h. */
5296 _ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 #include <$ac_header>
5301 _ACEOF
5302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5304 ac_status=$?
5305 grep -v '^ *+' conftest.er1 >conftest.err
5306 rm -f conftest.er1
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } >/dev/null; then
5310 if test -s conftest.err; then
5311 ac_cpp_err=$ac_c_preproc_warn_flag
5312 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5313 else
5314 ac_cpp_err=
5315 fi
5316 else
5317 ac_cpp_err=yes
5318 fi
5319 if test -z "$ac_cpp_err"; then
5320 ac_header_preproc=yes
5321 else
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5324
5325 ac_header_preproc=no
5326 fi
5327 rm -f conftest.err conftest.$ac_ext
5328 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5329 echo "${ECHO_T}$ac_header_preproc" >&6
5330
5331 # So? What about this header?
5332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5333 yes:no: )
5334 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5335 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5337 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5338 ac_header_preproc=yes
5339 ;;
5340 no:yes:* )
5341 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5342 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5343 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5344 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5345 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5346 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5347 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5348 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5350 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5351 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5352 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5353 (
5354 cat <<\_ASBOX
5355 ## ----------------------------------------------- ##
5356 ## Report this to http://www.squid-cache.org/bugs/ ##
5357 ## ----------------------------------------------- ##
5358 _ASBOX
5359 ) |
5360 sed "s/^/$as_me: WARNING: /" >&2
5361 ;;
5362 esac
5363 echo "$as_me:$LINENO: checking for $ac_header" >&5
5364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5366 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 else
5368 eval "$as_ac_Header=\$ac_header_preproc"
5369 fi
5370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5372
5373 fi
5374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5375 cat >>confdefs.h <<_ACEOF
5376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5377 _ACEOF
5378
5379 fi
5380
5381 done
5382
5383
5384
5385 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5386 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5387 (test "X$CXX" != "Xg++"))) ; then
5388 ac_ext=cc
5389 ac_cpp='$CXXCPP $CPPFLAGS'
5390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5393 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5394 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5395 if test -z "$CXXCPP"; then
5396 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5399 # Double quotes because CXXCPP needs to be expanded
5400 for CXXCPP in "$CXX -E" "/lib/cpp"
5401 do
5402 ac_preproc_ok=false
5403 for ac_cxx_preproc_warn_flag in '' yes
5404 do
5405 # Use a header file that comes with gcc, so configuring glibc
5406 # with a fresh cross-compiler works.
5407 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5408 # <limits.h> exists even on freestanding compilers.
5409 # On the NeXT, cc -E runs the code through the compiler's parser,
5410 # not just through cpp. "Syntax error" is here to catch this case.
5411 cat >conftest.$ac_ext <<_ACEOF
5412 /* confdefs.h. */
5413 _ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5417 #ifdef __STDC__
5418 # include <limits.h>
5419 #else
5420 # include <assert.h>
5421 #endif
5422 Syntax error
5423 _ACEOF
5424 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5426 ac_status=$?
5427 grep -v '^ *+' conftest.er1 >conftest.err
5428 rm -f conftest.er1
5429 cat conftest.err >&5
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); } >/dev/null; then
5432 if test -s conftest.err; then
5433 ac_cpp_err=$ac_cxx_preproc_warn_flag
5434 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5435 else
5436 ac_cpp_err=
5437 fi
5438 else
5439 ac_cpp_err=yes
5440 fi
5441 if test -z "$ac_cpp_err"; then
5442 :
5443 else
5444 echo "$as_me: failed program was:" >&5
5445 sed 's/^/| /' conftest.$ac_ext >&5
5446
5447 # Broken: fails on valid input.
5448 continue
5449 fi
5450 rm -f conftest.err conftest.$ac_ext
5451
5452 # OK, works on sane cases. Now check whether non-existent headers
5453 # can be detected and how.
5454 cat >conftest.$ac_ext <<_ACEOF
5455 /* confdefs.h. */
5456 _ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5460 #include <ac_nonexistent.h>
5461 _ACEOF
5462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5464 ac_status=$?
5465 grep -v '^ *+' conftest.er1 >conftest.err
5466 rm -f conftest.er1
5467 cat conftest.err >&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } >/dev/null; then
5470 if test -s conftest.err; then
5471 ac_cpp_err=$ac_cxx_preproc_warn_flag
5472 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5473 else
5474 ac_cpp_err=
5475 fi
5476 else
5477 ac_cpp_err=yes
5478 fi
5479 if test -z "$ac_cpp_err"; then
5480 # Broken: success on invalid input.
5481 continue
5482 else
5483 echo "$as_me: failed program was:" >&5
5484 sed 's/^/| /' conftest.$ac_ext >&5
5485
5486 # Passes both tests.
5487 ac_preproc_ok=:
5488 break
5489 fi
5490 rm -f conftest.err conftest.$ac_ext
5491
5492 done
5493 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5494 rm -f conftest.err conftest.$ac_ext
5495 if $ac_preproc_ok; then
5496 break
5497 fi
5498
5499 done
5500 ac_cv_prog_CXXCPP=$CXXCPP
5501
5502 fi
5503 CXXCPP=$ac_cv_prog_CXXCPP
5504 else
5505 ac_cv_prog_CXXCPP=$CXXCPP
5506 fi
5507 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5508 echo "${ECHO_T}$CXXCPP" >&6
5509 ac_preproc_ok=false
5510 for ac_cxx_preproc_warn_flag in '' yes
5511 do
5512 # Use a header file that comes with gcc, so configuring glibc
5513 # with a fresh cross-compiler works.
5514 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5515 # <limits.h> exists even on freestanding compilers.
5516 # On the NeXT, cc -E runs the code through the compiler's parser,
5517 # not just through cpp. "Syntax error" is here to catch this case.
5518 cat >conftest.$ac_ext <<_ACEOF
5519 /* confdefs.h. */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5524 #ifdef __STDC__
5525 # include <limits.h>
5526 #else
5527 # include <assert.h>
5528 #endif
5529 Syntax error
5530 _ACEOF
5531 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5532 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5533 ac_status=$?
5534 grep -v '^ *+' conftest.er1 >conftest.err
5535 rm -f conftest.er1
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } >/dev/null; then
5539 if test -s conftest.err; then
5540 ac_cpp_err=$ac_cxx_preproc_warn_flag
5541 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5542 else
5543 ac_cpp_err=
5544 fi
5545 else
5546 ac_cpp_err=yes
5547 fi
5548 if test -z "$ac_cpp_err"; then
5549 :
5550 else
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5553
5554 # Broken: fails on valid input.
5555 continue
5556 fi
5557 rm -f conftest.err conftest.$ac_ext
5558
5559 # OK, works on sane cases. Now check whether non-existent headers
5560 # can be detected and how.
5561 cat >conftest.$ac_ext <<_ACEOF
5562 /* confdefs.h. */
5563 _ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 #include <ac_nonexistent.h>
5568 _ACEOF
5569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5570 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5571 ac_status=$?
5572 grep -v '^ *+' conftest.er1 >conftest.err
5573 rm -f conftest.er1
5574 cat conftest.err >&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); } >/dev/null; then
5577 if test -s conftest.err; then
5578 ac_cpp_err=$ac_cxx_preproc_warn_flag
5579 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5580 else
5581 ac_cpp_err=
5582 fi
5583 else
5584 ac_cpp_err=yes
5585 fi
5586 if test -z "$ac_cpp_err"; then
5587 # Broken: success on invalid input.
5588 continue
5589 else
5590 echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5592
5593 # Passes both tests.
5594 ac_preproc_ok=:
5595 break
5596 fi
5597 rm -f conftest.err conftest.$ac_ext
5598
5599 done
5600 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5601 rm -f conftest.err conftest.$ac_ext
5602 if $ac_preproc_ok; then
5603 :
5604 else
5605 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5606 See \`config.log' for more details." >&5
5607 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5608 See \`config.log' for more details." >&2;}
5609 { (exit 1); exit 1; }; }
5610 fi
5611
5612 ac_ext=cc
5613 ac_cpp='$CXXCPP $CPPFLAGS'
5614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5617
5618 fi
5619
5620
5621 ac_ext=f
5622 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5623 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5624 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5625 if test -n "$ac_tool_prefix"; then
5626 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5627 do
5628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5629 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5630 echo "$as_me:$LINENO: checking for $ac_word" >&5
5631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5632 if test "${ac_cv_prog_F77+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635 if test -n "$F77"; then
5636 ac_cv_prog_F77="$F77" # Let the user override the test.
5637 else
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH
5640 do
5641 IFS=$as_save_IFS
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5645 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5647 break 2
5648 fi
5649 done
5650 done
5651
5652 fi
5653 fi
5654 F77=$ac_cv_prog_F77
5655 if test -n "$F77"; then
5656 echo "$as_me:$LINENO: result: $F77" >&5
5657 echo "${ECHO_T}$F77" >&6
5658 else
5659 echo "$as_me:$LINENO: result: no" >&5
5660 echo "${ECHO_T}no" >&6
5661 fi
5662
5663 test -n "$F77" && break
5664 done
5665 fi
5666 if test -z "$F77"; then
5667 ac_ct_F77=$F77
5668 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5669 do
5670 # Extract the first word of "$ac_prog", so it can be a program name with args.
5671 set dummy $ac_prog; ac_word=$2
5672 echo "$as_me:$LINENO: checking for $ac_word" >&5
5673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5674 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5675 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 else
5677 if test -n "$ac_ct_F77"; then
5678 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5679 else
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 for as_dir in $PATH
5682 do
5683 IFS=$as_save_IFS
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5687 ac_cv_prog_ac_ct_F77="$ac_prog"
5688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5689 break 2
5690 fi
5691 done
5692 done
5693
5694 fi
5695 fi
5696 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5697 if test -n "$ac_ct_F77"; then
5698 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5699 echo "${ECHO_T}$ac_ct_F77" >&6
5700 else
5701 echo "$as_me:$LINENO: result: no" >&5
5702 echo "${ECHO_T}no" >&6
5703 fi
5704
5705 test -n "$ac_ct_F77" && break
5706 done
5707
5708 F77=$ac_ct_F77
5709 fi
5710
5711
5712 # Provide some information about the compiler.
5713 echo "$as_me:5713:" \
5714 "checking for Fortran 77 compiler version" >&5
5715 ac_compiler=`set X $ac_compile; echo $2`
5716 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5717 (eval $ac_compiler --version </dev/null >&5) 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }
5721 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5722 (eval $ac_compiler -v </dev/null >&5) 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }
5726 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5727 (eval $ac_compiler -V </dev/null >&5) 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }
5731 rm -f a.out
5732
5733 # If we don't use `.F' as extension, the preprocessor is not run on the
5734 # input file. (Note that this only needs to work for GNU compilers.)
5735 ac_save_ext=$ac_ext
5736 ac_ext=F
5737 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5738 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5739 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 else
5742 cat >conftest.$ac_ext <<_ACEOF
5743 program main
5744 #ifndef __GNUC__
5745 choke me
5746 #endif
5747
5748 end
5749 _ACEOF
5750 rm -f conftest.$ac_objext
5751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5752 (eval $ac_compile) 2>conftest.er1
5753 ac_status=$?
5754 grep -v '^ *+' conftest.er1 >conftest.err
5755 rm -f conftest.er1
5756 cat conftest.err >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); } &&
5759 { ac_try='test -z "$ac_f77_werror_flag"
5760 || test ! -s conftest.err'
5761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762 (eval $ac_try) 2>&5
5763 ac_status=$?
5764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); }; } &&
5766 { ac_try='test -s conftest.$ac_objext'
5767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768 (eval $ac_try) 2>&5
5769 ac_status=$?
5770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 (exit $ac_status); }; }; then
5772 ac_compiler_gnu=yes
5773 else
5774 echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5776
5777 ac_compiler_gnu=no
5778 fi
5779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5780 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5781
5782 fi
5783 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5784 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5785 ac_ext=$ac_save_ext
5786 ac_test_FFLAGS=${FFLAGS+set}
5787 ac_save_FFLAGS=$FFLAGS
5788 FFLAGS=
5789 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5790 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5791 if test "${ac_cv_prog_f77_g+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794 FFLAGS=-g
5795 cat >conftest.$ac_ext <<_ACEOF
5796 program main
5797
5798 end
5799 _ACEOF
5800 rm -f conftest.$ac_objext
5801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5802 (eval $ac_compile) 2>conftest.er1
5803 ac_status=$?
5804 grep -v '^ *+' conftest.er1 >conftest.err
5805 rm -f conftest.er1
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } &&
5809 { ac_try='test -z "$ac_f77_werror_flag"
5810 || test ! -s conftest.err'
5811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5812 (eval $ac_try) 2>&5
5813 ac_status=$?
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }; } &&
5816 { ac_try='test -s conftest.$ac_objext'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5818 (eval $ac_try) 2>&5
5819 ac_status=$?
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; }; then
5822 ac_cv_prog_f77_g=yes
5823 else
5824 echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5826
5827 ac_cv_prog_f77_g=no
5828 fi
5829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5830
5831 fi
5832 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5833 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5834 if test "$ac_test_FFLAGS" = set; then
5835 FFLAGS=$ac_save_FFLAGS
5836 elif test $ac_cv_prog_f77_g = yes; then
5837 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5838 FFLAGS="-g -O2"
5839 else
5840 FFLAGS="-g"
5841 fi
5842 else
5843 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5844 FFLAGS="-O2"
5845 else
5846 FFLAGS=
5847 fi
5848 fi
5849
5850 G77=`test $ac_compiler_gnu = yes && echo yes`
5851 ac_ext=c
5852 ac_cpp='$CPP $CPPFLAGS'
5853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5856
5857
5858
5859 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5860
5861 # find the maximum length of command line arguments
5862 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5863 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5864 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 else
5867 i=0
5868 teststring="ABCD"
5869
5870 case $build_os in
5871 msdosdjgpp*)
5872 # On DJGPP, this test can blow up pretty badly due to problems in libc
5873 # (any single argument exceeding 2000 bytes causes a buffer overrun
5874 # during glob expansion). Even if it were fixed, the result of this
5875 # check would be larger than it should be.
5876 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5877 ;;
5878
5879 gnu*)
5880 # Under GNU Hurd, this test is not required because there is
5881 # no limit to the length of command line arguments.
5882 # Libtool will interpret -1 as no limit whatsoever
5883 lt_cv_sys_max_cmd_len=-1;
5884 ;;
5885
5886 cygwin* | mingw*)
5887 # On Win9x/ME, this test blows up -- it succeeds, but takes
5888 # about 5 minutes as the teststring grows exponentially.
5889 # Worse, since 9x/ME are not pre-emptively multitasking,
5890 # you end up with a "frozen" computer, even though with patience
5891 # the test eventually succeeds (with a max line length of 256k).
5892 # Instead, let's just punt: use the minimum linelength reported by
5893 # all of the supported platforms: 8192 (on NT/2K/XP).
5894 lt_cv_sys_max_cmd_len=8192;
5895 ;;
5896
5897 amigaos*)
5898 # On AmigaOS with pdksh, this test takes hours, literally.
5899 # So we just punt and use a minimum line length of 8192.
5900 lt_cv_sys_max_cmd_len=8192;
5901 ;;
5902
5903 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5904 # This has been around since 386BSD, at least. Likely further.
5905 if test -x /sbin/sysctl; then
5906 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5907 elif test -x /usr/sbin/sysctl; then
5908 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5909 else
5910 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5911 fi
5912 # And add a safety zone
5913 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5914 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5915 ;;
5916
5917 interix*)
5918 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5919 lt_cv_sys_max_cmd_len=196608
5920 ;;
5921
5922 osf*)
5923 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5924 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5925 # nice to cause kernel panics so lets avoid the loop below.
5926 # First set a reasonable default.
5927 lt_cv_sys_max_cmd_len=16384
5928 #
5929 if test -x /sbin/sysconfig; then
5930 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5931 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5932 esac
5933 fi
5934 ;;
5935 sco3.2v5*)
5936 lt_cv_sys_max_cmd_len=102400
5937 ;;
5938 sysv5* | sco5v6* | sysv4.2uw2*)
5939 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5940 if test -n "$kargmax"; then
5941 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5942 else
5943 lt_cv_sys_max_cmd_len=32768
5944 fi
5945 ;;
5946 *)
5947 # If test is not a shell built-in, we'll probably end up computing a
5948 # maximum length that is only half of the actual maximum length, but
5949 # we can't tell.
5950 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5951 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5952 = "XX$teststring") >/dev/null 2>&1 &&
5953 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5954 lt_cv_sys_max_cmd_len=$new_result &&
5955 test $i != 17 # 1/2 MB should be enough
5956 do
5957 i=`expr $i + 1`
5958 teststring=$teststring$teststring
5959 done
5960 teststring=
5961 # Add a significant safety factor because C++ compilers can tack on massive
5962 # amounts of additional arguments before passing them to the linker.
5963 # It appears as though 1/2 is a usable value.
5964 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5965 ;;
5966 esac
5967
5968 fi
5969
5970 if test -n $lt_cv_sys_max_cmd_len ; then
5971 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5972 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5973 else
5974 echo "$as_me:$LINENO: result: none" >&5
5975 echo "${ECHO_T}none" >&6
5976 fi
5977
5978
5979
5980
5981 # Check for command to grab the raw symbol name followed by C symbol from nm.
5982 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5983 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5984 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5986 else
5987
5988 # These are sane defaults that work on at least a few old systems.
5989 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5990
5991 # Character class describing NM global symbol codes.
5992 symcode='[BCDEGRST]'
5993
5994 # Regexp to match symbols that can be accessed directly from C.
5995 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5996
5997 # Transform an extracted symbol line into a proper C declaration
5998 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5999
6000 # Transform an extracted symbol line into symbol name and symbol address
6001 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'"
6002
6003 # Define system-specific variables.
6004 case $host_os in
6005 aix*)
6006 symcode='[BCDT]'
6007 ;;
6008 cygwin* | mingw* | pw32*)
6009 symcode='[ABCDGISTW]'
6010 ;;
6011 hpux*) # Its linker distinguishes data from code symbols
6012 if test "$host_cpu" = ia64; then
6013 symcode='[ABCDEGRST]'
6014 fi
6015 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6016 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'"
6017 ;;
6018 linux*)
6019 if test "$host_cpu" = ia64; then
6020 symcode='[ABCDGIRSTW]'
6021 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6022 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'"
6023 fi
6024 ;;
6025 irix* | nonstopux*)
6026 symcode='[BCDEGRST]'
6027 ;;
6028 osf*)
6029 symcode='[BCDEGQRST]'
6030 ;;
6031 solaris*)
6032 symcode='[BDRT]'
6033 ;;
6034 sco3.2v5*)
6035 symcode='[DT]'
6036 ;;
6037 sysv4.2uw2*)
6038 symcode='[DT]'
6039 ;;
6040 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6041 symcode='[ABDT]'
6042 ;;
6043 sysv4)
6044 symcode='[DFNSTU]'
6045 ;;
6046 esac
6047
6048 # Handle CRLF in mingw tool chain
6049 opt_cr=
6050 case $build_os in
6051 mingw*)
6052 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6053 ;;
6054 esac
6055
6056 # If we're using GNU nm, then use its standard symbol codes.
6057 case `$NM -V 2>&1` in
6058 *GNU* | *'with BFD'*)
6059 symcode='[ABCDGIRSTW]' ;;
6060 esac
6061
6062 # Try without a prefix undercore, then with it.
6063 for ac_symprfx in "" "_"; do
6064
6065 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6066 symxfrm="\\1 $ac_symprfx\\2 \\2"
6067
6068 # Write the raw and C identifiers.
6069 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6070
6071 # Check to see that the pipe works correctly.
6072 pipe_works=no
6073
6074 rm -f conftest*
6075 cat > conftest.$ac_ext <<EOF
6076 #ifdef __cplusplus
6077 extern "C" {
6078 #endif
6079 char nm_test_var;
6080 void nm_test_func(){}
6081 #ifdef __cplusplus
6082 }
6083 #endif
6084 int main(){nm_test_var='a';nm_test_func();return(0);}
6085 EOF
6086
6087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6088 (eval $ac_compile) 2>&5
6089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; then
6092 # Now try to grab the symbols.
6093 nlist=conftest.nm
6094 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6095 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6096 ac_status=$?
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); } && test -s "$nlist"; then
6099 # Try sorting and uniquifying the output.
6100 if sort "$nlist" | uniq > "$nlist"T; then
6101 mv -f "$nlist"T "$nlist"
6102 else
6103 rm -f "$nlist"T
6104 fi
6105
6106 # Make sure that we snagged all the symbols we need.
6107 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6108 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6109 cat <<EOF > conftest.$ac_ext
6110 #ifdef __cplusplus
6111 extern "C" {
6112 #endif
6113
6114 EOF
6115 # Now generate the symbol file.
6116 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6117
6118 cat <<EOF >> conftest.$ac_ext
6119 #if defined (__STDC__) && __STDC__
6120 # define lt_ptr_t void *
6121 #else
6122 # define lt_ptr_t char *
6123 # define const
6124 #endif
6125
6126 /* The mapping between symbol names and symbols. */
6127 const struct {
6128 const char *name;
6129 lt_ptr_t address;
6130 }
6131 lt_preloaded_symbols[] =
6132 {
6133 EOF
6134 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6135 cat <<\EOF >> conftest.$ac_ext
6136 {0, (lt_ptr_t) 0}
6137 };
6138
6139 #ifdef __cplusplus
6140 }
6141 #endif
6142 EOF
6143 # Now try linking the two files.
6144 mv conftest.$ac_objext conftstm.$ac_objext
6145 lt_save_LIBS="$LIBS"
6146 lt_save_CFLAGS="$CFLAGS"
6147 LIBS="conftstm.$ac_objext"
6148 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6150 (eval $ac_link) 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6154 pipe_works=yes
6155 fi
6156 LIBS="$lt_save_LIBS"
6157 CFLAGS="$lt_save_CFLAGS"
6158 else
6159 echo "cannot find nm_test_func in $nlist" >&5
6160 fi
6161 else
6162 echo "cannot find nm_test_var in $nlist" >&5
6163 fi
6164 else
6165 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6166 fi
6167 else
6168 echo "$progname: failed program was:" >&5
6169 cat conftest.$ac_ext >&5
6170 fi
6171 rm -f conftest* conftst*
6172
6173 # Do not use the global_symbol_pipe unless it works.
6174 if test "$pipe_works" = yes; then
6175 break
6176 else
6177 lt_cv_sys_global_symbol_pipe=
6178 fi
6179 done
6180
6181 fi
6182
6183 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6184 lt_cv_sys_global_symbol_to_cdecl=
6185 fi
6186 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6187 echo "$as_me:$LINENO: result: failed" >&5
6188 echo "${ECHO_T}failed" >&6
6189 else
6190 echo "$as_me:$LINENO: result: ok" >&5
6191 echo "${ECHO_T}ok" >&6
6192 fi
6193
6194 echo "$as_me:$LINENO: checking for objdir" >&5
6195 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6196 if test "${lt_cv_objdir+set}" = set; then
6197 echo $ECHO_N "(cached) $ECHO_C" >&6
6198 else
6199 rm -f .libs 2>/dev/null
6200 mkdir .libs 2>/dev/null
6201 if test -d .libs; then
6202 lt_cv_objdir=.libs
6203 else
6204 # MS-DOS does not allow filenames that begin with a dot.
6205 lt_cv_objdir=_libs
6206 fi
6207 rmdir .libs 2>/dev/null
6208 fi
6209 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6210 echo "${ECHO_T}$lt_cv_objdir" >&6
6211 objdir=$lt_cv_objdir
6212
6213
6214
6215
6216
6217 case $host_os in
6218 aix3*)
6219 # AIX sometimes has problems with the GCC collect2 program. For some
6220 # reason, if we set the COLLECT_NAMES environment variable, the problems
6221 # vanish in a puff of smoke.
6222 if test "X${COLLECT_NAMES+set}" != Xset; then
6223 COLLECT_NAMES=
6224 export COLLECT_NAMES
6225 fi
6226 ;;
6227 esac
6228
6229 # Sed substitution that helps us do robust quoting. It backslashifies
6230 # metacharacters that are still active within double-quoted strings.
6231 Xsed='sed -e 1s/^X//'
6232 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6233
6234 # Same as above, but do not quote variable references.
6235 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6236
6237 # Sed substitution to delay expansion of an escaped shell variable in a
6238 # double_quote_subst'ed string.
6239 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6240
6241 # Sed substitution to avoid accidental globbing in evaled expressions
6242 no_glob_subst='s/\*/\\\*/g'
6243
6244 # Constants:
6245 rm="rm -f"
6246
6247 # Global variables:
6248 default_ofile=libtool
6249 can_build_shared=yes
6250
6251 # All known linkers require a `.a' archive for static linking (except MSVC,
6252 # which needs '.lib').
6253 libext=a
6254 ltmain="$ac_aux_dir/ltmain.sh"
6255 ofile="$default_ofile"
6256 with_gnu_ld="$lt_cv_prog_gnu_ld"
6257
6258 if test -n "$ac_tool_prefix"; then
6259 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6260 set dummy ${ac_tool_prefix}ar; ac_word=$2
6261 echo "$as_me:$LINENO: checking for $ac_word" >&5
6262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6263 if test "${ac_cv_prog_AR+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266 if test -n "$AR"; then
6267 ac_cv_prog_AR="$AR" # Let the user override the test.
6268 else
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6271 do
6272 IFS=$as_save_IFS
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6276 ac_cv_prog_AR="${ac_tool_prefix}ar"
6277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 break 2
6279 fi
6280 done
6281 done
6282
6283 fi
6284 fi
6285 AR=$ac_cv_prog_AR
6286 if test -n "$AR"; then
6287 echo "$as_me:$LINENO: result: $AR" >&5
6288 echo "${ECHO_T}$AR" >&6
6289 else
6290 echo "$as_me:$LINENO: result: no" >&5
6291 echo "${ECHO_T}no" >&6
6292 fi
6293
6294 fi
6295 if test -z "$ac_cv_prog_AR"; then
6296 ac_ct_AR=$AR
6297 # Extract the first word of "ar", so it can be a program name with args.
6298 set dummy ar; ac_word=$2
6299 echo "$as_me:$LINENO: checking for $ac_word" >&5
6300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6301 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304 if test -n "$ac_ct_AR"; then
6305 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6306 else
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310 IFS=$as_save_IFS
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6314 ac_cv_prog_ac_ct_AR="ar"
6315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 break 2
6317 fi
6318 done
6319 done
6320
6321 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6322 fi
6323 fi
6324 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6325 if test -n "$ac_ct_AR"; then
6326 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6327 echo "${ECHO_T}$ac_ct_AR" >&6
6328 else
6329 echo "$as_me:$LINENO: result: no" >&5
6330 echo "${ECHO_T}no" >&6
6331 fi
6332
6333 AR=$ac_ct_AR
6334 else
6335 AR="$ac_cv_prog_AR"
6336 fi
6337
6338 if test -n "$ac_tool_prefix"; then
6339 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6340 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6341 echo "$as_me:$LINENO: checking for $ac_word" >&5
6342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6343 if test "${ac_cv_prog_RANLIB+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346 if test -n "$RANLIB"; then
6347 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6348 else
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6351 do
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6356 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6359 fi
6360 done
6361 done
6362
6363 fi
6364 fi
6365 RANLIB=$ac_cv_prog_RANLIB
6366 if test -n "$RANLIB"; then
6367 echo "$as_me:$LINENO: result: $RANLIB" >&5
6368 echo "${ECHO_T}$RANLIB" >&6
6369 else
6370 echo "$as_me:$LINENO: result: no" >&5
6371 echo "${ECHO_T}no" >&6
6372 fi
6373
6374 fi
6375 if test -z "$ac_cv_prog_RANLIB"; then
6376 ac_ct_RANLIB=$RANLIB
6377 # Extract the first word of "ranlib", so it can be a program name with args.
6378 set dummy ranlib; ac_word=$2
6379 echo "$as_me:$LINENO: checking for $ac_word" >&5
6380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6381 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 else
6384 if test -n "$ac_ct_RANLIB"; then
6385 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6389 do
6390 IFS=$as_save_IFS
6391 test -z "$as_dir" && as_dir=.
6392 for ac_exec_ext in '' $ac_executable_extensions; do
6393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394 ac_cv_prog_ac_ct_RANLIB="ranlib"
6395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396 break 2
6397 fi
6398 done
6399 done
6400
6401 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6402 fi
6403 fi
6404 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6405 if test -n "$ac_ct_RANLIB"; then
6406 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6407 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6408 else
6409 echo "$as_me:$LINENO: result: no" >&5
6410 echo "${ECHO_T}no" >&6
6411 fi
6412
6413 RANLIB=$ac_ct_RANLIB
6414 else
6415 RANLIB="$ac_cv_prog_RANLIB"
6416 fi
6417
6418 if test -n "$ac_tool_prefix"; then
6419 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6420 set dummy ${ac_tool_prefix}strip; ac_word=$2
6421 echo "$as_me:$LINENO: checking for $ac_word" >&5
6422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6423 if test "${ac_cv_prog_STRIP+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6425 else
6426 if test -n "$STRIP"; then
6427 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6431 do
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 break 2
6439 fi
6440 done
6441 done
6442
6443 fi
6444 fi
6445 STRIP=$ac_cv_prog_STRIP
6446 if test -n "$STRIP"; then
6447 echo "$as_me:$LINENO: result: $STRIP" >&5
6448 echo "${ECHO_T}$STRIP" >&6
6449 else
6450 echo "$as_me:$LINENO: result: no" >&5
6451 echo "${ECHO_T}no" >&6
6452 fi
6453
6454 fi
6455 if test -z "$ac_cv_prog_STRIP"; then
6456 ac_ct_STRIP=$STRIP
6457 # Extract the first word of "strip", so it can be a program name with args.
6458 set dummy strip; ac_word=$2
6459 echo "$as_me:$LINENO: checking for $ac_word" >&5
6460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6461 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 else
6464 if test -n "$ac_ct_STRIP"; then
6465 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6466 else
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6469 do
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6474 ac_cv_prog_ac_ct_STRIP="strip"
6475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6477 fi
6478 done
6479 done
6480
6481 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6482 fi
6483 fi
6484 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6485 if test -n "$ac_ct_STRIP"; then
6486 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6487 echo "${ECHO_T}$ac_ct_STRIP" >&6
6488 else
6489 echo "$as_me:$LINENO: result: no" >&5
6490 echo "${ECHO_T}no" >&6
6491 fi
6492
6493 STRIP=$ac_ct_STRIP
6494 else
6495 STRIP="$ac_cv_prog_STRIP"
6496 fi
6497
6498
6499 old_CC="$CC"
6500 old_CFLAGS="$CFLAGS"
6501
6502 # Set sane defaults for various variables
6503 test -z "$AR" && AR=ar
6504 test -z "$AR_FLAGS" && AR_FLAGS=cru
6505 test -z "$AS" && AS=as
6506 test -z "$CC" && CC=cc
6507 test -z "$LTCC" && LTCC=$CC
6508 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6509 test -z "$DLLTOOL" && DLLTOOL=dlltool
6510 test -z "$LD" && LD=ld
6511 test -z "$LN_S" && LN_S="ln -s"
6512 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6513 test -z "$NM" && NM=nm
6514 test -z "$SED" && SED=sed
6515 test -z "$OBJDUMP" && OBJDUMP=objdump
6516 test -z "$RANLIB" && RANLIB=:
6517 test -z "$STRIP" && STRIP=:
6518 test -z "$ac_objext" && ac_objext=o
6519
6520 # Determine commands to create old-style static archives.
6521 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6522 old_postinstall_cmds='chmod 644 $oldlib'
6523 old_postuninstall_cmds=
6524
6525 if test -n "$RANLIB"; then
6526 case $host_os in
6527 openbsd*)
6528 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6529 ;;
6530 *)
6531 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6532 ;;
6533 esac
6534 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6535 fi
6536
6537 for cc_temp in $compiler""; do
6538 case $cc_temp in
6539 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6540 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6541 \-*) ;;
6542 *) break;;
6543 esac
6544 done
6545 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6546
6547
6548 # Only perform the check for file, if the check method requires it
6549 case $deplibs_check_method in
6550 file_magic*)
6551 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6552 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6553 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6554 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557 case $MAGIC_CMD in
6558 [\\/*] | ?:[\\/]*)
6559 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6560 ;;
6561 *)
6562 lt_save_MAGIC_CMD="$MAGIC_CMD"
6563 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6564 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6565 for ac_dir in $ac_dummy; do
6566 IFS="$lt_save_ifs"
6567 test -z "$ac_dir" && ac_dir=.
6568 if test -f $ac_dir/${ac_tool_prefix}file; then
6569 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6570 if test -n "$file_magic_test_file"; then
6571 case $deplibs_check_method in
6572 "file_magic "*)
6573 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6574 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6575 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6576 $EGREP "$file_magic_regex" > /dev/null; then
6577 :
6578 else
6579 cat <<EOF 1>&2
6580
6581 *** Warning: the command libtool uses to detect shared libraries,
6582 *** $file_magic_cmd, produces output that libtool cannot recognize.
6583 *** The result is that libtool may fail to recognize shared libraries
6584 *** as such. This will affect the creation of libtool libraries that
6585 *** depend on shared libraries, but programs linked with such libtool
6586 *** libraries will work regardless of this problem. Nevertheless, you
6587 *** may want to report the problem to your system manager and/or to
6588 *** bug-libtool@gnu.org
6589
6590 EOF
6591 fi ;;
6592 esac
6593 fi
6594 break
6595 fi
6596 done
6597 IFS="$lt_save_ifs"
6598 MAGIC_CMD="$lt_save_MAGIC_CMD"
6599 ;;
6600 esac
6601 fi
6602
6603 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6604 if test -n "$MAGIC_CMD"; then
6605 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6606 echo "${ECHO_T}$MAGIC_CMD" >&6
6607 else
6608 echo "$as_me:$LINENO: result: no" >&5
6609 echo "${ECHO_T}no" >&6
6610 fi
6611
6612 if test -z "$lt_cv_path_MAGIC_CMD"; then
6613 if test -n "$ac_tool_prefix"; then
6614 echo "$as_me:$LINENO: checking for file" >&5
6615 echo $ECHO_N "checking for file... $ECHO_C" >&6
6616 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6617 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619 case $MAGIC_CMD in
6620 [\\/*] | ?:[\\/]*)
6621 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6622 ;;
6623 *)
6624 lt_save_MAGIC_CMD="$MAGIC_CMD"
6625 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6626 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6627 for ac_dir in $ac_dummy; do
6628 IFS="$lt_save_ifs"
6629 test -z "$ac_dir" && ac_dir=.
6630 if test -f $ac_dir/file; then
6631 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6632 if test -n "$file_magic_test_file"; then
6633 case $deplibs_check_method in
6634 "file_magic "*)
6635 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6636 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6637 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6638 $EGREP "$file_magic_regex" > /dev/null; then
6639 :
6640 else
6641 cat <<EOF 1>&2
6642
6643 *** Warning: the command libtool uses to detect shared libraries,
6644 *** $file_magic_cmd, produces output that libtool cannot recognize.
6645 *** The result is that libtool may fail to recognize shared libraries
6646 *** as such. This will affect the creation of libtool libraries that
6647 *** depend on shared libraries, but programs linked with such libtool
6648 *** libraries will work regardless of this problem. Nevertheless, you
6649 *** may want to report the problem to your system manager and/or to
6650 *** bug-libtool@gnu.org
6651
6652 EOF
6653 fi ;;
6654 esac
6655 fi
6656 break
6657 fi
6658 done
6659 IFS="$lt_save_ifs"
6660 MAGIC_CMD="$lt_save_MAGIC_CMD"
6661 ;;
6662 esac
6663 fi
6664
6665 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6666 if test -n "$MAGIC_CMD"; then
6667 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6668 echo "${ECHO_T}$MAGIC_CMD" >&6
6669 else
6670 echo "$as_me:$LINENO: result: no" >&5
6671 echo "${ECHO_T}no" >&6
6672 fi
6673
6674 else
6675 MAGIC_CMD=:
6676 fi
6677 fi
6678
6679 fi
6680 ;;
6681 esac
6682
6683 enable_dlopen=no
6684 enable_win32_dll=no
6685
6686 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6687 if test "${enable_libtool_lock+set}" = set; then
6688 enableval="$enable_libtool_lock"
6689
6690 fi;
6691 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6692
6693
6694 # Check whether --with-pic or --without-pic was given.
6695 if test "${with_pic+set}" = set; then
6696 withval="$with_pic"
6697 pic_mode="$withval"
6698 else
6699 pic_mode=default
6700 fi;
6701 test -z "$pic_mode" && pic_mode=default
6702
6703 # Use C for the default configuration in the libtool script
6704 tagname=
6705 lt_save_CC="$CC"
6706 ac_ext=c
6707 ac_cpp='$CPP $CPPFLAGS'
6708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6711
6712
6713 # Source file extension for C test sources.
6714 ac_ext=c
6715
6716 # Object file extension for compiled C test sources.
6717 objext=o
6718 objext=$objext
6719
6720 # Code to be used in simple compile tests
6721 lt_simple_compile_test_code="int some_variable = 0;\n"
6722
6723 # Code to be used in simple link tests
6724 lt_simple_link_test_code='int main(){return(0);}\n'
6725
6726
6727 # If no C compiler was specified, use CC.
6728 LTCC=${LTCC-"$CC"}
6729
6730 # If no C compiler flags were specified, use CFLAGS.
6731 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6732
6733 # Allow CC to be a program name with arguments.
6734 compiler=$CC
6735
6736
6737 # save warnings/boilerplate of simple test code
6738 ac_outfile=conftest.$ac_objext
6739 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6740 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6741 _lt_compiler_boilerplate=`cat conftest.err`
6742 $rm conftest*
6743
6744 ac_outfile=conftest.$ac_objext
6745 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6746 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6747 _lt_linker_boilerplate=`cat conftest.err`
6748 $rm conftest*
6749
6750
6751
6752 lt_prog_compiler_no_builtin_flag=
6753
6754 if test "$GCC" = yes; then
6755 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6756
6757
6758 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6759 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6760 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6761 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763 lt_cv_prog_compiler_rtti_exceptions=no
6764 ac_outfile=conftest.$ac_objext
6765 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6766 lt_compiler_flag="-fno-rtti -fno-exceptions"
6767 # Insert the option either (1) after the last *FLAGS variable, or
6768 # (2) before a word containing "conftest.", or (3) at the end.
6769 # Note that $ac_compile itself does not contain backslashes and begins
6770 # with a dollar sign (not a hyphen), so the echo should work correctly.
6771 # The option is referenced via a variable to avoid confusing sed.
6772 lt_compile=`echo "$ac_compile" | $SED \
6773 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6774 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6775 -e 's:$: $lt_compiler_flag:'`
6776 (eval echo "\"\$as_me:6776: $lt_compile\"" >&5)
6777 (eval "$lt_compile" 2>conftest.err)
6778 ac_status=$?
6779 cat conftest.err >&5
6780 echo "$as_me:6780: \$? = $ac_status" >&5
6781 if (exit $ac_status) && test -s "$ac_outfile"; then
6782 # The compiler can only warn and ignore the option if not recognized
6783 # So say no if there are warnings other than the usual output.
6784 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6785 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6786 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6787 lt_cv_prog_compiler_rtti_exceptions=yes
6788 fi
6789 fi
6790 $rm conftest*
6791
6792 fi
6793 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6794 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6795
6796 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6797 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6798 else
6799 :
6800 fi
6801
6802 fi
6803
6804 lt_prog_compiler_wl=
6805 lt_prog_compiler_pic=
6806 lt_prog_compiler_static=
6807
6808 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6809 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6810
6811 if test "$GCC" = yes; then
6812 lt_prog_compiler_wl='-Wl,'
6813 lt_prog_compiler_static='-static'
6814
6815 case $host_os in
6816 aix*)
6817 # All AIX code is PIC.
6818 if test "$host_cpu" = ia64; then
6819 # AIX 5 now supports IA64 processor
6820 lt_prog_compiler_static='-Bstatic'
6821 fi
6822 ;;
6823
6824 amigaos*)
6825 # FIXME: we need at least 68020 code to build shared libraries, but
6826 # adding the `-m68020' flag to GCC prevents building anything better,
6827 # like `-m68040'.
6828 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6829 ;;
6830
6831 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6832 # PIC is the default for these OSes.
6833 ;;
6834
6835 mingw* | pw32* | os2*)
6836 # This hack is so that the source file can tell whether it is being
6837 # built for inclusion in a dll (and should export symbols for example).
6838 lt_prog_compiler_pic='-DDLL_EXPORT'
6839 ;;
6840
6841 darwin* | rhapsody*)
6842 # PIC is the default on this platform
6843 # Common symbols not allowed in MH_DYLIB files
6844 lt_prog_compiler_pic='-fno-common'
6845 ;;
6846
6847 interix3*)
6848 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6849 # Instead, we relocate shared libraries at runtime.
6850 ;;
6851
6852 msdosdjgpp*)
6853 # Just because we use GCC doesn't mean we suddenly get shared libraries
6854 # on systems that don't support them.
6855 lt_prog_compiler_can_build_shared=no
6856 enable_shared=no
6857 ;;
6858
6859 sysv4*MP*)
6860 if test -d /usr/nec; then
6861 lt_prog_compiler_pic=-Kconform_pic
6862 fi
6863 ;;
6864
6865 hpux*)
6866 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6867 # not for PA HP-UX.
6868 case $host_cpu in
6869 hppa*64*|ia64*)
6870 # +Z the default
6871 ;;
6872 *)
6873 lt_prog_compiler_pic='-fPIC'
6874 ;;
6875 esac
6876 ;;
6877
6878 *)
6879 lt_prog_compiler_pic='-fPIC'
6880 ;;
6881 esac
6882 else
6883 # PORTME Check for flag to pass linker flags through the system compiler.
6884 case $host_os in
6885 aix*)
6886 lt_prog_compiler_wl='-Wl,'
6887 if test "$host_cpu" = ia64; then
6888 # AIX 5 now supports IA64 processor
6889 lt_prog_compiler_static='-Bstatic'
6890 else
6891 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6892 fi
6893 ;;
6894 darwin*)
6895 # PIC is the default on this platform
6896 # Common symbols not allowed in MH_DYLIB files
6897 case $cc_basename in
6898 xlc*)
6899 lt_prog_compiler_pic='-qnocommon'
6900 lt_prog_compiler_wl='-Wl,'
6901 ;;
6902 esac
6903 ;;
6904
6905 mingw* | pw32* | os2*)
6906 # This hack is so that the source file can tell whether it is being
6907 # built for inclusion in a dll (and should export symbols for example).
6908 lt_prog_compiler_pic='-DDLL_EXPORT'
6909 ;;
6910
6911 hpux9* | hpux10* | hpux11*)
6912 lt_prog_compiler_wl='-Wl,'
6913 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6914 # not for PA HP-UX.
6915 case $host_cpu in
6916 hppa*64*|ia64*)
6917 # +Z the default
6918 ;;
6919 *)
6920 lt_prog_compiler_pic='+Z'
6921 ;;
6922 esac
6923 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6924 lt_prog_compiler_static='${wl}-a ${wl}archive'
6925 ;;
6926
6927 irix5* | irix6* | nonstopux*)
6928 lt_prog_compiler_wl='-Wl,'
6929 # PIC (with -KPIC) is the default.
6930 lt_prog_compiler_static='-non_shared'
6931 ;;
6932
6933 newsos6)
6934 lt_prog_compiler_pic='-KPIC'
6935 lt_prog_compiler_static='-Bstatic'
6936 ;;
6937
6938 linux*)
6939 case $cc_basename in
6940 icc* | ecc*)
6941 lt_prog_compiler_wl='-Wl,'
6942 lt_prog_compiler_pic='-KPIC'
6943 lt_prog_compiler_static='-static'
6944 ;;
6945 pgcc* | pgf77* | pgf90* | pgf95*)
6946 # Portland Group compilers (*not* the Pentium gcc compiler,
6947 # which looks to be a dead project)
6948 lt_prog_compiler_wl='-Wl,'
6949 lt_prog_compiler_pic='-fpic'
6950 lt_prog_compiler_static='-Bstatic'
6951 ;;
6952 ccc*)
6953 lt_prog_compiler_wl='-Wl,'
6954 # All Alpha code is PIC.
6955 lt_prog_compiler_static='-non_shared'
6956 ;;
6957 esac
6958 ;;
6959
6960 osf3* | osf4* | osf5*)
6961 lt_prog_compiler_wl='-Wl,'
6962 # All OSF/1 code is PIC.
6963 lt_prog_compiler_static='-non_shared'
6964 ;;
6965
6966 solaris*)
6967 lt_prog_compiler_pic='-KPIC'
6968 lt_prog_compiler_static='-Bstatic'
6969 case $cc_basename in
6970 f77* | f90* | f95*)
6971 lt_prog_compiler_wl='-Qoption ld ';;
6972 *)
6973 lt_prog_compiler_wl='-Wl,';;
6974 esac
6975 ;;
6976
6977 sunos4*)
6978 lt_prog_compiler_wl='-Qoption ld '
6979 lt_prog_compiler_pic='-PIC'
6980 lt_prog_compiler_static='-Bstatic'
6981 ;;
6982
6983 sysv4 | sysv4.2uw2* | sysv4.3*)
6984 lt_prog_compiler_wl='-Wl,'
6985 lt_prog_compiler_pic='-KPIC'
6986 lt_prog_compiler_static='-Bstatic'
6987 ;;
6988
6989 sysv4*MP*)
6990 if test -d /usr/nec ;then
6991 lt_prog_compiler_pic='-Kconform_pic'
6992 lt_prog_compiler_static='-Bstatic'
6993 fi
6994 ;;
6995
6996 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6997 lt_prog_compiler_wl='-Wl,'
6998 lt_prog_compiler_pic='-KPIC'
6999 lt_prog_compiler_static='-Bstatic'
7000 ;;
7001
7002 unicos*)
7003 lt_prog_compiler_wl='-Wl,'
7004 lt_prog_compiler_can_build_shared=no
7005 ;;
7006
7007 uts4*)
7008 lt_prog_compiler_pic='-pic'
7009 lt_prog_compiler_static='-Bstatic'
7010 ;;
7011
7012 *)
7013 lt_prog_compiler_can_build_shared=no
7014 ;;
7015 esac
7016 fi
7017
7018 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7019 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7020
7021 #
7022 # Check to make sure the PIC flag actually works.
7023 #
7024 if test -n "$lt_prog_compiler_pic"; then
7025
7026 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7027 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7028 if test "${lt_prog_compiler_pic_works+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031 lt_prog_compiler_pic_works=no
7032 ac_outfile=conftest.$ac_objext
7033 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7034 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7035 # Insert the option either (1) after the last *FLAGS variable, or
7036 # (2) before a word containing "conftest.", or (3) at the end.
7037 # Note that $ac_compile itself does not contain backslashes and begins
7038 # with a dollar sign (not a hyphen), so the echo should work correctly.
7039 # The option is referenced via a variable to avoid confusing sed.
7040 lt_compile=`echo "$ac_compile" | $SED \
7041 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7042 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7043 -e 's:$: $lt_compiler_flag:'`
7044 (eval echo "\"\$as_me:7044: $lt_compile\"" >&5)
7045 (eval "$lt_compile" 2>conftest.err)
7046 ac_status=$?
7047 cat conftest.err >&5
7048 echo "$as_me:7048: \$? = $ac_status" >&5
7049 if (exit $ac_status) && test -s "$ac_outfile"; then
7050 # The compiler can only warn and ignore the option if not recognized
7051 # So say no if there are warnings other than the usual output.
7052 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7053 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7054 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7055 lt_prog_compiler_pic_works=yes
7056 fi
7057 fi
7058 $rm conftest*
7059
7060 fi
7061 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7062 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7063
7064 if test x"$lt_prog_compiler_pic_works" = xyes; then
7065 case $lt_prog_compiler_pic in
7066 "" | " "*) ;;
7067 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7068 esac
7069 else
7070 lt_prog_compiler_pic=
7071 lt_prog_compiler_can_build_shared=no
7072 fi
7073
7074 fi
7075 case $host_os in
7076 # For platforms which do not support PIC, -DPIC is meaningless:
7077 *djgpp*)
7078 lt_prog_compiler_pic=
7079 ;;
7080 *)
7081 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7082 ;;
7083 esac
7084
7085 #
7086 # Check to make sure the static flag actually works.
7087 #
7088 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7089 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7090 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7091 if test "${lt_prog_compiler_static_works+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7093 else
7094 lt_prog_compiler_static_works=no
7095 save_LDFLAGS="$LDFLAGS"
7096 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7097 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7098 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7099 # The linker can only warn and ignore the option if not recognized
7100 # So say no if there are warnings
7101 if test -s conftest.err; then
7102 # Append any errors to the config.log.
7103 cat conftest.err 1>&5
7104 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7106 if diff conftest.exp conftest.er2 >/dev/null; then
7107 lt_prog_compiler_static_works=yes
7108 fi
7109 else
7110 lt_prog_compiler_static_works=yes
7111 fi
7112 fi
7113 $rm conftest*
7114 LDFLAGS="$save_LDFLAGS"
7115
7116 fi
7117 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7118 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7119
7120 if test x"$lt_prog_compiler_static_works" = xyes; then
7121 :
7122 else
7123 lt_prog_compiler_static=
7124 fi
7125
7126
7127 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7128 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7129 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132 lt_cv_prog_compiler_c_o=no
7133 $rm -r conftest 2>/dev/null
7134 mkdir conftest
7135 cd conftest
7136 mkdir out
7137 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7138
7139 lt_compiler_flag="-o out/conftest2.$ac_objext"
7140 # Insert the option either (1) after the last *FLAGS variable, or
7141 # (2) before a word containing "conftest.", or (3) at the end.
7142 # Note that $ac_compile itself does not contain backslashes and begins
7143 # with a dollar sign (not a hyphen), so the echo should work correctly.
7144 lt_compile=`echo "$ac_compile" | $SED \
7145 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7146 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7147 -e 's:$: $lt_compiler_flag:'`
7148 (eval echo "\"\$as_me:7148: $lt_compile\"" >&5)
7149 (eval "$lt_compile" 2>out/conftest.err)
7150 ac_status=$?
7151 cat out/conftest.err >&5
7152 echo "$as_me:7152: \$? = $ac_status" >&5
7153 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7154 then
7155 # The compiler can only warn and ignore the option if not recognized
7156 # So say no if there are warnings
7157 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7158 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7159 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7160 lt_cv_prog_compiler_c_o=yes
7161 fi
7162 fi
7163 chmod u+w . 2>&5
7164 $rm conftest*
7165 # SGI C++ compiler will create directory out/ii_files/ for
7166 # template instantiation
7167 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7168 $rm out/* && rmdir out
7169 cd ..
7170 rmdir conftest
7171 $rm conftest*
7172
7173 fi
7174 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7175 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7176
7177
7178 hard_links="nottested"
7179 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7180 # do not overwrite the value of need_locks provided by the user
7181 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7182 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7183 hard_links=yes
7184 $rm conftest*
7185 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7186 touch conftest.a
7187 ln conftest.a conftest.b 2>&5 || hard_links=no
7188 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7189 echo "$as_me:$LINENO: result: $hard_links" >&5
7190 echo "${ECHO_T}$hard_links" >&6
7191 if test "$hard_links" = no; then
7192 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7193 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7194 need_locks=warn
7195 fi
7196 else
7197 need_locks=no
7198 fi
7199
7200 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7201 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7202
7203 runpath_var=
7204 allow_undefined_flag=
7205 enable_shared_with_static_runtimes=no
7206 archive_cmds=
7207 archive_expsym_cmds=
7208 old_archive_From_new_cmds=
7209 old_archive_from_expsyms_cmds=
7210 export_dynamic_flag_spec=
7211 whole_archive_flag_spec=
7212 thread_safe_flag_spec=
7213 hardcode_libdir_flag_spec=
7214 hardcode_libdir_flag_spec_ld=
7215 hardcode_libdir_separator=
7216 hardcode_direct=no
7217 hardcode_minus_L=no
7218 hardcode_shlibpath_var=unsupported
7219 link_all_deplibs=unknown
7220 hardcode_automatic=no
7221 module_cmds=
7222 module_expsym_cmds=
7223 always_export_symbols=no
7224 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7225 # include_expsyms should be a list of space-separated symbols to be *always*
7226 # included in the symbol list
7227 include_expsyms=
7228 # exclude_expsyms can be an extended regexp of symbols to exclude
7229 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7230 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7231 # as well as any symbol that contains `d'.
7232 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7233 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7234 # platforms (ab)use it in PIC code, but their linkers get confused if
7235 # the symbol is explicitly referenced. Since portable code cannot
7236 # rely on this symbol name, it's probably fine to never include it in
7237 # preloaded symbol tables.
7238 extract_expsyms_cmds=
7239 # Just being paranoid about ensuring that cc_basename is set.
7240 for cc_temp in $compiler""; do
7241 case $cc_temp in
7242 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7243 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7244 \-*) ;;
7245 *) break;;
7246 esac
7247 done
7248 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7249
7250 case $host_os in
7251 cygwin* | mingw* | pw32*)
7252 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7253 # When not using gcc, we currently assume that we are using
7254 # Microsoft Visual C++.
7255 if test "$GCC" != yes; then
7256 with_gnu_ld=no
7257 fi
7258 ;;
7259 interix*)
7260 # we just hope/assume this is gcc and not c89 (= MSVC++)
7261 with_gnu_ld=yes
7262 ;;
7263 openbsd*)
7264 with_gnu_ld=no
7265 ;;
7266 esac
7267
7268 ld_shlibs=yes
7269 if test "$with_gnu_ld" = yes; then
7270 # If archive_cmds runs LD, not CC, wlarc should be empty
7271 wlarc='${wl}'
7272
7273 # Set some defaults for GNU ld with shared library support. These
7274 # are reset later if shared libraries are not supported. Putting them
7275 # here allows them to be overridden if necessary.
7276 runpath_var=LD_RUN_PATH
7277 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7278 export_dynamic_flag_spec='${wl}--export-dynamic'
7279 # ancient GNU ld didn't support --whole-archive et. al.
7280 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7281 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7282 else
7283 whole_archive_flag_spec=
7284 fi
7285 supports_anon_versioning=no
7286 case `$LD -v 2>/dev/null` in
7287 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7288 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7289 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7290 *\ 2.11.*) ;; # other 2.11 versions
7291 *) supports_anon_versioning=yes ;;
7292 esac
7293
7294 # See if GNU ld supports shared libraries.
7295 case $host_os in
7296 aix3* | aix4* | aix5*)
7297 # On AIX/PPC, the GNU linker is very broken
7298 if test "$host_cpu" != ia64; then
7299 ld_shlibs=no
7300 cat <<EOF 1>&2
7301
7302 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7303 *** to be unable to reliably create shared libraries on AIX.
7304 *** Therefore, libtool is disabling shared libraries support. If you
7305 *** really care for shared libraries, you may want to modify your PATH
7306 *** so that a non-GNU linker is found, and then restart.
7307
7308 EOF
7309 fi
7310 ;;
7311
7312 amigaos*)
7313 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)'
7314 hardcode_libdir_flag_spec='-L$libdir'
7315 hardcode_minus_L=yes
7316
7317 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7318 # that the semantics of dynamic libraries on AmigaOS, at least up
7319 # to version 4, is to share data among multiple programs linked
7320 # with the same dynamic library. Since this doesn't match the
7321 # behavior of shared libraries on other platforms, we can't use
7322 # them.
7323 ld_shlibs=no
7324 ;;
7325
7326 beos*)
7327 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7328 allow_undefined_flag=unsupported
7329 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7330 # support --undefined. This deserves some investigation. FIXME
7331 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7332 else
7333 ld_shlibs=no
7334 fi
7335 ;;
7336
7337 cygwin* | mingw* | pw32*)
7338 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7339 # as there is no search path for DLLs.
7340 hardcode_libdir_flag_spec='-L$libdir'
7341 allow_undefined_flag=unsupported
7342 always_export_symbols=no
7343 enable_shared_with_static_runtimes=yes
7344 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7345
7346 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7348 # If the export-symbols file already is a .def file (1st line
7349 # is EXPORTS), use it as is; otherwise, prepend...
7350 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7351 cp $export_symbols $output_objdir/$soname.def;
7352 else
7353 echo EXPORTS > $output_objdir/$soname.def;
7354 cat $export_symbols >> $output_objdir/$soname.def;
7355 fi~
7356 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7357 else
7358 ld_shlibs=no
7359 fi
7360 ;;
7361
7362 interix3*)
7363 hardcode_direct=no
7364 hardcode_shlibpath_var=no
7365 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7366 export_dynamic_flag_spec='${wl}-E'
7367 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7368 # Instead, shared libraries are loaded at an image base (0x10000000 by
7369 # default) and relocated if they conflict, which is a slow very memory
7370 # consuming and fragmenting process. To avoid this, we pick a random,
7371 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7372 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7373 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7374 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'
7375 ;;
7376
7377 linux*)
7378 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7379 tmp_addflag=
7380 case $cc_basename,$host_cpu in
7381 pgcc*) # Portland Group C compiler
7382 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'
7383 tmp_addflag=' $pic_flag'
7384 ;;
7385 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7386 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'
7387 tmp_addflag=' $pic_flag -Mnomain' ;;
7388 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7389 tmp_addflag=' -i_dynamic' ;;
7390 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7391 tmp_addflag=' -i_dynamic -nofor_main' ;;
7392 ifc* | ifort*) # Intel Fortran compiler
7393 tmp_addflag=' -nofor_main' ;;
7394 esac
7395 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7396
7397 if test $supports_anon_versioning = yes; then
7398 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7399 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7400 $echo "local: *; };" >> $output_objdir/$libname.ver~
7401 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7402 fi
7403 else
7404 ld_shlibs=no
7405 fi
7406 ;;
7407
7408 netbsd*)
7409 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7410 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7411 wlarc=
7412 else
7413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7414 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7415 fi
7416 ;;
7417
7418 solaris*)
7419 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7420 ld_shlibs=no
7421 cat <<EOF 1>&2
7422
7423 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7424 *** create shared libraries on Solaris systems. Therefore, libtool
7425 *** is disabling shared libraries support. We urge you to upgrade GNU
7426 *** binutils to release 2.9.1 or newer. Another option is to modify
7427 *** your PATH or compiler configuration so that the native linker is
7428 *** used, and then restart.
7429
7430 EOF
7431 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7432 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7433 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7434 else
7435 ld_shlibs=no
7436 fi
7437 ;;
7438
7439 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7440 case `$LD -v 2>&1` in
7441 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7442 ld_shlibs=no
7443 cat <<_LT_EOF 1>&2
7444
7445 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7446 *** reliably create shared libraries on SCO systems. Therefore, libtool
7447 *** is disabling shared libraries support. We urge you to upgrade GNU
7448 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7449 *** your PATH or compiler configuration so that the native linker is
7450 *** used, and then restart.
7451
7452 _LT_EOF
7453 ;;
7454 *)
7455 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7456 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7457 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7458 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7459 else
7460 ld_shlibs=no
7461 fi
7462 ;;
7463 esac
7464 ;;
7465
7466 sunos4*)
7467 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7468 wlarc=
7469 hardcode_direct=yes
7470 hardcode_shlibpath_var=no
7471 ;;
7472
7473 *)
7474 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7475 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7476 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7477 else
7478 ld_shlibs=no
7479 fi
7480 ;;
7481 esac
7482
7483 if test "$ld_shlibs" = no; then
7484 runpath_var=
7485 hardcode_libdir_flag_spec=
7486 export_dynamic_flag_spec=
7487 whole_archive_flag_spec=
7488 fi
7489 else
7490 # PORTME fill in a description of your system's linker (not GNU ld)
7491 case $host_os in
7492 aix3*)
7493 allow_undefined_flag=unsupported
7494 always_export_symbols=yes
7495 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'
7496 # Note: this linker hardcodes the directories in LIBPATH if there
7497 # are no directories specified by -L.
7498 hardcode_minus_L=yes
7499 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7500 # Neither direct hardcoding nor static linking is supported with a
7501 # broken collect2.
7502 hardcode_direct=unsupported
7503 fi
7504 ;;
7505
7506 aix4* | aix5*)
7507 if test "$host_cpu" = ia64; then
7508 # On IA64, the linker does run time linking by default, so we don't
7509 # have to do anything special.
7510 aix_use_runtimelinking=no
7511 exp_sym_flag='-Bexport'
7512 no_entry_flag=""
7513 else
7514 # If we're using GNU nm, then we don't want the "-C" option.
7515 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7516 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7517 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'
7518 else
7519 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'
7520 fi
7521 aix_use_runtimelinking=no
7522
7523 # Test if we are trying to use run time linking or normal
7524 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7525 # need to do runtime linking.
7526 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7527 for ld_flag in $LDFLAGS; do
7528 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7529 aix_use_runtimelinking=yes
7530 break
7531 fi
7532 done
7533 ;;
7534 esac
7535
7536 exp_sym_flag='-bexport'
7537 no_entry_flag='-bnoentry'
7538 fi
7539
7540 # When large executables or shared objects are built, AIX ld can
7541 # have problems creating the table of contents. If linking a library
7542 # or program results in "error TOC overflow" add -mminimal-toc to
7543 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7544 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7545
7546 archive_cmds=''
7547 hardcode_direct=yes
7548 hardcode_libdir_separator=':'
7549 link_all_deplibs=yes
7550
7551 if test "$GCC" = yes; then
7552 case $host_os in aix4.[012]|aix4.[012].*)
7553 # We only want to do this on AIX 4.2 and lower, the check
7554 # below for broken collect2 doesn't work under 4.3+
7555 collect2name=`${CC} -print-prog-name=collect2`
7556 if test -f "$collect2name" && \
7557 strings "$collect2name" | grep resolve_lib_name >/dev/null
7558 then
7559 # We have reworked collect2
7560 hardcode_direct=yes
7561 else
7562 # We have old collect2
7563 hardcode_direct=unsupported
7564 # It fails to find uninstalled libraries when the uninstalled
7565 # path is not listed in the libpath. Setting hardcode_minus_L
7566 # to unsupported forces relinking
7567 hardcode_minus_L=yes
7568 hardcode_libdir_flag_spec='-L$libdir'
7569 hardcode_libdir_separator=
7570 fi
7571 ;;
7572 esac
7573 shared_flag='-shared'
7574 if test "$aix_use_runtimelinking" = yes; then
7575 shared_flag="$shared_flag "'${wl}-G'
7576 fi
7577 else
7578 # not using gcc
7579 if test "$host_cpu" = ia64; then
7580 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7581 # chokes on -Wl,-G. The following line is correct:
7582 shared_flag='-G'
7583 else
7584 if test "$aix_use_runtimelinking" = yes; then
7585 shared_flag='${wl}-G'
7586 else
7587 shared_flag='${wl}-bM:SRE'
7588 fi
7589 fi
7590 fi
7591
7592 # It seems that -bexpall does not export symbols beginning with
7593 # underscore (_), so it is better to generate a list of symbols to export.
7594 always_export_symbols=yes
7595 if test "$aix_use_runtimelinking" = yes; then
7596 # Warning - without using the other runtime loading flags (-brtl),
7597 # -berok will link without error, but may produce a broken library.
7598 allow_undefined_flag='-berok'
7599 # Determine the default libpath from the value encoded in an empty executable.
7600 cat >conftest.$ac_ext <<_ACEOF
7601 /* confdefs.h. */
7602 _ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7606
7607 int
7608 main ()
7609 {
7610
7611 ;
7612 return 0;
7613 }
7614 _ACEOF
7615 rm -f conftest.$ac_objext conftest$ac_exeext
7616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7617 (eval $ac_link) 2>conftest.er1
7618 ac_status=$?
7619 grep -v '^ *+' conftest.er1 >conftest.err
7620 rm -f conftest.er1
7621 cat conftest.err >&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); } &&
7624 { ac_try='test -z "$ac_c_werror_flag"
7625 || test ! -s conftest.err'
7626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7627 (eval $ac_try) 2>&5
7628 ac_status=$?
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); }; } &&
7631 { ac_try='test -s conftest$ac_exeext'
7632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633 (eval $ac_try) 2>&5
7634 ac_status=$?
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); }; }; then
7637
7638 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7639 }'`
7640 # Check for a 64-bit object if we didn't find anything.
7641 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; }
7642 }'`; fi
7643 else
7644 echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7646
7647 fi
7648 rm -f conftest.err conftest.$ac_objext \
7649 conftest$ac_exeext conftest.$ac_ext
7650 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7651
7652 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7653 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"
7654 else
7655 if test "$host_cpu" = ia64; then
7656 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7657 allow_undefined_flag="-z nodefs"
7658 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"
7659 else
7660 # Determine the default libpath from the value encoded in an empty executable.
7661 cat >conftest.$ac_ext <<_ACEOF
7662 /* confdefs.h. */
7663 _ACEOF
7664 cat confdefs.h >>conftest.$ac_ext
7665 cat >>conftest.$ac_ext <<_ACEOF
7666 /* end confdefs.h. */
7667
7668 int
7669 main ()
7670 {
7671
7672 ;
7673 return 0;
7674 }
7675 _ACEOF
7676 rm -f conftest.$ac_objext conftest$ac_exeext
7677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7678 (eval $ac_link) 2>conftest.er1
7679 ac_status=$?
7680 grep -v '^ *+' conftest.er1 >conftest.err
7681 rm -f conftest.er1
7682 cat conftest.err >&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); } &&
7685 { ac_try='test -z "$ac_c_werror_flag"
7686 || test ! -s conftest.err'
7687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 (eval $ac_try) 2>&5
7689 ac_status=$?
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; } &&
7692 { ac_try='test -s conftest$ac_exeext'
7693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 (eval $ac_try) 2>&5
7695 ac_status=$?
7696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7697 (exit $ac_status); }; }; then
7698
7699 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7700 }'`
7701 # Check for a 64-bit object if we didn't find anything.
7702 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; }
7703 }'`; fi
7704 else
7705 echo "$as_me: failed program was:" >&5
7706 sed 's/^/| /' conftest.$ac_ext >&5
7707
7708 fi
7709 rm -f conftest.err conftest.$ac_objext \
7710 conftest$ac_exeext conftest.$ac_ext
7711 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7712
7713 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7714 # Warning - without using the other run time loading flags,
7715 # -berok will link without error, but may produce a broken library.
7716 no_undefined_flag=' ${wl}-bernotok'
7717 allow_undefined_flag=' ${wl}-berok'
7718 # Exported symbols can be pulled into shared objects from archives
7719 whole_archive_flag_spec='$convenience'
7720 archive_cmds_need_lc=yes
7721 # This is similar to how AIX traditionally builds its shared libraries.
7722 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'
7723 fi
7724 fi
7725 ;;
7726
7727 amigaos*)
7728 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)'
7729 hardcode_libdir_flag_spec='-L$libdir'
7730 hardcode_minus_L=yes
7731 # see comment about different semantics on the GNU ld section
7732 ld_shlibs=no
7733 ;;
7734
7735 bsdi[45]*)
7736 export_dynamic_flag_spec=-rdynamic
7737 ;;
7738
7739 cygwin* | mingw* | pw32*)
7740 # When not using gcc, we currently assume that we are using
7741 # Microsoft Visual C++.
7742 # hardcode_libdir_flag_spec is actually meaningless, as there is
7743 # no search path for DLLs.
7744 hardcode_libdir_flag_spec=' '
7745 allow_undefined_flag=unsupported
7746 # Tell ltmain to make .lib files, not .a files.
7747 libext=lib
7748 # Tell ltmain to make .dll files, not .so files.
7749 shrext_cmds=".dll"
7750 # FIXME: Setting linknames here is a bad hack.
7751 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7752 # The linker will automatically build a .lib file if we build a DLL.
7753 old_archive_From_new_cmds='true'
7754 # FIXME: Should let the user specify the lib program.
7755 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7756 fix_srcfile_path='`cygpath -w "$srcfile"`'
7757 enable_shared_with_static_runtimes=yes
7758 ;;
7759
7760 darwin* | rhapsody*)
7761 case $host_os in
7762 rhapsody* | darwin1.[012])
7763 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7764 ;;
7765 *) # Darwin 1.3 on
7766 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7767 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7768 else
7769 case ${MACOSX_DEPLOYMENT_TARGET} in
7770 10.[012])
7771 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7772 ;;
7773 10.*)
7774 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7775 ;;
7776 esac
7777 fi
7778 ;;
7779 esac
7780 archive_cmds_need_lc=no
7781 hardcode_direct=no
7782 hardcode_automatic=yes
7783 hardcode_shlibpath_var=unsupported
7784 whole_archive_flag_spec=''
7785 link_all_deplibs=yes
7786 if test "$GCC" = yes ; then
7787 output_verbose_link_cmd='echo'
7788 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7789 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7790 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7791 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}'
7792 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}'
7793 else
7794 case $cc_basename in
7795 xlc*)
7796 output_verbose_link_cmd='echo'
7797 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7798 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7799 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7800 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}'
7801 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}'
7802 ;;
7803 *)
7804 ld_shlibs=no
7805 ;;
7806 esac
7807 fi
7808 ;;
7809
7810 dgux*)
7811 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7812 hardcode_libdir_flag_spec='-L$libdir'
7813 hardcode_shlibpath_var=no
7814 ;;
7815
7816 freebsd1*)
7817 ld_shlibs=no
7818 ;;
7819
7820 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7821 # support. Future versions do this automatically, but an explicit c++rt0.o
7822 # does not break anything, and helps significantly (at the cost of a little
7823 # extra space).
7824 freebsd2.2*)
7825 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7826 hardcode_libdir_flag_spec='-R$libdir'
7827 hardcode_direct=yes
7828 hardcode_shlibpath_var=no
7829 ;;
7830
7831 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7832 freebsd2*)
7833 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7834 hardcode_direct=yes
7835 hardcode_minus_L=yes
7836 hardcode_shlibpath_var=no
7837 ;;
7838
7839 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7840 freebsd* | kfreebsd*-gnu | dragonfly*)
7841 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7842 hardcode_libdir_flag_spec='-R$libdir'
7843 hardcode_direct=yes
7844 hardcode_shlibpath_var=no
7845 ;;
7846
7847 hpux9*)
7848 if test "$GCC" = yes; then
7849 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'
7850 else
7851 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'
7852 fi
7853 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7854 hardcode_libdir_separator=:
7855 hardcode_direct=yes
7856
7857 # hardcode_minus_L: Not really in the search PATH,
7858 # but as the default location of the library.
7859 hardcode_minus_L=yes
7860 export_dynamic_flag_spec='${wl}-E'
7861 ;;
7862
7863 hpux10*)
7864 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7865 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7866 else
7867 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7868 fi
7869 if test "$with_gnu_ld" = no; then
7870 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7871 hardcode_libdir_separator=:
7872
7873 hardcode_direct=yes
7874 export_dynamic_flag_spec='${wl}-E'
7875
7876 # hardcode_minus_L: Not really in the search PATH,
7877 # but as the default location of the library.
7878 hardcode_minus_L=yes
7879 fi
7880 ;;
7881
7882 hpux11*)
7883 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7884 case $host_cpu in
7885 hppa*64*)
7886 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7887 ;;
7888 ia64*)
7889 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7890 ;;
7891 *)
7892 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7893 ;;
7894 esac
7895 else
7896 case $host_cpu in
7897 hppa*64*)
7898 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7899 ;;
7900 ia64*)
7901 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7902 ;;
7903 *)
7904 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7905 ;;
7906 esac
7907 fi
7908 if test "$with_gnu_ld" = no; then
7909 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7910 hardcode_libdir_separator=:
7911
7912 case $host_cpu in
7913 hppa*64*|ia64*)
7914 hardcode_libdir_flag_spec_ld='+b $libdir'
7915 hardcode_direct=no
7916 hardcode_shlibpath_var=no
7917 ;;
7918 *)
7919 hardcode_direct=yes
7920 export_dynamic_flag_spec='${wl}-E'
7921
7922 # hardcode_minus_L: Not really in the search PATH,
7923 # but as the default location of the library.
7924 hardcode_minus_L=yes
7925 ;;
7926 esac
7927 fi
7928 ;;
7929
7930 irix5* | irix6* | nonstopux*)
7931 if test "$GCC" = yes; then
7932 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'
7933 else
7934 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'
7935 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7936 fi
7937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7938 hardcode_libdir_separator=:
7939 link_all_deplibs=yes
7940 ;;
7941
7942 netbsd*)
7943 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7944 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7945 else
7946 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7947 fi
7948 hardcode_libdir_flag_spec='-R$libdir'
7949 hardcode_direct=yes
7950 hardcode_shlibpath_var=no
7951 ;;
7952
7953 newsos6)
7954 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7955 hardcode_direct=yes
7956 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7957 hardcode_libdir_separator=:
7958 hardcode_shlibpath_var=no
7959 ;;
7960
7961 openbsd*)
7962 hardcode_direct=yes
7963 hardcode_shlibpath_var=no
7964 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7965 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7966 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7967 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7968 export_dynamic_flag_spec='${wl}-E'
7969 else
7970 case $host_os in
7971 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7972 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7973 hardcode_libdir_flag_spec='-R$libdir'
7974 ;;
7975 *)
7976 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7977 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7978 ;;
7979 esac
7980 fi
7981 ;;
7982
7983 os2*)
7984 hardcode_libdir_flag_spec='-L$libdir'
7985 hardcode_minus_L=yes
7986 allow_undefined_flag=unsupported
7987 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'
7988 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7989 ;;
7990
7991 osf3*)
7992 if test "$GCC" = yes; then
7993 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7994 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'
7995 else
7996 allow_undefined_flag=' -expect_unresolved \*'
7997 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'
7998 fi
7999 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8000 hardcode_libdir_separator=:
8001 ;;
8002
8003 osf4* | osf5*) # as osf3* with the addition of -msym flag
8004 if test "$GCC" = yes; then
8005 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8006 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'
8007 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8008 else
8009 allow_undefined_flag=' -expect_unresolved \*'
8010 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'
8011 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8012 $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'
8013
8014 # Both c and cxx compiler support -rpath directly
8015 hardcode_libdir_flag_spec='-rpath $libdir'
8016 fi
8017 hardcode_libdir_separator=:
8018 ;;
8019
8020 solaris*)
8021 no_undefined_flag=' -z text'
8022 if test "$GCC" = yes; then
8023 wlarc='${wl}'
8024 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8025 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8026 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8027 else
8028 wlarc=''
8029 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8030 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8031 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8032 fi
8033 hardcode_libdir_flag_spec='-R$libdir'
8034 hardcode_shlibpath_var=no
8035 case $host_os in
8036 solaris2.[0-5] | solaris2.[0-5].*) ;;
8037 *)
8038 # The compiler driver will combine linker options so we
8039 # cannot just pass the convience library names through
8040 # without $wl, iff we do not link with $LD.
8041 # Luckily, gcc supports the same syntax we need for Sun Studio.
8042 # Supported since Solaris 2.6 (maybe 2.5.1?)
8043 case $wlarc in
8044 '')
8045 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8046 *)
8047 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' ;;
8048 esac ;;
8049 esac
8050 link_all_deplibs=yes
8051 ;;
8052
8053 sunos4*)
8054 if test "x$host_vendor" = xsequent; then
8055 # Use $CC to link under sequent, because it throws in some extra .o
8056 # files that make .init and .fini sections work.
8057 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8058 else
8059 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8060 fi
8061 hardcode_libdir_flag_spec='-L$libdir'
8062 hardcode_direct=yes
8063 hardcode_minus_L=yes
8064 hardcode_shlibpath_var=no
8065 ;;
8066
8067 sysv4)
8068 case $host_vendor in
8069 sni)
8070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8071 hardcode_direct=yes # is this really true???
8072 ;;
8073 siemens)
8074 ## LD is ld it makes a PLAMLIB
8075 ## CC just makes a GrossModule.
8076 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8077 reload_cmds='$CC -r -o $output$reload_objs'
8078 hardcode_direct=no
8079 ;;
8080 motorola)
8081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8082 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8083 ;;
8084 esac
8085 runpath_var='LD_RUN_PATH'
8086 hardcode_shlibpath_var=no
8087 ;;
8088
8089 sysv4.3*)
8090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8091 hardcode_shlibpath_var=no
8092 export_dynamic_flag_spec='-Bexport'
8093 ;;
8094
8095 sysv4*MP*)
8096 if test -d /usr/nec; then
8097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8098 hardcode_shlibpath_var=no
8099 runpath_var=LD_RUN_PATH
8100 hardcode_runpath_var=yes
8101 ld_shlibs=yes
8102 fi
8103 ;;
8104
8105 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8106 no_undefined_flag='${wl}-z,text'
8107 archive_cmds_need_lc=no
8108 hardcode_shlibpath_var=no
8109 runpath_var='LD_RUN_PATH'
8110
8111 if test "$GCC" = yes; then
8112 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8113 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8114 else
8115 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8116 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8117 fi
8118 ;;
8119
8120 sysv5* | sco3.2v5* | sco5v6*)
8121 # Note: We can NOT use -z defs as we might desire, because we do not
8122 # link with -lc, and that would cause any symbols used from libc to
8123 # always be unresolved, which means just about no library would
8124 # ever link correctly. If we're not using GNU ld we use -z text
8125 # though, which does catch some bad symbols but isn't as heavy-handed
8126 # as -z defs.
8127 no_undefined_flag='${wl}-z,text'
8128 allow_undefined_flag='${wl}-z,nodefs'
8129 archive_cmds_need_lc=no
8130 hardcode_shlibpath_var=no
8131 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8132 hardcode_libdir_separator=':'
8133 link_all_deplibs=yes
8134 export_dynamic_flag_spec='${wl}-Bexport'
8135 runpath_var='LD_RUN_PATH'
8136
8137 if test "$GCC" = yes; then
8138 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8139 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8140 else
8141 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8142 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8143 fi
8144 ;;
8145
8146 uts4*)
8147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8148 hardcode_libdir_flag_spec='-L$libdir'
8149 hardcode_shlibpath_var=no
8150 ;;
8151
8152 *)
8153 ld_shlibs=no
8154 ;;
8155 esac
8156 fi
8157
8158 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8159 echo "${ECHO_T}$ld_shlibs" >&6
8160 test "$ld_shlibs" = no && can_build_shared=no
8161
8162 #
8163 # Do we need to explicitly link libc?
8164 #
8165 case "x$archive_cmds_need_lc" in
8166 x|xyes)
8167 # Assume -lc should be added
8168 archive_cmds_need_lc=yes
8169
8170 if test "$enable_shared" = yes && test "$GCC" = yes; then
8171 case $archive_cmds in
8172 *'~'*)
8173 # FIXME: we may have to deal with multi-command sequences.
8174 ;;
8175 '$CC '*)
8176 # Test whether the compiler implicitly links with -lc since on some
8177 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8178 # to ld, don't add -lc before -lgcc.
8179 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8180 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8181 $rm conftest*
8182 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8183
8184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8185 (eval $ac_compile) 2>&5
8186 ac_status=$?
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); } 2>conftest.err; then
8189 soname=conftest
8190 lib=conftest
8191 libobjs=conftest.$ac_objext
8192 deplibs=
8193 wl=$lt_prog_compiler_wl
8194 pic_flag=$lt_prog_compiler_pic
8195 compiler_flags=-v
8196 linker_flags=-v
8197 verstring=
8198 output_objdir=.
8199 libname=conftest
8200 lt_save_allow_undefined_flag=$allow_undefined_flag
8201 allow_undefined_flag=
8202 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8203 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8204 ac_status=$?
8205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206 (exit $ac_status); }
8207 then
8208 archive_cmds_need_lc=no
8209 else
8210 archive_cmds_need_lc=yes
8211 fi
8212 allow_undefined_flag=$lt_save_allow_undefined_flag
8213 else
8214 cat conftest.err 1>&5
8215 fi
8216 $rm conftest*
8217 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8218 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8219 ;;
8220 esac
8221 fi
8222 ;;
8223 esac
8224
8225 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8226 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8227 library_names_spec=
8228 libname_spec='lib$name'
8229 soname_spec=
8230 shrext_cmds=".so"
8231 postinstall_cmds=
8232 postuninstall_cmds=
8233 finish_cmds=
8234 finish_eval=
8235 shlibpath_var=
8236 shlibpath_overrides_runpath=unknown
8237 version_type=none
8238 dynamic_linker="$host_os ld.so"
8239 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8240 if test "$GCC" = yes; then
8241 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8242 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8243 # if the path contains ";" then we assume it to be the separator
8244 # otherwise default to the standard path separator (i.e. ":") - it is
8245 # assumed that no part of a normal pathname contains ";" but that should
8246 # okay in the real world where ";" in dirpaths is itself problematic.
8247 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8248 else
8249 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8250 fi
8251 else
8252 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8253 fi
8254 need_lib_prefix=unknown
8255 hardcode_into_libs=no
8256
8257 # when you set need_version to no, make sure it does not cause -set_version
8258 # flags to be left without arguments
8259 need_version=unknown
8260
8261 case $host_os in
8262 aix3*)
8263 version_type=linux
8264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8265 shlibpath_var=LIBPATH
8266
8267 # AIX 3 has no versioning support, so we append a major version to the name.
8268 soname_spec='${libname}${release}${shared_ext}$major'
8269 ;;
8270
8271 aix4* | aix5*)
8272 version_type=linux
8273 need_lib_prefix=no
8274 need_version=no
8275 hardcode_into_libs=yes
8276 if test "$host_cpu" = ia64; then
8277 # AIX 5 supports IA64
8278 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8279 shlibpath_var=LD_LIBRARY_PATH
8280 else
8281 # With GCC up to 2.95.x, collect2 would create an import file
8282 # for dependence libraries. The import file would start with
8283 # the line `#! .'. This would cause the generated library to
8284 # depend on `.', always an invalid library. This was fixed in
8285 # development snapshots of GCC prior to 3.0.
8286 case $host_os in
8287 aix4 | aix4.[01] | aix4.[01].*)
8288 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8289 echo ' yes '
8290 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8291 :
8292 else
8293 can_build_shared=no
8294 fi
8295 ;;
8296 esac
8297 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8298 # soname into executable. Probably we can add versioning support to
8299 # collect2, so additional links can be useful in future.
8300 if test "$aix_use_runtimelinking" = yes; then
8301 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8302 # instead of lib<name>.a to let people know that these are not
8303 # typical AIX shared libraries.
8304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8305 else
8306 # We preserve .a as extension for shared libraries through AIX4.2
8307 # and later when we are not doing run time linking.
8308 library_names_spec='${libname}${release}.a $libname.a'
8309 soname_spec='${libname}${release}${shared_ext}$major'
8310 fi
8311 shlibpath_var=LIBPATH
8312 fi
8313 ;;
8314
8315 amigaos*)
8316 library_names_spec='$libname.ixlibrary $libname.a'
8317 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8318 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'
8319 ;;
8320
8321 beos*)
8322 library_names_spec='${libname}${shared_ext}'
8323 dynamic_linker="$host_os ld.so"
8324 shlibpath_var=LIBRARY_PATH
8325 ;;
8326
8327 bsdi[45]*)
8328 version_type=linux
8329 need_version=no
8330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8331 soname_spec='${libname}${release}${shared_ext}$major'
8332 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8333 shlibpath_var=LD_LIBRARY_PATH
8334 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8335 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8336 # the default ld.so.conf also contains /usr/contrib/lib and
8337 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8338 # libtool to hard-code these into programs
8339 ;;
8340
8341 cygwin* | mingw* | pw32*)
8342 version_type=windows
8343 shrext_cmds=".dll"
8344 need_version=no
8345 need_lib_prefix=no
8346
8347 case $GCC,$host_os in
8348 yes,cygwin* | yes,mingw* | yes,pw32*)
8349 library_names_spec='$libname.dll.a'
8350 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8351 postinstall_cmds='base_file=`basename \${file}`~
8352 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8353 dldir=$destdir/`dirname \$dlpath`~
8354 test -d \$dldir || mkdir -p \$dldir~
8355 $install_prog $dir/$dlname \$dldir/$dlname~
8356 chmod a+x \$dldir/$dlname'
8357 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8358 dlpath=$dir/\$dldll~
8359 $rm \$dlpath'
8360 shlibpath_overrides_runpath=yes
8361
8362 case $host_os in
8363 cygwin*)
8364 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8365 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8366 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8367 ;;
8368 mingw*)
8369 # MinGW DLLs use traditional 'lib' prefix
8370 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8371 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8372 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8373 # It is most probably a Windows format PATH printed by
8374 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8375 # path with ; separators, and with drive letters. We can handle the
8376 # drive letters (cygwin fileutils understands them), so leave them,
8377 # especially as we might pass files found there to a mingw objdump,
8378 # which wouldn't understand a cygwinified path. Ahh.
8379 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8380 else
8381 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8382 fi
8383 ;;
8384 pw32*)
8385 # pw32 DLLs use 'pw' prefix rather than 'lib'
8386 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8387 ;;
8388 esac
8389 ;;
8390
8391 *)
8392 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8393 ;;
8394 esac
8395 dynamic_linker='Win32 ld.exe'
8396 # FIXME: first we should search . and the directory the executable is in
8397 shlibpath_var=PATH
8398 ;;
8399
8400 darwin* | rhapsody*)
8401 dynamic_linker="$host_os dyld"
8402 version_type=darwin
8403 need_lib_prefix=no
8404 need_version=no
8405 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8406 soname_spec='${libname}${release}${major}$shared_ext'
8407 shlibpath_overrides_runpath=yes
8408 shlibpath_var=DYLD_LIBRARY_PATH
8409 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8410 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8411 if test "$GCC" = yes; then
8412 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"`
8413 else
8414 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8415 fi
8416 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8417 ;;
8418
8419 dgux*)
8420 version_type=linux
8421 need_lib_prefix=no
8422 need_version=no
8423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8424 soname_spec='${libname}${release}${shared_ext}$major'
8425 shlibpath_var=LD_LIBRARY_PATH
8426 ;;
8427
8428 freebsd1*)
8429 dynamic_linker=no
8430 ;;
8431
8432 kfreebsd*-gnu)
8433 version_type=linux
8434 need_lib_prefix=no
8435 need_version=no
8436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8437 soname_spec='${libname}${release}${shared_ext}$major'
8438 shlibpath_var=LD_LIBRARY_PATH
8439 shlibpath_overrides_runpath=no
8440 hardcode_into_libs=yes
8441 dynamic_linker='GNU ld.so'
8442 ;;
8443
8444 freebsd* | dragonfly*)
8445 # DragonFly does not have aout. When/if they implement a new
8446 # versioning mechanism, adjust this.
8447 if test -x /usr/bin/objformat; then
8448 objformat=`/usr/bin/objformat`
8449 else
8450 case $host_os in
8451 freebsd[123]*) objformat=aout ;;
8452 *) objformat=elf ;;
8453 esac
8454 fi
8455 version_type=freebsd-$objformat
8456 case $version_type in
8457 freebsd-elf*)
8458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8459 need_version=no
8460 need_lib_prefix=no
8461 ;;
8462 freebsd-*)
8463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8464 need_version=yes
8465 ;;
8466 esac
8467 shlibpath_var=LD_LIBRARY_PATH
8468 case $host_os in
8469 freebsd2*)
8470 shlibpath_overrides_runpath=yes
8471 ;;
8472 freebsd3.[01]* | freebsdelf3.[01]*)
8473 shlibpath_overrides_runpath=yes
8474 hardcode_into_libs=yes
8475 ;;
8476 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8477 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8478 shlibpath_overrides_runpath=no
8479 hardcode_into_libs=yes
8480 ;;
8481 freebsd*) # from 4.6 on
8482 shlibpath_overrides_runpath=yes
8483 hardcode_into_libs=yes
8484 ;;
8485 esac
8486 ;;
8487
8488 gnu*)
8489 version_type=linux
8490 need_lib_prefix=no
8491 need_version=no
8492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8493 soname_spec='${libname}${release}${shared_ext}$major'
8494 shlibpath_var=LD_LIBRARY_PATH
8495 hardcode_into_libs=yes
8496 ;;
8497
8498 hpux9* | hpux10* | hpux11*)
8499 # Give a soname corresponding to the major version so that dld.sl refuses to
8500 # link against other versions.
8501 version_type=sunos
8502 need_lib_prefix=no
8503 need_version=no
8504 case $host_cpu in
8505 ia64*)
8506 shrext_cmds='.so'
8507 hardcode_into_libs=yes
8508 dynamic_linker="$host_os dld.so"
8509 shlibpath_var=LD_LIBRARY_PATH
8510 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8512 soname_spec='${libname}${release}${shared_ext}$major'
8513 if test "X$HPUX_IA64_MODE" = X32; then
8514 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8515 else
8516 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8517 fi
8518 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8519 ;;
8520 hppa*64*)
8521 shrext_cmds='.sl'
8522 hardcode_into_libs=yes
8523 dynamic_linker="$host_os dld.sl"
8524 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8525 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8527 soname_spec='${libname}${release}${shared_ext}$major'
8528 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8529 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8530 ;;
8531 *)
8532 shrext_cmds='.sl'
8533 dynamic_linker="$host_os dld.sl"
8534 shlibpath_var=SHLIB_PATH
8535 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8537 soname_spec='${libname}${release}${shared_ext}$major'
8538 ;;
8539 esac
8540 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8541 postinstall_cmds='chmod 555 $lib'
8542 ;;
8543
8544 interix3*)
8545 version_type=linux
8546 need_lib_prefix=no
8547 need_version=no
8548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8549 soname_spec='${libname}${release}${shared_ext}$major'
8550 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8551 shlibpath_var=LD_LIBRARY_PATH
8552 shlibpath_overrides_runpath=no
8553 hardcode_into_libs=yes
8554 ;;
8555
8556 irix5* | irix6* | nonstopux*)
8557 case $host_os in
8558 nonstopux*) version_type=nonstopux ;;
8559 *)
8560 if test "$lt_cv_prog_gnu_ld" = yes; then
8561 version_type=linux
8562 else
8563 version_type=irix
8564 fi ;;
8565 esac
8566 need_lib_prefix=no
8567 need_version=no
8568 soname_spec='${libname}${release}${shared_ext}$major'
8569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8570 case $host_os in
8571 irix5* | nonstopux*)
8572 libsuff= shlibsuff=
8573 ;;
8574 *)
8575 case $LD in # libtool.m4 will add one of these switches to LD
8576 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8577 libsuff= shlibsuff= libmagic=32-bit;;
8578 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8579 libsuff=32 shlibsuff=N32 libmagic=N32;;
8580 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8581 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8582 *) libsuff= shlibsuff= libmagic=never-match;;
8583 esac
8584 ;;
8585 esac
8586 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8587 shlibpath_overrides_runpath=no
8588 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8589 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8590 hardcode_into_libs=yes
8591 ;;
8592
8593 # No shared lib support for Linux oldld, aout, or coff.
8594 linux*oldld* | linux*aout* | linux*coff*)
8595 dynamic_linker=no
8596 ;;
8597
8598 # This must be Linux ELF.
8599 linux*)
8600 version_type=linux
8601 need_lib_prefix=no
8602 need_version=no
8603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8604 soname_spec='${libname}${release}${shared_ext}$major'
8605 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8606 shlibpath_var=LD_LIBRARY_PATH
8607 shlibpath_overrides_runpath=no
8608 # This implies no fast_install, which is unacceptable.
8609 # Some rework will be needed to allow for fast_install
8610 # before this can be enabled.
8611 hardcode_into_libs=yes
8612
8613 # Append ld.so.conf contents to the search path
8614 if test -f /etc/ld.so.conf; then
8615 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' ' '`
8616 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8617 fi
8618
8619 # We used to test for /lib/ld.so.1 and disable shared libraries on
8620 # powerpc, because MkLinux only supported shared libraries with the
8621 # GNU dynamic linker. Since this was broken with cross compilers,
8622 # most powerpc-linux boxes support dynamic linking these days and
8623 # people can always --disable-shared, the test was removed, and we
8624 # assume the GNU/Linux dynamic linker is in use.
8625 dynamic_linker='GNU/Linux ld.so'
8626 ;;
8627
8628 knetbsd*-gnu)
8629 version_type=linux
8630 need_lib_prefix=no
8631 need_version=no
8632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8633 soname_spec='${libname}${release}${shared_ext}$major'
8634 shlibpath_var=LD_LIBRARY_PATH
8635 shlibpath_overrides_runpath=no
8636 hardcode_into_libs=yes
8637 dynamic_linker='GNU ld.so'
8638 ;;
8639
8640 netbsd*)
8641 version_type=sunos
8642 need_lib_prefix=no
8643 need_version=no
8644 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8647 dynamic_linker='NetBSD (a.out) ld.so'
8648 else
8649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8650 soname_spec='${libname}${release}${shared_ext}$major'
8651 dynamic_linker='NetBSD ld.elf_so'
8652 fi
8653 shlibpath_var=LD_LIBRARY_PATH
8654 shlibpath_overrides_runpath=yes
8655 hardcode_into_libs=yes
8656 ;;
8657
8658 newsos6)
8659 version_type=linux
8660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8661 shlibpath_var=LD_LIBRARY_PATH
8662 shlibpath_overrides_runpath=yes
8663 ;;
8664
8665 nto-qnx*)
8666 version_type=linux
8667 need_lib_prefix=no
8668 need_version=no
8669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8670 soname_spec='${libname}${release}${shared_ext}$major'
8671 shlibpath_var=LD_LIBRARY_PATH
8672 shlibpath_overrides_runpath=yes
8673 ;;
8674
8675 openbsd*)
8676 version_type=sunos
8677 sys_lib_dlsearch_path_spec="/usr/lib"
8678 need_lib_prefix=no
8679 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8680 case $host_os in
8681 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8682 *) need_version=no ;;
8683 esac
8684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8686 shlibpath_var=LD_LIBRARY_PATH
8687 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8688 case $host_os in
8689 openbsd2.[89] | openbsd2.[89].*)
8690 shlibpath_overrides_runpath=no
8691 ;;
8692 *)
8693 shlibpath_overrides_runpath=yes
8694 ;;
8695 esac
8696 else
8697 shlibpath_overrides_runpath=yes
8698 fi
8699 ;;
8700
8701 os2*)
8702 libname_spec='$name'
8703 shrext_cmds=".dll"
8704 need_lib_prefix=no
8705 library_names_spec='$libname${shared_ext} $libname.a'
8706 dynamic_linker='OS/2 ld.exe'
8707 shlibpath_var=LIBPATH
8708 ;;
8709
8710 osf3* | osf4* | osf5*)
8711 version_type=osf
8712 need_lib_prefix=no
8713 need_version=no
8714 soname_spec='${libname}${release}${shared_ext}$major'
8715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8716 shlibpath_var=LD_LIBRARY_PATH
8717 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8718 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8719 ;;
8720
8721 solaris*)
8722 version_type=linux
8723 need_lib_prefix=no
8724 need_version=no
8725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8726 soname_spec='${libname}${release}${shared_ext}$major'
8727 shlibpath_var=LD_LIBRARY_PATH
8728 shlibpath_overrides_runpath=yes
8729 hardcode_into_libs=yes
8730 # ldd complains unless libraries are executable
8731 postinstall_cmds='chmod +x $lib'
8732 ;;
8733
8734 sunos4*)
8735 version_type=sunos
8736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8737 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8738 shlibpath_var=LD_LIBRARY_PATH
8739 shlibpath_overrides_runpath=yes
8740 if test "$with_gnu_ld" = yes; then
8741 need_lib_prefix=no
8742 fi
8743 need_version=yes
8744 ;;
8745
8746 sysv4 | sysv4.3*)
8747 version_type=linux
8748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8749 soname_spec='${libname}${release}${shared_ext}$major'
8750 shlibpath_var=LD_LIBRARY_PATH
8751 case $host_vendor in
8752 sni)
8753 shlibpath_overrides_runpath=no
8754 need_lib_prefix=no
8755 export_dynamic_flag_spec='${wl}-Blargedynsym'
8756 runpath_var=LD_RUN_PATH
8757 ;;
8758 siemens)
8759 need_lib_prefix=no
8760 ;;
8761 motorola)
8762 need_lib_prefix=no
8763 need_version=no
8764 shlibpath_overrides_runpath=no
8765 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8766 ;;
8767 esac
8768 ;;
8769
8770 sysv4*MP*)
8771 if test -d /usr/nec ;then
8772 version_type=linux
8773 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8774 soname_spec='$libname${shared_ext}.$major'
8775 shlibpath_var=LD_LIBRARY_PATH
8776 fi
8777 ;;
8778
8779 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8780 version_type=freebsd-elf
8781 need_lib_prefix=no
8782 need_version=no
8783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8784 soname_spec='${libname}${release}${shared_ext}$major'
8785 shlibpath_var=LD_LIBRARY_PATH
8786 hardcode_into_libs=yes
8787 if test "$with_gnu_ld" = yes; then
8788 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8789 shlibpath_overrides_runpath=no
8790 else
8791 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8792 shlibpath_overrides_runpath=yes
8793 case $host_os in
8794 sco3.2v5*)
8795 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8796 ;;
8797 esac
8798 fi
8799 sys_lib_dlsearch_path_spec='/usr/lib'
8800 ;;
8801
8802 uts4*)
8803 version_type=linux
8804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8805 soname_spec='${libname}${release}${shared_ext}$major'
8806 shlibpath_var=LD_LIBRARY_PATH
8807 ;;
8808
8809 *)
8810 dynamic_linker=no
8811 ;;
8812 esac
8813 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8814 echo "${ECHO_T}$dynamic_linker" >&6
8815 test "$dynamic_linker" = no && can_build_shared=no
8816
8817 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8818 if test "$GCC" = yes; then
8819 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8820 fi
8821
8822 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8823 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8824 hardcode_action=
8825 if test -n "$hardcode_libdir_flag_spec" || \
8826 test -n "$runpath_var" || \
8827 test "X$hardcode_automatic" = "Xyes" ; then
8828
8829 # We can hardcode non-existant directories.
8830 if test "$hardcode_direct" != no &&
8831 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8832 # have to relink, otherwise we might link with an installed library
8833 # when we should be linking with a yet-to-be-installed one
8834 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8835 test "$hardcode_minus_L" != no; then
8836 # Linking always hardcodes the temporary library directory.
8837 hardcode_action=relink
8838 else
8839 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8840 hardcode_action=immediate
8841 fi
8842 else
8843 # We cannot hardcode anything, or else we can only hardcode existing
8844 # directories.
8845 hardcode_action=unsupported
8846 fi
8847 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8848 echo "${ECHO_T}$hardcode_action" >&6
8849
8850 if test "$hardcode_action" = relink; then
8851 # Fast installation is not supported
8852 enable_fast_install=no
8853 elif test "$shlibpath_overrides_runpath" = yes ||
8854 test "$enable_shared" = no; then
8855 # Fast installation is not necessary
8856 enable_fast_install=needless
8857 fi
8858
8859 striplib=
8860 old_striplib=
8861 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8862 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8863 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8864 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8865 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8866 echo "$as_me:$LINENO: result: yes" >&5
8867 echo "${ECHO_T}yes" >&6
8868 else
8869 # FIXME - insert some real tests, host_os isn't really good enough
8870 case $host_os in
8871 darwin*)
8872 if test -n "$STRIP" ; then
8873 striplib="$STRIP -x"
8874 echo "$as_me:$LINENO: result: yes" >&5
8875 echo "${ECHO_T}yes" >&6
8876 else
8877 echo "$as_me:$LINENO: result: no" >&5
8878 echo "${ECHO_T}no" >&6
8879 fi
8880 ;;
8881 *)
8882 echo "$as_me:$LINENO: result: no" >&5
8883 echo "${ECHO_T}no" >&6
8884 ;;
8885 esac
8886 fi
8887
8888 if test "x$enable_dlopen" != xyes; then
8889 enable_dlopen=unknown
8890 enable_dlopen_self=unknown
8891 enable_dlopen_self_static=unknown
8892 else
8893 lt_cv_dlopen=no
8894 lt_cv_dlopen_libs=
8895
8896 case $host_os in
8897 beos*)
8898 lt_cv_dlopen="load_add_on"
8899 lt_cv_dlopen_libs=
8900 lt_cv_dlopen_self=yes
8901 ;;
8902
8903 mingw* | pw32*)
8904 lt_cv_dlopen="LoadLibrary"
8905 lt_cv_dlopen_libs=
8906 ;;
8907
8908 cygwin*)
8909 lt_cv_dlopen="dlopen"
8910 lt_cv_dlopen_libs=
8911 ;;
8912
8913 darwin*)
8914 # if libdl is installed we need to link against it
8915 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8916 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8917 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8918 echo $ECHO_N "(cached) $ECHO_C" >&6
8919 else
8920 ac_check_lib_save_LIBS=$LIBS
8921 LIBS="-ldl $LIBS"
8922 cat >conftest.$ac_ext <<_ACEOF
8923 /* confdefs.h. */
8924 _ACEOF
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8928
8929 /* Override any gcc2 internal prototype to avoid an error. */
8930 #ifdef __cplusplus
8931 extern "C"
8932 #endif
8933 /* We use char because int might match the return type of a gcc2
8934 builtin and then its argument prototype would still apply. */
8935 char dlopen ();
8936 int
8937 main ()
8938 {
8939 dlopen ();
8940 ;
8941 return 0;
8942 }
8943 _ACEOF
8944 rm -f conftest.$ac_objext conftest$ac_exeext
8945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8946 (eval $ac_link) 2>conftest.er1
8947 ac_status=$?
8948 grep -v '^ *+' conftest.er1 >conftest.err
8949 rm -f conftest.er1
8950 cat conftest.err >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } &&
8953 { ac_try='test -z "$ac_c_werror_flag"
8954 || test ! -s conftest.err'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 (eval $ac_try) 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; } &&
8960 { ac_try='test -s conftest$ac_exeext'
8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 (eval $ac_try) 2>&5
8963 ac_status=$?
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; }; then
8966 ac_cv_lib_dl_dlopen=yes
8967 else
8968 echo "$as_me: failed program was:" >&5
8969 sed 's/^/| /' conftest.$ac_ext >&5
8970
8971 ac_cv_lib_dl_dlopen=no
8972 fi
8973 rm -f conftest.err conftest.$ac_objext \
8974 conftest$ac_exeext conftest.$ac_ext
8975 LIBS=$ac_check_lib_save_LIBS
8976 fi
8977 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8978 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8979 if test $ac_cv_lib_dl_dlopen = yes; then
8980 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8981 else
8982
8983 lt_cv_dlopen="dyld"
8984 lt_cv_dlopen_libs=
8985 lt_cv_dlopen_self=yes
8986
8987 fi
8988
8989 ;;
8990
8991 *)
8992 echo "$as_me:$LINENO: checking for shl_load" >&5
8993 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8994 if test "${ac_cv_func_shl_load+set}" = set; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8996 else
8997 cat >conftest.$ac_ext <<_ACEOF
8998 /* confdefs.h. */
8999 _ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h. */
9003 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9005 #define shl_load innocuous_shl_load
9006
9007 /* System header to define __stub macros and hopefully few prototypes,
9008 which can conflict with char shl_load (); below.
9009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9010 <limits.h> exists even on freestanding compilers. */
9011
9012 #ifdef __STDC__
9013 # include <limits.h>
9014 #else
9015 # include <assert.h>
9016 #endif
9017
9018 #undef shl_load
9019
9020 /* Override any gcc2 internal prototype to avoid an error. */
9021 #ifdef __cplusplus
9022 extern "C"
9023 {
9024 #endif
9025 /* We use char because int might match the return type of a gcc2
9026 builtin and then its argument prototype would still apply. */
9027 char shl_load ();
9028 /* The GNU C library defines this for functions which it implements
9029 to always fail with ENOSYS. Some functions are actually named
9030 something starting with __ and the normal name is an alias. */
9031 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9032 choke me
9033 #else
9034 char (*f) () = shl_load;
9035 #endif
9036 #ifdef __cplusplus
9037 }
9038 #endif
9039
9040 int
9041 main ()
9042 {
9043 return f != shl_load;
9044 ;
9045 return 0;
9046 }
9047 _ACEOF
9048 rm -f conftest.$ac_objext conftest$ac_exeext
9049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9050 (eval $ac_link) 2>conftest.er1
9051 ac_status=$?
9052 grep -v '^ *+' conftest.er1 >conftest.err
9053 rm -f conftest.er1
9054 cat conftest.err >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); } &&
9057 { ac_try='test -z "$ac_c_werror_flag"
9058 || test ! -s conftest.err'
9059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 (eval $ac_try) 2>&5
9061 ac_status=$?
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; } &&
9064 { ac_try='test -s conftest$ac_exeext'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 (eval $ac_try) 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; }; then
9070 ac_cv_func_shl_load=yes
9071 else
9072 echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9074
9075 ac_cv_func_shl_load=no
9076 fi
9077 rm -f conftest.err conftest.$ac_objext \
9078 conftest$ac_exeext conftest.$ac_ext
9079 fi
9080 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9081 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9082 if test $ac_cv_func_shl_load = yes; then
9083 lt_cv_dlopen="shl_load"
9084 else
9085 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9086 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9087 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9088 echo $ECHO_N "(cached) $ECHO_C" >&6
9089 else
9090 ac_check_lib_save_LIBS=$LIBS
9091 LIBS="-ldld $LIBS"
9092 cat >conftest.$ac_ext <<_ACEOF
9093 /* confdefs.h. */
9094 _ACEOF
9095 cat confdefs.h >>conftest.$ac_ext
9096 cat >>conftest.$ac_ext <<_ACEOF
9097 /* end confdefs.h. */
9098
9099 /* Override any gcc2 internal prototype to avoid an error. */
9100 #ifdef __cplusplus
9101 extern "C"
9102 #endif
9103 /* We use char because int might match the return type of a gcc2
9104 builtin and then its argument prototype would still apply. */
9105 char shl_load ();
9106 int
9107 main ()
9108 {
9109 shl_load ();
9110 ;
9111 return 0;
9112 }
9113 _ACEOF
9114 rm -f conftest.$ac_objext conftest$ac_exeext
9115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9116 (eval $ac_link) 2>conftest.er1
9117 ac_status=$?
9118 grep -v '^ *+' conftest.er1 >conftest.err
9119 rm -f conftest.er1
9120 cat conftest.err >&5
9121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122 (exit $ac_status); } &&
9123 { ac_try='test -z "$ac_c_werror_flag"
9124 || test ! -s conftest.err'
9125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9126 (eval $ac_try) 2>&5
9127 ac_status=$?
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); }; } &&
9130 { ac_try='test -s conftest$ac_exeext'
9131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9132 (eval $ac_try) 2>&5
9133 ac_status=$?
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }; }; then
9136 ac_cv_lib_dld_shl_load=yes
9137 else
9138 echo "$as_me: failed program was:" >&5
9139 sed 's/^/| /' conftest.$ac_ext >&5
9140
9141 ac_cv_lib_dld_shl_load=no
9142 fi
9143 rm -f conftest.err conftest.$ac_objext \
9144 conftest$ac_exeext conftest.$ac_ext
9145 LIBS=$ac_check_lib_save_LIBS
9146 fi
9147 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9148 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9149 if test $ac_cv_lib_dld_shl_load = yes; then
9150 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9151 else
9152 echo "$as_me:$LINENO: checking for dlopen" >&5
9153 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9154 if test "${ac_cv_func_dlopen+set}" = set; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9156 else
9157 cat >conftest.$ac_ext <<_ACEOF
9158 /* confdefs.h. */
9159 _ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9163 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9165 #define dlopen innocuous_dlopen
9166
9167 /* System header to define __stub macros and hopefully few prototypes,
9168 which can conflict with char dlopen (); below.
9169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9170 <limits.h> exists even on freestanding compilers. */
9171
9172 #ifdef __STDC__
9173 # include <limits.h>
9174 #else
9175 # include <assert.h>
9176 #endif
9177
9178 #undef dlopen
9179
9180 /* Override any gcc2 internal prototype to avoid an error. */
9181 #ifdef __cplusplus
9182 extern "C"
9183 {
9184 #endif
9185 /* We use char because int might match the return type of a gcc2
9186 builtin and then its argument prototype would still apply. */
9187 char dlopen ();
9188 /* The GNU C library defines this for functions which it implements
9189 to always fail with ENOSYS. Some functions are actually named
9190 something starting with __ and the normal name is an alias. */
9191 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9192 choke me
9193 #else
9194 char (*f) () = dlopen;
9195 #endif
9196 #ifdef __cplusplus
9197 }
9198 #endif
9199
9200 int
9201 main ()
9202 {
9203 return f != dlopen;
9204 ;
9205 return 0;
9206 }
9207 _ACEOF
9208 rm -f conftest.$ac_objext conftest$ac_exeext
9209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9210 (eval $ac_link) 2>conftest.er1
9211 ac_status=$?
9212 grep -v '^ *+' conftest.er1 >conftest.err
9213 rm -f conftest.er1
9214 cat conftest.err >&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } &&
9217 { ac_try='test -z "$ac_c_werror_flag"
9218 || test ! -s conftest.err'
9219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220 (eval $ac_try) 2>&5
9221 ac_status=$?
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); }; } &&
9224 { ac_try='test -s conftest$ac_exeext'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9226 (eval $ac_try) 2>&5
9227 ac_status=$?
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; }; then
9230 ac_cv_func_dlopen=yes
9231 else
9232 echo "$as_me: failed program was:" >&5
9233 sed 's/^/| /' conftest.$ac_ext >&5
9234
9235 ac_cv_func_dlopen=no
9236 fi
9237 rm -f conftest.err conftest.$ac_objext \
9238 conftest$ac_exeext conftest.$ac_ext
9239 fi
9240 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9241 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9242 if test $ac_cv_func_dlopen = yes; then
9243 lt_cv_dlopen="dlopen"
9244 else
9245 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9246 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9247 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
9249 else
9250 ac_check_lib_save_LIBS=$LIBS
9251 LIBS="-ldl $LIBS"
9252 cat >conftest.$ac_ext <<_ACEOF
9253 /* confdefs.h. */
9254 _ACEOF
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h. */
9258
9259 /* Override any gcc2 internal prototype to avoid an error. */
9260 #ifdef __cplusplus
9261 extern "C"
9262 #endif
9263 /* We use char because int might match the return type of a gcc2
9264 builtin and then its argument prototype would still apply. */
9265 char dlopen ();
9266 int
9267 main ()
9268 {
9269 dlopen ();
9270 ;
9271 return 0;
9272 }
9273 _ACEOF
9274 rm -f conftest.$ac_objext conftest$ac_exeext
9275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9276 (eval $ac_link) 2>conftest.er1
9277 ac_status=$?
9278 grep -v '^ *+' conftest.er1 >conftest.err
9279 rm -f conftest.er1
9280 cat conftest.err >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } &&
9283 { ac_try='test -z "$ac_c_werror_flag"
9284 || test ! -s conftest.err'
9285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286 (eval $ac_try) 2>&5
9287 ac_status=$?
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; } &&
9290 { ac_try='test -s conftest$ac_exeext'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292 (eval $ac_try) 2>&5
9293 ac_status=$?
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; }; then
9296 ac_cv_lib_dl_dlopen=yes
9297 else
9298 echo "$as_me: failed program was:" >&5
9299 sed 's/^/| /' conftest.$ac_ext >&5
9300
9301 ac_cv_lib_dl_dlopen=no
9302 fi
9303 rm -f conftest.err conftest.$ac_objext \
9304 conftest$ac_exeext conftest.$ac_ext
9305 LIBS=$ac_check_lib_save_LIBS
9306 fi
9307 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9308 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9309 if test $ac_cv_lib_dl_dlopen = yes; then
9310 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9311 else
9312 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9313 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9314 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9315 echo $ECHO_N "(cached) $ECHO_C" >&6
9316 else
9317 ac_check_lib_save_LIBS=$LIBS
9318 LIBS="-lsvld $LIBS"
9319 cat >conftest.$ac_ext <<_ACEOF
9320 /* confdefs.h. */
9321 _ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9325
9326 /* Override any gcc2 internal prototype to avoid an error. */
9327 #ifdef __cplusplus
9328 extern "C"
9329 #endif
9330 /* We use char because int might match the return type of a gcc2
9331 builtin and then its argument prototype would still apply. */
9332 char dlopen ();
9333 int
9334 main ()
9335 {
9336 dlopen ();
9337 ;
9338 return 0;
9339 }
9340 _ACEOF
9341 rm -f conftest.$ac_objext conftest$ac_exeext
9342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9343 (eval $ac_link) 2>conftest.er1
9344 ac_status=$?
9345 grep -v '^ *+' conftest.er1 >conftest.err
9346 rm -f conftest.er1
9347 cat conftest.err >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } &&
9350 { ac_try='test -z "$ac_c_werror_flag"
9351 || test ! -s conftest.err'
9352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353 (eval $ac_try) 2>&5
9354 ac_status=$?
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; } &&
9357 { ac_try='test -s conftest$ac_exeext'
9358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 (eval $ac_try) 2>&5
9360 ac_status=$?
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; }; then
9363 ac_cv_lib_svld_dlopen=yes
9364 else
9365 echo "$as_me: failed program was:" >&5
9366 sed 's/^/| /' conftest.$ac_ext >&5
9367
9368 ac_cv_lib_svld_dlopen=no
9369 fi
9370 rm -f conftest.err conftest.$ac_objext \
9371 conftest$ac_exeext conftest.$ac_ext
9372 LIBS=$ac_check_lib_save_LIBS
9373 fi
9374 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9375 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9376 if test $ac_cv_lib_svld_dlopen = yes; then
9377 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9378 else
9379 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9380 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9381 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9383 else
9384 ac_check_lib_save_LIBS=$LIBS
9385 LIBS="-ldld $LIBS"
9386 cat >conftest.$ac_ext <<_ACEOF
9387 /* confdefs.h. */
9388 _ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h. */
9392
9393 /* Override any gcc2 internal prototype to avoid an error. */
9394 #ifdef __cplusplus
9395 extern "C"
9396 #endif
9397 /* We use char because int might match the return type of a gcc2
9398 builtin and then its argument prototype would still apply. */
9399 char dld_link ();
9400 int
9401 main ()
9402 {
9403 dld_link ();
9404 ;
9405 return 0;
9406 }
9407 _ACEOF
9408 rm -f conftest.$ac_objext conftest$ac_exeext
9409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9410 (eval $ac_link) 2>conftest.er1
9411 ac_status=$?
9412 grep -v '^ *+' conftest.er1 >conftest.err
9413 rm -f conftest.er1
9414 cat conftest.err >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } &&
9417 { ac_try='test -z "$ac_c_werror_flag"
9418 || test ! -s conftest.err'
9419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9420 (eval $ac_try) 2>&5
9421 ac_status=$?
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); }; } &&
9424 { ac_try='test -s conftest$ac_exeext'
9425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9426 (eval $ac_try) 2>&5
9427 ac_status=$?
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); }; }; then
9430 ac_cv_lib_dld_dld_link=yes
9431 else
9432 echo "$as_me: failed program was:" >&5
9433 sed 's/^/| /' conftest.$ac_ext >&5
9434
9435 ac_cv_lib_dld_dld_link=no
9436 fi
9437 rm -f conftest.err conftest.$ac_objext \
9438 conftest$ac_exeext conftest.$ac_ext
9439 LIBS=$ac_check_lib_save_LIBS
9440 fi
9441 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9442 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9443 if test $ac_cv_lib_dld_dld_link = yes; then
9444 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9445 fi
9446
9447
9448 fi
9449
9450
9451 fi
9452
9453
9454 fi
9455
9456
9457 fi
9458
9459
9460 fi
9461
9462 ;;
9463 esac
9464
9465 if test "x$lt_cv_dlopen" != xno; then
9466 enable_dlopen=yes
9467 else
9468 enable_dlopen=no
9469 fi
9470
9471 case $lt_cv_dlopen in
9472 dlopen)
9473 save_CPPFLAGS="$CPPFLAGS"
9474 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9475
9476 save_LDFLAGS="$LDFLAGS"
9477 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9478
9479 save_LIBS="$LIBS"
9480 LIBS="$lt_cv_dlopen_libs $LIBS"
9481
9482 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9483 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9484 if test "${lt_cv_dlopen_self+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487 if test "$cross_compiling" = yes; then :
9488 lt_cv_dlopen_self=cross
9489 else
9490 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9491 lt_status=$lt_dlunknown
9492 cat > conftest.$ac_ext <<EOF
9493 #line 9493 "configure"
9494 #include "confdefs.h"
9495
9496 #if HAVE_DLFCN_H
9497 #include <dlfcn.h>
9498 #endif
9499
9500 #include <stdio.h>
9501
9502 #ifdef RTLD_GLOBAL
9503 # define LT_DLGLOBAL RTLD_GLOBAL
9504 #else
9505 # ifdef DL_GLOBAL
9506 # define LT_DLGLOBAL DL_GLOBAL
9507 # else
9508 # define LT_DLGLOBAL 0
9509 # endif
9510 #endif
9511
9512 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9513 find out it does not work in some platform. */
9514 #ifndef LT_DLLAZY_OR_NOW
9515 # ifdef RTLD_LAZY
9516 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9517 # else
9518 # ifdef DL_LAZY
9519 # define LT_DLLAZY_OR_NOW DL_LAZY
9520 # else
9521 # ifdef RTLD_NOW
9522 # define LT_DLLAZY_OR_NOW RTLD_NOW
9523 # else
9524 # ifdef DL_NOW
9525 # define LT_DLLAZY_OR_NOW DL_NOW
9526 # else
9527 # define LT_DLLAZY_OR_NOW 0
9528 # endif
9529 # endif
9530 # endif
9531 # endif
9532 #endif
9533
9534 #ifdef __cplusplus
9535 extern "C" void exit (int);
9536 #endif
9537
9538 void fnord() { int i=42;}
9539 int main ()
9540 {
9541 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9542 int status = $lt_dlunknown;
9543
9544 if (self)
9545 {
9546 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9547 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9548 /* dlclose (self); */
9549 }
9550 else
9551 puts (dlerror ());
9552
9553 exit (status);
9554 }
9555 EOF
9556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9557 (eval $ac_link) 2>&5
9558 ac_status=$?
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9561 (./conftest; exit; ) >&5 2>/dev/null
9562 lt_status=$?
9563 case x$lt_status in
9564 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9565 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9566 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9567 esac
9568 else :
9569 # compilation failed
9570 lt_cv_dlopen_self=no
9571 fi
9572 fi
9573 rm -fr conftest*
9574
9575
9576 fi
9577 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9578 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9579
9580 if test "x$lt_cv_dlopen_self" = xyes; then
9581 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9582 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9583 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9584 if test "${lt_cv_dlopen_self_static+set}" = set; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9586 else
9587 if test "$cross_compiling" = yes; then :
9588 lt_cv_dlopen_self_static=cross
9589 else
9590 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9591 lt_status=$lt_dlunknown
9592 cat > conftest.$ac_ext <<EOF
9593 #line 9593 "configure"
9594 #include "confdefs.h"
9595
9596 #if HAVE_DLFCN_H
9597 #include <dlfcn.h>
9598 #endif
9599
9600 #include <stdio.h>
9601
9602 #ifdef RTLD_GLOBAL
9603 # define LT_DLGLOBAL RTLD_GLOBAL
9604 #else
9605 # ifdef DL_GLOBAL
9606 # define LT_DLGLOBAL DL_GLOBAL
9607 # else
9608 # define LT_DLGLOBAL 0
9609 # endif
9610 #endif
9611
9612 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9613 find out it does not work in some platform. */
9614 #ifndef LT_DLLAZY_OR_NOW
9615 # ifdef RTLD_LAZY
9616 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9617 # else
9618 # ifdef DL_LAZY
9619 # define LT_DLLAZY_OR_NOW DL_LAZY
9620 # else
9621 # ifdef RTLD_NOW
9622 # define LT_DLLAZY_OR_NOW RTLD_NOW
9623 # else
9624 # ifdef DL_NOW
9625 # define LT_DLLAZY_OR_NOW DL_NOW
9626 # else
9627 # define LT_DLLAZY_OR_NOW 0
9628 # endif
9629 # endif
9630 # endif
9631 # endif
9632 #endif
9633
9634 #ifdef __cplusplus
9635 extern "C" void exit (int);
9636 #endif
9637
9638 void fnord() { int i=42;}
9639 int main ()
9640 {
9641 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9642 int status = $lt_dlunknown;
9643
9644 if (self)
9645 {
9646 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9647 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9648 /* dlclose (self); */
9649 }
9650 else
9651 puts (dlerror ());
9652
9653 exit (status);
9654 }
9655 EOF
9656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9657 (eval $ac_link) 2>&5
9658 ac_status=$?
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9661 (./conftest; exit; ) >&5 2>/dev/null
9662 lt_status=$?
9663 case x$lt_status in
9664 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9665 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9666 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9667 esac
9668 else :
9669 # compilation failed
9670 lt_cv_dlopen_self_static=no
9671 fi
9672 fi
9673 rm -fr conftest*
9674
9675
9676 fi
9677 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9678 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9679 fi
9680
9681 CPPFLAGS="$save_CPPFLAGS"
9682 LDFLAGS="$save_LDFLAGS"
9683 LIBS="$save_LIBS"
9684 ;;
9685 esac
9686
9687 case $lt_cv_dlopen_self in
9688 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9689 *) enable_dlopen_self=unknown ;;
9690 esac
9691
9692 case $lt_cv_dlopen_self_static in
9693 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9694 *) enable_dlopen_self_static=unknown ;;
9695 esac
9696 fi
9697
9698
9699 # Report which library types will actually be built
9700 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9701 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9702 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9703 echo "${ECHO_T}$can_build_shared" >&6
9704
9705 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9706 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9707 test "$can_build_shared" = "no" && enable_shared=no
9708
9709 # On AIX, shared libraries and static libraries use the same namespace, and
9710 # are all built from PIC.
9711 case $host_os in
9712 aix3*)
9713 test "$enable_shared" = yes && enable_static=no
9714 if test -n "$RANLIB"; then
9715 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9716 postinstall_cmds='$RANLIB $lib'
9717 fi
9718 ;;
9719
9720 aix4* | aix5*)
9721 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9722 test "$enable_shared" = yes && enable_static=no
9723 fi
9724 ;;
9725 esac
9726 echo "$as_me:$LINENO: result: $enable_shared" >&5
9727 echo "${ECHO_T}$enable_shared" >&6
9728
9729 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9730 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9731 # Make sure either enable_shared or enable_static is yes.
9732 test "$enable_shared" = yes || enable_static=yes
9733 echo "$as_me:$LINENO: result: $enable_static" >&5
9734 echo "${ECHO_T}$enable_static" >&6
9735
9736 # The else clause should only fire when bootstrapping the
9737 # libtool distribution, otherwise you forgot to ship ltmain.sh
9738 # with your package, and you will get complaints that there are
9739 # no rules to generate ltmain.sh.
9740 if test -f "$ltmain"; then
9741 # See if we are running on zsh, and set the options which allow our commands through
9742 # without removal of \ escapes.
9743 if test -n "${ZSH_VERSION+set}" ; then
9744 setopt NO_GLOB_SUBST
9745 fi
9746 # Now quote all the things that may contain metacharacters while being
9747 # careful not to overquote the AC_SUBSTed values. We take copies of the
9748 # variables and quote the copies for generation of the libtool script.
9749 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9750 SED SHELL STRIP \
9751 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9752 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9753 deplibs_check_method reload_flag reload_cmds need_locks \
9754 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9755 lt_cv_sys_global_symbol_to_c_name_address \
9756 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9757 old_postinstall_cmds old_postuninstall_cmds \
9758 compiler \
9759 CC \
9760 LD \
9761 lt_prog_compiler_wl \
9762 lt_prog_compiler_pic \
9763 lt_prog_compiler_static \
9764 lt_prog_compiler_no_builtin_flag \
9765 export_dynamic_flag_spec \
9766 thread_safe_flag_spec \
9767 whole_archive_flag_spec \
9768 enable_shared_with_static_runtimes \
9769 old_archive_cmds \
9770 old_archive_from_new_cmds \
9771 predep_objects \
9772 postdep_objects \
9773 predeps \
9774 postdeps \
9775 compiler_lib_search_path \
9776 archive_cmds \
9777 archive_expsym_cmds \
9778 postinstall_cmds \
9779 postuninstall_cmds \
9780 old_archive_from_expsyms_cmds \
9781 allow_undefined_flag \
9782 no_undefined_flag \
9783 export_symbols_cmds \
9784 hardcode_libdir_flag_spec \
9785 hardcode_libdir_flag_spec_ld \
9786 hardcode_libdir_separator \
9787 hardcode_automatic \
9788 module_cmds \
9789 module_expsym_cmds \
9790 lt_cv_prog_compiler_c_o \
9791 exclude_expsyms \
9792 include_expsyms; do
9793
9794 case $var in
9795 old_archive_cmds | \
9796 old_archive_from_new_cmds | \
9797 archive_cmds | \
9798 archive_expsym_cmds | \
9799 module_cmds | \
9800 module_expsym_cmds | \
9801 old_archive_from_expsyms_cmds | \
9802 export_symbols_cmds | \
9803 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9804 postinstall_cmds | postuninstall_cmds | \
9805 old_postinstall_cmds | old_postuninstall_cmds | \
9806 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9807 # Double-quote double-evaled strings.
9808 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9809 ;;
9810 *)
9811 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9812 ;;
9813 esac
9814 done
9815
9816 case $lt_echo in
9817 *'\$0 --fallback-echo"')
9818 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9819 ;;
9820 esac
9821
9822 cfgfile="${ofile}T"
9823 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9824 $rm -f "$cfgfile"
9825 { echo "$as_me:$LINENO: creating $ofile" >&5
9826 echo "$as_me: creating $ofile" >&6;}
9827
9828 cat <<__EOF__ >> "$cfgfile"
9829 #! $SHELL
9830
9831 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9832 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9833 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9834 #
9835 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9836 # Free Software Foundation, Inc.
9837 #
9838 # This file is part of GNU Libtool:
9839 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9840 #
9841 # This program is free software; you can redistribute it and/or modify
9842 # it under the terms of the GNU General Public License as published by
9843 # the Free Software Foundation; either version 2 of the License, or
9844 # (at your option) any later version.
9845 #
9846 # This program is distributed in the hope that it will be useful, but
9847 # WITHOUT ANY WARRANTY; without even the implied warranty of
9848 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9849 # General Public License for more details.
9850 #
9851 # You should have received a copy of the GNU General Public License
9852 # along with this program; if not, write to the Free Software
9853 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9854 #
9855 # As a special exception to the GNU General Public License, if you
9856 # distribute this file as part of a program that contains a
9857 # configuration script generated by Autoconf, you may include it under
9858 # the same distribution terms that you use for the rest of that program.
9859
9860 # A sed program that does not truncate output.
9861 SED=$lt_SED
9862
9863 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9864 Xsed="$SED -e 1s/^X//"
9865
9866 # The HP-UX ksh and POSIX shell print the target directory to stdout
9867 # if CDPATH is set.
9868 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9869
9870 # The names of the tagged configurations supported by this script.
9871 available_tags=
9872
9873 # ### BEGIN LIBTOOL CONFIG
9874
9875 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9876
9877 # Shell to use when invoking shell scripts.
9878 SHELL=$lt_SHELL
9879
9880 # Whether or not to build shared libraries.
9881 build_libtool_libs=$enable_shared
9882
9883 # Whether or not to build static libraries.
9884 build_old_libs=$enable_static
9885
9886 # Whether or not to add -lc for building shared libraries.
9887 build_libtool_need_lc=$archive_cmds_need_lc
9888
9889 # Whether or not to disallow shared libs when runtime libs are static
9890 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9891
9892 # Whether or not to optimize for fast installation.
9893 fast_install=$enable_fast_install
9894
9895 # The host system.
9896 host_alias=$host_alias
9897 host=$host
9898 host_os=$host_os
9899
9900 # The build system.
9901 build_alias=$build_alias
9902 build=$build
9903 build_os=$build_os
9904
9905 # An echo program that does not interpret backslashes.
9906 echo=$lt_echo
9907
9908 # The archiver.
9909 AR=$lt_AR
9910 AR_FLAGS=$lt_AR_FLAGS
9911
9912 # A C compiler.
9913 LTCC=$lt_LTCC
9914
9915 # LTCC compiler flags.
9916 LTCFLAGS=$lt_LTCFLAGS
9917
9918 # A language-specific compiler.
9919 CC=$lt_compiler
9920
9921 # Is the compiler the GNU C compiler?
9922 with_gcc=$GCC
9923
9924 # An ERE matcher.
9925 EGREP=$lt_EGREP
9926
9927 # The linker used to build libraries.
9928 LD=$lt_LD
9929
9930 # Whether we need hard or soft links.
9931 LN_S=$lt_LN_S
9932
9933 # A BSD-compatible nm program.
9934 NM=$lt_NM
9935
9936 # A symbol stripping program
9937 STRIP=$lt_STRIP
9938
9939 # Used to examine libraries when file_magic_cmd begins "file"
9940 MAGIC_CMD=$MAGIC_CMD
9941
9942 # Used on cygwin: DLL creation program.
9943 DLLTOOL="$DLLTOOL"
9944
9945 # Used on cygwin: object dumper.
9946 OBJDUMP="$OBJDUMP"
9947
9948 # Used on cygwin: assembler.
9949 AS="$AS"
9950
9951 # The name of the directory that contains temporary libtool files.
9952 objdir=$objdir
9953
9954 # How to create reloadable object files.
9955 reload_flag=$lt_reload_flag
9956 reload_cmds=$lt_reload_cmds
9957
9958 # How to pass a linker flag through the compiler.
9959 wl=$lt_lt_prog_compiler_wl
9960
9961 # Object file suffix (normally "o").
9962 objext="$ac_objext"
9963
9964 # Old archive suffix (normally "a").
9965 libext="$libext"
9966
9967 # Shared library suffix (normally ".so").
9968 shrext_cmds='$shrext_cmds'
9969
9970 # Executable file suffix (normally "").
9971 exeext="$exeext"
9972
9973 # Additional compiler flags for building library objects.
9974 pic_flag=$lt_lt_prog_compiler_pic
9975 pic_mode=$pic_mode
9976
9977 # What is the maximum length of a command?
9978 max_cmd_len=$lt_cv_sys_max_cmd_len
9979
9980 # Does compiler simultaneously support -c and -o options?
9981 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9982
9983 # Must we lock files when doing compilation?
9984 need_locks=$lt_need_locks
9985
9986 # Do we need the lib prefix for modules?
9987 need_lib_prefix=$need_lib_prefix
9988
9989 # Do we need a version for libraries?
9990 need_version=$need_version
9991
9992 # Whether dlopen is supported.
9993 dlopen_support=$enable_dlopen
9994
9995 # Whether dlopen of programs is supported.
9996 dlopen_self=$enable_dlopen_self
9997
9998 # Whether dlopen of statically linked programs is supported.
9999 dlopen_self_static=$enable_dlopen_self_static
10000
10001 # Compiler flag to prevent dynamic linking.
10002 link_static_flag=$lt_lt_prog_compiler_static
10003
10004 # Compiler flag to turn off builtin functions.
10005 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10006
10007 # Compiler flag to allow reflexive dlopens.
10008 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10009
10010 # Compiler flag to generate shared objects directly from archives.
10011 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10012
10013 # Compiler flag to generate thread-safe objects.
10014 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10015
10016 # Library versioning type.
10017 version_type=$version_type
10018
10019 # Format of library name prefix.
10020 libname_spec=$lt_libname_spec
10021
10022 # List of archive names. First name is the real one, the rest are links.
10023 # The last name is the one that the linker finds with -lNAME.
10024 library_names_spec=$lt_library_names_spec
10025
10026 # The coded name of the library, if different from the real name.
10027 soname_spec=$lt_soname_spec
10028
10029 # Commands used to build and install an old-style archive.
10030 RANLIB=$lt_RANLIB
10031 old_archive_cmds=$lt_old_archive_cmds
10032 old_postinstall_cmds=$lt_old_postinstall_cmds
10033 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10034
10035 # Create an old-style archive from a shared archive.
10036 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10037
10038 # Create a temporary old-style archive to link instead of a shared archive.
10039 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10040
10041 # Commands used to build and install a shared archive.
10042 archive_cmds=$lt_archive_cmds
10043 archive_expsym_cmds=$lt_archive_expsym_cmds
10044 postinstall_cmds=$lt_postinstall_cmds
10045 postuninstall_cmds=$lt_postuninstall_cmds
10046
10047 # Commands used to build a loadable module (assumed same as above if empty)
10048 module_cmds=$lt_module_cmds
10049 module_expsym_cmds=$lt_module_expsym_cmds
10050
10051 # Commands to strip libraries.
10052 old_striplib=$lt_old_striplib
10053 striplib=$lt_striplib
10054
10055 # Dependencies to place before the objects being linked to create a
10056 # shared library.
10057 predep_objects=$lt_predep_objects
10058
10059 # Dependencies to place after the objects being linked to create a
10060 # shared library.
10061 postdep_objects=$lt_postdep_objects
10062
10063 # Dependencies to place before the objects being linked to create a
10064 # shared library.
10065 predeps=$lt_predeps
10066
10067 # Dependencies to place after the objects being linked to create a
10068 # shared library.
10069 postdeps=$lt_postdeps
10070
10071 # The library search path used internally by the compiler when linking
10072 # a shared library.
10073 compiler_lib_search_path=$lt_compiler_lib_search_path
10074
10075 # Method to check whether dependent libraries are shared objects.
10076 deplibs_check_method=$lt_deplibs_check_method
10077
10078 # Command to use when deplibs_check_method == file_magic.
10079 file_magic_cmd=$lt_file_magic_cmd
10080
10081 # Flag that allows shared libraries with undefined symbols to be built.
10082 allow_undefined_flag=$lt_allow_undefined_flag
10083
10084 # Flag that forces no undefined symbols.
10085 no_undefined_flag=$lt_no_undefined_flag
10086
10087 # Commands used to finish a libtool library installation in a directory.
10088 finish_cmds=$lt_finish_cmds
10089
10090 # Same as above, but a single script fragment to be evaled but not shown.
10091 finish_eval=$lt_finish_eval
10092
10093 # Take the output of nm and produce a listing of raw symbols and C names.
10094 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10095
10096 # Transform the output of nm in a proper C declaration
10097 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10098
10099 # Transform the output of nm in a C name address pair
10100 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10101
10102 # This is the shared library runtime path variable.
10103 runpath_var=$runpath_var
10104
10105 # This is the shared library path variable.
10106 shlibpath_var=$shlibpath_var
10107
10108 # Is shlibpath searched before the hard-coded library search path?
10109 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10110
10111 # How to hardcode a shared library path into an executable.
10112 hardcode_action=$hardcode_action
10113
10114 # Whether we should hardcode library paths into libraries.
10115 hardcode_into_libs=$hardcode_into_libs
10116
10117 # Flag to hardcode \$libdir into a binary during linking.
10118 # This must work even if \$libdir does not exist.
10119 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10120
10121 # If ld is used when linking, flag to hardcode \$libdir into
10122 # a binary during linking. This must work even if \$libdir does
10123 # not exist.
10124 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10125
10126 # Whether we need a single -rpath flag with a separated argument.
10127 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10128
10129 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10130 # resulting binary.
10131 hardcode_direct=$hardcode_direct
10132
10133 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10134 # resulting binary.
10135 hardcode_minus_L=$hardcode_minus_L
10136
10137 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10138 # the resulting binary.
10139 hardcode_shlibpath_var=$hardcode_shlibpath_var
10140
10141 # Set to yes if building a shared library automatically hardcodes DIR into the library
10142 # and all subsequent libraries and executables linked against it.
10143 hardcode_automatic=$hardcode_automatic
10144
10145 # Variables whose values should be saved in libtool wrapper scripts and
10146 # restored at relink time.
10147 variables_saved_for_relink="$variables_saved_for_relink"
10148
10149 # Whether libtool must link a program against all its dependency libraries.
10150 link_all_deplibs=$link_all_deplibs
10151
10152 # Compile-time system search path for libraries
10153 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10154
10155 # Run-time system search path for libraries
10156 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10157
10158 # Fix the shell variable \$srcfile for the compiler.
10159 fix_srcfile_path="$fix_srcfile_path"
10160
10161 # Set to yes if exported symbols are required.
10162 always_export_symbols=$always_export_symbols
10163
10164 # The commands to list exported symbols.
10165 export_symbols_cmds=$lt_export_symbols_cmds
10166
10167 # The commands to extract the exported symbol list from a shared archive.
10168 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10169
10170 # Symbols that should not be listed in the preloaded symbols.
10171 exclude_expsyms=$lt_exclude_expsyms
10172
10173 # Symbols that must always be exported.
10174 include_expsyms=$lt_include_expsyms
10175
10176 # ### END LIBTOOL CONFIG
10177
10178 __EOF__
10179
10180
10181 case $host_os in
10182 aix3*)
10183 cat <<\EOF >> "$cfgfile"
10184
10185 # AIX sometimes has problems with the GCC collect2 program. For some
10186 # reason, if we set the COLLECT_NAMES environment variable, the problems
10187 # vanish in a puff of smoke.
10188 if test "X${COLLECT_NAMES+set}" != Xset; then
10189 COLLECT_NAMES=
10190 export COLLECT_NAMES
10191 fi
10192 EOF
10193 ;;
10194 esac
10195
10196 # We use sed instead of cat because bash on DJGPP gets confused if
10197 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10198 # text mode, it properly converts lines to CR/LF. This bash problem
10199 # is reportedly fixed, but why not run on old versions too?
10200 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10201
10202 mv -f "$cfgfile" "$ofile" || \
10203 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10204 chmod +x "$ofile"
10205
10206 else
10207 # If there is no Makefile yet, we rely on a make rule to execute
10208 # `config.status --recheck' to rerun these tests and create the
10209 # libtool script then.
10210 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10211 if test -f "$ltmain_in"; then
10212 test -f Makefile && make "$ltmain"
10213 fi
10214 fi
10215
10216
10217 ac_ext=c
10218 ac_cpp='$CPP $CPPFLAGS'
10219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10222
10223 CC="$lt_save_CC"
10224
10225
10226 # Check whether --with-tags or --without-tags was given.
10227 if test "${with_tags+set}" = set; then
10228 withval="$with_tags"
10229 tagnames="$withval"
10230 fi;
10231
10232 if test -f "$ltmain" && test -n "$tagnames"; then
10233 if test ! -f "${ofile}"; then
10234 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10235 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10236 fi
10237
10238 if test -z "$LTCC"; then
10239 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10240 if test -z "$LTCC"; then
10241 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10242 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10243 else
10244 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10245 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10246 fi
10247 fi
10248 if test -z "$LTCFLAGS"; then
10249 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10250 fi
10251
10252 # Extract list of available tagged configurations in $ofile.
10253 # Note that this assumes the entire list is on one line.
10254 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10255
10256 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10257 for tagname in $tagnames; do
10258 IFS="$lt_save_ifs"
10259 # Check whether tagname contains only valid characters
10260 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10261 "") ;;
10262 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10263 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10264 { (exit 1); exit 1; }; }
10265 ;;
10266 esac
10267
10268 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10269 then
10270 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10271 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10272 { (exit 1); exit 1; }; }
10273 fi
10274
10275 # Update the list of available tags.
10276 if test -n "$tagname"; then
10277 echo appending configuration tag \"$tagname\" to $ofile
10278
10279 case $tagname in
10280 CXX)
10281 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10282 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10283 (test "X$CXX" != "Xg++"))) ; then
10284 ac_ext=cc
10285 ac_cpp='$CXXCPP $CPPFLAGS'
10286 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10287 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10288 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10289
10290
10291
10292
10293 archive_cmds_need_lc_CXX=no
10294 allow_undefined_flag_CXX=
10295 always_export_symbols_CXX=no
10296 archive_expsym_cmds_CXX=
10297 export_dynamic_flag_spec_CXX=
10298 hardcode_direct_CXX=no
10299 hardcode_libdir_flag_spec_CXX=
10300 hardcode_libdir_flag_spec_ld_CXX=
10301 hardcode_libdir_separator_CXX=
10302 hardcode_minus_L_CXX=no
10303 hardcode_shlibpath_var_CXX=unsupported
10304 hardcode_automatic_CXX=no
10305 module_cmds_CXX=
10306 module_expsym_cmds_CXX=
10307 link_all_deplibs_CXX=unknown
10308 old_archive_cmds_CXX=$old_archive_cmds
10309 no_undefined_flag_CXX=
10310 whole_archive_flag_spec_CXX=
10311 enable_shared_with_static_runtimes_CXX=no
10312
10313 # Dependencies to place before and after the object being linked:
10314 predep_objects_CXX=
10315 postdep_objects_CXX=
10316 predeps_CXX=
10317 postdeps_CXX=
10318 compiler_lib_search_path_CXX=
10319
10320 # Source file extension for C++ test sources.
10321 ac_ext=cpp
10322
10323 # Object file extension for compiled C++ test sources.
10324 objext=o
10325 objext_CXX=$objext
10326
10327 # Code to be used in simple compile tests
10328 lt_simple_compile_test_code="int some_variable = 0;\n"
10329
10330 # Code to be used in simple link tests
10331 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10332
10333 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10334
10335 # If no C compiler was specified, use CC.
10336 LTCC=${LTCC-"$CC"}
10337
10338 # If no C compiler flags were specified, use CFLAGS.
10339 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10340
10341 # Allow CC to be a program name with arguments.
10342 compiler=$CC
10343
10344
10345 # save warnings/boilerplate of simple test code
10346 ac_outfile=conftest.$ac_objext
10347 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10348 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10349 _lt_compiler_boilerplate=`cat conftest.err`
10350 $rm conftest*
10351
10352 ac_outfile=conftest.$ac_objext
10353 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10354 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10355 _lt_linker_boilerplate=`cat conftest.err`
10356 $rm conftest*
10357
10358
10359 # Allow CC to be a program name with arguments.
10360 lt_save_CC=$CC
10361 lt_save_LD=$LD
10362 lt_save_GCC=$GCC
10363 GCC=$GXX
10364 lt_save_with_gnu_ld=$with_gnu_ld
10365 lt_save_path_LD=$lt_cv_path_LD
10366 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10367 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10368 else
10369 $as_unset lt_cv_prog_gnu_ld
10370 fi
10371 if test -n "${lt_cv_path_LDCXX+set}"; then
10372 lt_cv_path_LD=$lt_cv_path_LDCXX
10373 else
10374 $as_unset lt_cv_path_LD
10375 fi
10376 test -z "${LDCXX+set}" || LD=$LDCXX
10377 CC=${CXX-"c++"}
10378 compiler=$CC
10379 compiler_CXX=$CC
10380 for cc_temp in $compiler""; do
10381 case $cc_temp in
10382 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10383 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10384 \-*) ;;
10385 *) break;;
10386 esac
10387 done
10388 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10389
10390
10391 # We don't want -fno-exception wen compiling C++ code, so set the
10392 # no_builtin_flag separately
10393 if test "$GXX" = yes; then
10394 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10395 else
10396 lt_prog_compiler_no_builtin_flag_CXX=
10397 fi
10398
10399 if test "$GXX" = yes; then
10400 # Set up default GNU C++ configuration
10401
10402
10403 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10404 if test "${with_gnu_ld+set}" = set; then
10405 withval="$with_gnu_ld"
10406 test "$withval" = no || with_gnu_ld=yes
10407 else
10408 with_gnu_ld=no
10409 fi;
10410 ac_prog=ld
10411 if test "$GCC" = yes; then
10412 # Check if gcc -print-prog-name=ld gives a path.
10413 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10414 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10415 case $host in
10416 *-*-mingw*)
10417 # gcc leaves a trailing carriage return which upsets mingw
10418 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10419 *)
10420 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10421 esac
10422 case $ac_prog in
10423 # Accept absolute paths.
10424 [\\/]* | ?:[\\/]*)
10425 re_direlt='/[^/][^/]*/\.\./'
10426 # Canonicalize the pathname of ld
10427 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10428 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10429 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10430 done
10431 test -z "$LD" && LD="$ac_prog"
10432 ;;
10433 "")
10434 # If it fails, then pretend we aren't using GCC.
10435 ac_prog=ld
10436 ;;
10437 *)
10438 # If it is relative, then search for the first ld in PATH.
10439 with_gnu_ld=unknown
10440 ;;
10441 esac
10442 elif test "$with_gnu_ld" = yes; then
10443 echo "$as_me:$LINENO: checking for GNU ld" >&5
10444 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10445 else
10446 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10447 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10448 fi
10449 if test "${lt_cv_path_LD+set}" = set; then
10450 echo $ECHO_N "(cached) $ECHO_C" >&6
10451 else
10452 if test -z "$LD"; then
10453 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10454 for ac_dir in $PATH; do
10455 IFS="$lt_save_ifs"
10456 test -z "$ac_dir" && ac_dir=.
10457 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10458 lt_cv_path_LD="$ac_dir/$ac_prog"
10459 # Check to see if the program is GNU ld. I'd rather use --version,
10460 # but apparently some variants of GNU ld only accept -v.
10461 # Break only if it was the GNU/non-GNU ld that we prefer.
10462 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10463 *GNU* | *'with BFD'*)
10464 test "$with_gnu_ld" != no && break
10465 ;;
10466 *)
10467 test "$with_gnu_ld" != yes && break
10468 ;;
10469 esac
10470 fi
10471 done
10472 IFS="$lt_save_ifs"
10473 else
10474 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10475 fi
10476 fi
10477
10478 LD="$lt_cv_path_LD"
10479 if test -n "$LD"; then
10480 echo "$as_me:$LINENO: result: $LD" >&5
10481 echo "${ECHO_T}$LD" >&6
10482 else
10483 echo "$as_me:$LINENO: result: no" >&5
10484 echo "${ECHO_T}no" >&6
10485 fi
10486 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10487 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10488 { (exit 1); exit 1; }; }
10489 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10490 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10491 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
10493 else
10494 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10495 case `$LD -v 2>&1 </dev/null` in
10496 *GNU* | *'with BFD'*)
10497 lt_cv_prog_gnu_ld=yes
10498 ;;
10499 *)
10500 lt_cv_prog_gnu_ld=no
10501 ;;
10502 esac
10503 fi
10504 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10505 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10506 with_gnu_ld=$lt_cv_prog_gnu_ld
10507
10508
10509
10510 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10511 # archiving commands below assume that GNU ld is being used.
10512 if test "$with_gnu_ld" = yes; then
10513 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10514 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'
10515
10516 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10517 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10518
10519 # If archive_cmds runs LD, not CC, wlarc should be empty
10520 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10521 # investigate it a little bit more. (MM)
10522 wlarc='${wl}'
10523
10524 # ancient GNU ld didn't support --whole-archive et. al.
10525 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10526 grep 'no-whole-archive' > /dev/null; then
10527 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10528 else
10529 whole_archive_flag_spec_CXX=
10530 fi
10531 else
10532 with_gnu_ld=no
10533 wlarc=
10534
10535 # A generic and very simple default shared library creation
10536 # command for GNU C++ for the case where it uses the native
10537 # linker, instead of GNU ld. If possible, this setting should
10538 # overridden to take advantage of the native linker features on
10539 # the platform it is being used on.
10540 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10541 fi
10542
10543 # Commands to make compiler produce verbose output that lists
10544 # what "hidden" libraries, object files and flags are used when
10545 # linking a shared library.
10546 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10547
10548 else
10549 GXX=no
10550 with_gnu_ld=no
10551 wlarc=
10552 fi
10553
10554 # PORTME: fill in a description of your system's C++ link characteristics
10555 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10556 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10557 ld_shlibs_CXX=yes
10558 case $host_os in
10559 aix3*)
10560 # FIXME: insert proper C++ library support
10561 ld_shlibs_CXX=no
10562 ;;
10563 aix4* | aix5*)
10564 if test "$host_cpu" = ia64; then
10565 # On IA64, the linker does run time linking by default, so we don't
10566 # have to do anything special.
10567 aix_use_runtimelinking=no
10568 exp_sym_flag='-Bexport'
10569 no_entry_flag=""
10570 else
10571 aix_use_runtimelinking=no
10572
10573 # Test if we are trying to use run time linking or normal
10574 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10575 # need to do runtime linking.
10576 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10577 for ld_flag in $LDFLAGS; do
10578 case $ld_flag in
10579 *-brtl*)
10580 aix_use_runtimelinking=yes
10581 break
10582 ;;
10583 esac
10584 done
10585 ;;
10586 esac
10587
10588 exp_sym_flag='-bexport'
10589 no_entry_flag='-bnoentry'
10590 fi
10591
10592 # When large executables or shared objects are built, AIX ld can
10593 # have problems creating the table of contents. If linking a library
10594 # or program results in "error TOC overflow" add -mminimal-toc to
10595 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10596 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10597
10598 archive_cmds_CXX=''
10599 hardcode_direct_CXX=yes
10600 hardcode_libdir_separator_CXX=':'
10601 link_all_deplibs_CXX=yes
10602
10603 if test "$GXX" = yes; then
10604 case $host_os in aix4.[012]|aix4.[012].*)
10605 # We only want to do this on AIX 4.2 and lower, the check
10606 # below for broken collect2 doesn't work under 4.3+
10607 collect2name=`${CC} -print-prog-name=collect2`
10608 if test -f "$collect2name" && \
10609 strings "$collect2name" | grep resolve_lib_name >/dev/null
10610 then
10611 # We have reworked collect2
10612 hardcode_direct_CXX=yes
10613 else
10614 # We have old collect2
10615 hardcode_direct_CXX=unsupported
10616 # It fails to find uninstalled libraries when the uninstalled
10617 # path is not listed in the libpath. Setting hardcode_minus_L
10618 # to unsupported forces relinking
10619 hardcode_minus_L_CXX=yes
10620 hardcode_libdir_flag_spec_CXX='-L$libdir'
10621 hardcode_libdir_separator_CXX=
10622 fi
10623 ;;
10624 esac
10625 shared_flag='-shared'
10626 if test "$aix_use_runtimelinking" = yes; then
10627 shared_flag="$shared_flag "'${wl}-G'
10628 fi
10629 else
10630 # not using gcc
10631 if test "$host_cpu" = ia64; then
10632 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10633 # chokes on -Wl,-G. The following line is correct:
10634 shared_flag='-G'
10635 else
10636 if test "$aix_use_runtimelinking" = yes; then
10637 shared_flag='${wl}-G'
10638 else
10639 shared_flag='${wl}-bM:SRE'
10640 fi
10641 fi
10642 fi
10643
10644 # It seems that -bexpall does not export symbols beginning with
10645 # underscore (_), so it is better to generate a list of symbols to export.
10646 always_export_symbols_CXX=yes
10647 if test "$aix_use_runtimelinking" = yes; then
10648 # Warning - without using the other runtime loading flags (-brtl),
10649 # -berok will link without error, but may produce a broken library.
10650 allow_undefined_flag_CXX='-berok'
10651 # Determine the default libpath from the value encoded in an empty executable.
10652 cat >conftest.$ac_ext <<_ACEOF
10653 /* confdefs.h. */
10654 _ACEOF
10655 cat confdefs.h >>conftest.$ac_ext
10656 cat >>conftest.$ac_ext <<_ACEOF
10657 /* end confdefs.h. */
10658
10659 int
10660 main ()
10661 {
10662
10663 ;
10664 return 0;
10665 }
10666 _ACEOF
10667 rm -f conftest.$ac_objext conftest$ac_exeext
10668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10669 (eval $ac_link) 2>conftest.er1
10670 ac_status=$?
10671 grep -v '^ *+' conftest.er1 >conftest.err
10672 rm -f conftest.er1
10673 cat conftest.err >&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } &&
10676 { ac_try='test -z "$ac_cxx_werror_flag"
10677 || test ! -s conftest.err'
10678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679 (eval $ac_try) 2>&5
10680 ac_status=$?
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; } &&
10683 { ac_try='test -s conftest$ac_exeext'
10684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685 (eval $ac_try) 2>&5
10686 ac_status=$?
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; }; then
10689
10690 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10691 }'`
10692 # Check for a 64-bit object if we didn't find anything.
10693 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; }
10694 }'`; fi
10695 else
10696 echo "$as_me: failed program was:" >&5
10697 sed 's/^/| /' conftest.$ac_ext >&5
10698
10699 fi
10700 rm -f conftest.err conftest.$ac_objext \
10701 conftest$ac_exeext conftest.$ac_ext
10702 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10703
10704 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10705
10706 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"
10707 else
10708 if test "$host_cpu" = ia64; then
10709 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10710 allow_undefined_flag_CXX="-z nodefs"
10711 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"
10712 else
10713 # Determine the default libpath from the value encoded in an empty executable.
10714 cat >conftest.$ac_ext <<_ACEOF
10715 /* confdefs.h. */
10716 _ACEOF
10717 cat confdefs.h >>conftest.$ac_ext
10718 cat >>conftest.$ac_ext <<_ACEOF
10719 /* end confdefs.h. */
10720
10721 int
10722 main ()
10723 {
10724
10725 ;
10726 return 0;
10727 }
10728 _ACEOF
10729 rm -f conftest.$ac_objext conftest$ac_exeext
10730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10731 (eval $ac_link) 2>conftest.er1
10732 ac_status=$?
10733 grep -v '^ *+' conftest.er1 >conftest.err
10734 rm -f conftest.er1
10735 cat conftest.err >&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); } &&
10738 { ac_try='test -z "$ac_cxx_werror_flag"
10739 || test ! -s conftest.err'
10740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10741 (eval $ac_try) 2>&5
10742 ac_status=$?
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); }; } &&
10745 { ac_try='test -s conftest$ac_exeext'
10746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10747 (eval $ac_try) 2>&5
10748 ac_status=$?
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; }; then
10751
10752 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10753 }'`
10754 # Check for a 64-bit object if we didn't find anything.
10755 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; }
10756 }'`; fi
10757 else
10758 echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.$ac_ext >&5
10760
10761 fi
10762 rm -f conftest.err conftest.$ac_objext \
10763 conftest$ac_exeext conftest.$ac_ext
10764 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10765
10766 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10767 # Warning - without using the other run time loading flags,
10768 # -berok will link without error, but may produce a broken library.
10769 no_undefined_flag_CXX=' ${wl}-bernotok'
10770 allow_undefined_flag_CXX=' ${wl}-berok'
10771 # Exported symbols can be pulled into shared objects from archives
10772 whole_archive_flag_spec_CXX='$convenience'
10773 archive_cmds_need_lc_CXX=yes
10774 # This is similar to how AIX traditionally builds its shared libraries.
10775 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'
10776 fi
10777 fi
10778 ;;
10779
10780 beos*)
10781 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10782 allow_undefined_flag_CXX=unsupported
10783 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10784 # support --undefined. This deserves some investigation. FIXME
10785 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10786 else
10787 ld_shlibs_CXX=no
10788 fi
10789 ;;
10790
10791 chorus*)
10792 case $cc_basename in
10793 *)
10794 # FIXME: insert proper C++ library support
10795 ld_shlibs_CXX=no
10796 ;;
10797 esac
10798 ;;
10799
10800 cygwin* | mingw* | pw32*)
10801 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10802 # as there is no search path for DLLs.
10803 hardcode_libdir_flag_spec_CXX='-L$libdir'
10804 allow_undefined_flag_CXX=unsupported
10805 always_export_symbols_CXX=no
10806 enable_shared_with_static_runtimes_CXX=yes
10807
10808 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10809 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'
10810 # If the export-symbols file already is a .def file (1st line
10811 # is EXPORTS), use it as is; otherwise, prepend...
10812 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10813 cp $export_symbols $output_objdir/$soname.def;
10814 else
10815 echo EXPORTS > $output_objdir/$soname.def;
10816 cat $export_symbols >> $output_objdir/$soname.def;
10817 fi~
10818 $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'
10819 else
10820 ld_shlibs_CXX=no
10821 fi
10822 ;;
10823 darwin* | rhapsody*)
10824 case $host_os in
10825 rhapsody* | darwin1.[012])
10826 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10827 ;;
10828 *) # Darwin 1.3 on
10829 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10830 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10831 else
10832 case ${MACOSX_DEPLOYMENT_TARGET} in
10833 10.[012])
10834 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10835 ;;
10836 10.*)
10837 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10838 ;;
10839 esac
10840 fi
10841 ;;
10842 esac
10843 archive_cmds_need_lc_CXX=no
10844 hardcode_direct_CXX=no
10845 hardcode_automatic_CXX=yes
10846 hardcode_shlibpath_var_CXX=unsupported
10847 whole_archive_flag_spec_CXX=''
10848 link_all_deplibs_CXX=yes
10849
10850 if test "$GXX" = yes ; then
10851 lt_int_apple_cc_single_mod=no
10852 output_verbose_link_cmd='echo'
10853 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10854 lt_int_apple_cc_single_mod=yes
10855 fi
10856 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10857 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10858 else
10859 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'
10860 fi
10861 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10862 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10863 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10864 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}'
10865 else
10866 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}'
10867 fi
10868 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}'
10869 else
10870 case $cc_basename in
10871 xlc*)
10872 output_verbose_link_cmd='echo'
10873 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'
10874 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10875 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10876 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}'
10877 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}'
10878 ;;
10879 *)
10880 ld_shlibs_CXX=no
10881 ;;
10882 esac
10883 fi
10884 ;;
10885
10886 dgux*)
10887 case $cc_basename in
10888 ec++*)
10889 # FIXME: insert proper C++ library support
10890 ld_shlibs_CXX=no
10891 ;;
10892 ghcx*)
10893 # Green Hills C++ Compiler
10894 # FIXME: insert proper C++ library support
10895 ld_shlibs_CXX=no
10896 ;;
10897 *)
10898 # FIXME: insert proper C++ library support
10899 ld_shlibs_CXX=no
10900 ;;
10901 esac
10902 ;;
10903 freebsd[12]*)
10904 # C++ shared libraries reported to be fairly broken before switch to ELF
10905 ld_shlibs_CXX=no
10906 ;;
10907 freebsd-elf*)
10908 archive_cmds_need_lc_CXX=no
10909 ;;
10910 freebsd* | kfreebsd*-gnu | dragonfly*)
10911 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10912 # conventions
10913 ld_shlibs_CXX=yes
10914 ;;
10915 gnu*)
10916 ;;
10917 hpux9*)
10918 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10919 hardcode_libdir_separator_CXX=:
10920 export_dynamic_flag_spec_CXX='${wl}-E'
10921 hardcode_direct_CXX=yes
10922 hardcode_minus_L_CXX=yes # Not in the search PATH,
10923 # but as the default
10924 # location of the library.
10925
10926 case $cc_basename in
10927 CC*)
10928 # FIXME: insert proper C++ library support
10929 ld_shlibs_CXX=no
10930 ;;
10931 aCC*)
10932 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'
10933 # Commands to make compiler produce verbose output that lists
10934 # what "hidden" libraries, object files and flags are used when
10935 # linking a shared library.
10936 #
10937 # There doesn't appear to be a way to prevent this compiler from
10938 # explicitly linking system object files so we need to strip them
10939 # from the output so that they don't get included in the library
10940 # dependencies.
10941 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'
10942 ;;
10943 *)
10944 if test "$GXX" = yes; then
10945 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'
10946 else
10947 # FIXME: insert proper C++ library support
10948 ld_shlibs_CXX=no
10949 fi
10950 ;;
10951 esac
10952 ;;
10953 hpux10*|hpux11*)
10954 if test $with_gnu_ld = no; then
10955 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10956 hardcode_libdir_separator_CXX=:
10957
10958 case $host_cpu in
10959 hppa*64*|ia64*)
10960 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10961 ;;
10962 *)
10963 export_dynamic_flag_spec_CXX='${wl}-E'
10964 ;;
10965 esac
10966 fi
10967 case $host_cpu in
10968 hppa*64*|ia64*)
10969 hardcode_direct_CXX=no
10970 hardcode_shlibpath_var_CXX=no
10971 ;;
10972 *)
10973 hardcode_direct_CXX=yes
10974 hardcode_minus_L_CXX=yes # Not in the search PATH,
10975 # but as the default
10976 # location of the library.
10977 ;;
10978 esac
10979
10980 case $cc_basename in
10981 CC*)
10982 # FIXME: insert proper C++ library support
10983 ld_shlibs_CXX=no
10984 ;;
10985 aCC*)
10986 case $host_cpu in
10987 hppa*64*)
10988 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10989 ;;
10990 ia64*)
10991 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10992 ;;
10993 *)
10994 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10995 ;;
10996 esac
10997 # Commands to make compiler produce verbose output that lists
10998 # what "hidden" libraries, object files and flags are used when
10999 # linking a shared library.
11000 #
11001 # There doesn't appear to be a way to prevent this compiler from
11002 # explicitly linking system object files so we need to strip them
11003 # from the output so that they don't get included in the library
11004 # dependencies.
11005 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'
11006 ;;
11007 *)
11008 if test "$GXX" = yes; then
11009 if test $with_gnu_ld = no; then
11010 case $host_cpu in
11011 hppa*64*)
11012 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11013 ;;
11014 ia64*)
11015 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11016 ;;
11017 *)
11018 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'
11019 ;;
11020 esac
11021 fi
11022 else
11023 # FIXME: insert proper C++ library support
11024 ld_shlibs_CXX=no
11025 fi
11026 ;;
11027 esac
11028 ;;
11029 interix3*)
11030 hardcode_direct_CXX=no
11031 hardcode_shlibpath_var_CXX=no
11032 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11033 export_dynamic_flag_spec_CXX='${wl}-E'
11034 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11035 # Instead, shared libraries are loaded at an image base (0x10000000 by
11036 # default) and relocated if they conflict, which is a slow very memory
11037 # consuming and fragmenting process. To avoid this, we pick a random,
11038 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11039 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11040 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'
11041 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'
11042 ;;
11043 irix5* | irix6*)
11044 case $cc_basename in
11045 CC*)
11046 # SGI C++
11047 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'
11048
11049 # Archives containing C++ object files must be created using
11050 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11051 # necessary to make sure instantiated templates are included
11052 # in the archive.
11053 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11054 ;;
11055 *)
11056 if test "$GXX" = yes; then
11057 if test "$with_gnu_ld" = no; then
11058 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'
11059 else
11060 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'
11061 fi
11062 fi
11063 link_all_deplibs_CXX=yes
11064 ;;
11065 esac
11066 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11067 hardcode_libdir_separator_CXX=:
11068 ;;
11069 linux*)
11070 case $cc_basename in
11071 KCC*)
11072 # Kuck and Associates, Inc. (KAI) C++ Compiler
11073
11074 # KCC will only create a shared library if the output file
11075 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11076 # to its proper name (with version) after linking.
11077 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'
11078 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'
11079 # Commands to make compiler produce verbose output that lists
11080 # what "hidden" libraries, object files and flags are used when
11081 # linking a shared library.
11082 #
11083 # There doesn't appear to be a way to prevent this compiler from
11084 # explicitly linking system object files so we need to strip them
11085 # from the output so that they don't get included in the library
11086 # dependencies.
11087 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'
11088
11089 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11090 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11091
11092 # Archives containing C++ object files must be created using
11093 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11094 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11095 ;;
11096 icpc*)
11097 # Intel C++
11098 with_gnu_ld=yes
11099 # version 8.0 and above of icpc choke on multiply defined symbols
11100 # if we add $predep_objects and $postdep_objects, however 7.1 and
11101 # earlier do not add the objects themselves.
11102 case `$CC -V 2>&1` in
11103 *"Version 7."*)
11104 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11105 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'
11106 ;;
11107 *) # Version 8.0 or newer
11108 tmp_idyn=
11109 case $host_cpu in
11110 ia64*) tmp_idyn=' -i_dynamic';;
11111 esac
11112 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11113 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'
11114 ;;
11115 esac
11116 archive_cmds_need_lc_CXX=no
11117 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11118 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11119 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11120 ;;
11121 pgCC*)
11122 # Portland Group C++ compiler
11123 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11124 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'
11125
11126 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11127 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11128 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'
11129 ;;
11130 cxx*)
11131 # Compaq C++
11132 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11133 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'
11134
11135 runpath_var=LD_RUN_PATH
11136 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11137 hardcode_libdir_separator_CXX=:
11138
11139 # Commands to make compiler produce verbose output that lists
11140 # what "hidden" libraries, object files and flags are used when
11141 # linking a shared library.
11142 #
11143 # There doesn't appear to be a way to prevent this compiler from
11144 # explicitly linking system object files so we need to strip them
11145 # from the output so that they don't get included in the library
11146 # dependencies.
11147 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'
11148 ;;
11149 esac
11150 ;;
11151 lynxos*)
11152 # FIXME: insert proper C++ library support
11153 ld_shlibs_CXX=no
11154 ;;
11155 m88k*)
11156 # FIXME: insert proper C++ library support
11157 ld_shlibs_CXX=no
11158 ;;
11159 mvs*)
11160 case $cc_basename in
11161 cxx*)
11162 # FIXME: insert proper C++ library support
11163 ld_shlibs_CXX=no
11164 ;;
11165 *)
11166 # FIXME: insert proper C++ library support
11167 ld_shlibs_CXX=no
11168 ;;
11169 esac
11170 ;;
11171 netbsd*)
11172 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11173 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11174 wlarc=
11175 hardcode_libdir_flag_spec_CXX='-R$libdir'
11176 hardcode_direct_CXX=yes
11177 hardcode_shlibpath_var_CXX=no
11178 fi
11179 # Workaround some broken pre-1.5 toolchains
11180 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11181 ;;
11182 openbsd2*)
11183 # C++ shared libraries are fairly broken
11184 ld_shlibs_CXX=no
11185 ;;
11186 openbsd*)
11187 hardcode_direct_CXX=yes
11188 hardcode_shlibpath_var_CXX=no
11189 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11190 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11191 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11192 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11193 export_dynamic_flag_spec_CXX='${wl}-E'
11194 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11195 fi
11196 output_verbose_link_cmd='echo'
11197 ;;
11198 osf3*)
11199 case $cc_basename in
11200 KCC*)
11201 # Kuck and Associates, Inc. (KAI) C++ Compiler
11202
11203 # KCC will only create a shared library if the output file
11204 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11205 # to its proper name (with version) after linking.
11206 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'
11207
11208 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11209 hardcode_libdir_separator_CXX=:
11210
11211 # Archives containing C++ object files must be created using
11212 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11213 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11214
11215 ;;
11216 RCC*)
11217 # Rational C++ 2.4.1
11218 # FIXME: insert proper C++ library support
11219 ld_shlibs_CXX=no
11220 ;;
11221 cxx*)
11222 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11223 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'
11224
11225 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11226 hardcode_libdir_separator_CXX=:
11227
11228 # Commands to make compiler produce verbose output that lists
11229 # what "hidden" libraries, object files and flags are used when
11230 # linking a shared library.
11231 #
11232 # There doesn't appear to be a way to prevent this compiler from
11233 # explicitly linking system object files so we need to strip them
11234 # from the output so that they don't get included in the library
11235 # dependencies.
11236 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'
11237 ;;
11238 *)
11239 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11240 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11241 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'
11242
11243 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11244 hardcode_libdir_separator_CXX=:
11245
11246 # Commands to make compiler produce verbose output that lists
11247 # what "hidden" libraries, object files and flags are used when
11248 # linking a shared library.
11249 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11250
11251 else
11252 # FIXME: insert proper C++ library support
11253 ld_shlibs_CXX=no
11254 fi
11255 ;;
11256 esac
11257 ;;
11258 osf4* | osf5*)
11259 case $cc_basename in
11260 KCC*)
11261 # Kuck and Associates, Inc. (KAI) C++ Compiler
11262
11263 # KCC will only create a shared library if the output file
11264 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11265 # to its proper name (with version) after linking.
11266 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'
11267
11268 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11269 hardcode_libdir_separator_CXX=:
11270
11271 # Archives containing C++ object files must be created using
11272 # the KAI C++ compiler.
11273 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11274 ;;
11275 RCC*)
11276 # Rational C++ 2.4.1
11277 # FIXME: insert proper C++ library support
11278 ld_shlibs_CXX=no
11279 ;;
11280 cxx*)
11281 allow_undefined_flag_CXX=' -expect_unresolved \*'
11282 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'
11283 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11284 echo "-hidden">> $lib.exp~
11285 $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~
11286 $rm $lib.exp'
11287
11288 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11289 hardcode_libdir_separator_CXX=:
11290
11291 # Commands to make compiler produce verbose output that lists
11292 # what "hidden" libraries, object files and flags are used when
11293 # linking a shared library.
11294 #
11295 # There doesn't appear to be a way to prevent this compiler from
11296 # explicitly linking system object files so we need to strip them
11297 # from the output so that they don't get included in the library
11298 # dependencies.
11299 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'
11300 ;;
11301 *)
11302 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11303 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11304 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'
11305
11306 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11307 hardcode_libdir_separator_CXX=:
11308
11309 # Commands to make compiler produce verbose output that lists
11310 # what "hidden" libraries, object files and flags are used when
11311 # linking a shared library.
11312 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11313
11314 else
11315 # FIXME: insert proper C++ library support
11316 ld_shlibs_CXX=no
11317 fi
11318 ;;
11319 esac
11320 ;;
11321 psos*)
11322 # FIXME: insert proper C++ library support
11323 ld_shlibs_CXX=no
11324 ;;
11325 sunos4*)
11326 case $cc_basename in
11327 CC*)
11328 # Sun C++ 4.x
11329 # FIXME: insert proper C++ library support
11330 ld_shlibs_CXX=no
11331 ;;
11332 lcc*)
11333 # Lucid
11334 # FIXME: insert proper C++ library support
11335 ld_shlibs_CXX=no
11336 ;;
11337 *)
11338 # FIXME: insert proper C++ library support
11339 ld_shlibs_CXX=no
11340 ;;
11341 esac
11342 ;;
11343 solaris*)
11344 case $cc_basename in
11345 CC*)
11346 # Sun C++ 4.2, 5.x and Centerline C++
11347 archive_cmds_need_lc_CXX=yes
11348 no_undefined_flag_CXX=' -zdefs'
11349 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11350 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11351 $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'
11352
11353 hardcode_libdir_flag_spec_CXX='-R$libdir'
11354 hardcode_shlibpath_var_CXX=no
11355 case $host_os in
11356 solaris2.[0-5] | solaris2.[0-5].*) ;;
11357 *)
11358 # The C++ compiler is used as linker so we must use $wl
11359 # flag to pass the commands to the underlying system
11360 # linker. We must also pass each convience library through
11361 # to the system linker between allextract/defaultextract.
11362 # The C++ compiler will combine linker options so we
11363 # cannot just pass the convience library names through
11364 # without $wl.
11365 # Supported since Solaris 2.6 (maybe 2.5.1?)
11366 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'
11367 ;;
11368 esac
11369 link_all_deplibs_CXX=yes
11370
11371 output_verbose_link_cmd='echo'
11372
11373 # Archives containing C++ object files must be created using
11374 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11375 # necessary to make sure instantiated templates are included
11376 # in the archive.
11377 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11378 ;;
11379 gcx*)
11380 # Green Hills C++ Compiler
11381 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11382
11383 # The C++ compiler must be used to create the archive.
11384 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11385 ;;
11386 *)
11387 # GNU C++ compiler with Solaris linker
11388 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11389 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11390 if $CC --version | grep -v '^2\.7' > /dev/null; then
11391 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11392 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11393 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11394
11395 # Commands to make compiler produce verbose output that lists
11396 # what "hidden" libraries, object files and flags are used when
11397 # linking a shared library.
11398 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11399 else
11400 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11401 # platform.
11402 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11403 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11404 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11405
11406 # Commands to make compiler produce verbose output that lists
11407 # what "hidden" libraries, object files and flags are used when
11408 # linking a shared library.
11409 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11410 fi
11411
11412 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11413 fi
11414 ;;
11415 esac
11416 ;;
11417 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11418 no_undefined_flag_CXX='${wl}-z,text'
11419 archive_cmds_need_lc_CXX=no
11420 hardcode_shlibpath_var_CXX=no
11421 runpath_var='LD_RUN_PATH'
11422
11423 case $cc_basename in
11424 CC*)
11425 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11426 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11427 ;;
11428 *)
11429 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11430 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11431 ;;
11432 esac
11433 ;;
11434 sysv5* | sco3.2v5* | sco5v6*)
11435 # Note: We can NOT use -z defs as we might desire, because we do not
11436 # link with -lc, and that would cause any symbols used from libc to
11437 # always be unresolved, which means just about no library would
11438 # ever link correctly. If we're not using GNU ld we use -z text
11439 # though, which does catch some bad symbols but isn't as heavy-handed
11440 # as -z defs.
11441 # For security reasons, it is highly recommended that you always
11442 # use absolute paths for naming shared libraries, and exclude the
11443 # DT_RUNPATH tag from executables and libraries. But doing so
11444 # requires that you compile everything twice, which is a pain.
11445 # So that behaviour is only enabled if SCOABSPATH is set to a
11446 # non-empty value in the environment. Most likely only useful for
11447 # creating official distributions of packages.
11448 # This is a hack until libtool officially supports absolute path
11449 # names for shared libraries.
11450 no_undefined_flag_CXX='${wl}-z,text'
11451 allow_undefined_flag_CXX='${wl}-z,nodefs'
11452 archive_cmds_need_lc_CXX=no
11453 hardcode_shlibpath_var_CXX=no
11454 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11455 hardcode_libdir_separator_CXX=':'
11456 link_all_deplibs_CXX=yes
11457 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11458 runpath_var='LD_RUN_PATH'
11459
11460 case $cc_basename in
11461 CC*)
11462 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11463 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11464 ;;
11465 *)
11466 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11467 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11468 ;;
11469 esac
11470 ;;
11471 tandem*)
11472 case $cc_basename in
11473 NCC*)
11474 # NonStop-UX NCC 3.20
11475 # FIXME: insert proper C++ library support
11476 ld_shlibs_CXX=no
11477 ;;
11478 *)
11479 # FIXME: insert proper C++ library support
11480 ld_shlibs_CXX=no
11481 ;;
11482 esac
11483 ;;
11484 vxworks*)
11485 # FIXME: insert proper C++ library support
11486 ld_shlibs_CXX=no
11487 ;;
11488 *)
11489 # FIXME: insert proper C++ library support
11490 ld_shlibs_CXX=no
11491 ;;
11492 esac
11493 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11494 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11495 test "$ld_shlibs_CXX" = no && can_build_shared=no
11496
11497 GCC_CXX="$GXX"
11498 LD_CXX="$LD"
11499
11500
11501 cat > conftest.$ac_ext <<EOF
11502 class Foo
11503 {
11504 public:
11505 Foo (void) { a = 0; }
11506 private:
11507 int a;
11508 };
11509 EOF
11510
11511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11512 (eval $ac_compile) 2>&5
11513 ac_status=$?
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; then
11516 # Parse the compiler output and extract the necessary
11517 # objects, libraries and library flags.
11518
11519 # Sentinel used to keep track of whether or not we are before
11520 # the conftest object file.
11521 pre_test_object_deps_done=no
11522
11523 # The `*' in the case matches for architectures that use `case' in
11524 # $output_verbose_cmd can trigger glob expansion during the loop
11525 # eval without this substitution.
11526 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11527
11528 for p in `eval $output_verbose_link_cmd`; do
11529 case $p in
11530
11531 -L* | -R* | -l*)
11532 # Some compilers place space between "-{L,R}" and the path.
11533 # Remove the space.
11534 if test $p = "-L" \
11535 || test $p = "-R"; then
11536 prev=$p
11537 continue
11538 else
11539 prev=
11540 fi
11541
11542 if test "$pre_test_object_deps_done" = no; then
11543 case $p in
11544 -L* | -R*)
11545 # Internal compiler library paths should come after those
11546 # provided the user. The postdeps already come after the
11547 # user supplied libs so there is no need to process them.
11548 if test -z "$compiler_lib_search_path_CXX"; then
11549 compiler_lib_search_path_CXX="${prev}${p}"
11550 else
11551 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11552 fi
11553 ;;
11554 # The "-l" case would never come before the object being
11555 # linked, so don't bother handling this case.
11556 esac
11557 else
11558 if test -z "$postdeps_CXX"; then
11559 postdeps_CXX="${prev}${p}"
11560 else
11561 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11562 fi
11563 fi
11564 ;;
11565
11566 *.$objext)
11567 # This assumes that the test object file only shows up
11568 # once in the compiler output.
11569 if test "$p" = "conftest.$objext"; then
11570 pre_test_object_deps_done=yes
11571 continue
11572 fi
11573
11574 if test "$pre_test_object_deps_done" = no; then
11575 if test -z "$predep_objects_CXX"; then
11576 predep_objects_CXX="$p"
11577 else
11578 predep_objects_CXX="$predep_objects_CXX $p"
11579 fi
11580 else
11581 if test -z "$postdep_objects_CXX"; then
11582 postdep_objects_CXX="$p"
11583 else
11584 postdep_objects_CXX="$postdep_objects_CXX $p"
11585 fi
11586 fi
11587 ;;
11588
11589 *) ;; # Ignore the rest.
11590
11591 esac
11592 done
11593
11594 # Clean up.
11595 rm -f a.out a.exe
11596 else
11597 echo "libtool.m4: error: problem compiling CXX test program"
11598 fi
11599
11600 $rm -f confest.$objext
11601
11602 # PORTME: override above test on systems where it is broken
11603 case $host_os in
11604 interix3*)
11605 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11606 # hack all around it, let's just trust "g++" to DTRT.
11607 predep_objects_CXX=
11608 postdep_objects_CXX=
11609 postdeps_CXX=
11610 ;;
11611
11612 solaris*)
11613 case $cc_basename in
11614 CC*)
11615 # Adding this requires a known-good setup of shared libraries for
11616 # Sun compiler versions before 5.6, else PIC objects from an old
11617 # archive will be linked into the output, leading to subtle bugs.
11618 postdeps_CXX='-lCstd -lCrun'
11619 ;;
11620 esac
11621 ;;
11622 esac
11623
11624
11625 case " $postdeps_CXX " in
11626 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11627 esac
11628
11629 lt_prog_compiler_wl_CXX=
11630 lt_prog_compiler_pic_CXX=
11631 lt_prog_compiler_static_CXX=
11632
11633 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11634 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11635
11636 # C++ specific cases for pic, static, wl, etc.
11637 if test "$GXX" = yes; then
11638 lt_prog_compiler_wl_CXX='-Wl,'
11639 lt_prog_compiler_static_CXX='-static'
11640
11641 case $host_os in
11642 aix*)
11643 # All AIX code is PIC.
11644 if test "$host_cpu" = ia64; then
11645 # AIX 5 now supports IA64 processor
11646 lt_prog_compiler_static_CXX='-Bstatic'
11647 fi
11648 ;;
11649 amigaos*)
11650 # FIXME: we need at least 68020 code to build shared libraries, but
11651 # adding the `-m68020' flag to GCC prevents building anything better,
11652 # like `-m68040'.
11653 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11654 ;;
11655 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11656 # PIC is the default for these OSes.
11657 ;;
11658 mingw* | os2* | pw32*)
11659 # This hack is so that the source file can tell whether it is being
11660 # built for inclusion in a dll (and should export symbols for example).
11661 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11662 ;;
11663 darwin* | rhapsody*)
11664 # PIC is the default on this platform
11665 # Common symbols not allowed in MH_DYLIB files
11666 lt_prog_compiler_pic_CXX='-fno-common'
11667 ;;
11668 *djgpp*)
11669 # DJGPP does not support shared libraries at all
11670 lt_prog_compiler_pic_CXX=
11671 ;;
11672 interix3*)
11673 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11674 # Instead, we relocate shared libraries at runtime.
11675 ;;
11676 sysv4*MP*)
11677 if test -d /usr/nec; then
11678 lt_prog_compiler_pic_CXX=-Kconform_pic
11679 fi
11680 ;;
11681 hpux*)
11682 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11683 # not for PA HP-UX.
11684 case $host_cpu in
11685 hppa*64*|ia64*)
11686 ;;
11687 *)
11688 lt_prog_compiler_pic_CXX='-fPIC'
11689 ;;
11690 esac
11691 ;;
11692 *)
11693 lt_prog_compiler_pic_CXX='-fPIC'
11694 ;;
11695 esac
11696 else
11697 case $host_os in
11698 aix4* | aix5*)
11699 # All AIX code is PIC.
11700 if test "$host_cpu" = ia64; then
11701 # AIX 5 now supports IA64 processor
11702 lt_prog_compiler_static_CXX='-Bstatic'
11703 else
11704 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11705 fi
11706 ;;
11707 chorus*)
11708 case $cc_basename in
11709 cxch68*)
11710 # Green Hills C++ Compiler
11711 # _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"
11712 ;;
11713 esac
11714 ;;
11715 darwin*)
11716 # PIC is the default on this platform
11717 # Common symbols not allowed in MH_DYLIB files
11718 case $cc_basename in
11719 xlc*)
11720 lt_prog_compiler_pic_CXX='-qnocommon'
11721 lt_prog_compiler_wl_CXX='-Wl,'
11722 ;;
11723 esac
11724 ;;
11725 dgux*)
11726 case $cc_basename in
11727 ec++*)
11728 lt_prog_compiler_pic_CXX='-KPIC'
11729 ;;
11730 ghcx*)
11731 # Green Hills C++ Compiler
11732 lt_prog_compiler_pic_CXX='-pic'
11733 ;;
11734 *)
11735 ;;
11736 esac
11737 ;;
11738 freebsd* | kfreebsd*-gnu | dragonfly*)
11739 # FreeBSD uses GNU C++
11740 ;;
11741 hpux9* | hpux10* | hpux11*)
11742 case $cc_basename in
11743 CC*)
11744 lt_prog_compiler_wl_CXX='-Wl,'
11745 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11746 if test "$host_cpu" != ia64; then
11747 lt_prog_compiler_pic_CXX='+Z'
11748 fi
11749 ;;
11750 aCC*)
11751 lt_prog_compiler_wl_CXX='-Wl,'
11752 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11753 case $host_cpu in
11754 hppa*64*|ia64*)
11755 # +Z the default
11756 ;;
11757 *)
11758 lt_prog_compiler_pic_CXX='+Z'
11759 ;;
11760 esac
11761 ;;
11762 *)
11763 ;;
11764 esac
11765 ;;
11766 interix*)
11767 # This is c89, which is MS Visual C++ (no shared libs)
11768 # Anyone wants to do a port?
11769 ;;
11770 irix5* | irix6* | nonstopux*)
11771 case $cc_basename in
11772 CC*)
11773 lt_prog_compiler_wl_CXX='-Wl,'
11774 lt_prog_compiler_static_CXX='-non_shared'
11775 # CC pic flag -KPIC is the default.
11776 ;;
11777 *)
11778 ;;
11779 esac
11780 ;;
11781 linux*)
11782 case $cc_basename in
11783 KCC*)
11784 # KAI C++ Compiler
11785 lt_prog_compiler_wl_CXX='--backend -Wl,'
11786 lt_prog_compiler_pic_CXX='-fPIC'
11787 ;;
11788 icpc* | ecpc*)
11789 # Intel C++
11790 lt_prog_compiler_wl_CXX='-Wl,'
11791 lt_prog_compiler_pic_CXX='-KPIC'
11792 lt_prog_compiler_static_CXX='-static'
11793 ;;
11794 pgCC*)
11795 # Portland Group C++ compiler.
11796 lt_prog_compiler_wl_CXX='-Wl,'
11797 lt_prog_compiler_pic_CXX='-fpic'
11798 lt_prog_compiler_static_CXX='-Bstatic'
11799 ;;
11800 cxx*)
11801 # Compaq C++
11802 # Make sure the PIC flag is empty. It appears that all Alpha
11803 # Linux and Compaq Tru64 Unix objects are PIC.
11804 lt_prog_compiler_pic_CXX=
11805 lt_prog_compiler_static_CXX='-non_shared'
11806 ;;
11807 *)
11808 ;;
11809 esac
11810 ;;
11811 lynxos*)
11812 ;;
11813 m88k*)
11814 ;;
11815 mvs*)
11816 case $cc_basename in
11817 cxx*)
11818 lt_prog_compiler_pic_CXX='-W c,exportall'
11819 ;;
11820 *)
11821 ;;
11822 esac
11823 ;;
11824 netbsd*)
11825 ;;
11826 osf3* | osf4* | osf5*)
11827 case $cc_basename in
11828 KCC*)
11829 lt_prog_compiler_wl_CXX='--backend -Wl,'
11830 ;;
11831 RCC*)
11832 # Rational C++ 2.4.1
11833 lt_prog_compiler_pic_CXX='-pic'
11834 ;;
11835 cxx*)
11836 # Digital/Compaq C++
11837 lt_prog_compiler_wl_CXX='-Wl,'
11838 # Make sure the PIC flag is empty. It appears that all Alpha
11839 # Linux and Compaq Tru64 Unix objects are PIC.
11840 lt_prog_compiler_pic_CXX=
11841 lt_prog_compiler_static_CXX='-non_shared'
11842 ;;
11843 *)
11844 ;;
11845 esac
11846 ;;
11847 psos*)
11848 ;;
11849 solaris*)
11850 case $cc_basename in
11851 CC*)
11852 # Sun C++ 4.2, 5.x and Centerline C++
11853 lt_prog_compiler_pic_CXX='-KPIC'
11854 lt_prog_compiler_static_CXX='-Bstatic'
11855 lt_prog_compiler_wl_CXX='-Qoption ld '
11856 ;;
11857 gcx*)
11858 # Green Hills C++ Compiler
11859 lt_prog_compiler_pic_CXX='-PIC'
11860 ;;
11861 *)
11862 ;;
11863 esac
11864 ;;
11865 sunos4*)
11866 case $cc_basename in
11867 CC*)
11868 # Sun C++ 4.x
11869 lt_prog_compiler_pic_CXX='-pic'
11870 lt_prog_compiler_static_CXX='-Bstatic'
11871 ;;
11872 lcc*)
11873 # Lucid
11874 lt_prog_compiler_pic_CXX='-pic'
11875 ;;
11876 *)
11877 ;;
11878 esac
11879 ;;
11880 tandem*)
11881 case $cc_basename in
11882 NCC*)
11883 # NonStop-UX NCC 3.20
11884 lt_prog_compiler_pic_CXX='-KPIC'
11885 ;;
11886 *)
11887 ;;
11888 esac
11889 ;;
11890 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11891 case $cc_basename in
11892 CC*)
11893 lt_prog_compiler_wl_CXX='-Wl,'
11894 lt_prog_compiler_pic_CXX='-KPIC'
11895 lt_prog_compiler_static_CXX='-Bstatic'
11896 ;;
11897 esac
11898 ;;
11899 vxworks*)
11900 ;;
11901 *)
11902 lt_prog_compiler_can_build_shared_CXX=no
11903 ;;
11904 esac
11905 fi
11906
11907 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11908 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11909
11910 #
11911 # Check to make sure the PIC flag actually works.
11912 #
11913 if test -n "$lt_prog_compiler_pic_CXX"; then
11914
11915 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11916 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11917 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11918 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 else
11920 lt_prog_compiler_pic_works_CXX=no
11921 ac_outfile=conftest.$ac_objext
11922 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11923 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11924 # Insert the option either (1) after the last *FLAGS variable, or
11925 # (2) before a word containing "conftest.", or (3) at the end.
11926 # Note that $ac_compile itself does not contain backslashes and begins
11927 # with a dollar sign (not a hyphen), so the echo should work correctly.
11928 # The option is referenced via a variable to avoid confusing sed.
11929 lt_compile=`echo "$ac_compile" | $SED \
11930 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11931 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11932 -e 's:$: $lt_compiler_flag:'`
11933 (eval echo "\"\$as_me:11933: $lt_compile\"" >&5)
11934 (eval "$lt_compile" 2>conftest.err)
11935 ac_status=$?
11936 cat conftest.err >&5
11937 echo "$as_me:11937: \$? = $ac_status" >&5
11938 if (exit $ac_status) && test -s "$ac_outfile"; then
11939 # The compiler can only warn and ignore the option if not recognized
11940 # So say no if there are warnings other than the usual output.
11941 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11942 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11943 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11944 lt_prog_compiler_pic_works_CXX=yes
11945 fi
11946 fi
11947 $rm conftest*
11948
11949 fi
11950 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11951 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11952
11953 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11954 case $lt_prog_compiler_pic_CXX in
11955 "" | " "*) ;;
11956 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11957 esac
11958 else
11959 lt_prog_compiler_pic_CXX=
11960 lt_prog_compiler_can_build_shared_CXX=no
11961 fi
11962
11963 fi
11964 case $host_os in
11965 # For platforms which do not support PIC, -DPIC is meaningless:
11966 *djgpp*)
11967 lt_prog_compiler_pic_CXX=
11968 ;;
11969 *)
11970 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11971 ;;
11972 esac
11973
11974 #
11975 # Check to make sure the static flag actually works.
11976 #
11977 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11978 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11979 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11980 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11982 else
11983 lt_prog_compiler_static_works_CXX=no
11984 save_LDFLAGS="$LDFLAGS"
11985 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11986 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11987 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11988 # The linker can only warn and ignore the option if not recognized
11989 # So say no if there are warnings
11990 if test -s conftest.err; then
11991 # Append any errors to the config.log.
11992 cat conftest.err 1>&5
11993 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11995 if diff conftest.exp conftest.er2 >/dev/null; then
11996 lt_prog_compiler_static_works_CXX=yes
11997 fi
11998 else
11999 lt_prog_compiler_static_works_CXX=yes
12000 fi
12001 fi
12002 $rm conftest*
12003 LDFLAGS="$save_LDFLAGS"
12004
12005 fi
12006 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12007 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12008
12009 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12010 :
12011 else
12012 lt_prog_compiler_static_CXX=
12013 fi
12014
12015
12016 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12017 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12018 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12020 else
12021 lt_cv_prog_compiler_c_o_CXX=no
12022 $rm -r conftest 2>/dev/null
12023 mkdir conftest
12024 cd conftest
12025 mkdir out
12026 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12027
12028 lt_compiler_flag="-o out/conftest2.$ac_objext"
12029 # Insert the option either (1) after the last *FLAGS variable, or
12030 # (2) before a word containing "conftest.", or (3) at the end.
12031 # Note that $ac_compile itself does not contain backslashes and begins
12032 # with a dollar sign (not a hyphen), so the echo should work correctly.
12033 lt_compile=`echo "$ac_compile" | $SED \
12034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12036 -e 's:$: $lt_compiler_flag:'`
12037 (eval echo "\"\$as_me:12037: $lt_compile\"" >&5)
12038 (eval "$lt_compile" 2>out/conftest.err)
12039 ac_status=$?
12040 cat out/conftest.err >&5
12041 echo "$as_me:12041: \$? = $ac_status" >&5
12042 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12043 then
12044 # The compiler can only warn and ignore the option if not recognized
12045 # So say no if there are warnings
12046 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12047 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12048 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12049 lt_cv_prog_compiler_c_o_CXX=yes
12050 fi
12051 fi
12052 chmod u+w . 2>&5
12053 $rm conftest*
12054 # SGI C++ compiler will create directory out/ii_files/ for
12055 # template instantiation
12056 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12057 $rm out/* && rmdir out
12058 cd ..
12059 rmdir conftest
12060 $rm conftest*
12061
12062 fi
12063 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12064 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12065
12066
12067 hard_links="nottested"
12068 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12069 # do not overwrite the value of need_locks provided by the user
12070 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12071 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12072 hard_links=yes
12073 $rm conftest*
12074 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12075 touch conftest.a
12076 ln conftest.a conftest.b 2>&5 || hard_links=no
12077 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12078 echo "$as_me:$LINENO: result: $hard_links" >&5
12079 echo "${ECHO_T}$hard_links" >&6
12080 if test "$hard_links" = no; then
12081 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12082 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12083 need_locks=warn
12084 fi
12085 else
12086 need_locks=no
12087 fi
12088
12089 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12090 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12091
12092 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12093 case $host_os in
12094 aix4* | aix5*)
12095 # If we're using GNU nm, then we don't want the "-C" option.
12096 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12097 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12098 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'
12099 else
12100 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'
12101 fi
12102 ;;
12103 pw32*)
12104 export_symbols_cmds_CXX="$ltdll_cmds"
12105 ;;
12106 cygwin* | mingw*)
12107 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'
12108 ;;
12109 *)
12110 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12111 ;;
12112 esac
12113
12114 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12115 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12116 test "$ld_shlibs_CXX" = no && can_build_shared=no
12117
12118 #
12119 # Do we need to explicitly link libc?
12120 #
12121 case "x$archive_cmds_need_lc_CXX" in
12122 x|xyes)
12123 # Assume -lc should be added
12124 archive_cmds_need_lc_CXX=yes
12125
12126 if test "$enable_shared" = yes && test "$GCC" = yes; then
12127 case $archive_cmds_CXX in
12128 *'~'*)
12129 # FIXME: we may have to deal with multi-command sequences.
12130 ;;
12131 '$CC '*)
12132 # Test whether the compiler implicitly links with -lc since on some
12133 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12134 # to ld, don't add -lc before -lgcc.
12135 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12136 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12137 $rm conftest*
12138 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12139
12140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12141 (eval $ac_compile) 2>&5
12142 ac_status=$?
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); } 2>conftest.err; then
12145 soname=conftest
12146 lib=conftest
12147 libobjs=conftest.$ac_objext
12148 deplibs=
12149 wl=$lt_prog_compiler_wl_CXX
12150 pic_flag=$lt_prog_compiler_pic_CXX
12151 compiler_flags=-v
12152 linker_flags=-v
12153 verstring=
12154 output_objdir=.
12155 libname=conftest
12156 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12157 allow_undefined_flag_CXX=
12158 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12159 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12160 ac_status=$?
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }
12163 then
12164 archive_cmds_need_lc_CXX=no
12165 else
12166 archive_cmds_need_lc_CXX=yes
12167 fi
12168 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12169 else
12170 cat conftest.err 1>&5
12171 fi
12172 $rm conftest*
12173 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12174 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12175 ;;
12176 esac
12177 fi
12178 ;;
12179 esac
12180
12181 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12182 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12183 library_names_spec=
12184 libname_spec='lib$name'
12185 soname_spec=
12186 shrext_cmds=".so"
12187 postinstall_cmds=
12188 postuninstall_cmds=
12189 finish_cmds=
12190 finish_eval=
12191 shlibpath_var=
12192 shlibpath_overrides_runpath=unknown
12193 version_type=none
12194 dynamic_linker="$host_os ld.so"
12195 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12196 if test "$GCC" = yes; then
12197 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12198 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12199 # if the path contains ";" then we assume it to be the separator
12200 # otherwise default to the standard path separator (i.e. ":") - it is
12201 # assumed that no part of a normal pathname contains ";" but that should
12202 # okay in the real world where ";" in dirpaths is itself problematic.
12203 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12204 else
12205 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12206 fi
12207 else
12208 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12209 fi
12210 need_lib_prefix=unknown
12211 hardcode_into_libs=no
12212
12213 # when you set need_version to no, make sure it does not cause -set_version
12214 # flags to be left without arguments
12215 need_version=unknown
12216
12217 case $host_os in
12218 aix3*)
12219 version_type=linux
12220 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12221 shlibpath_var=LIBPATH
12222
12223 # AIX 3 has no versioning support, so we append a major version to the name.
12224 soname_spec='${libname}${release}${shared_ext}$major'
12225 ;;
12226
12227 aix4* | aix5*)
12228 version_type=linux
12229 need_lib_prefix=no
12230 need_version=no
12231 hardcode_into_libs=yes
12232 if test "$host_cpu" = ia64; then
12233 # AIX 5 supports IA64
12234 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12235 shlibpath_var=LD_LIBRARY_PATH
12236 else
12237 # With GCC up to 2.95.x, collect2 would create an import file
12238 # for dependence libraries. The import file would start with
12239 # the line `#! .'. This would cause the generated library to
12240 # depend on `.', always an invalid library. This was fixed in
12241 # development snapshots of GCC prior to 3.0.
12242 case $host_os in
12243 aix4 | aix4.[01] | aix4.[01].*)
12244 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12245 echo ' yes '
12246 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12247 :
12248 else
12249 can_build_shared=no
12250 fi
12251 ;;
12252 esac
12253 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12254 # soname into executable. Probably we can add versioning support to
12255 # collect2, so additional links can be useful in future.
12256 if test "$aix_use_runtimelinking" = yes; then
12257 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12258 # instead of lib<name>.a to let people know that these are not
12259 # typical AIX shared libraries.
12260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12261 else
12262 # We preserve .a as extension for shared libraries through AIX4.2
12263 # and later when we are not doing run time linking.
12264 library_names_spec='${libname}${release}.a $libname.a'
12265 soname_spec='${libname}${release}${shared_ext}$major'
12266 fi
12267 shlibpath_var=LIBPATH
12268 fi
12269 ;;
12270
12271 amigaos*)
12272 library_names_spec='$libname.ixlibrary $libname.a'
12273 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12274 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'
12275 ;;
12276
12277 beos*)
12278 library_names_spec='${libname}${shared_ext}'
12279 dynamic_linker="$host_os ld.so"
12280 shlibpath_var=LIBRARY_PATH
12281 ;;
12282
12283 bsdi[45]*)
12284 version_type=linux
12285 need_version=no
12286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12287 soname_spec='${libname}${release}${shared_ext}$major'
12288 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12289 shlibpath_var=LD_LIBRARY_PATH
12290 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12291 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12292 # the default ld.so.conf also contains /usr/contrib/lib and
12293 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12294 # libtool to hard-code these into programs
12295 ;;
12296
12297 cygwin* | mingw* | pw32*)
12298 version_type=windows
12299 shrext_cmds=".dll"
12300 need_version=no
12301 need_lib_prefix=no
12302
12303 case $GCC,$host_os in
12304 yes,cygwin* | yes,mingw* | yes,pw32*)
12305 library_names_spec='$libname.dll.a'
12306 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12307 postinstall_cmds='base_file=`basename \${file}`~
12308 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12309 dldir=$destdir/`dirname \$dlpath`~
12310 test -d \$dldir || mkdir -p \$dldir~
12311 $install_prog $dir/$dlname \$dldir/$dlname~
12312 chmod a+x \$dldir/$dlname'
12313 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12314 dlpath=$dir/\$dldll~
12315 $rm \$dlpath'
12316 shlibpath_overrides_runpath=yes
12317
12318 case $host_os in
12319 cygwin*)
12320 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12321 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12322 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12323 ;;
12324 mingw*)
12325 # MinGW DLLs use traditional 'lib' prefix
12326 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12327 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12328 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12329 # It is most probably a Windows format PATH printed by
12330 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12331 # path with ; separators, and with drive letters. We can handle the
12332 # drive letters (cygwin fileutils understands them), so leave them,
12333 # especially as we might pass files found there to a mingw objdump,
12334 # which wouldn't understand a cygwinified path. Ahh.
12335 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12336 else
12337 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12338 fi
12339 ;;
12340 pw32*)
12341 # pw32 DLLs use 'pw' prefix rather than 'lib'
12342 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12343 ;;
12344 esac
12345 ;;
12346
12347 *)
12348 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12349 ;;
12350 esac
12351 dynamic_linker='Win32 ld.exe'
12352 # FIXME: first we should search . and the directory the executable is in
12353 shlibpath_var=PATH
12354 ;;
12355
12356 darwin* | rhapsody*)
12357 dynamic_linker="$host_os dyld"
12358 version_type=darwin
12359 need_lib_prefix=no
12360 need_version=no
12361 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12362 soname_spec='${libname}${release}${major}$shared_ext'
12363 shlibpath_overrides_runpath=yes
12364 shlibpath_var=DYLD_LIBRARY_PATH
12365 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12366 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12367 if test "$GCC" = yes; then
12368 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"`
12369 else
12370 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12371 fi
12372 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12373 ;;
12374
12375 dgux*)
12376 version_type=linux
12377 need_lib_prefix=no
12378 need_version=no
12379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12380 soname_spec='${libname}${release}${shared_ext}$major'
12381 shlibpath_var=LD_LIBRARY_PATH
12382 ;;
12383
12384 freebsd1*)
12385 dynamic_linker=no
12386 ;;
12387
12388 kfreebsd*-gnu)
12389 version_type=linux
12390 need_lib_prefix=no
12391 need_version=no
12392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12393 soname_spec='${libname}${release}${shared_ext}$major'
12394 shlibpath_var=LD_LIBRARY_PATH
12395 shlibpath_overrides_runpath=no
12396 hardcode_into_libs=yes
12397 dynamic_linker='GNU ld.so'
12398 ;;
12399
12400 freebsd* | dragonfly*)
12401 # DragonFly does not have aout. When/if they implement a new
12402 # versioning mechanism, adjust this.
12403 if test -x /usr/bin/objformat; then
12404 objformat=`/usr/bin/objformat`
12405 else
12406 case $host_os in
12407 freebsd[123]*) objformat=aout ;;
12408 *) objformat=elf ;;
12409 esac
12410 fi
12411 version_type=freebsd-$objformat
12412 case $version_type in
12413 freebsd-elf*)
12414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12415 need_version=no
12416 need_lib_prefix=no
12417 ;;
12418 freebsd-*)
12419 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12420 need_version=yes
12421 ;;
12422 esac
12423 shlibpath_var=LD_LIBRARY_PATH
12424 case $host_os in
12425 freebsd2*)
12426 shlibpath_overrides_runpath=yes
12427 ;;
12428 freebsd3.[01]* | freebsdelf3.[01]*)
12429 shlibpath_overrides_runpath=yes
12430 hardcode_into_libs=yes
12431 ;;
12432 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12433 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12434 shlibpath_overrides_runpath=no
12435 hardcode_into_libs=yes
12436 ;;
12437 freebsd*) # from 4.6 on
12438 shlibpath_overrides_runpath=yes
12439 hardcode_into_libs=yes
12440 ;;
12441 esac
12442 ;;
12443
12444 gnu*)
12445 version_type=linux
12446 need_lib_prefix=no
12447 need_version=no
12448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12449 soname_spec='${libname}${release}${shared_ext}$major'
12450 shlibpath_var=LD_LIBRARY_PATH
12451 hardcode_into_libs=yes
12452 ;;
12453
12454 hpux9* | hpux10* | hpux11*)
12455 # Give a soname corresponding to the major version so that dld.sl refuses to
12456 # link against other versions.
12457 version_type=sunos
12458 need_lib_prefix=no
12459 need_version=no
12460 case $host_cpu in
12461 ia64*)
12462 shrext_cmds='.so'
12463 hardcode_into_libs=yes
12464 dynamic_linker="$host_os dld.so"
12465 shlibpath_var=LD_LIBRARY_PATH
12466 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12468 soname_spec='${libname}${release}${shared_ext}$major'
12469 if test "X$HPUX_IA64_MODE" = X32; then
12470 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12471 else
12472 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12473 fi
12474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12475 ;;
12476 hppa*64*)
12477 shrext_cmds='.sl'
12478 hardcode_into_libs=yes
12479 dynamic_linker="$host_os dld.sl"
12480 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12481 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12483 soname_spec='${libname}${release}${shared_ext}$major'
12484 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12485 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12486 ;;
12487 *)
12488 shrext_cmds='.sl'
12489 dynamic_linker="$host_os dld.sl"
12490 shlibpath_var=SHLIB_PATH
12491 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12493 soname_spec='${libname}${release}${shared_ext}$major'
12494 ;;
12495 esac
12496 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12497 postinstall_cmds='chmod 555 $lib'
12498 ;;
12499
12500 interix3*)
12501 version_type=linux
12502 need_lib_prefix=no
12503 need_version=no
12504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12505 soname_spec='${libname}${release}${shared_ext}$major'
12506 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12507 shlibpath_var=LD_LIBRARY_PATH
12508 shlibpath_overrides_runpath=no
12509 hardcode_into_libs=yes
12510 ;;
12511
12512 irix5* | irix6* | nonstopux*)
12513 case $host_os in
12514 nonstopux*) version_type=nonstopux ;;
12515 *)
12516 if test "$lt_cv_prog_gnu_ld" = yes; then
12517 version_type=linux
12518 else
12519 version_type=irix
12520 fi ;;
12521 esac
12522 need_lib_prefix=no
12523 need_version=no
12524 soname_spec='${libname}${release}${shared_ext}$major'
12525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12526 case $host_os in
12527 irix5* | nonstopux*)
12528 libsuff= shlibsuff=
12529 ;;
12530 *)
12531 case $LD in # libtool.m4 will add one of these switches to LD
12532 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12533 libsuff= shlibsuff= libmagic=32-bit;;
12534 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12535 libsuff=32 shlibsuff=N32 libmagic=N32;;
12536 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12537 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12538 *) libsuff= shlibsuff= libmagic=never-match;;
12539 esac
12540 ;;
12541 esac
12542 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12543 shlibpath_overrides_runpath=no
12544 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12545 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12546 hardcode_into_libs=yes
12547 ;;
12548
12549 # No shared lib support for Linux oldld, aout, or coff.
12550 linux*oldld* | linux*aout* | linux*coff*)
12551 dynamic_linker=no
12552 ;;
12553
12554 # This must be Linux ELF.
12555 linux*)
12556 version_type=linux
12557 need_lib_prefix=no
12558 need_version=no
12559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12560 soname_spec='${libname}${release}${shared_ext}$major'
12561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12562 shlibpath_var=LD_LIBRARY_PATH
12563 shlibpath_overrides_runpath=no
12564 # This implies no fast_install, which is unacceptable.
12565 # Some rework will be needed to allow for fast_install
12566 # before this can be enabled.
12567 hardcode_into_libs=yes
12568
12569 # Append ld.so.conf contents to the search path
12570 if test -f /etc/ld.so.conf; then
12571 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' ' '`
12572 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12573 fi
12574
12575 # We used to test for /lib/ld.so.1 and disable shared libraries on
12576 # powerpc, because MkLinux only supported shared libraries with the
12577 # GNU dynamic linker. Since this was broken with cross compilers,
12578 # most powerpc-linux boxes support dynamic linking these days and
12579 # people can always --disable-shared, the test was removed, and we
12580 # assume the GNU/Linux dynamic linker is in use.
12581 dynamic_linker='GNU/Linux ld.so'
12582 ;;
12583
12584 knetbsd*-gnu)
12585 version_type=linux
12586 need_lib_prefix=no
12587 need_version=no
12588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12589 soname_spec='${libname}${release}${shared_ext}$major'
12590 shlibpath_var=LD_LIBRARY_PATH
12591 shlibpath_overrides_runpath=no
12592 hardcode_into_libs=yes
12593 dynamic_linker='GNU ld.so'
12594 ;;
12595
12596 netbsd*)
12597 version_type=sunos
12598 need_lib_prefix=no
12599 need_version=no
12600 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12603 dynamic_linker='NetBSD (a.out) ld.so'
12604 else
12605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12606 soname_spec='${libname}${release}${shared_ext}$major'
12607 dynamic_linker='NetBSD ld.elf_so'
12608 fi
12609 shlibpath_var=LD_LIBRARY_PATH
12610 shlibpath_overrides_runpath=yes
12611 hardcode_into_libs=yes
12612 ;;
12613
12614 newsos6)
12615 version_type=linux
12616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12617 shlibpath_var=LD_LIBRARY_PATH
12618 shlibpath_overrides_runpath=yes
12619 ;;
12620
12621 nto-qnx*)
12622 version_type=linux
12623 need_lib_prefix=no
12624 need_version=no
12625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12626 soname_spec='${libname}${release}${shared_ext}$major'
12627 shlibpath_var=LD_LIBRARY_PATH
12628 shlibpath_overrides_runpath=yes
12629 ;;
12630
12631 openbsd*)
12632 version_type=sunos
12633 sys_lib_dlsearch_path_spec="/usr/lib"
12634 need_lib_prefix=no
12635 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12636 case $host_os in
12637 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12638 *) need_version=no ;;
12639 esac
12640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12642 shlibpath_var=LD_LIBRARY_PATH
12643 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12644 case $host_os in
12645 openbsd2.[89] | openbsd2.[89].*)
12646 shlibpath_overrides_runpath=no
12647 ;;
12648 *)
12649 shlibpath_overrides_runpath=yes
12650 ;;
12651 esac
12652 else
12653 shlibpath_overrides_runpath=yes
12654 fi
12655 ;;
12656
12657 os2*)
12658 libname_spec='$name'
12659 shrext_cmds=".dll"
12660 need_lib_prefix=no
12661 library_names_spec='$libname${shared_ext} $libname.a'
12662 dynamic_linker='OS/2 ld.exe'
12663 shlibpath_var=LIBPATH
12664 ;;
12665
12666 osf3* | osf4* | osf5*)
12667 version_type=osf
12668 need_lib_prefix=no
12669 need_version=no
12670 soname_spec='${libname}${release}${shared_ext}$major'
12671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12672 shlibpath_var=LD_LIBRARY_PATH
12673 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12674 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12675 ;;
12676
12677 solaris*)
12678 version_type=linux
12679 need_lib_prefix=no
12680 need_version=no
12681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12682 soname_spec='${libname}${release}${shared_ext}$major'
12683 shlibpath_var=LD_LIBRARY_PATH
12684 shlibpath_overrides_runpath=yes
12685 hardcode_into_libs=yes
12686 # ldd complains unless libraries are executable
12687 postinstall_cmds='chmod +x $lib'
12688 ;;
12689
12690 sunos4*)
12691 version_type=sunos
12692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12693 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12694 shlibpath_var=LD_LIBRARY_PATH
12695 shlibpath_overrides_runpath=yes
12696 if test "$with_gnu_ld" = yes; then
12697 need_lib_prefix=no
12698 fi
12699 need_version=yes
12700 ;;
12701
12702 sysv4 | sysv4.3*)
12703 version_type=linux
12704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12705 soname_spec='${libname}${release}${shared_ext}$major'
12706 shlibpath_var=LD_LIBRARY_PATH
12707 case $host_vendor in
12708 sni)
12709 shlibpath_overrides_runpath=no
12710 need_lib_prefix=no
12711 export_dynamic_flag_spec='${wl}-Blargedynsym'
12712 runpath_var=LD_RUN_PATH
12713 ;;
12714 siemens)
12715 need_lib_prefix=no
12716 ;;
12717 motorola)
12718 need_lib_prefix=no
12719 need_version=no
12720 shlibpath_overrides_runpath=no
12721 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12722 ;;
12723 esac
12724 ;;
12725
12726 sysv4*MP*)
12727 if test -d /usr/nec ;then
12728 version_type=linux
12729 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12730 soname_spec='$libname${shared_ext}.$major'
12731 shlibpath_var=LD_LIBRARY_PATH
12732 fi
12733 ;;
12734
12735 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12736 version_type=freebsd-elf
12737 need_lib_prefix=no
12738 need_version=no
12739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12740 soname_spec='${libname}${release}${shared_ext}$major'
12741 shlibpath_var=LD_LIBRARY_PATH
12742 hardcode_into_libs=yes
12743 if test "$with_gnu_ld" = yes; then
12744 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12745 shlibpath_overrides_runpath=no
12746 else
12747 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12748 shlibpath_overrides_runpath=yes
12749 case $host_os in
12750 sco3.2v5*)
12751 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12752 ;;
12753 esac
12754 fi
12755 sys_lib_dlsearch_path_spec='/usr/lib'
12756 ;;
12757
12758 uts4*)
12759 version_type=linux
12760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12761 soname_spec='${libname}${release}${shared_ext}$major'
12762 shlibpath_var=LD_LIBRARY_PATH
12763 ;;
12764
12765 *)
12766 dynamic_linker=no
12767 ;;
12768 esac
12769 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12770 echo "${ECHO_T}$dynamic_linker" >&6
12771 test "$dynamic_linker" = no && can_build_shared=no
12772
12773 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12774 if test "$GCC" = yes; then
12775 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12776 fi
12777
12778 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12779 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12780 hardcode_action_CXX=
12781 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12782 test -n "$runpath_var_CXX" || \
12783 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12784
12785 # We can hardcode non-existant directories.
12786 if test "$hardcode_direct_CXX" != no &&
12787 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12788 # have to relink, otherwise we might link with an installed library
12789 # when we should be linking with a yet-to-be-installed one
12790 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12791 test "$hardcode_minus_L_CXX" != no; then
12792 # Linking always hardcodes the temporary library directory.
12793 hardcode_action_CXX=relink
12794 else
12795 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12796 hardcode_action_CXX=immediate
12797 fi
12798 else
12799 # We cannot hardcode anything, or else we can only hardcode existing
12800 # directories.
12801 hardcode_action_CXX=unsupported
12802 fi
12803 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12804 echo "${ECHO_T}$hardcode_action_CXX" >&6
12805
12806 if test "$hardcode_action_CXX" = relink; then
12807 # Fast installation is not supported
12808 enable_fast_install=no
12809 elif test "$shlibpath_overrides_runpath" = yes ||
12810 test "$enable_shared" = no; then
12811 # Fast installation is not necessary
12812 enable_fast_install=needless
12813 fi
12814
12815
12816 # The else clause should only fire when bootstrapping the
12817 # libtool distribution, otherwise you forgot to ship ltmain.sh
12818 # with your package, and you will get complaints that there are
12819 # no rules to generate ltmain.sh.
12820 if test -f "$ltmain"; then
12821 # See if we are running on zsh, and set the options which allow our commands through
12822 # without removal of \ escapes.
12823 if test -n "${ZSH_VERSION+set}" ; then
12824 setopt NO_GLOB_SUBST
12825 fi
12826 # Now quote all the things that may contain metacharacters while being
12827 # careful not to overquote the AC_SUBSTed values. We take copies of the
12828 # variables and quote the copies for generation of the libtool script.
12829 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12830 SED SHELL STRIP \
12831 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12832 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12833 deplibs_check_method reload_flag reload_cmds need_locks \
12834 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12835 lt_cv_sys_global_symbol_to_c_name_address \
12836 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12837 old_postinstall_cmds old_postuninstall_cmds \
12838 compiler_CXX \
12839 CC_CXX \
12840 LD_CXX \
12841 lt_prog_compiler_wl_CXX \
12842 lt_prog_compiler_pic_CXX \
12843 lt_prog_compiler_static_CXX \
12844 lt_prog_compiler_no_builtin_flag_CXX \
12845 export_dynamic_flag_spec_CXX \
12846 thread_safe_flag_spec_CXX \
12847 whole_archive_flag_spec_CXX \
12848 enable_shared_with_static_runtimes_CXX \
12849 old_archive_cmds_CXX \
12850 old_archive_from_new_cmds_CXX \
12851 predep_objects_CXX \
12852 postdep_objects_CXX \
12853 predeps_CXX \
12854 postdeps_CXX \
12855 compiler_lib_search_path_CXX \
12856 archive_cmds_CXX \
12857 archive_expsym_cmds_CXX \
12858 postinstall_cmds_CXX \
12859 postuninstall_cmds_CXX \
12860 old_archive_from_expsyms_cmds_CXX \
12861 allow_undefined_flag_CXX \
12862 no_undefined_flag_CXX \
12863 export_symbols_cmds_CXX \
12864 hardcode_libdir_flag_spec_CXX \
12865 hardcode_libdir_flag_spec_ld_CXX \
12866 hardcode_libdir_separator_CXX \
12867 hardcode_automatic_CXX \
12868 module_cmds_CXX \
12869 module_expsym_cmds_CXX \
12870 lt_cv_prog_compiler_c_o_CXX \
12871 exclude_expsyms_CXX \
12872 include_expsyms_CXX; do
12873
12874 case $var in
12875 old_archive_cmds_CXX | \
12876 old_archive_from_new_cmds_CXX | \
12877 archive_cmds_CXX | \
12878 archive_expsym_cmds_CXX | \
12879 module_cmds_CXX | \
12880 module_expsym_cmds_CXX | \
12881 old_archive_from_expsyms_cmds_CXX | \
12882 export_symbols_cmds_CXX | \
12883 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12884 postinstall_cmds | postuninstall_cmds | \
12885 old_postinstall_cmds | old_postuninstall_cmds | \
12886 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12887 # Double-quote double-evaled strings.
12888 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12889 ;;
12890 *)
12891 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12892 ;;
12893 esac
12894 done
12895
12896 case $lt_echo in
12897 *'\$0 --fallback-echo"')
12898 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12899 ;;
12900 esac
12901
12902 cfgfile="$ofile"
12903
12904 cat <<__EOF__ >> "$cfgfile"
12905 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12906
12907 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12908
12909 # Shell to use when invoking shell scripts.
12910 SHELL=$lt_SHELL
12911
12912 # Whether or not to build shared libraries.
12913 build_libtool_libs=$enable_shared
12914
12915 # Whether or not to build static libraries.
12916 build_old_libs=$enable_static
12917
12918 # Whether or not to add -lc for building shared libraries.
12919 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12920
12921 # Whether or not to disallow shared libs when runtime libs are static
12922 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12923
12924 # Whether or not to optimize for fast installation.
12925 fast_install=$enable_fast_install
12926
12927 # The host system.
12928 host_alias=$host_alias
12929 host=$host
12930 host_os=$host_os
12931
12932 # The build system.
12933 build_alias=$build_alias
12934 build=$build
12935 build_os=$build_os
12936
12937 # An echo program that does not interpret backslashes.
12938 echo=$lt_echo
12939
12940 # The archiver.
12941 AR=$lt_AR
12942 AR_FLAGS=$lt_AR_FLAGS
12943
12944 # A C compiler.
12945 LTCC=$lt_LTCC
12946
12947 # LTCC compiler flags.
12948 LTCFLAGS=$lt_LTCFLAGS
12949
12950 # A language-specific compiler.
12951 CC=$lt_compiler_CXX
12952
12953 # Is the compiler the GNU C compiler?
12954 with_gcc=$GCC_CXX
12955
12956 # An ERE matcher.
12957 EGREP=$lt_EGREP
12958
12959 # The linker used to build libraries.
12960 LD=$lt_LD_CXX
12961
12962 # Whether we need hard or soft links.
12963 LN_S=$lt_LN_S
12964
12965 # A BSD-compatible nm program.
12966 NM=$lt_NM
12967
12968 # A symbol stripping program
12969 STRIP=$lt_STRIP
12970
12971 # Used to examine libraries when file_magic_cmd begins "file"
12972 MAGIC_CMD=$MAGIC_CMD
12973
12974 # Used on cygwin: DLL creation program.
12975 DLLTOOL="$DLLTOOL"
12976
12977 # Used on cygwin: object dumper.
12978 OBJDUMP="$OBJDUMP"
12979
12980 # Used on cygwin: assembler.
12981 AS="$AS"
12982
12983 # The name of the directory that contains temporary libtool files.
12984 objdir=$objdir
12985
12986 # How to create reloadable object files.
12987 reload_flag=$lt_reload_flag
12988 reload_cmds=$lt_reload_cmds
12989
12990 # How to pass a linker flag through the compiler.
12991 wl=$lt_lt_prog_compiler_wl_CXX
12992
12993 # Object file suffix (normally "o").
12994 objext="$ac_objext"
12995
12996 # Old archive suffix (normally "a").
12997 libext="$libext"
12998
12999 # Shared library suffix (normally ".so").
13000 shrext_cmds='$shrext_cmds'
13001
13002 # Executable file suffix (normally "").
13003 exeext="$exeext"
13004
13005 # Additional compiler flags for building library objects.
13006 pic_flag=$lt_lt_prog_compiler_pic_CXX
13007 pic_mode=$pic_mode
13008
13009 # What is the maximum length of a command?
13010 max_cmd_len=$lt_cv_sys_max_cmd_len
13011
13012 # Does compiler simultaneously support -c and -o options?
13013 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13014
13015 # Must we lock files when doing compilation?
13016 need_locks=$lt_need_locks
13017
13018 # Do we need the lib prefix for modules?
13019 need_lib_prefix=$need_lib_prefix
13020
13021 # Do we need a version for libraries?
13022 need_version=$need_version
13023
13024 # Whether dlopen is supported.
13025 dlopen_support=$enable_dlopen
13026
13027 # Whether dlopen of programs is supported.
13028 dlopen_self=$enable_dlopen_self
13029
13030 # Whether dlopen of statically linked programs is supported.
13031 dlopen_self_static=$enable_dlopen_self_static
13032
13033 # Compiler flag to prevent dynamic linking.
13034 link_static_flag=$lt_lt_prog_compiler_static_CXX
13035
13036 # Compiler flag to turn off builtin functions.
13037 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13038
13039 # Compiler flag to allow reflexive dlopens.
13040 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13041
13042 # Compiler flag to generate shared objects directly from archives.
13043 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13044
13045 # Compiler flag to generate thread-safe objects.
13046 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13047
13048 # Library versioning type.
13049 version_type=$version_type
13050
13051 # Format of library name prefix.
13052 libname_spec=$lt_libname_spec
13053
13054 # List of archive names. First name is the real one, the rest are links.
13055 # The last name is the one that the linker finds with -lNAME.
13056 library_names_spec=$lt_library_names_spec
13057
13058 # The coded name of the library, if different from the real name.
13059 soname_spec=$lt_soname_spec
13060
13061 # Commands used to build and install an old-style archive.
13062 RANLIB=$lt_RANLIB
13063 old_archive_cmds=$lt_old_archive_cmds_CXX
13064 old_postinstall_cmds=$lt_old_postinstall_cmds
13065 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13066
13067 # Create an old-style archive from a shared archive.
13068 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13069
13070 # Create a temporary old-style archive to link instead of a shared archive.
13071 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13072
13073 # Commands used to build and install a shared archive.
13074 archive_cmds=$lt_archive_cmds_CXX
13075 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13076 postinstall_cmds=$lt_postinstall_cmds
13077 postuninstall_cmds=$lt_postuninstall_cmds
13078
13079 # Commands used to build a loadable module (assumed same as above if empty)
13080 module_cmds=$lt_module_cmds_CXX
13081 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13082
13083 # Commands to strip libraries.
13084 old_striplib=$lt_old_striplib
13085 striplib=$lt_striplib
13086
13087 # Dependencies to place before the objects being linked to create a
13088 # shared library.
13089 predep_objects=$lt_predep_objects_CXX
13090
13091 # Dependencies to place after the objects being linked to create a
13092 # shared library.
13093 postdep_objects=$lt_postdep_objects_CXX
13094
13095 # Dependencies to place before the objects being linked to create a
13096 # shared library.
13097 predeps=$lt_predeps_CXX
13098
13099 # Dependencies to place after the objects being linked to create a
13100 # shared library.
13101 postdeps=$lt_postdeps_CXX
13102
13103 # The library search path used internally by the compiler when linking
13104 # a shared library.
13105 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13106
13107 # Method to check whether dependent libraries are shared objects.
13108 deplibs_check_method=$lt_deplibs_check_method
13109
13110 # Command to use when deplibs_check_method == file_magic.
13111 file_magic_cmd=$lt_file_magic_cmd
13112
13113 # Flag that allows shared libraries with undefined symbols to be built.
13114 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13115
13116 # Flag that forces no undefined symbols.
13117 no_undefined_flag=$lt_no_undefined_flag_CXX
13118
13119 # Commands used to finish a libtool library installation in a directory.
13120 finish_cmds=$lt_finish_cmds
13121
13122 # Same as above, but a single script fragment to be evaled but not shown.
13123 finish_eval=$lt_finish_eval
13124
13125 # Take the output of nm and produce a listing of raw symbols and C names.
13126 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13127
13128 # Transform the output of nm in a proper C declaration
13129 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13130
13131 # Transform the output of nm in a C name address pair
13132 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13133
13134 # This is the shared library runtime path variable.
13135 runpath_var=$runpath_var
13136
13137 # This is the shared library path variable.
13138 shlibpath_var=$shlibpath_var
13139
13140 # Is shlibpath searched before the hard-coded library search path?
13141 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13142
13143 # How to hardcode a shared library path into an executable.
13144 hardcode_action=$hardcode_action_CXX
13145
13146 # Whether we should hardcode library paths into libraries.
13147 hardcode_into_libs=$hardcode_into_libs
13148
13149 # Flag to hardcode \$libdir into a binary during linking.
13150 # This must work even if \$libdir does not exist.
13151 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13152
13153 # If ld is used when linking, flag to hardcode \$libdir into
13154 # a binary during linking. This must work even if \$libdir does
13155 # not exist.
13156 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13157
13158 # Whether we need a single -rpath flag with a separated argument.
13159 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13160
13161 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13162 # resulting binary.
13163 hardcode_direct=$hardcode_direct_CXX
13164
13165 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13166 # resulting binary.
13167 hardcode_minus_L=$hardcode_minus_L_CXX
13168
13169 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13170 # the resulting binary.
13171 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13172
13173 # Set to yes if building a shared library automatically hardcodes DIR into the library
13174 # and all subsequent libraries and executables linked against it.
13175 hardcode_automatic=$hardcode_automatic_CXX
13176
13177 # Variables whose values should be saved in libtool wrapper scripts and
13178 # restored at relink time.
13179 variables_saved_for_relink="$variables_saved_for_relink"
13180
13181 # Whether libtool must link a program against all its dependency libraries.
13182 link_all_deplibs=$link_all_deplibs_CXX
13183
13184 # Compile-time system search path for libraries
13185 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13186
13187 # Run-time system search path for libraries
13188 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13189
13190 # Fix the shell variable \$srcfile for the compiler.
13191 fix_srcfile_path="$fix_srcfile_path_CXX"
13192
13193 # Set to yes if exported symbols are required.
13194 always_export_symbols=$always_export_symbols_CXX
13195
13196 # The commands to list exported symbols.
13197 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13198
13199 # The commands to extract the exported symbol list from a shared archive.
13200 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13201
13202 # Symbols that should not be listed in the preloaded symbols.
13203 exclude_expsyms=$lt_exclude_expsyms_CXX
13204
13205 # Symbols that must always be exported.
13206 include_expsyms=$lt_include_expsyms_CXX
13207
13208 # ### END LIBTOOL TAG CONFIG: $tagname
13209
13210 __EOF__
13211
13212
13213 else
13214 # If there is no Makefile yet, we rely on a make rule to execute
13215 # `config.status --recheck' to rerun these tests and create the
13216 # libtool script then.
13217 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13218 if test -f "$ltmain_in"; then
13219 test -f Makefile && make "$ltmain"
13220 fi
13221 fi
13222
13223
13224 ac_ext=c
13225 ac_cpp='$CPP $CPPFLAGS'
13226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13229
13230 CC=$lt_save_CC
13231 LDCXX=$LD
13232 LD=$lt_save_LD
13233 GCC=$lt_save_GCC
13234 with_gnu_ldcxx=$with_gnu_ld
13235 with_gnu_ld=$lt_save_with_gnu_ld
13236 lt_cv_path_LDCXX=$lt_cv_path_LD
13237 lt_cv_path_LD=$lt_save_path_LD
13238 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13239 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13240
13241 else
13242 tagname=""
13243 fi
13244 ;;
13245
13246 F77)
13247 if test -n "$F77" && test "X$F77" != "Xno"; then
13248
13249 ac_ext=f
13250 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13251 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13252 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13253
13254
13255 archive_cmds_need_lc_F77=no
13256 allow_undefined_flag_F77=
13257 always_export_symbols_F77=no
13258 archive_expsym_cmds_F77=
13259 export_dynamic_flag_spec_F77=
13260 hardcode_direct_F77=no
13261 hardcode_libdir_flag_spec_F77=
13262 hardcode_libdir_flag_spec_ld_F77=
13263 hardcode_libdir_separator_F77=
13264 hardcode_minus_L_F77=no
13265 hardcode_automatic_F77=no
13266 module_cmds_F77=
13267 module_expsym_cmds_F77=
13268 link_all_deplibs_F77=unknown
13269 old_archive_cmds_F77=$old_archive_cmds
13270 no_undefined_flag_F77=
13271 whole_archive_flag_spec_F77=
13272 enable_shared_with_static_runtimes_F77=no
13273
13274 # Source file extension for f77 test sources.
13275 ac_ext=f
13276
13277 # Object file extension for compiled f77 test sources.
13278 objext=o
13279 objext_F77=$objext
13280
13281 # Code to be used in simple compile tests
13282 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13283
13284 # Code to be used in simple link tests
13285 lt_simple_link_test_code=" program t\n end\n"
13286
13287 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13288
13289 # If no C compiler was specified, use CC.
13290 LTCC=${LTCC-"$CC"}
13291
13292 # If no C compiler flags were specified, use CFLAGS.
13293 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13294
13295 # Allow CC to be a program name with arguments.
13296 compiler=$CC
13297
13298
13299 # save warnings/boilerplate of simple test code
13300 ac_outfile=conftest.$ac_objext
13301 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13302 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13303 _lt_compiler_boilerplate=`cat conftest.err`
13304 $rm conftest*
13305
13306 ac_outfile=conftest.$ac_objext
13307 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13308 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13309 _lt_linker_boilerplate=`cat conftest.err`
13310 $rm conftest*
13311
13312
13313 # Allow CC to be a program name with arguments.
13314 lt_save_CC="$CC"
13315 CC=${F77-"f77"}
13316 compiler=$CC
13317 compiler_F77=$CC
13318 for cc_temp in $compiler""; do
13319 case $cc_temp in
13320 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13321 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13322 \-*) ;;
13323 *) break;;
13324 esac
13325 done
13326 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13327
13328
13329 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13330 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13331 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13332 echo "${ECHO_T}$can_build_shared" >&6
13333
13334 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13335 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13336 test "$can_build_shared" = "no" && enable_shared=no
13337
13338 # On AIX, shared libraries and static libraries use the same namespace, and
13339 # are all built from PIC.
13340 case $host_os in
13341 aix3*)
13342 test "$enable_shared" = yes && enable_static=no
13343 if test -n "$RANLIB"; then
13344 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13345 postinstall_cmds='$RANLIB $lib'
13346 fi
13347 ;;
13348 aix4* | aix5*)
13349 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13350 test "$enable_shared" = yes && enable_static=no
13351 fi
13352 ;;
13353 esac
13354 echo "$as_me:$LINENO: result: $enable_shared" >&5
13355 echo "${ECHO_T}$enable_shared" >&6
13356
13357 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13358 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13359 # Make sure either enable_shared or enable_static is yes.
13360 test "$enable_shared" = yes || enable_static=yes
13361 echo "$as_me:$LINENO: result: $enable_static" >&5
13362 echo "${ECHO_T}$enable_static" >&6
13363
13364 GCC_F77="$G77"
13365 LD_F77="$LD"
13366
13367 lt_prog_compiler_wl_F77=
13368 lt_prog_compiler_pic_F77=
13369 lt_prog_compiler_static_F77=
13370
13371 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13372 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13373
13374 if test "$GCC" = yes; then
13375 lt_prog_compiler_wl_F77='-Wl,'
13376 lt_prog_compiler_static_F77='-static'
13377
13378 case $host_os in
13379 aix*)
13380 # All AIX code is PIC.
13381 if test "$host_cpu" = ia64; then
13382 # AIX 5 now supports IA64 processor
13383 lt_prog_compiler_static_F77='-Bstatic'
13384 fi
13385 ;;
13386
13387 amigaos*)
13388 # FIXME: we need at least 68020 code to build shared libraries, but
13389 # adding the `-m68020' flag to GCC prevents building anything better,
13390 # like `-m68040'.
13391 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13392 ;;
13393
13394 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13395 # PIC is the default for these OSes.
13396 ;;
13397
13398 mingw* | pw32* | os2*)
13399 # This hack is so that the source file can tell whether it is being
13400 # built for inclusion in a dll (and should export symbols for example).
13401 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13402 ;;
13403
13404 darwin* | rhapsody*)
13405 # PIC is the default on this platform
13406 # Common symbols not allowed in MH_DYLIB files
13407 lt_prog_compiler_pic_F77='-fno-common'
13408 ;;
13409
13410 interix3*)
13411 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13412 # Instead, we relocate shared libraries at runtime.
13413 ;;
13414
13415 msdosdjgpp*)
13416 # Just because we use GCC doesn't mean we suddenly get shared libraries
13417 # on systems that don't support them.
13418 lt_prog_compiler_can_build_shared_F77=no
13419 enable_shared=no
13420 ;;
13421
13422 sysv4*MP*)
13423 if test -d /usr/nec; then
13424 lt_prog_compiler_pic_F77=-Kconform_pic
13425 fi
13426 ;;
13427
13428 hpux*)
13429 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13430 # not for PA HP-UX.
13431 case $host_cpu in
13432 hppa*64*|ia64*)
13433 # +Z the default
13434 ;;
13435 *)
13436 lt_prog_compiler_pic_F77='-fPIC'
13437 ;;
13438 esac
13439 ;;
13440
13441 *)
13442 lt_prog_compiler_pic_F77='-fPIC'
13443 ;;
13444 esac
13445 else
13446 # PORTME Check for flag to pass linker flags through the system compiler.
13447 case $host_os in
13448 aix*)
13449 lt_prog_compiler_wl_F77='-Wl,'
13450 if test "$host_cpu" = ia64; then
13451 # AIX 5 now supports IA64 processor
13452 lt_prog_compiler_static_F77='-Bstatic'
13453 else
13454 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13455 fi
13456 ;;
13457 darwin*)
13458 # PIC is the default on this platform
13459 # Common symbols not allowed in MH_DYLIB files
13460 case $cc_basename in
13461 xlc*)
13462 lt_prog_compiler_pic_F77='-qnocommon'
13463 lt_prog_compiler_wl_F77='-Wl,'
13464 ;;
13465 esac
13466 ;;
13467
13468 mingw* | pw32* | os2*)
13469 # This hack is so that the source file can tell whether it is being
13470 # built for inclusion in a dll (and should export symbols for example).
13471 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13472 ;;
13473
13474 hpux9* | hpux10* | hpux11*)
13475 lt_prog_compiler_wl_F77='-Wl,'
13476 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13477 # not for PA HP-UX.
13478 case $host_cpu in
13479 hppa*64*|ia64*)
13480 # +Z the default
13481 ;;
13482 *)
13483 lt_prog_compiler_pic_F77='+Z'
13484 ;;
13485 esac
13486 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13487 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13488 ;;
13489
13490 irix5* | irix6* | nonstopux*)
13491 lt_prog_compiler_wl_F77='-Wl,'
13492 # PIC (with -KPIC) is the default.
13493 lt_prog_compiler_static_F77='-non_shared'
13494 ;;
13495
13496 newsos6)
13497 lt_prog_compiler_pic_F77='-KPIC'
13498 lt_prog_compiler_static_F77='-Bstatic'
13499 ;;
13500
13501 linux*)
13502 case $cc_basename in
13503 icc* | ecc*)
13504 lt_prog_compiler_wl_F77='-Wl,'
13505 lt_prog_compiler_pic_F77='-KPIC'
13506 lt_prog_compiler_static_F77='-static'
13507 ;;
13508 pgcc* | pgf77* | pgf90* | pgf95*)
13509 # Portland Group compilers (*not* the Pentium gcc compiler,
13510 # which looks to be a dead project)
13511 lt_prog_compiler_wl_F77='-Wl,'
13512 lt_prog_compiler_pic_F77='-fpic'
13513 lt_prog_compiler_static_F77='-Bstatic'
13514 ;;
13515 ccc*)
13516 lt_prog_compiler_wl_F77='-Wl,'
13517 # All Alpha code is PIC.
13518 lt_prog_compiler_static_F77='-non_shared'
13519 ;;
13520 esac
13521 ;;
13522
13523 osf3* | osf4* | osf5*)
13524 lt_prog_compiler_wl_F77='-Wl,'
13525 # All OSF/1 code is PIC.
13526 lt_prog_compiler_static_F77='-non_shared'
13527 ;;
13528
13529 solaris*)
13530 lt_prog_compiler_pic_F77='-KPIC'
13531 lt_prog_compiler_static_F77='-Bstatic'
13532 case $cc_basename in
13533 f77* | f90* | f95*)
13534 lt_prog_compiler_wl_F77='-Qoption ld ';;
13535 *)
13536 lt_prog_compiler_wl_F77='-Wl,';;
13537 esac
13538 ;;
13539
13540 sunos4*)
13541 lt_prog_compiler_wl_F77='-Qoption ld '
13542 lt_prog_compiler_pic_F77='-PIC'
13543 lt_prog_compiler_static_F77='-Bstatic'
13544 ;;
13545
13546 sysv4 | sysv4.2uw2* | sysv4.3*)
13547 lt_prog_compiler_wl_F77='-Wl,'
13548 lt_prog_compiler_pic_F77='-KPIC'
13549 lt_prog_compiler_static_F77='-Bstatic'
13550 ;;
13551
13552 sysv4*MP*)
13553 if test -d /usr/nec ;then
13554 lt_prog_compiler_pic_F77='-Kconform_pic'
13555 lt_prog_compiler_static_F77='-Bstatic'
13556 fi
13557 ;;
13558
13559 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13560 lt_prog_compiler_wl_F77='-Wl,'
13561 lt_prog_compiler_pic_F77='-KPIC'
13562 lt_prog_compiler_static_F77='-Bstatic'
13563 ;;
13564
13565 unicos*)
13566 lt_prog_compiler_wl_F77='-Wl,'
13567 lt_prog_compiler_can_build_shared_F77=no
13568 ;;
13569
13570 uts4*)
13571 lt_prog_compiler_pic_F77='-pic'
13572 lt_prog_compiler_static_F77='-Bstatic'
13573 ;;
13574
13575 *)
13576 lt_prog_compiler_can_build_shared_F77=no
13577 ;;
13578 esac
13579 fi
13580
13581 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13582 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13583
13584 #
13585 # Check to make sure the PIC flag actually works.
13586 #
13587 if test -n "$lt_prog_compiler_pic_F77"; then
13588
13589 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13590 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13591 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13592 echo $ECHO_N "(cached) $ECHO_C" >&6
13593 else
13594 lt_prog_compiler_pic_works_F77=no
13595 ac_outfile=conftest.$ac_objext
13596 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13597 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13598 # Insert the option either (1) after the last *FLAGS variable, or
13599 # (2) before a word containing "conftest.", or (3) at the end.
13600 # Note that $ac_compile itself does not contain backslashes and begins
13601 # with a dollar sign (not a hyphen), so the echo should work correctly.
13602 # The option is referenced via a variable to avoid confusing sed.
13603 lt_compile=`echo "$ac_compile" | $SED \
13604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13606 -e 's:$: $lt_compiler_flag:'`
13607 (eval echo "\"\$as_me:13607: $lt_compile\"" >&5)
13608 (eval "$lt_compile" 2>conftest.err)
13609 ac_status=$?
13610 cat conftest.err >&5
13611 echo "$as_me:13611: \$? = $ac_status" >&5
13612 if (exit $ac_status) && test -s "$ac_outfile"; then
13613 # The compiler can only warn and ignore the option if not recognized
13614 # So say no if there are warnings other than the usual output.
13615 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13616 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13617 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13618 lt_prog_compiler_pic_works_F77=yes
13619 fi
13620 fi
13621 $rm conftest*
13622
13623 fi
13624 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13625 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13626
13627 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13628 case $lt_prog_compiler_pic_F77 in
13629 "" | " "*) ;;
13630 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13631 esac
13632 else
13633 lt_prog_compiler_pic_F77=
13634 lt_prog_compiler_can_build_shared_F77=no
13635 fi
13636
13637 fi
13638 case $host_os in
13639 # For platforms which do not support PIC, -DPIC is meaningless:
13640 *djgpp*)
13641 lt_prog_compiler_pic_F77=
13642 ;;
13643 *)
13644 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13645 ;;
13646 esac
13647
13648 #
13649 # Check to make sure the static flag actually works.
13650 #
13651 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13652 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13653 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13654 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13655 echo $ECHO_N "(cached) $ECHO_C" >&6
13656 else
13657 lt_prog_compiler_static_works_F77=no
13658 save_LDFLAGS="$LDFLAGS"
13659 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13660 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13661 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13662 # The linker can only warn and ignore the option if not recognized
13663 # So say no if there are warnings
13664 if test -s conftest.err; then
13665 # Append any errors to the config.log.
13666 cat conftest.err 1>&5
13667 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13669 if diff conftest.exp conftest.er2 >/dev/null; then
13670 lt_prog_compiler_static_works_F77=yes
13671 fi
13672 else
13673 lt_prog_compiler_static_works_F77=yes
13674 fi
13675 fi
13676 $rm conftest*
13677 LDFLAGS="$save_LDFLAGS"
13678
13679 fi
13680 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13681 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13682
13683 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13684 :
13685 else
13686 lt_prog_compiler_static_F77=
13687 fi
13688
13689
13690 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13691 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13692 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13693 echo $ECHO_N "(cached) $ECHO_C" >&6
13694 else
13695 lt_cv_prog_compiler_c_o_F77=no
13696 $rm -r conftest 2>/dev/null
13697 mkdir conftest
13698 cd conftest
13699 mkdir out
13700 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13701
13702 lt_compiler_flag="-o out/conftest2.$ac_objext"
13703 # Insert the option either (1) after the last *FLAGS variable, or
13704 # (2) before a word containing "conftest.", or (3) at the end.
13705 # Note that $ac_compile itself does not contain backslashes and begins
13706 # with a dollar sign (not a hyphen), so the echo should work correctly.
13707 lt_compile=`echo "$ac_compile" | $SED \
13708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13710 -e 's:$: $lt_compiler_flag:'`
13711 (eval echo "\"\$as_me:13711: $lt_compile\"" >&5)
13712 (eval "$lt_compile" 2>out/conftest.err)
13713 ac_status=$?
13714 cat out/conftest.err >&5
13715 echo "$as_me:13715: \$? = $ac_status" >&5
13716 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13717 then
13718 # The compiler can only warn and ignore the option if not recognized
13719 # So say no if there are warnings
13720 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13721 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13722 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13723 lt_cv_prog_compiler_c_o_F77=yes
13724 fi
13725 fi
13726 chmod u+w . 2>&5
13727 $rm conftest*
13728 # SGI C++ compiler will create directory out/ii_files/ for
13729 # template instantiation
13730 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13731 $rm out/* && rmdir out
13732 cd ..
13733 rmdir conftest
13734 $rm conftest*
13735
13736 fi
13737 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13738 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13739
13740
13741 hard_links="nottested"
13742 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13743 # do not overwrite the value of need_locks provided by the user
13744 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13745 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13746 hard_links=yes
13747 $rm conftest*
13748 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13749 touch conftest.a
13750 ln conftest.a conftest.b 2>&5 || hard_links=no
13751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13752 echo "$as_me:$LINENO: result: $hard_links" >&5
13753 echo "${ECHO_T}$hard_links" >&6
13754 if test "$hard_links" = no; then
13755 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13756 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13757 need_locks=warn
13758 fi
13759 else
13760 need_locks=no
13761 fi
13762
13763 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13764 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13765
13766 runpath_var=
13767 allow_undefined_flag_F77=
13768 enable_shared_with_static_runtimes_F77=no
13769 archive_cmds_F77=
13770 archive_expsym_cmds_F77=
13771 old_archive_From_new_cmds_F77=
13772 old_archive_from_expsyms_cmds_F77=
13773 export_dynamic_flag_spec_F77=
13774 whole_archive_flag_spec_F77=
13775 thread_safe_flag_spec_F77=
13776 hardcode_libdir_flag_spec_F77=
13777 hardcode_libdir_flag_spec_ld_F77=
13778 hardcode_libdir_separator_F77=
13779 hardcode_direct_F77=no
13780 hardcode_minus_L_F77=no
13781 hardcode_shlibpath_var_F77=unsupported
13782 link_all_deplibs_F77=unknown
13783 hardcode_automatic_F77=no
13784 module_cmds_F77=
13785 module_expsym_cmds_F77=
13786 always_export_symbols_F77=no
13787 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13788 # include_expsyms should be a list of space-separated symbols to be *always*
13789 # included in the symbol list
13790 include_expsyms_F77=
13791 # exclude_expsyms can be an extended regexp of symbols to exclude
13792 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13793 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13794 # as well as any symbol that contains `d'.
13795 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13796 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13797 # platforms (ab)use it in PIC code, but their linkers get confused if
13798 # the symbol is explicitly referenced. Since portable code cannot
13799 # rely on this symbol name, it's probably fine to never include it in
13800 # preloaded symbol tables.
13801 extract_expsyms_cmds=
13802 # Just being paranoid about ensuring that cc_basename is set.
13803 for cc_temp in $compiler""; do
13804 case $cc_temp in
13805 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13806 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13807 \-*) ;;
13808 *) break;;
13809 esac
13810 done
13811 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13812
13813 case $host_os in
13814 cygwin* | mingw* | pw32*)
13815 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13816 # When not using gcc, we currently assume that we are using
13817 # Microsoft Visual C++.
13818 if test "$GCC" != yes; then
13819 with_gnu_ld=no
13820 fi
13821 ;;
13822 interix*)
13823 # we just hope/assume this is gcc and not c89 (= MSVC++)
13824 with_gnu_ld=yes
13825 ;;
13826 openbsd*)
13827 with_gnu_ld=no
13828 ;;
13829 esac
13830
13831 ld_shlibs_F77=yes
13832 if test "$with_gnu_ld" = yes; then
13833 # If archive_cmds runs LD, not CC, wlarc should be empty
13834 wlarc='${wl}'
13835
13836 # Set some defaults for GNU ld with shared library support. These
13837 # are reset later if shared libraries are not supported. Putting them
13838 # here allows them to be overridden if necessary.
13839 runpath_var=LD_RUN_PATH
13840 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13841 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13842 # ancient GNU ld didn't support --whole-archive et. al.
13843 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13844 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13845 else
13846 whole_archive_flag_spec_F77=
13847 fi
13848 supports_anon_versioning=no
13849 case `$LD -v 2>/dev/null` in
13850 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13851 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13852 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13853 *\ 2.11.*) ;; # other 2.11 versions
13854 *) supports_anon_versioning=yes ;;
13855 esac
13856
13857 # See if GNU ld supports shared libraries.
13858 case $host_os in
13859 aix3* | aix4* | aix5*)
13860 # On AIX/PPC, the GNU linker is very broken
13861 if test "$host_cpu" != ia64; then
13862 ld_shlibs_F77=no
13863 cat <<EOF 1>&2
13864
13865 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13866 *** to be unable to reliably create shared libraries on AIX.
13867 *** Therefore, libtool is disabling shared libraries support. If you
13868 *** really care for shared libraries, you may want to modify your PATH
13869 *** so that a non-GNU linker is found, and then restart.
13870
13871 EOF
13872 fi
13873 ;;
13874
13875 amigaos*)
13876 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)'
13877 hardcode_libdir_flag_spec_F77='-L$libdir'
13878 hardcode_minus_L_F77=yes
13879
13880 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13881 # that the semantics of dynamic libraries on AmigaOS, at least up
13882 # to version 4, is to share data among multiple programs linked
13883 # with the same dynamic library. Since this doesn't match the
13884 # behavior of shared libraries on other platforms, we can't use
13885 # them.
13886 ld_shlibs_F77=no
13887 ;;
13888
13889 beos*)
13890 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13891 allow_undefined_flag_F77=unsupported
13892 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13893 # support --undefined. This deserves some investigation. FIXME
13894 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13895 else
13896 ld_shlibs_F77=no
13897 fi
13898 ;;
13899
13900 cygwin* | mingw* | pw32*)
13901 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13902 # as there is no search path for DLLs.
13903 hardcode_libdir_flag_spec_F77='-L$libdir'
13904 allow_undefined_flag_F77=unsupported
13905 always_export_symbols_F77=no
13906 enable_shared_with_static_runtimes_F77=yes
13907 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13908
13909 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13910 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13911 # If the export-symbols file already is a .def file (1st line
13912 # is EXPORTS), use it as is; otherwise, prepend...
13913 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13914 cp $export_symbols $output_objdir/$soname.def;
13915 else
13916 echo EXPORTS > $output_objdir/$soname.def;
13917 cat $export_symbols >> $output_objdir/$soname.def;
13918 fi~
13919 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13920 else
13921 ld_shlibs_F77=no
13922 fi
13923 ;;
13924
13925 interix3*)
13926 hardcode_direct_F77=no
13927 hardcode_shlibpath_var_F77=no
13928 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13929 export_dynamic_flag_spec_F77='${wl}-E'
13930 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13931 # Instead, shared libraries are loaded at an image base (0x10000000 by
13932 # default) and relocated if they conflict, which is a slow very memory
13933 # consuming and fragmenting process. To avoid this, we pick a random,
13934 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13935 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13936 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'
13937 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'
13938 ;;
13939
13940 linux*)
13941 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13942 tmp_addflag=
13943 case $cc_basename,$host_cpu in
13944 pgcc*) # Portland Group C compiler
13945 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'
13946 tmp_addflag=' $pic_flag'
13947 ;;
13948 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13949 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'
13950 tmp_addflag=' $pic_flag -Mnomain' ;;
13951 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13952 tmp_addflag=' -i_dynamic' ;;
13953 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13954 tmp_addflag=' -i_dynamic -nofor_main' ;;
13955 ifc* | ifort*) # Intel Fortran compiler
13956 tmp_addflag=' -nofor_main' ;;
13957 esac
13958 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13959
13960 if test $supports_anon_versioning = yes; then
13961 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13962 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13963 $echo "local: *; };" >> $output_objdir/$libname.ver~
13964 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13965 fi
13966 else
13967 ld_shlibs_F77=no
13968 fi
13969 ;;
13970
13971 netbsd*)
13972 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13973 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13974 wlarc=
13975 else
13976 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13977 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13978 fi
13979 ;;
13980
13981 solaris*)
13982 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13983 ld_shlibs_F77=no
13984 cat <<EOF 1>&2
13985
13986 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13987 *** create shared libraries on Solaris systems. Therefore, libtool
13988 *** is disabling shared libraries support. We urge you to upgrade GNU
13989 *** binutils to release 2.9.1 or newer. Another option is to modify
13990 *** your PATH or compiler configuration so that the native linker is
13991 *** used, and then restart.
13992
13993 EOF
13994 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13995 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13996 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13997 else
13998 ld_shlibs_F77=no
13999 fi
14000 ;;
14001
14002 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14003 case `$LD -v 2>&1` in
14004 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14005 ld_shlibs_F77=no
14006 cat <<_LT_EOF 1>&2
14007
14008 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14009 *** reliably create shared libraries on SCO systems. Therefore, libtool
14010 *** is disabling shared libraries support. We urge you to upgrade GNU
14011 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14012 *** your PATH or compiler configuration so that the native linker is
14013 *** used, and then restart.
14014
14015 _LT_EOF
14016 ;;
14017 *)
14018 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14019 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14020 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14021 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14022 else
14023 ld_shlibs_F77=no
14024 fi
14025 ;;
14026 esac
14027 ;;
14028
14029 sunos4*)
14030 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14031 wlarc=
14032 hardcode_direct_F77=yes
14033 hardcode_shlibpath_var_F77=no
14034 ;;
14035
14036 *)
14037 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14038 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14039 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14040 else
14041 ld_shlibs_F77=no
14042 fi
14043 ;;
14044 esac
14045
14046 if test "$ld_shlibs_F77" = no; then
14047 runpath_var=
14048 hardcode_libdir_flag_spec_F77=
14049 export_dynamic_flag_spec_F77=
14050 whole_archive_flag_spec_F77=
14051 fi
14052 else
14053 # PORTME fill in a description of your system's linker (not GNU ld)
14054 case $host_os in
14055 aix3*)
14056 allow_undefined_flag_F77=unsupported
14057 always_export_symbols_F77=yes
14058 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'
14059 # Note: this linker hardcodes the directories in LIBPATH if there
14060 # are no directories specified by -L.
14061 hardcode_minus_L_F77=yes
14062 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14063 # Neither direct hardcoding nor static linking is supported with a
14064 # broken collect2.
14065 hardcode_direct_F77=unsupported
14066 fi
14067 ;;
14068
14069 aix4* | aix5*)
14070 if test "$host_cpu" = ia64; then
14071 # On IA64, the linker does run time linking by default, so we don't
14072 # have to do anything special.
14073 aix_use_runtimelinking=no
14074 exp_sym_flag='-Bexport'
14075 no_entry_flag=""
14076 else
14077 # If we're using GNU nm, then we don't want the "-C" option.
14078 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14079 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14080 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'
14081 else
14082 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'
14083 fi
14084 aix_use_runtimelinking=no
14085
14086 # Test if we are trying to use run time linking or normal
14087 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14088 # need to do runtime linking.
14089 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14090 for ld_flag in $LDFLAGS; do
14091 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14092 aix_use_runtimelinking=yes
14093 break
14094 fi
14095 done
14096 ;;
14097 esac
14098
14099 exp_sym_flag='-bexport'
14100 no_entry_flag='-bnoentry'
14101 fi
14102
14103 # When large executables or shared objects are built, AIX ld can
14104 # have problems creating the table of contents. If linking a library
14105 # or program results in "error TOC overflow" add -mminimal-toc to
14106 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14107 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14108
14109 archive_cmds_F77=''
14110 hardcode_direct_F77=yes
14111 hardcode_libdir_separator_F77=':'
14112 link_all_deplibs_F77=yes
14113
14114 if test "$GCC" = yes; then
14115 case $host_os in aix4.[012]|aix4.[012].*)
14116 # We only want to do this on AIX 4.2 and lower, the check
14117 # below for broken collect2 doesn't work under 4.3+
14118 collect2name=`${CC} -print-prog-name=collect2`
14119 if test -f "$collect2name" && \
14120 strings "$collect2name" | grep resolve_lib_name >/dev/null
14121 then
14122 # We have reworked collect2
14123 hardcode_direct_F77=yes
14124 else
14125 # We have old collect2
14126 hardcode_direct_F77=unsupported
14127 # It fails to find uninstalled libraries when the uninstalled
14128 # path is not listed in the libpath. Setting hardcode_minus_L
14129 # to unsupported forces relinking
14130 hardcode_minus_L_F77=yes
14131 hardcode_libdir_flag_spec_F77='-L$libdir'
14132 hardcode_libdir_separator_F77=
14133 fi
14134 ;;
14135 esac
14136 shared_flag='-shared'
14137 if test "$aix_use_runtimelinking" = yes; then
14138 shared_flag="$shared_flag "'${wl}-G'
14139 fi
14140 else
14141 # not using gcc
14142 if test "$host_cpu" = ia64; then
14143 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14144 # chokes on -Wl,-G. The following line is correct:
14145 shared_flag='-G'
14146 else
14147 if test "$aix_use_runtimelinking" = yes; then
14148 shared_flag='${wl}-G'
14149 else
14150 shared_flag='${wl}-bM:SRE'
14151 fi
14152 fi
14153 fi
14154
14155 # It seems that -bexpall does not export symbols beginning with
14156 # underscore (_), so it is better to generate a list of symbols to export.
14157 always_export_symbols_F77=yes
14158 if test "$aix_use_runtimelinking" = yes; then
14159 # Warning - without using the other runtime loading flags (-brtl),
14160 # -berok will link without error, but may produce a broken library.
14161 allow_undefined_flag_F77='-berok'
14162 # Determine the default libpath from the value encoded in an empty executable.
14163 cat >conftest.$ac_ext <<_ACEOF
14164 program main
14165
14166 end
14167 _ACEOF
14168 rm -f conftest.$ac_objext conftest$ac_exeext
14169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14170 (eval $ac_link) 2>conftest.er1
14171 ac_status=$?
14172 grep -v '^ *+' conftest.er1 >conftest.err
14173 rm -f conftest.er1
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
14177 { ac_try='test -z "$ac_f77_werror_flag"
14178 || test ! -s conftest.err'
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14181 ac_status=$?
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; } &&
14184 { ac_try='test -s conftest$ac_exeext'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190
14191 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14192 }'`
14193 # Check for a 64-bit object if we didn't find anything.
14194 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; }
14195 }'`; fi
14196 else
14197 echo "$as_me: failed program was:" >&5
14198 sed 's/^/| /' conftest.$ac_ext >&5
14199
14200 fi
14201 rm -f conftest.err conftest.$ac_objext \
14202 conftest$ac_exeext conftest.$ac_ext
14203 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14204
14205 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14206 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"
14207 else
14208 if test "$host_cpu" = ia64; then
14209 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14210 allow_undefined_flag_F77="-z nodefs"
14211 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"
14212 else
14213 # Determine the default libpath from the value encoded in an empty executable.
14214 cat >conftest.$ac_ext <<_ACEOF
14215 program main
14216
14217 end
14218 _ACEOF
14219 rm -f conftest.$ac_objext conftest$ac_exeext
14220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14221 (eval $ac_link) 2>conftest.er1
14222 ac_status=$?
14223 grep -v '^ *+' conftest.er1 >conftest.err
14224 rm -f conftest.er1
14225 cat conftest.err >&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } &&
14228 { ac_try='test -z "$ac_f77_werror_flag"
14229 || test ! -s conftest.err'
14230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231 (eval $ac_try) 2>&5
14232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; } &&
14235 { ac_try='test -s conftest$ac_exeext'
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14238 ac_status=$?
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; }; then
14241
14242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14243 }'`
14244 # Check for a 64-bit object if we didn't find anything.
14245 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; }
14246 }'`; fi
14247 else
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14250
14251 fi
14252 rm -f conftest.err conftest.$ac_objext \
14253 conftest$ac_exeext conftest.$ac_ext
14254 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14255
14256 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14257 # Warning - without using the other run time loading flags,
14258 # -berok will link without error, but may produce a broken library.
14259 no_undefined_flag_F77=' ${wl}-bernotok'
14260 allow_undefined_flag_F77=' ${wl}-berok'
14261 # Exported symbols can be pulled into shared objects from archives
14262 whole_archive_flag_spec_F77='$convenience'
14263 archive_cmds_need_lc_F77=yes
14264 # This is similar to how AIX traditionally builds its shared libraries.
14265 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'
14266 fi
14267 fi
14268 ;;
14269
14270 amigaos*)
14271 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)'
14272 hardcode_libdir_flag_spec_F77='-L$libdir'
14273 hardcode_minus_L_F77=yes
14274 # see comment about different semantics on the GNU ld section
14275 ld_shlibs_F77=no
14276 ;;
14277
14278 bsdi[45]*)
14279 export_dynamic_flag_spec_F77=-rdynamic
14280 ;;
14281
14282 cygwin* | mingw* | pw32*)
14283 # When not using gcc, we currently assume that we are using
14284 # Microsoft Visual C++.
14285 # hardcode_libdir_flag_spec is actually meaningless, as there is
14286 # no search path for DLLs.
14287 hardcode_libdir_flag_spec_F77=' '
14288 allow_undefined_flag_F77=unsupported
14289 # Tell ltmain to make .lib files, not .a files.
14290 libext=lib
14291 # Tell ltmain to make .dll files, not .so files.
14292 shrext_cmds=".dll"
14293 # FIXME: Setting linknames here is a bad hack.
14294 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14295 # The linker will automatically build a .lib file if we build a DLL.
14296 old_archive_From_new_cmds_F77='true'
14297 # FIXME: Should let the user specify the lib program.
14298 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14299 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14300 enable_shared_with_static_runtimes_F77=yes
14301 ;;
14302
14303 darwin* | rhapsody*)
14304 case $host_os in
14305 rhapsody* | darwin1.[012])
14306 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14307 ;;
14308 *) # Darwin 1.3 on
14309 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14310 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14311 else
14312 case ${MACOSX_DEPLOYMENT_TARGET} in
14313 10.[012])
14314 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14315 ;;
14316 10.*)
14317 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14318 ;;
14319 esac
14320 fi
14321 ;;
14322 esac
14323 archive_cmds_need_lc_F77=no
14324 hardcode_direct_F77=no
14325 hardcode_automatic_F77=yes
14326 hardcode_shlibpath_var_F77=unsupported
14327 whole_archive_flag_spec_F77=''
14328 link_all_deplibs_F77=yes
14329 if test "$GCC" = yes ; then
14330 output_verbose_link_cmd='echo'
14331 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14332 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14333 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14334 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}'
14335 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}'
14336 else
14337 case $cc_basename in
14338 xlc*)
14339 output_verbose_link_cmd='echo'
14340 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14341 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14342 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14343 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}'
14344 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}'
14345 ;;
14346 *)
14347 ld_shlibs_F77=no
14348 ;;
14349 esac
14350 fi
14351 ;;
14352
14353 dgux*)
14354 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14355 hardcode_libdir_flag_spec_F77='-L$libdir'
14356 hardcode_shlibpath_var_F77=no
14357 ;;
14358
14359 freebsd1*)
14360 ld_shlibs_F77=no
14361 ;;
14362
14363 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14364 # support. Future versions do this automatically, but an explicit c++rt0.o
14365 # does not break anything, and helps significantly (at the cost of a little
14366 # extra space).
14367 freebsd2.2*)
14368 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14369 hardcode_libdir_flag_spec_F77='-R$libdir'
14370 hardcode_direct_F77=yes
14371 hardcode_shlibpath_var_F77=no
14372 ;;
14373
14374 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14375 freebsd2*)
14376 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14377 hardcode_direct_F77=yes
14378 hardcode_minus_L_F77=yes
14379 hardcode_shlibpath_var_F77=no
14380 ;;
14381
14382 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14383 freebsd* | kfreebsd*-gnu | dragonfly*)
14384 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14385 hardcode_libdir_flag_spec_F77='-R$libdir'
14386 hardcode_direct_F77=yes
14387 hardcode_shlibpath_var_F77=no
14388 ;;
14389
14390 hpux9*)
14391 if test "$GCC" = yes; then
14392 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'
14393 else
14394 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'
14395 fi
14396 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14397 hardcode_libdir_separator_F77=:
14398 hardcode_direct_F77=yes
14399
14400 # hardcode_minus_L: Not really in the search PATH,
14401 # but as the default location of the library.
14402 hardcode_minus_L_F77=yes
14403 export_dynamic_flag_spec_F77='${wl}-E'
14404 ;;
14405
14406 hpux10*)
14407 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14408 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14409 else
14410 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14411 fi
14412 if test "$with_gnu_ld" = no; then
14413 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14414 hardcode_libdir_separator_F77=:
14415
14416 hardcode_direct_F77=yes
14417 export_dynamic_flag_spec_F77='${wl}-E'
14418
14419 # hardcode_minus_L: Not really in the search PATH,
14420 # but as the default location of the library.
14421 hardcode_minus_L_F77=yes
14422 fi
14423 ;;
14424
14425 hpux11*)
14426 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14427 case $host_cpu in
14428 hppa*64*)
14429 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14430 ;;
14431 ia64*)
14432 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14433 ;;
14434 *)
14435 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14436 ;;
14437 esac
14438 else
14439 case $host_cpu in
14440 hppa*64*)
14441 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14442 ;;
14443 ia64*)
14444 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14445 ;;
14446 *)
14447 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14448 ;;
14449 esac
14450 fi
14451 if test "$with_gnu_ld" = no; then
14452 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14453 hardcode_libdir_separator_F77=:
14454
14455 case $host_cpu in
14456 hppa*64*|ia64*)
14457 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14458 hardcode_direct_F77=no
14459 hardcode_shlibpath_var_F77=no
14460 ;;
14461 *)
14462 hardcode_direct_F77=yes
14463 export_dynamic_flag_spec_F77='${wl}-E'
14464
14465 # hardcode_minus_L: Not really in the search PATH,
14466 # but as the default location of the library.
14467 hardcode_minus_L_F77=yes
14468 ;;
14469 esac
14470 fi
14471 ;;
14472
14473 irix5* | irix6* | nonstopux*)
14474 if test "$GCC" = yes; then
14475 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'
14476 else
14477 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'
14478 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14479 fi
14480 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14481 hardcode_libdir_separator_F77=:
14482 link_all_deplibs_F77=yes
14483 ;;
14484
14485 netbsd*)
14486 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14487 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14488 else
14489 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14490 fi
14491 hardcode_libdir_flag_spec_F77='-R$libdir'
14492 hardcode_direct_F77=yes
14493 hardcode_shlibpath_var_F77=no
14494 ;;
14495
14496 newsos6)
14497 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14498 hardcode_direct_F77=yes
14499 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14500 hardcode_libdir_separator_F77=:
14501 hardcode_shlibpath_var_F77=no
14502 ;;
14503
14504 openbsd*)
14505 hardcode_direct_F77=yes
14506 hardcode_shlibpath_var_F77=no
14507 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14508 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14509 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14510 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14511 export_dynamic_flag_spec_F77='${wl}-E'
14512 else
14513 case $host_os in
14514 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14515 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14516 hardcode_libdir_flag_spec_F77='-R$libdir'
14517 ;;
14518 *)
14519 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14520 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14521 ;;
14522 esac
14523 fi
14524 ;;
14525
14526 os2*)
14527 hardcode_libdir_flag_spec_F77='-L$libdir'
14528 hardcode_minus_L_F77=yes
14529 allow_undefined_flag_F77=unsupported
14530 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'
14531 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14532 ;;
14533
14534 osf3*)
14535 if test "$GCC" = yes; then
14536 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14537 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'
14538 else
14539 allow_undefined_flag_F77=' -expect_unresolved \*'
14540 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'
14541 fi
14542 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14543 hardcode_libdir_separator_F77=:
14544 ;;
14545
14546 osf4* | osf5*) # as osf3* with the addition of -msym flag
14547 if test "$GCC" = yes; then
14548 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14549 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'
14550 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14551 else
14552 allow_undefined_flag_F77=' -expect_unresolved \*'
14553 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'
14554 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~
14555 $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'
14556
14557 # Both c and cxx compiler support -rpath directly
14558 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14559 fi
14560 hardcode_libdir_separator_F77=:
14561 ;;
14562
14563 solaris*)
14564 no_undefined_flag_F77=' -z text'
14565 if test "$GCC" = yes; then
14566 wlarc='${wl}'
14567 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14568 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14569 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14570 else
14571 wlarc=''
14572 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14573 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14574 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14575 fi
14576 hardcode_libdir_flag_spec_F77='-R$libdir'
14577 hardcode_shlibpath_var_F77=no
14578 case $host_os in
14579 solaris2.[0-5] | solaris2.[0-5].*) ;;
14580 *)
14581 # The compiler driver will combine linker options so we
14582 # cannot just pass the convience library names through
14583 # without $wl, iff we do not link with $LD.
14584 # Luckily, gcc supports the same syntax we need for Sun Studio.
14585 # Supported since Solaris 2.6 (maybe 2.5.1?)
14586 case $wlarc in
14587 '')
14588 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14589 *)
14590 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' ;;
14591 esac ;;
14592 esac
14593 link_all_deplibs_F77=yes
14594 ;;
14595
14596 sunos4*)
14597 if test "x$host_vendor" = xsequent; then
14598 # Use $CC to link under sequent, because it throws in some extra .o
14599 # files that make .init and .fini sections work.
14600 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14601 else
14602 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14603 fi
14604 hardcode_libdir_flag_spec_F77='-L$libdir'
14605 hardcode_direct_F77=yes
14606 hardcode_minus_L_F77=yes
14607 hardcode_shlibpath_var_F77=no
14608 ;;
14609
14610 sysv4)
14611 case $host_vendor in
14612 sni)
14613 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14614 hardcode_direct_F77=yes # is this really true???
14615 ;;
14616 siemens)
14617 ## LD is ld it makes a PLAMLIB
14618 ## CC just makes a GrossModule.
14619 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14620 reload_cmds_F77='$CC -r -o $output$reload_objs'
14621 hardcode_direct_F77=no
14622 ;;
14623 motorola)
14624 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14625 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14626 ;;
14627 esac
14628 runpath_var='LD_RUN_PATH'
14629 hardcode_shlibpath_var_F77=no
14630 ;;
14631
14632 sysv4.3*)
14633 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14634 hardcode_shlibpath_var_F77=no
14635 export_dynamic_flag_spec_F77='-Bexport'
14636 ;;
14637
14638 sysv4*MP*)
14639 if test -d /usr/nec; then
14640 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14641 hardcode_shlibpath_var_F77=no
14642 runpath_var=LD_RUN_PATH
14643 hardcode_runpath_var=yes
14644 ld_shlibs_F77=yes
14645 fi
14646 ;;
14647
14648 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14649 no_undefined_flag_F77='${wl}-z,text'
14650 archive_cmds_need_lc_F77=no
14651 hardcode_shlibpath_var_F77=no
14652 runpath_var='LD_RUN_PATH'
14653
14654 if test "$GCC" = yes; then
14655 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14656 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14657 else
14658 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14659 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14660 fi
14661 ;;
14662
14663 sysv5* | sco3.2v5* | sco5v6*)
14664 # Note: We can NOT use -z defs as we might desire, because we do not
14665 # link with -lc, and that would cause any symbols used from libc to
14666 # always be unresolved, which means just about no library would
14667 # ever link correctly. If we're not using GNU ld we use -z text
14668 # though, which does catch some bad symbols but isn't as heavy-handed
14669 # as -z defs.
14670 no_undefined_flag_F77='${wl}-z,text'
14671 allow_undefined_flag_F77='${wl}-z,nodefs'
14672 archive_cmds_need_lc_F77=no
14673 hardcode_shlibpath_var_F77=no
14674 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14675 hardcode_libdir_separator_F77=':'
14676 link_all_deplibs_F77=yes
14677 export_dynamic_flag_spec_F77='${wl}-Bexport'
14678 runpath_var='LD_RUN_PATH'
14679
14680 if test "$GCC" = yes; then
14681 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14682 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14683 else
14684 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14685 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14686 fi
14687 ;;
14688
14689 uts4*)
14690 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14691 hardcode_libdir_flag_spec_F77='-L$libdir'
14692 hardcode_shlibpath_var_F77=no
14693 ;;
14694
14695 *)
14696 ld_shlibs_F77=no
14697 ;;
14698 esac
14699 fi
14700
14701 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14702 echo "${ECHO_T}$ld_shlibs_F77" >&6
14703 test "$ld_shlibs_F77" = no && can_build_shared=no
14704
14705 #
14706 # Do we need to explicitly link libc?
14707 #
14708 case "x$archive_cmds_need_lc_F77" in
14709 x|xyes)
14710 # Assume -lc should be added
14711 archive_cmds_need_lc_F77=yes
14712
14713 if test "$enable_shared" = yes && test "$GCC" = yes; then
14714 case $archive_cmds_F77 in
14715 *'~'*)
14716 # FIXME: we may have to deal with multi-command sequences.
14717 ;;
14718 '$CC '*)
14719 # Test whether the compiler implicitly links with -lc since on some
14720 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14721 # to ld, don't add -lc before -lgcc.
14722 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14723 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14724 $rm conftest*
14725 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14726
14727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14728 (eval $ac_compile) 2>&5
14729 ac_status=$?
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } 2>conftest.err; then
14732 soname=conftest
14733 lib=conftest
14734 libobjs=conftest.$ac_objext
14735 deplibs=
14736 wl=$lt_prog_compiler_wl_F77
14737 pic_flag=$lt_prog_compiler_pic_F77
14738 compiler_flags=-v
14739 linker_flags=-v
14740 verstring=
14741 output_objdir=.
14742 libname=conftest
14743 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14744 allow_undefined_flag_F77=
14745 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14746 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14747 ac_status=$?
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); }
14750 then
14751 archive_cmds_need_lc_F77=no
14752 else
14753 archive_cmds_need_lc_F77=yes
14754 fi
14755 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14756 else
14757 cat conftest.err 1>&5
14758 fi
14759 $rm conftest*
14760 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14761 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14762 ;;
14763 esac
14764 fi
14765 ;;
14766 esac
14767
14768 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14769 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14770 library_names_spec=
14771 libname_spec='lib$name'
14772 soname_spec=
14773 shrext_cmds=".so"
14774 postinstall_cmds=
14775 postuninstall_cmds=
14776 finish_cmds=
14777 finish_eval=
14778 shlibpath_var=
14779 shlibpath_overrides_runpath=unknown
14780 version_type=none
14781 dynamic_linker="$host_os ld.so"
14782 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14783 if test "$GCC" = yes; then
14784 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14785 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14786 # if the path contains ";" then we assume it to be the separator
14787 # otherwise default to the standard path separator (i.e. ":") - it is
14788 # assumed that no part of a normal pathname contains ";" but that should
14789 # okay in the real world where ";" in dirpaths is itself problematic.
14790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14791 else
14792 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14793 fi
14794 else
14795 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14796 fi
14797 need_lib_prefix=unknown
14798 hardcode_into_libs=no
14799
14800 # when you set need_version to no, make sure it does not cause -set_version
14801 # flags to be left without arguments
14802 need_version=unknown
14803
14804 case $host_os in
14805 aix3*)
14806 version_type=linux
14807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14808 shlibpath_var=LIBPATH
14809
14810 # AIX 3 has no versioning support, so we append a major version to the name.
14811 soname_spec='${libname}${release}${shared_ext}$major'
14812 ;;
14813
14814 aix4* | aix5*)
14815 version_type=linux
14816 need_lib_prefix=no
14817 need_version=no
14818 hardcode_into_libs=yes
14819 if test "$host_cpu" = ia64; then
14820 # AIX 5 supports IA64
14821 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14822 shlibpath_var=LD_LIBRARY_PATH
14823 else
14824 # With GCC up to 2.95.x, collect2 would create an import file
14825 # for dependence libraries. The import file would start with
14826 # the line `#! .'. This would cause the generated library to
14827 # depend on `.', always an invalid library. This was fixed in
14828 # development snapshots of GCC prior to 3.0.
14829 case $host_os in
14830 aix4 | aix4.[01] | aix4.[01].*)
14831 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14832 echo ' yes '
14833 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14834 :
14835 else
14836 can_build_shared=no
14837 fi
14838 ;;
14839 esac
14840 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14841 # soname into executable. Probably we can add versioning support to
14842 # collect2, so additional links can be useful in future.
14843 if test "$aix_use_runtimelinking" = yes; then
14844 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14845 # instead of lib<name>.a to let people know that these are not
14846 # typical AIX shared libraries.
14847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14848 else
14849 # We preserve .a as extension for shared libraries through AIX4.2
14850 # and later when we are not doing run time linking.
14851 library_names_spec='${libname}${release}.a $libname.a'
14852 soname_spec='${libname}${release}${shared_ext}$major'
14853 fi
14854 shlibpath_var=LIBPATH
14855 fi
14856 ;;
14857
14858 amigaos*)
14859 library_names_spec='$libname.ixlibrary $libname.a'
14860 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14861 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'
14862 ;;
14863
14864 beos*)
14865 library_names_spec='${libname}${shared_ext}'
14866 dynamic_linker="$host_os ld.so"
14867 shlibpath_var=LIBRARY_PATH
14868 ;;
14869
14870 bsdi[45]*)
14871 version_type=linux
14872 need_version=no
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14874 soname_spec='${libname}${release}${shared_ext}$major'
14875 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14876 shlibpath_var=LD_LIBRARY_PATH
14877 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14878 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14879 # the default ld.so.conf also contains /usr/contrib/lib and
14880 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14881 # libtool to hard-code these into programs
14882 ;;
14883
14884 cygwin* | mingw* | pw32*)
14885 version_type=windows
14886 shrext_cmds=".dll"
14887 need_version=no
14888 need_lib_prefix=no
14889
14890 case $GCC,$host_os in
14891 yes,cygwin* | yes,mingw* | yes,pw32*)
14892 library_names_spec='$libname.dll.a'
14893 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14894 postinstall_cmds='base_file=`basename \${file}`~
14895 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14896 dldir=$destdir/`dirname \$dlpath`~
14897 test -d \$dldir || mkdir -p \$dldir~
14898 $install_prog $dir/$dlname \$dldir/$dlname~
14899 chmod a+x \$dldir/$dlname'
14900 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14901 dlpath=$dir/\$dldll~
14902 $rm \$dlpath'
14903 shlibpath_overrides_runpath=yes
14904
14905 case $host_os in
14906 cygwin*)
14907 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14908 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14909 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14910 ;;
14911 mingw*)
14912 # MinGW DLLs use traditional 'lib' prefix
14913 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14914 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14915 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14916 # It is most probably a Windows format PATH printed by
14917 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14918 # path with ; separators, and with drive letters. We can handle the
14919 # drive letters (cygwin fileutils understands them), so leave them,
14920 # especially as we might pass files found there to a mingw objdump,
14921 # which wouldn't understand a cygwinified path. Ahh.
14922 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14923 else
14924 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14925 fi
14926 ;;
14927 pw32*)
14928 # pw32 DLLs use 'pw' prefix rather than 'lib'
14929 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14930 ;;
14931 esac
14932 ;;
14933
14934 *)
14935 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14936 ;;
14937 esac
14938 dynamic_linker='Win32 ld.exe'
14939 # FIXME: first we should search . and the directory the executable is in
14940 shlibpath_var=PATH
14941 ;;
14942
14943 darwin* | rhapsody*)
14944 dynamic_linker="$host_os dyld"
14945 version_type=darwin
14946 need_lib_prefix=no
14947 need_version=no
14948 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14949 soname_spec='${libname}${release}${major}$shared_ext'
14950 shlibpath_overrides_runpath=yes
14951 shlibpath_var=DYLD_LIBRARY_PATH
14952 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14953 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14954 if test "$GCC" = yes; then
14955 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"`
14956 else
14957 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14958 fi
14959 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14960 ;;
14961
14962 dgux*)
14963 version_type=linux
14964 need_lib_prefix=no
14965 need_version=no
14966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14967 soname_spec='${libname}${release}${shared_ext}$major'
14968 shlibpath_var=LD_LIBRARY_PATH
14969 ;;
14970
14971 freebsd1*)
14972 dynamic_linker=no
14973 ;;
14974
14975 kfreebsd*-gnu)
14976 version_type=linux
14977 need_lib_prefix=no
14978 need_version=no
14979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14980 soname_spec='${libname}${release}${shared_ext}$major'
14981 shlibpath_var=LD_LIBRARY_PATH
14982 shlibpath_overrides_runpath=no
14983 hardcode_into_libs=yes
14984 dynamic_linker='GNU ld.so'
14985 ;;
14986
14987 freebsd* | dragonfly*)
14988 # DragonFly does not have aout. When/if they implement a new
14989 # versioning mechanism, adjust this.
14990 if test -x /usr/bin/objformat; then
14991 objformat=`/usr/bin/objformat`
14992 else
14993 case $host_os in
14994 freebsd[123]*) objformat=aout ;;
14995 *) objformat=elf ;;
14996 esac
14997 fi
14998 version_type=freebsd-$objformat
14999 case $version_type in
15000 freebsd-elf*)
15001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15002 need_version=no
15003 need_lib_prefix=no
15004 ;;
15005 freebsd-*)
15006 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15007 need_version=yes
15008 ;;
15009 esac
15010 shlibpath_var=LD_LIBRARY_PATH
15011 case $host_os in
15012 freebsd2*)
15013 shlibpath_overrides_runpath=yes
15014 ;;
15015 freebsd3.[01]* | freebsdelf3.[01]*)
15016 shlibpath_overrides_runpath=yes
15017 hardcode_into_libs=yes
15018 ;;
15019 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15020 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15021 shlibpath_overrides_runpath=no
15022 hardcode_into_libs=yes
15023 ;;
15024 freebsd*) # from 4.6 on
15025 shlibpath_overrides_runpath=yes
15026 hardcode_into_libs=yes
15027 ;;
15028 esac
15029 ;;
15030
15031 gnu*)
15032 version_type=linux
15033 need_lib_prefix=no
15034 need_version=no
15035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15036 soname_spec='${libname}${release}${shared_ext}$major'
15037 shlibpath_var=LD_LIBRARY_PATH
15038 hardcode_into_libs=yes
15039 ;;
15040
15041 hpux9* | hpux10* | hpux11*)
15042 # Give a soname corresponding to the major version so that dld.sl refuses to
15043 # link against other versions.
15044 version_type=sunos
15045 need_lib_prefix=no
15046 need_version=no
15047 case $host_cpu in
15048 ia64*)
15049 shrext_cmds='.so'
15050 hardcode_into_libs=yes
15051 dynamic_linker="$host_os dld.so"
15052 shlibpath_var=LD_LIBRARY_PATH
15053 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15055 soname_spec='${libname}${release}${shared_ext}$major'
15056 if test "X$HPUX_IA64_MODE" = X32; then
15057 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15058 else
15059 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15060 fi
15061 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15062 ;;
15063 hppa*64*)
15064 shrext_cmds='.sl'
15065 hardcode_into_libs=yes
15066 dynamic_linker="$host_os dld.sl"
15067 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15068 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15070 soname_spec='${libname}${release}${shared_ext}$major'
15071 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15072 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15073 ;;
15074 *)
15075 shrext_cmds='.sl'
15076 dynamic_linker="$host_os dld.sl"
15077 shlibpath_var=SHLIB_PATH
15078 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15080 soname_spec='${libname}${release}${shared_ext}$major'
15081 ;;
15082 esac
15083 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15084 postinstall_cmds='chmod 555 $lib'
15085 ;;
15086
15087 interix3*)
15088 version_type=linux
15089 need_lib_prefix=no
15090 need_version=no
15091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15092 soname_spec='${libname}${release}${shared_ext}$major'
15093 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15094 shlibpath_var=LD_LIBRARY_PATH
15095 shlibpath_overrides_runpath=no
15096 hardcode_into_libs=yes
15097 ;;
15098
15099 irix5* | irix6* | nonstopux*)
15100 case $host_os in
15101 nonstopux*) version_type=nonstopux ;;
15102 *)
15103 if test "$lt_cv_prog_gnu_ld" = yes; then
15104 version_type=linux
15105 else
15106 version_type=irix
15107 fi ;;
15108 esac
15109 need_lib_prefix=no
15110 need_version=no
15111 soname_spec='${libname}${release}${shared_ext}$major'
15112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15113 case $host_os in
15114 irix5* | nonstopux*)
15115 libsuff= shlibsuff=
15116 ;;
15117 *)
15118 case $LD in # libtool.m4 will add one of these switches to LD
15119 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15120 libsuff= shlibsuff= libmagic=32-bit;;
15121 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15122 libsuff=32 shlibsuff=N32 libmagic=N32;;
15123 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15124 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15125 *) libsuff= shlibsuff= libmagic=never-match;;
15126 esac
15127 ;;
15128 esac
15129 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15130 shlibpath_overrides_runpath=no
15131 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15132 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15133 hardcode_into_libs=yes
15134 ;;
15135
15136 # No shared lib support for Linux oldld, aout, or coff.
15137 linux*oldld* | linux*aout* | linux*coff*)
15138 dynamic_linker=no
15139 ;;
15140
15141 # This must be Linux ELF.
15142 linux*)
15143 version_type=linux
15144 need_lib_prefix=no
15145 need_version=no
15146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15147 soname_spec='${libname}${release}${shared_ext}$major'
15148 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15149 shlibpath_var=LD_LIBRARY_PATH
15150 shlibpath_overrides_runpath=no
15151 # This implies no fast_install, which is unacceptable.
15152 # Some rework will be needed to allow for fast_install
15153 # before this can be enabled.
15154 hardcode_into_libs=yes
15155
15156 # Append ld.so.conf contents to the search path
15157 if test -f /etc/ld.so.conf; then
15158 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' ' '`
15159 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15160 fi
15161
15162 # We used to test for /lib/ld.so.1 and disable shared libraries on
15163 # powerpc, because MkLinux only supported shared libraries with the
15164 # GNU dynamic linker. Since this was broken with cross compilers,
15165 # most powerpc-linux boxes support dynamic linking these days and
15166 # people can always --disable-shared, the test was removed, and we
15167 # assume the GNU/Linux dynamic linker is in use.
15168 dynamic_linker='GNU/Linux ld.so'
15169 ;;
15170
15171 knetbsd*-gnu)
15172 version_type=linux
15173 need_lib_prefix=no
15174 need_version=no
15175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15176 soname_spec='${libname}${release}${shared_ext}$major'
15177 shlibpath_var=LD_LIBRARY_PATH
15178 shlibpath_overrides_runpath=no
15179 hardcode_into_libs=yes
15180 dynamic_linker='GNU ld.so'
15181 ;;
15182
15183 netbsd*)
15184 version_type=sunos
15185 need_lib_prefix=no
15186 need_version=no
15187 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15190 dynamic_linker='NetBSD (a.out) ld.so'
15191 else
15192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15193 soname_spec='${libname}${release}${shared_ext}$major'
15194 dynamic_linker='NetBSD ld.elf_so'
15195 fi
15196 shlibpath_var=LD_LIBRARY_PATH
15197 shlibpath_overrides_runpath=yes
15198 hardcode_into_libs=yes
15199 ;;
15200
15201 newsos6)
15202 version_type=linux
15203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15204 shlibpath_var=LD_LIBRARY_PATH
15205 shlibpath_overrides_runpath=yes
15206 ;;
15207
15208 nto-qnx*)
15209 version_type=linux
15210 need_lib_prefix=no
15211 need_version=no
15212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15213 soname_spec='${libname}${release}${shared_ext}$major'
15214 shlibpath_var=LD_LIBRARY_PATH
15215 shlibpath_overrides_runpath=yes
15216 ;;
15217
15218 openbsd*)
15219 version_type=sunos
15220 sys_lib_dlsearch_path_spec="/usr/lib"
15221 need_lib_prefix=no
15222 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15223 case $host_os in
15224 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15225 *) need_version=no ;;
15226 esac
15227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15229 shlibpath_var=LD_LIBRARY_PATH
15230 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15231 case $host_os in
15232 openbsd2.[89] | openbsd2.[89].*)
15233 shlibpath_overrides_runpath=no
15234 ;;
15235 *)
15236 shlibpath_overrides_runpath=yes
15237 ;;
15238 esac
15239 else
15240 shlibpath_overrides_runpath=yes
15241 fi
15242 ;;
15243
15244 os2*)
15245 libname_spec='$name'
15246 shrext_cmds=".dll"
15247 need_lib_prefix=no
15248 library_names_spec='$libname${shared_ext} $libname.a'
15249 dynamic_linker='OS/2 ld.exe'
15250 shlibpath_var=LIBPATH
15251 ;;
15252
15253 osf3* | osf4* | osf5*)
15254 version_type=osf
15255 need_lib_prefix=no
15256 need_version=no
15257 soname_spec='${libname}${release}${shared_ext}$major'
15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15259 shlibpath_var=LD_LIBRARY_PATH
15260 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15261 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15262 ;;
15263
15264 solaris*)
15265 version_type=linux
15266 need_lib_prefix=no
15267 need_version=no
15268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15269 soname_spec='${libname}${release}${shared_ext}$major'
15270 shlibpath_var=LD_LIBRARY_PATH
15271 shlibpath_overrides_runpath=yes
15272 hardcode_into_libs=yes
15273 # ldd complains unless libraries are executable
15274 postinstall_cmds='chmod +x $lib'
15275 ;;
15276
15277 sunos4*)
15278 version_type=sunos
15279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15280 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15281 shlibpath_var=LD_LIBRARY_PATH
15282 shlibpath_overrides_runpath=yes
15283 if test "$with_gnu_ld" = yes; then
15284 need_lib_prefix=no
15285 fi
15286 need_version=yes
15287 ;;
15288
15289 sysv4 | sysv4.3*)
15290 version_type=linux
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15292 soname_spec='${libname}${release}${shared_ext}$major'
15293 shlibpath_var=LD_LIBRARY_PATH
15294 case $host_vendor in
15295 sni)
15296 shlibpath_overrides_runpath=no
15297 need_lib_prefix=no
15298 export_dynamic_flag_spec='${wl}-Blargedynsym'
15299 runpath_var=LD_RUN_PATH
15300 ;;
15301 siemens)
15302 need_lib_prefix=no
15303 ;;
15304 motorola)
15305 need_lib_prefix=no
15306 need_version=no
15307 shlibpath_overrides_runpath=no
15308 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15309 ;;
15310 esac
15311 ;;
15312
15313 sysv4*MP*)
15314 if test -d /usr/nec ;then
15315 version_type=linux
15316 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15317 soname_spec='$libname${shared_ext}.$major'
15318 shlibpath_var=LD_LIBRARY_PATH
15319 fi
15320 ;;
15321
15322 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15323 version_type=freebsd-elf
15324 need_lib_prefix=no
15325 need_version=no
15326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15327 soname_spec='${libname}${release}${shared_ext}$major'
15328 shlibpath_var=LD_LIBRARY_PATH
15329 hardcode_into_libs=yes
15330 if test "$with_gnu_ld" = yes; then
15331 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15332 shlibpath_overrides_runpath=no
15333 else
15334 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15335 shlibpath_overrides_runpath=yes
15336 case $host_os in
15337 sco3.2v5*)
15338 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15339 ;;
15340 esac
15341 fi
15342 sys_lib_dlsearch_path_spec='/usr/lib'
15343 ;;
15344
15345 uts4*)
15346 version_type=linux
15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15348 soname_spec='${libname}${release}${shared_ext}$major'
15349 shlibpath_var=LD_LIBRARY_PATH
15350 ;;
15351
15352 *)
15353 dynamic_linker=no
15354 ;;
15355 esac
15356 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15357 echo "${ECHO_T}$dynamic_linker" >&6
15358 test "$dynamic_linker" = no && can_build_shared=no
15359
15360 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15361 if test "$GCC" = yes; then
15362 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15363 fi
15364
15365 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15366 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15367 hardcode_action_F77=
15368 if test -n "$hardcode_libdir_flag_spec_F77" || \
15369 test -n "$runpath_var_F77" || \
15370 test "X$hardcode_automatic_F77" = "Xyes" ; then
15371
15372 # We can hardcode non-existant directories.
15373 if test "$hardcode_direct_F77" != no &&
15374 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15375 # have to relink, otherwise we might link with an installed library
15376 # when we should be linking with a yet-to-be-installed one
15377 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15378 test "$hardcode_minus_L_F77" != no; then
15379 # Linking always hardcodes the temporary library directory.
15380 hardcode_action_F77=relink
15381 else
15382 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15383 hardcode_action_F77=immediate
15384 fi
15385 else
15386 # We cannot hardcode anything, or else we can only hardcode existing
15387 # directories.
15388 hardcode_action_F77=unsupported
15389 fi
15390 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15391 echo "${ECHO_T}$hardcode_action_F77" >&6
15392
15393 if test "$hardcode_action_F77" = relink; then
15394 # Fast installation is not supported
15395 enable_fast_install=no
15396 elif test "$shlibpath_overrides_runpath" = yes ||
15397 test "$enable_shared" = no; then
15398 # Fast installation is not necessary
15399 enable_fast_install=needless
15400 fi
15401
15402
15403 # The else clause should only fire when bootstrapping the
15404 # libtool distribution, otherwise you forgot to ship ltmain.sh
15405 # with your package, and you will get complaints that there are
15406 # no rules to generate ltmain.sh.
15407 if test -f "$ltmain"; then
15408 # See if we are running on zsh, and set the options which allow our commands through
15409 # without removal of \ escapes.
15410 if test -n "${ZSH_VERSION+set}" ; then
15411 setopt NO_GLOB_SUBST
15412 fi
15413 # Now quote all the things that may contain metacharacters while being
15414 # careful not to overquote the AC_SUBSTed values. We take copies of the
15415 # variables and quote the copies for generation of the libtool script.
15416 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15417 SED SHELL STRIP \
15418 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15419 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15420 deplibs_check_method reload_flag reload_cmds need_locks \
15421 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15422 lt_cv_sys_global_symbol_to_c_name_address \
15423 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15424 old_postinstall_cmds old_postuninstall_cmds \
15425 compiler_F77 \
15426 CC_F77 \
15427 LD_F77 \
15428 lt_prog_compiler_wl_F77 \
15429 lt_prog_compiler_pic_F77 \
15430 lt_prog_compiler_static_F77 \
15431 lt_prog_compiler_no_builtin_flag_F77 \
15432 export_dynamic_flag_spec_F77 \
15433 thread_safe_flag_spec_F77 \
15434 whole_archive_flag_spec_F77 \
15435 enable_shared_with_static_runtimes_F77 \
15436 old_archive_cmds_F77 \
15437 old_archive_from_new_cmds_F77 \
15438 predep_objects_F77 \
15439 postdep_objects_F77 \
15440 predeps_F77 \
15441 postdeps_F77 \
15442 compiler_lib_search_path_F77 \
15443 archive_cmds_F77 \
15444 archive_expsym_cmds_F77 \
15445 postinstall_cmds_F77 \
15446 postuninstall_cmds_F77 \
15447 old_archive_from_expsyms_cmds_F77 \
15448 allow_undefined_flag_F77 \
15449 no_undefined_flag_F77 \
15450 export_symbols_cmds_F77 \
15451 hardcode_libdir_flag_spec_F77 \
15452 hardcode_libdir_flag_spec_ld_F77 \
15453 hardcode_libdir_separator_F77 \
15454 hardcode_automatic_F77 \
15455 module_cmds_F77 \
15456 module_expsym_cmds_F77 \
15457 lt_cv_prog_compiler_c_o_F77 \
15458 exclude_expsyms_F77 \
15459 include_expsyms_F77; do
15460
15461 case $var in
15462 old_archive_cmds_F77 | \
15463 old_archive_from_new_cmds_F77 | \
15464 archive_cmds_F77 | \
15465 archive_expsym_cmds_F77 | \
15466 module_cmds_F77 | \
15467 module_expsym_cmds_F77 | \
15468 old_archive_from_expsyms_cmds_F77 | \
15469 export_symbols_cmds_F77 | \
15470 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15471 postinstall_cmds | postuninstall_cmds | \
15472 old_postinstall_cmds | old_postuninstall_cmds | \
15473 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15474 # Double-quote double-evaled strings.
15475 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15476 ;;
15477 *)
15478 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15479 ;;
15480 esac
15481 done
15482
15483 case $lt_echo in
15484 *'\$0 --fallback-echo"')
15485 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15486 ;;
15487 esac
15488
15489 cfgfile="$ofile"
15490
15491 cat <<__EOF__ >> "$cfgfile"
15492 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15493
15494 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15495
15496 # Shell to use when invoking shell scripts.
15497 SHELL=$lt_SHELL
15498
15499 # Whether or not to build shared libraries.
15500 build_libtool_libs=$enable_shared
15501
15502 # Whether or not to build static libraries.
15503 build_old_libs=$enable_static
15504
15505 # Whether or not to add -lc for building shared libraries.
15506 build_libtool_need_lc=$archive_cmds_need_lc_F77
15507
15508 # Whether or not to disallow shared libs when runtime libs are static
15509 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15510
15511 # Whether or not to optimize for fast installation.
15512 fast_install=$enable_fast_install
15513
15514 # The host system.
15515 host_alias=$host_alias
15516 host=$host
15517 host_os=$host_os
15518
15519 # The build system.
15520 build_alias=$build_alias
15521 build=$build
15522 build_os=$build_os
15523
15524 # An echo program that does not interpret backslashes.
15525 echo=$lt_echo
15526
15527 # The archiver.
15528 AR=$lt_AR
15529 AR_FLAGS=$lt_AR_FLAGS
15530
15531 # A C compiler.
15532 LTCC=$lt_LTCC
15533
15534 # LTCC compiler flags.
15535 LTCFLAGS=$lt_LTCFLAGS
15536
15537 # A language-specific compiler.
15538 CC=$lt_compiler_F77
15539
15540 # Is the compiler the GNU C compiler?
15541 with_gcc=$GCC_F77
15542
15543 # An ERE matcher.
15544 EGREP=$lt_EGREP
15545
15546 # The linker used to build libraries.
15547 LD=$lt_LD_F77
15548
15549 # Whether we need hard or soft links.
15550 LN_S=$lt_LN_S
15551
15552 # A BSD-compatible nm program.
15553 NM=$lt_NM
15554
15555 # A symbol stripping program
15556 STRIP=$lt_STRIP
15557
15558 # Used to examine libraries when file_magic_cmd begins "file"
15559 MAGIC_CMD=$MAGIC_CMD
15560
15561 # Used on cygwin: DLL creation program.
15562 DLLTOOL="$DLLTOOL"
15563
15564 # Used on cygwin: object dumper.
15565 OBJDUMP="$OBJDUMP"
15566
15567 # Used on cygwin: assembler.
15568 AS="$AS"
15569
15570 # The name of the directory that contains temporary libtool files.
15571 objdir=$objdir
15572
15573 # How to create reloadable object files.
15574 reload_flag=$lt_reload_flag
15575 reload_cmds=$lt_reload_cmds
15576
15577 # How to pass a linker flag through the compiler.
15578 wl=$lt_lt_prog_compiler_wl_F77
15579
15580 # Object file suffix (normally "o").
15581 objext="$ac_objext"
15582
15583 # Old archive suffix (normally "a").
15584 libext="$libext"
15585
15586 # Shared library suffix (normally ".so").
15587 shrext_cmds='$shrext_cmds'
15588
15589 # Executable file suffix (normally "").
15590 exeext="$exeext"
15591
15592 # Additional compiler flags for building library objects.
15593 pic_flag=$lt_lt_prog_compiler_pic_F77
15594 pic_mode=$pic_mode
15595
15596 # What is the maximum length of a command?
15597 max_cmd_len=$lt_cv_sys_max_cmd_len
15598
15599 # Does compiler simultaneously support -c and -o options?
15600 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15601
15602 # Must we lock files when doing compilation?
15603 need_locks=$lt_need_locks
15604
15605 # Do we need the lib prefix for modules?
15606 need_lib_prefix=$need_lib_prefix
15607
15608 # Do we need a version for libraries?
15609 need_version=$need_version
15610
15611 # Whether dlopen is supported.
15612 dlopen_support=$enable_dlopen
15613
15614 # Whether dlopen of programs is supported.
15615 dlopen_self=$enable_dlopen_self
15616
15617 # Whether dlopen of statically linked programs is supported.
15618 dlopen_self_static=$enable_dlopen_self_static
15619
15620 # Compiler flag to prevent dynamic linking.
15621 link_static_flag=$lt_lt_prog_compiler_static_F77
15622
15623 # Compiler flag to turn off builtin functions.
15624 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15625
15626 # Compiler flag to allow reflexive dlopens.
15627 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15628
15629 # Compiler flag to generate shared objects directly from archives.
15630 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15631
15632 # Compiler flag to generate thread-safe objects.
15633 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15634
15635 # Library versioning type.
15636 version_type=$version_type
15637
15638 # Format of library name prefix.
15639 libname_spec=$lt_libname_spec
15640
15641 # List of archive names. First name is the real one, the rest are links.
15642 # The last name is the one that the linker finds with -lNAME.
15643 library_names_spec=$lt_library_names_spec
15644
15645 # The coded name of the library, if different from the real name.
15646 soname_spec=$lt_soname_spec
15647
15648 # Commands used to build and install an old-style archive.
15649 RANLIB=$lt_RANLIB
15650 old_archive_cmds=$lt_old_archive_cmds_F77
15651 old_postinstall_cmds=$lt_old_postinstall_cmds
15652 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15653
15654 # Create an old-style archive from a shared archive.
15655 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15656
15657 # Create a temporary old-style archive to link instead of a shared archive.
15658 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15659
15660 # Commands used to build and install a shared archive.
15661 archive_cmds=$lt_archive_cmds_F77
15662 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15663 postinstall_cmds=$lt_postinstall_cmds
15664 postuninstall_cmds=$lt_postuninstall_cmds
15665
15666 # Commands used to build a loadable module (assumed same as above if empty)
15667 module_cmds=$lt_module_cmds_F77
15668 module_expsym_cmds=$lt_module_expsym_cmds_F77
15669
15670 # Commands to strip libraries.
15671 old_striplib=$lt_old_striplib
15672 striplib=$lt_striplib
15673
15674 # Dependencies to place before the objects being linked to create a
15675 # shared library.
15676 predep_objects=$lt_predep_objects_F77
15677
15678 # Dependencies to place after the objects being linked to create a
15679 # shared library.
15680 postdep_objects=$lt_postdep_objects_F77
15681
15682 # Dependencies to place before the objects being linked to create a
15683 # shared library.
15684 predeps=$lt_predeps_F77
15685
15686 # Dependencies to place after the objects being linked to create a
15687 # shared library.
15688 postdeps=$lt_postdeps_F77
15689
15690 # The library search path used internally by the compiler when linking
15691 # a shared library.
15692 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15693
15694 # Method to check whether dependent libraries are shared objects.
15695 deplibs_check_method=$lt_deplibs_check_method
15696
15697 # Command to use when deplibs_check_method == file_magic.
15698 file_magic_cmd=$lt_file_magic_cmd
15699
15700 # Flag that allows shared libraries with undefined symbols to be built.
15701 allow_undefined_flag=$lt_allow_undefined_flag_F77
15702
15703 # Flag that forces no undefined symbols.
15704 no_undefined_flag=$lt_no_undefined_flag_F77
15705
15706 # Commands used to finish a libtool library installation in a directory.
15707 finish_cmds=$lt_finish_cmds
15708
15709 # Same as above, but a single script fragment to be evaled but not shown.
15710 finish_eval=$lt_finish_eval
15711
15712 # Take the output of nm and produce a listing of raw symbols and C names.
15713 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15714
15715 # Transform the output of nm in a proper C declaration
15716 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15717
15718 # Transform the output of nm in a C name address pair
15719 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15720
15721 # This is the shared library runtime path variable.
15722 runpath_var=$runpath_var
15723
15724 # This is the shared library path variable.
15725 shlibpath_var=$shlibpath_var
15726
15727 # Is shlibpath searched before the hard-coded library search path?
15728 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15729
15730 # How to hardcode a shared library path into an executable.
15731 hardcode_action=$hardcode_action_F77
15732
15733 # Whether we should hardcode library paths into libraries.
15734 hardcode_into_libs=$hardcode_into_libs
15735
15736 # Flag to hardcode \$libdir into a binary during linking.
15737 # This must work even if \$libdir does not exist.
15738 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15739
15740 # If ld is used when linking, flag to hardcode \$libdir into
15741 # a binary during linking. This must work even if \$libdir does
15742 # not exist.
15743 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15744
15745 # Whether we need a single -rpath flag with a separated argument.
15746 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15747
15748 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15749 # resulting binary.
15750 hardcode_direct=$hardcode_direct_F77
15751
15752 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15753 # resulting binary.
15754 hardcode_minus_L=$hardcode_minus_L_F77
15755
15756 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15757 # the resulting binary.
15758 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15759
15760 # Set to yes if building a shared library automatically hardcodes DIR into the library
15761 # and all subsequent libraries and executables linked against it.
15762 hardcode_automatic=$hardcode_automatic_F77
15763
15764 # Variables whose values should be saved in libtool wrapper scripts and
15765 # restored at relink time.
15766 variables_saved_for_relink="$variables_saved_for_relink"
15767
15768 # Whether libtool must link a program against all its dependency libraries.
15769 link_all_deplibs=$link_all_deplibs_F77
15770
15771 # Compile-time system search path for libraries
15772 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15773
15774 # Run-time system search path for libraries
15775 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15776
15777 # Fix the shell variable \$srcfile for the compiler.
15778 fix_srcfile_path="$fix_srcfile_path_F77"
15779
15780 # Set to yes if exported symbols are required.
15781 always_export_symbols=$always_export_symbols_F77
15782
15783 # The commands to list exported symbols.
15784 export_symbols_cmds=$lt_export_symbols_cmds_F77
15785
15786 # The commands to extract the exported symbol list from a shared archive.
15787 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15788
15789 # Symbols that should not be listed in the preloaded symbols.
15790 exclude_expsyms=$lt_exclude_expsyms_F77
15791
15792 # Symbols that must always be exported.
15793 include_expsyms=$lt_include_expsyms_F77
15794
15795 # ### END LIBTOOL TAG CONFIG: $tagname
15796
15797 __EOF__
15798
15799
15800 else
15801 # If there is no Makefile yet, we rely on a make rule to execute
15802 # `config.status --recheck' to rerun these tests and create the
15803 # libtool script then.
15804 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15805 if test -f "$ltmain_in"; then
15806 test -f Makefile && make "$ltmain"
15807 fi
15808 fi
15809
15810
15811 ac_ext=c
15812 ac_cpp='$CPP $CPPFLAGS'
15813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15816
15817 CC="$lt_save_CC"
15818
15819 else
15820 tagname=""
15821 fi
15822 ;;
15823
15824 GCJ)
15825 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15826
15827
15828
15829 # Source file extension for Java test sources.
15830 ac_ext=java
15831
15832 # Object file extension for compiled Java test sources.
15833 objext=o
15834 objext_GCJ=$objext
15835
15836 # Code to be used in simple compile tests
15837 lt_simple_compile_test_code="class foo {}\n"
15838
15839 # Code to be used in simple link tests
15840 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15841
15842 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15843
15844 # If no C compiler was specified, use CC.
15845 LTCC=${LTCC-"$CC"}
15846
15847 # If no C compiler flags were specified, use CFLAGS.
15848 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15849
15850 # Allow CC to be a program name with arguments.
15851 compiler=$CC
15852
15853
15854 # save warnings/boilerplate of simple test code
15855 ac_outfile=conftest.$ac_objext
15856 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15857 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15858 _lt_compiler_boilerplate=`cat conftest.err`
15859 $rm conftest*
15860
15861 ac_outfile=conftest.$ac_objext
15862 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15863 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15864 _lt_linker_boilerplate=`cat conftest.err`
15865 $rm conftest*
15866
15867
15868 # Allow CC to be a program name with arguments.
15869 lt_save_CC="$CC"
15870 CC=${GCJ-"gcj"}
15871 compiler=$CC
15872 compiler_GCJ=$CC
15873 for cc_temp in $compiler""; do
15874 case $cc_temp in
15875 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15876 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15877 \-*) ;;
15878 *) break;;
15879 esac
15880 done
15881 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15882
15883
15884 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15885 archive_cmds_need_lc_GCJ=no
15886
15887 old_archive_cmds_GCJ=$old_archive_cmds
15888
15889
15890 lt_prog_compiler_no_builtin_flag_GCJ=
15891
15892 if test "$GCC" = yes; then
15893 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15894
15895
15896 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15897 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15898 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15899 echo $ECHO_N "(cached) $ECHO_C" >&6
15900 else
15901 lt_cv_prog_compiler_rtti_exceptions=no
15902 ac_outfile=conftest.$ac_objext
15903 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15904 lt_compiler_flag="-fno-rtti -fno-exceptions"
15905 # Insert the option either (1) after the last *FLAGS variable, or
15906 # (2) before a word containing "conftest.", or (3) at the end.
15907 # Note that $ac_compile itself does not contain backslashes and begins
15908 # with a dollar sign (not a hyphen), so the echo should work correctly.
15909 # The option is referenced via a variable to avoid confusing sed.
15910 lt_compile=`echo "$ac_compile" | $SED \
15911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15913 -e 's:$: $lt_compiler_flag:'`
15914 (eval echo "\"\$as_me:15914: $lt_compile\"" >&5)
15915 (eval "$lt_compile" 2>conftest.err)
15916 ac_status=$?
15917 cat conftest.err >&5
15918 echo "$as_me:15918: \$? = $ac_status" >&5
15919 if (exit $ac_status) && test -s "$ac_outfile"; then
15920 # The compiler can only warn and ignore the option if not recognized
15921 # So say no if there are warnings other than the usual output.
15922 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15925 lt_cv_prog_compiler_rtti_exceptions=yes
15926 fi
15927 fi
15928 $rm conftest*
15929
15930 fi
15931 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15932 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15933
15934 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15935 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15936 else
15937 :
15938 fi
15939
15940 fi
15941
15942 lt_prog_compiler_wl_GCJ=
15943 lt_prog_compiler_pic_GCJ=
15944 lt_prog_compiler_static_GCJ=
15945
15946 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15947 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15948
15949 if test "$GCC" = yes; then
15950 lt_prog_compiler_wl_GCJ='-Wl,'
15951 lt_prog_compiler_static_GCJ='-static'
15952
15953 case $host_os in
15954 aix*)
15955 # All AIX code is PIC.
15956 if test "$host_cpu" = ia64; then
15957 # AIX 5 now supports IA64 processor
15958 lt_prog_compiler_static_GCJ='-Bstatic'
15959 fi
15960 ;;
15961
15962 amigaos*)
15963 # FIXME: we need at least 68020 code to build shared libraries, but
15964 # adding the `-m68020' flag to GCC prevents building anything better,
15965 # like `-m68040'.
15966 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15967 ;;
15968
15969 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15970 # PIC is the default for these OSes.
15971 ;;
15972
15973 mingw* | pw32* | os2*)
15974 # This hack is so that the source file can tell whether it is being
15975 # built for inclusion in a dll (and should export symbols for example).
15976 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15977 ;;
15978
15979 darwin* | rhapsody*)
15980 # PIC is the default on this platform
15981 # Common symbols not allowed in MH_DYLIB files
15982 lt_prog_compiler_pic_GCJ='-fno-common'
15983 ;;
15984
15985 interix3*)
15986 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15987 # Instead, we relocate shared libraries at runtime.
15988 ;;
15989
15990 msdosdjgpp*)
15991 # Just because we use GCC doesn't mean we suddenly get shared libraries
15992 # on systems that don't support them.
15993 lt_prog_compiler_can_build_shared_GCJ=no
15994 enable_shared=no
15995 ;;
15996
15997 sysv4*MP*)
15998 if test -d /usr/nec; then
15999 lt_prog_compiler_pic_GCJ=-Kconform_pic
16000 fi
16001 ;;
16002
16003 hpux*)
16004 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16005 # not for PA HP-UX.
16006 case $host_cpu in
16007 hppa*64*|ia64*)
16008 # +Z the default
16009 ;;
16010 *)
16011 lt_prog_compiler_pic_GCJ='-fPIC'
16012 ;;
16013 esac
16014 ;;
16015
16016 *)
16017 lt_prog_compiler_pic_GCJ='-fPIC'
16018 ;;
16019 esac
16020 else
16021 # PORTME Check for flag to pass linker flags through the system compiler.
16022 case $host_os in
16023 aix*)
16024 lt_prog_compiler_wl_GCJ='-Wl,'
16025 if test "$host_cpu" = ia64; then
16026 # AIX 5 now supports IA64 processor
16027 lt_prog_compiler_static_GCJ='-Bstatic'
16028 else
16029 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16030 fi
16031 ;;
16032 darwin*)
16033 # PIC is the default on this platform
16034 # Common symbols not allowed in MH_DYLIB files
16035 case $cc_basename in
16036 xlc*)
16037 lt_prog_compiler_pic_GCJ='-qnocommon'
16038 lt_prog_compiler_wl_GCJ='-Wl,'
16039 ;;
16040 esac
16041 ;;
16042
16043 mingw* | pw32* | os2*)
16044 # This hack is so that the source file can tell whether it is being
16045 # built for inclusion in a dll (and should export symbols for example).
16046 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16047 ;;
16048
16049 hpux9* | hpux10* | hpux11*)
16050 lt_prog_compiler_wl_GCJ='-Wl,'
16051 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16052 # not for PA HP-UX.
16053 case $host_cpu in
16054 hppa*64*|ia64*)
16055 # +Z the default
16056 ;;
16057 *)
16058 lt_prog_compiler_pic_GCJ='+Z'
16059 ;;
16060 esac
16061 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16062 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16063 ;;
16064
16065 irix5* | irix6* | nonstopux*)
16066 lt_prog_compiler_wl_GCJ='-Wl,'
16067 # PIC (with -KPIC) is the default.
16068 lt_prog_compiler_static_GCJ='-non_shared'
16069 ;;
16070
16071 newsos6)
16072 lt_prog_compiler_pic_GCJ='-KPIC'
16073 lt_prog_compiler_static_GCJ='-Bstatic'
16074 ;;
16075
16076 linux*)
16077 case $cc_basename in
16078 icc* | ecc*)
16079 lt_prog_compiler_wl_GCJ='-Wl,'
16080 lt_prog_compiler_pic_GCJ='-KPIC'
16081 lt_prog_compiler_static_GCJ='-static'
16082 ;;
16083 pgcc* | pgf77* | pgf90* | pgf95*)
16084 # Portland Group compilers (*not* the Pentium gcc compiler,
16085 # which looks to be a dead project)
16086 lt_prog_compiler_wl_GCJ='-Wl,'
16087 lt_prog_compiler_pic_GCJ='-fpic'
16088 lt_prog_compiler_static_GCJ='-Bstatic'
16089 ;;
16090 ccc*)
16091 lt_prog_compiler_wl_GCJ='-Wl,'
16092 # All Alpha code is PIC.
16093 lt_prog_compiler_static_GCJ='-non_shared'
16094 ;;
16095 esac
16096 ;;
16097
16098 osf3* | osf4* | osf5*)
16099 lt_prog_compiler_wl_GCJ='-Wl,'
16100 # All OSF/1 code is PIC.
16101 lt_prog_compiler_static_GCJ='-non_shared'
16102 ;;
16103
16104 solaris*)
16105 lt_prog_compiler_pic_GCJ='-KPIC'
16106 lt_prog_compiler_static_GCJ='-Bstatic'
16107 case $cc_basename in
16108 f77* | f90* | f95*)
16109 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16110 *)
16111 lt_prog_compiler_wl_GCJ='-Wl,';;
16112 esac
16113 ;;
16114
16115 sunos4*)
16116 lt_prog_compiler_wl_GCJ='-Qoption ld '
16117 lt_prog_compiler_pic_GCJ='-PIC'
16118 lt_prog_compiler_static_GCJ='-Bstatic'
16119 ;;
16120
16121 sysv4 | sysv4.2uw2* | sysv4.3*)
16122 lt_prog_compiler_wl_GCJ='-Wl,'
16123 lt_prog_compiler_pic_GCJ='-KPIC'
16124 lt_prog_compiler_static_GCJ='-Bstatic'
16125 ;;
16126
16127 sysv4*MP*)
16128 if test -d /usr/nec ;then
16129 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16130 lt_prog_compiler_static_GCJ='-Bstatic'
16131 fi
16132 ;;
16133
16134 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16135 lt_prog_compiler_wl_GCJ='-Wl,'
16136 lt_prog_compiler_pic_GCJ='-KPIC'
16137 lt_prog_compiler_static_GCJ='-Bstatic'
16138 ;;
16139
16140 unicos*)
16141 lt_prog_compiler_wl_GCJ='-Wl,'
16142 lt_prog_compiler_can_build_shared_GCJ=no
16143 ;;
16144
16145 uts4*)
16146 lt_prog_compiler_pic_GCJ='-pic'
16147 lt_prog_compiler_static_GCJ='-Bstatic'
16148 ;;
16149
16150 *)
16151 lt_prog_compiler_can_build_shared_GCJ=no
16152 ;;
16153 esac
16154 fi
16155
16156 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16157 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16158
16159 #
16160 # Check to make sure the PIC flag actually works.
16161 #
16162 if test -n "$lt_prog_compiler_pic_GCJ"; then
16163
16164 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16165 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16166 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16168 else
16169 lt_prog_compiler_pic_works_GCJ=no
16170 ac_outfile=conftest.$ac_objext
16171 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16172 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16173 # Insert the option either (1) after the last *FLAGS variable, or
16174 # (2) before a word containing "conftest.", or (3) at the end.
16175 # Note that $ac_compile itself does not contain backslashes and begins
16176 # with a dollar sign (not a hyphen), so the echo should work correctly.
16177 # The option is referenced via a variable to avoid confusing sed.
16178 lt_compile=`echo "$ac_compile" | $SED \
16179 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16181 -e 's:$: $lt_compiler_flag:'`
16182 (eval echo "\"\$as_me:16182: $lt_compile\"" >&5)
16183 (eval "$lt_compile" 2>conftest.err)
16184 ac_status=$?
16185 cat conftest.err >&5
16186 echo "$as_me:16186: \$? = $ac_status" >&5
16187 if (exit $ac_status) && test -s "$ac_outfile"; then
16188 # The compiler can only warn and ignore the option if not recognized
16189 # So say no if there are warnings other than the usual output.
16190 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16191 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16192 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16193 lt_prog_compiler_pic_works_GCJ=yes
16194 fi
16195 fi
16196 $rm conftest*
16197
16198 fi
16199 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16200 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16201
16202 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16203 case $lt_prog_compiler_pic_GCJ in
16204 "" | " "*) ;;
16205 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16206 esac
16207 else
16208 lt_prog_compiler_pic_GCJ=
16209 lt_prog_compiler_can_build_shared_GCJ=no
16210 fi
16211
16212 fi
16213 case $host_os in
16214 # For platforms which do not support PIC, -DPIC is meaningless:
16215 *djgpp*)
16216 lt_prog_compiler_pic_GCJ=
16217 ;;
16218 *)
16219 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16220 ;;
16221 esac
16222
16223 #
16224 # Check to make sure the static flag actually works.
16225 #
16226 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16227 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16228 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16229 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16230 echo $ECHO_N "(cached) $ECHO_C" >&6
16231 else
16232 lt_prog_compiler_static_works_GCJ=no
16233 save_LDFLAGS="$LDFLAGS"
16234 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16235 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16236 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16237 # The linker can only warn and ignore the option if not recognized
16238 # So say no if there are warnings
16239 if test -s conftest.err; then
16240 # Append any errors to the config.log.
16241 cat conftest.err 1>&5
16242 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16243 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16244 if diff conftest.exp conftest.er2 >/dev/null; then
16245 lt_prog_compiler_static_works_GCJ=yes
16246 fi
16247 else
16248 lt_prog_compiler_static_works_GCJ=yes
16249 fi
16250 fi
16251 $rm conftest*
16252 LDFLAGS="$save_LDFLAGS"
16253
16254 fi
16255 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16256 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16257
16258 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16259 :
16260 else
16261 lt_prog_compiler_static_GCJ=
16262 fi
16263
16264
16265 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16266 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16267 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16268 echo $ECHO_N "(cached) $ECHO_C" >&6
16269 else
16270 lt_cv_prog_compiler_c_o_GCJ=no
16271 $rm -r conftest 2>/dev/null
16272 mkdir conftest
16273 cd conftest
16274 mkdir out
16275 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16276
16277 lt_compiler_flag="-o out/conftest2.$ac_objext"
16278 # Insert the option either (1) after the last *FLAGS variable, or
16279 # (2) before a word containing "conftest.", or (3) at the end.
16280 # Note that $ac_compile itself does not contain backslashes and begins
16281 # with a dollar sign (not a hyphen), so the echo should work correctly.
16282 lt_compile=`echo "$ac_compile" | $SED \
16283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16285 -e 's:$: $lt_compiler_flag:'`
16286 (eval echo "\"\$as_me:16286: $lt_compile\"" >&5)
16287 (eval "$lt_compile" 2>out/conftest.err)
16288 ac_status=$?
16289 cat out/conftest.err >&5
16290 echo "$as_me:16290: \$? = $ac_status" >&5
16291 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16292 then
16293 # The compiler can only warn and ignore the option if not recognized
16294 # So say no if there are warnings
16295 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16296 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16297 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16298 lt_cv_prog_compiler_c_o_GCJ=yes
16299 fi
16300 fi
16301 chmod u+w . 2>&5
16302 $rm conftest*
16303 # SGI C++ compiler will create directory out/ii_files/ for
16304 # template instantiation
16305 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16306 $rm out/* && rmdir out
16307 cd ..
16308 rmdir conftest
16309 $rm conftest*
16310
16311 fi
16312 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16313 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16314
16315
16316 hard_links="nottested"
16317 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16318 # do not overwrite the value of need_locks provided by the user
16319 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16320 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16321 hard_links=yes
16322 $rm conftest*
16323 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16324 touch conftest.a
16325 ln conftest.a conftest.b 2>&5 || hard_links=no
16326 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16327 echo "$as_me:$LINENO: result: $hard_links" >&5
16328 echo "${ECHO_T}$hard_links" >&6
16329 if test "$hard_links" = no; then
16330 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16331 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16332 need_locks=warn
16333 fi
16334 else
16335 need_locks=no
16336 fi
16337
16338 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16339 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16340
16341 runpath_var=
16342 allow_undefined_flag_GCJ=
16343 enable_shared_with_static_runtimes_GCJ=no
16344 archive_cmds_GCJ=
16345 archive_expsym_cmds_GCJ=
16346 old_archive_From_new_cmds_GCJ=
16347 old_archive_from_expsyms_cmds_GCJ=
16348 export_dynamic_flag_spec_GCJ=
16349 whole_archive_flag_spec_GCJ=
16350 thread_safe_flag_spec_GCJ=
16351 hardcode_libdir_flag_spec_GCJ=
16352 hardcode_libdir_flag_spec_ld_GCJ=
16353 hardcode_libdir_separator_GCJ=
16354 hardcode_direct_GCJ=no
16355 hardcode_minus_L_GCJ=no
16356 hardcode_shlibpath_var_GCJ=unsupported
16357 link_all_deplibs_GCJ=unknown
16358 hardcode_automatic_GCJ=no
16359 module_cmds_GCJ=
16360 module_expsym_cmds_GCJ=
16361 always_export_symbols_GCJ=no
16362 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16363 # include_expsyms should be a list of space-separated symbols to be *always*
16364 # included in the symbol list
16365 include_expsyms_GCJ=
16366 # exclude_expsyms can be an extended regexp of symbols to exclude
16367 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16368 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16369 # as well as any symbol that contains `d'.
16370 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16371 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16372 # platforms (ab)use it in PIC code, but their linkers get confused if
16373 # the symbol is explicitly referenced. Since portable code cannot
16374 # rely on this symbol name, it's probably fine to never include it in
16375 # preloaded symbol tables.
16376 extract_expsyms_cmds=
16377 # Just being paranoid about ensuring that cc_basename is set.
16378 for cc_temp in $compiler""; do
16379 case $cc_temp in
16380 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16381 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16382 \-*) ;;
16383 *) break;;
16384 esac
16385 done
16386 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16387
16388 case $host_os in
16389 cygwin* | mingw* | pw32*)
16390 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16391 # When not using gcc, we currently assume that we are using
16392 # Microsoft Visual C++.
16393 if test "$GCC" != yes; then
16394 with_gnu_ld=no
16395 fi
16396 ;;
16397 interix*)
16398 # we just hope/assume this is gcc and not c89 (= MSVC++)
16399 with_gnu_ld=yes
16400 ;;
16401 openbsd*)
16402 with_gnu_ld=no
16403 ;;
16404 esac
16405
16406 ld_shlibs_GCJ=yes
16407 if test "$with_gnu_ld" = yes; then
16408 # If archive_cmds runs LD, not CC, wlarc should be empty
16409 wlarc='${wl}'
16410
16411 # Set some defaults for GNU ld with shared library support. These
16412 # are reset later if shared libraries are not supported. Putting them
16413 # here allows them to be overridden if necessary.
16414 runpath_var=LD_RUN_PATH
16415 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16416 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16417 # ancient GNU ld didn't support --whole-archive et. al.
16418 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16419 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16420 else
16421 whole_archive_flag_spec_GCJ=
16422 fi
16423 supports_anon_versioning=no
16424 case `$LD -v 2>/dev/null` in
16425 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16426 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16427 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16428 *\ 2.11.*) ;; # other 2.11 versions
16429 *) supports_anon_versioning=yes ;;
16430 esac
16431
16432 # See if GNU ld supports shared libraries.
16433 case $host_os in
16434 aix3* | aix4* | aix5*)
16435 # On AIX/PPC, the GNU linker is very broken
16436 if test "$host_cpu" != ia64; then
16437 ld_shlibs_GCJ=no
16438 cat <<EOF 1>&2
16439
16440 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16441 *** to be unable to reliably create shared libraries on AIX.
16442 *** Therefore, libtool is disabling shared libraries support. If you
16443 *** really care for shared libraries, you may want to modify your PATH
16444 *** so that a non-GNU linker is found, and then restart.
16445
16446 EOF
16447 fi
16448 ;;
16449
16450 amigaos*)
16451 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)'
16452 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16453 hardcode_minus_L_GCJ=yes
16454
16455 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16456 # that the semantics of dynamic libraries on AmigaOS, at least up
16457 # to version 4, is to share data among multiple programs linked
16458 # with the same dynamic library. Since this doesn't match the
16459 # behavior of shared libraries on other platforms, we can't use
16460 # them.
16461 ld_shlibs_GCJ=no
16462 ;;
16463
16464 beos*)
16465 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16466 allow_undefined_flag_GCJ=unsupported
16467 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16468 # support --undefined. This deserves some investigation. FIXME
16469 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16470 else
16471 ld_shlibs_GCJ=no
16472 fi
16473 ;;
16474
16475 cygwin* | mingw* | pw32*)
16476 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16477 # as there is no search path for DLLs.
16478 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16479 allow_undefined_flag_GCJ=unsupported
16480 always_export_symbols_GCJ=no
16481 enable_shared_with_static_runtimes_GCJ=yes
16482 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16483
16484 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16485 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16486 # If the export-symbols file already is a .def file (1st line
16487 # is EXPORTS), use it as is; otherwise, prepend...
16488 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16489 cp $export_symbols $output_objdir/$soname.def;
16490 else
16491 echo EXPORTS > $output_objdir/$soname.def;
16492 cat $export_symbols >> $output_objdir/$soname.def;
16493 fi~
16494 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16495 else
16496 ld_shlibs_GCJ=no
16497 fi
16498 ;;
16499
16500 interix3*)
16501 hardcode_direct_GCJ=no
16502 hardcode_shlibpath_var_GCJ=no
16503 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16504 export_dynamic_flag_spec_GCJ='${wl}-E'
16505 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16506 # Instead, shared libraries are loaded at an image base (0x10000000 by
16507 # default) and relocated if they conflict, which is a slow very memory
16508 # consuming and fragmenting process. To avoid this, we pick a random,
16509 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16510 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16511 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'
16512 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'
16513 ;;
16514
16515 linux*)
16516 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16517 tmp_addflag=
16518 case $cc_basename,$host_cpu in
16519 pgcc*) # Portland Group C compiler
16520 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'
16521 tmp_addflag=' $pic_flag'
16522 ;;
16523 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16524 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'
16525 tmp_addflag=' $pic_flag -Mnomain' ;;
16526 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16527 tmp_addflag=' -i_dynamic' ;;
16528 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16529 tmp_addflag=' -i_dynamic -nofor_main' ;;
16530 ifc* | ifort*) # Intel Fortran compiler
16531 tmp_addflag=' -nofor_main' ;;
16532 esac
16533 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16534
16535 if test $supports_anon_versioning = yes; then
16536 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16537 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16538 $echo "local: *; };" >> $output_objdir/$libname.ver~
16539 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16540 fi
16541 else
16542 ld_shlibs_GCJ=no
16543 fi
16544 ;;
16545
16546 netbsd*)
16547 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16548 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16549 wlarc=
16550 else
16551 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16552 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16553 fi
16554 ;;
16555
16556 solaris*)
16557 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16558 ld_shlibs_GCJ=no
16559 cat <<EOF 1>&2
16560
16561 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16562 *** create shared libraries on Solaris systems. Therefore, libtool
16563 *** is disabling shared libraries support. We urge you to upgrade GNU
16564 *** binutils to release 2.9.1 or newer. Another option is to modify
16565 *** your PATH or compiler configuration so that the native linker is
16566 *** used, and then restart.
16567
16568 EOF
16569 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16570 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16571 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16572 else
16573 ld_shlibs_GCJ=no
16574 fi
16575 ;;
16576
16577 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16578 case `$LD -v 2>&1` in
16579 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16580 ld_shlibs_GCJ=no
16581 cat <<_LT_EOF 1>&2
16582
16583 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16584 *** reliably create shared libraries on SCO systems. Therefore, libtool
16585 *** is disabling shared libraries support. We urge you to upgrade GNU
16586 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16587 *** your PATH or compiler configuration so that the native linker is
16588 *** used, and then restart.
16589
16590 _LT_EOF
16591 ;;
16592 *)
16593 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16594 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16595 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16596 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16597 else
16598 ld_shlibs_GCJ=no
16599 fi
16600 ;;
16601 esac
16602 ;;
16603
16604 sunos4*)
16605 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16606 wlarc=
16607 hardcode_direct_GCJ=yes
16608 hardcode_shlibpath_var_GCJ=no
16609 ;;
16610
16611 *)
16612 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16613 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16614 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16615 else
16616 ld_shlibs_GCJ=no
16617 fi
16618 ;;
16619 esac
16620
16621 if test "$ld_shlibs_GCJ" = no; then
16622 runpath_var=
16623 hardcode_libdir_flag_spec_GCJ=
16624 export_dynamic_flag_spec_GCJ=
16625 whole_archive_flag_spec_GCJ=
16626 fi
16627 else
16628 # PORTME fill in a description of your system's linker (not GNU ld)
16629 case $host_os in
16630 aix3*)
16631 allow_undefined_flag_GCJ=unsupported
16632 always_export_symbols_GCJ=yes
16633 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'
16634 # Note: this linker hardcodes the directories in LIBPATH if there
16635 # are no directories specified by -L.
16636 hardcode_minus_L_GCJ=yes
16637 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16638 # Neither direct hardcoding nor static linking is supported with a
16639 # broken collect2.
16640 hardcode_direct_GCJ=unsupported
16641 fi
16642 ;;
16643
16644 aix4* | aix5*)
16645 if test "$host_cpu" = ia64; then
16646 # On IA64, the linker does run time linking by default, so we don't
16647 # have to do anything special.
16648 aix_use_runtimelinking=no
16649 exp_sym_flag='-Bexport'
16650 no_entry_flag=""
16651 else
16652 # If we're using GNU nm, then we don't want the "-C" option.
16653 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16654 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16655 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'
16656 else
16657 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'
16658 fi
16659 aix_use_runtimelinking=no
16660
16661 # Test if we are trying to use run time linking or normal
16662 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16663 # need to do runtime linking.
16664 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16665 for ld_flag in $LDFLAGS; do
16666 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16667 aix_use_runtimelinking=yes
16668 break
16669 fi
16670 done
16671 ;;
16672 esac
16673
16674 exp_sym_flag='-bexport'
16675 no_entry_flag='-bnoentry'
16676 fi
16677
16678 # When large executables or shared objects are built, AIX ld can
16679 # have problems creating the table of contents. If linking a library
16680 # or program results in "error TOC overflow" add -mminimal-toc to
16681 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16682 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16683
16684 archive_cmds_GCJ=''
16685 hardcode_direct_GCJ=yes
16686 hardcode_libdir_separator_GCJ=':'
16687 link_all_deplibs_GCJ=yes
16688
16689 if test "$GCC" = yes; then
16690 case $host_os in aix4.[012]|aix4.[012].*)
16691 # We only want to do this on AIX 4.2 and lower, the check
16692 # below for broken collect2 doesn't work under 4.3+
16693 collect2name=`${CC} -print-prog-name=collect2`
16694 if test -f "$collect2name" && \
16695 strings "$collect2name" | grep resolve_lib_name >/dev/null
16696 then
16697 # We have reworked collect2
16698 hardcode_direct_GCJ=yes
16699 else
16700 # We have old collect2
16701 hardcode_direct_GCJ=unsupported
16702 # It fails to find uninstalled libraries when the uninstalled
16703 # path is not listed in the libpath. Setting hardcode_minus_L
16704 # to unsupported forces relinking
16705 hardcode_minus_L_GCJ=yes
16706 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16707 hardcode_libdir_separator_GCJ=
16708 fi
16709 ;;
16710 esac
16711 shared_flag='-shared'
16712 if test "$aix_use_runtimelinking" = yes; then
16713 shared_flag="$shared_flag "'${wl}-G'
16714 fi
16715 else
16716 # not using gcc
16717 if test "$host_cpu" = ia64; then
16718 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16719 # chokes on -Wl,-G. The following line is correct:
16720 shared_flag='-G'
16721 else
16722 if test "$aix_use_runtimelinking" = yes; then
16723 shared_flag='${wl}-G'
16724 else
16725 shared_flag='${wl}-bM:SRE'
16726 fi
16727 fi
16728 fi
16729
16730 # It seems that -bexpall does not export symbols beginning with
16731 # underscore (_), so it is better to generate a list of symbols to export.
16732 always_export_symbols_GCJ=yes
16733 if test "$aix_use_runtimelinking" = yes; then
16734 # Warning - without using the other runtime loading flags (-brtl),
16735 # -berok will link without error, but may produce a broken library.
16736 allow_undefined_flag_GCJ='-berok'
16737 # Determine the default libpath from the value encoded in an empty executable.
16738 cat >conftest.$ac_ext <<_ACEOF
16739 /* confdefs.h. */
16740 _ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h. */
16744
16745 int
16746 main ()
16747 {
16748
16749 ;
16750 return 0;
16751 }
16752 _ACEOF
16753 rm -f conftest.$ac_objext conftest$ac_exeext
16754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16755 (eval $ac_link) 2>conftest.er1
16756 ac_status=$?
16757 grep -v '^ *+' conftest.er1 >conftest.err
16758 rm -f conftest.er1
16759 cat conftest.err >&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } &&
16762 { ac_try='test -z "$ac_c_werror_flag"
16763 || test ! -s conftest.err'
16764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16765 (eval $ac_try) 2>&5
16766 ac_status=$?
16767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); }; } &&
16769 { ac_try='test -s conftest$ac_exeext'
16770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771 (eval $ac_try) 2>&5
16772 ac_status=$?
16773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774 (exit $ac_status); }; }; then
16775
16776 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16777 }'`
16778 # Check for a 64-bit object if we didn't find anything.
16779 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; }
16780 }'`; fi
16781 else
16782 echo "$as_me: failed program was:" >&5
16783 sed 's/^/| /' conftest.$ac_ext >&5
16784
16785 fi
16786 rm -f conftest.err conftest.$ac_objext \
16787 conftest$ac_exeext conftest.$ac_ext
16788 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16789
16790 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16791 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"
16792 else
16793 if test "$host_cpu" = ia64; then
16794 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16795 allow_undefined_flag_GCJ="-z nodefs"
16796 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"
16797 else
16798 # Determine the default libpath from the value encoded in an empty executable.
16799 cat >conftest.$ac_ext <<_ACEOF
16800 /* confdefs.h. */
16801 _ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h. */
16805
16806 int
16807 main ()
16808 {
16809
16810 ;
16811 return 0;
16812 }
16813 _ACEOF
16814 rm -f conftest.$ac_objext conftest$ac_exeext
16815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16816 (eval $ac_link) 2>conftest.er1
16817 ac_status=$?
16818 grep -v '^ *+' conftest.er1 >conftest.err
16819 rm -f conftest.er1
16820 cat conftest.err >&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } &&
16823 { ac_try='test -z "$ac_c_werror_flag"
16824 || test ! -s conftest.err'
16825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16826 (eval $ac_try) 2>&5
16827 ac_status=$?
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; } &&
16830 { ac_try='test -s conftest$ac_exeext'
16831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16832 (eval $ac_try) 2>&5
16833 ac_status=$?
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); }; }; then
16836
16837 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16838 }'`
16839 # Check for a 64-bit object if we didn't find anything.
16840 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; }
16841 }'`; fi
16842 else
16843 echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16845
16846 fi
16847 rm -f conftest.err conftest.$ac_objext \
16848 conftest$ac_exeext conftest.$ac_ext
16849 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16850
16851 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16852 # Warning - without using the other run time loading flags,
16853 # -berok will link without error, but may produce a broken library.
16854 no_undefined_flag_GCJ=' ${wl}-bernotok'
16855 allow_undefined_flag_GCJ=' ${wl}-berok'
16856 # Exported symbols can be pulled into shared objects from archives
16857 whole_archive_flag_spec_GCJ='$convenience'
16858 archive_cmds_need_lc_GCJ=yes
16859 # This is similar to how AIX traditionally builds its shared libraries.
16860 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'
16861 fi
16862 fi
16863 ;;
16864
16865 amigaos*)
16866 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)'
16867 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16868 hardcode_minus_L_GCJ=yes
16869 # see comment about different semantics on the GNU ld section
16870 ld_shlibs_GCJ=no
16871 ;;
16872
16873 bsdi[45]*)
16874 export_dynamic_flag_spec_GCJ=-rdynamic
16875 ;;
16876
16877 cygwin* | mingw* | pw32*)
16878 # When not using gcc, we currently assume that we are using
16879 # Microsoft Visual C++.
16880 # hardcode_libdir_flag_spec is actually meaningless, as there is
16881 # no search path for DLLs.
16882 hardcode_libdir_flag_spec_GCJ=' '
16883 allow_undefined_flag_GCJ=unsupported
16884 # Tell ltmain to make .lib files, not .a files.
16885 libext=lib
16886 # Tell ltmain to make .dll files, not .so files.
16887 shrext_cmds=".dll"
16888 # FIXME: Setting linknames here is a bad hack.
16889 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16890 # The linker will automatically build a .lib file if we build a DLL.
16891 old_archive_From_new_cmds_GCJ='true'
16892 # FIXME: Should let the user specify the lib program.
16893 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16894 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16895 enable_shared_with_static_runtimes_GCJ=yes
16896 ;;
16897
16898 darwin* | rhapsody*)
16899 case $host_os in
16900 rhapsody* | darwin1.[012])
16901 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16902 ;;
16903 *) # Darwin 1.3 on
16904 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16905 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16906 else
16907 case ${MACOSX_DEPLOYMENT_TARGET} in
16908 10.[012])
16909 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16910 ;;
16911 10.*)
16912 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16913 ;;
16914 esac
16915 fi
16916 ;;
16917 esac
16918 archive_cmds_need_lc_GCJ=no
16919 hardcode_direct_GCJ=no
16920 hardcode_automatic_GCJ=yes
16921 hardcode_shlibpath_var_GCJ=unsupported
16922 whole_archive_flag_spec_GCJ=''
16923 link_all_deplibs_GCJ=yes
16924 if test "$GCC" = yes ; then
16925 output_verbose_link_cmd='echo'
16926 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16927 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16928 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16929 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}'
16930 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}'
16931 else
16932 case $cc_basename in
16933 xlc*)
16934 output_verbose_link_cmd='echo'
16935 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16936 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16937 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16938 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}'
16939 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}'
16940 ;;
16941 *)
16942 ld_shlibs_GCJ=no
16943 ;;
16944 esac
16945 fi
16946 ;;
16947
16948 dgux*)
16949 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16950 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16951 hardcode_shlibpath_var_GCJ=no
16952 ;;
16953
16954 freebsd1*)
16955 ld_shlibs_GCJ=no
16956 ;;
16957
16958 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16959 # support. Future versions do this automatically, but an explicit c++rt0.o
16960 # does not break anything, and helps significantly (at the cost of a little
16961 # extra space).
16962 freebsd2.2*)
16963 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16964 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16965 hardcode_direct_GCJ=yes
16966 hardcode_shlibpath_var_GCJ=no
16967 ;;
16968
16969 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16970 freebsd2*)
16971 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16972 hardcode_direct_GCJ=yes
16973 hardcode_minus_L_GCJ=yes
16974 hardcode_shlibpath_var_GCJ=no
16975 ;;
16976
16977 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16978 freebsd* | kfreebsd*-gnu | dragonfly*)
16979 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16980 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16981 hardcode_direct_GCJ=yes
16982 hardcode_shlibpath_var_GCJ=no
16983 ;;
16984
16985 hpux9*)
16986 if test "$GCC" = yes; then
16987 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'
16988 else
16989 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'
16990 fi
16991 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16992 hardcode_libdir_separator_GCJ=:
16993 hardcode_direct_GCJ=yes
16994
16995 # hardcode_minus_L: Not really in the search PATH,
16996 # but as the default location of the library.
16997 hardcode_minus_L_GCJ=yes
16998 export_dynamic_flag_spec_GCJ='${wl}-E'
16999 ;;
17000
17001 hpux10*)
17002 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17003 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17004 else
17005 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17006 fi
17007 if test "$with_gnu_ld" = no; then
17008 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17009 hardcode_libdir_separator_GCJ=:
17010
17011 hardcode_direct_GCJ=yes
17012 export_dynamic_flag_spec_GCJ='${wl}-E'
17013
17014 # hardcode_minus_L: Not really in the search PATH,
17015 # but as the default location of the library.
17016 hardcode_minus_L_GCJ=yes
17017 fi
17018 ;;
17019
17020 hpux11*)
17021 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17022 case $host_cpu in
17023 hppa*64*)
17024 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17025 ;;
17026 ia64*)
17027 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17028 ;;
17029 *)
17030 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17031 ;;
17032 esac
17033 else
17034 case $host_cpu in
17035 hppa*64*)
17036 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17037 ;;
17038 ia64*)
17039 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17040 ;;
17041 *)
17042 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17043 ;;
17044 esac
17045 fi
17046 if test "$with_gnu_ld" = no; then
17047 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17048 hardcode_libdir_separator_GCJ=:
17049
17050 case $host_cpu in
17051 hppa*64*|ia64*)
17052 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17053 hardcode_direct_GCJ=no
17054 hardcode_shlibpath_var_GCJ=no
17055 ;;
17056 *)
17057 hardcode_direct_GCJ=yes
17058 export_dynamic_flag_spec_GCJ='${wl}-E'
17059
17060 # hardcode_minus_L: Not really in the search PATH,
17061 # but as the default location of the library.
17062 hardcode_minus_L_GCJ=yes
17063 ;;
17064 esac
17065 fi
17066 ;;
17067
17068 irix5* | irix6* | nonstopux*)
17069 if test "$GCC" = yes; then
17070 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'
17071 else
17072 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'
17073 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17074 fi
17075 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17076 hardcode_libdir_separator_GCJ=:
17077 link_all_deplibs_GCJ=yes
17078 ;;
17079
17080 netbsd*)
17081 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17082 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17083 else
17084 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17085 fi
17086 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17087 hardcode_direct_GCJ=yes
17088 hardcode_shlibpath_var_GCJ=no
17089 ;;
17090
17091 newsos6)
17092 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17093 hardcode_direct_GCJ=yes
17094 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17095 hardcode_libdir_separator_GCJ=:
17096 hardcode_shlibpath_var_GCJ=no
17097 ;;
17098
17099 openbsd*)
17100 hardcode_direct_GCJ=yes
17101 hardcode_shlibpath_var_GCJ=no
17102 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17103 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17104 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17105 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17106 export_dynamic_flag_spec_GCJ='${wl}-E'
17107 else
17108 case $host_os in
17109 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17110 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17111 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17112 ;;
17113 *)
17114 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17115 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17116 ;;
17117 esac
17118 fi
17119 ;;
17120
17121 os2*)
17122 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17123 hardcode_minus_L_GCJ=yes
17124 allow_undefined_flag_GCJ=unsupported
17125 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'
17126 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17127 ;;
17128
17129 osf3*)
17130 if test "$GCC" = yes; then
17131 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17132 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'
17133 else
17134 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17135 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'
17136 fi
17137 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17138 hardcode_libdir_separator_GCJ=:
17139 ;;
17140
17141 osf4* | osf5*) # as osf3* with the addition of -msym flag
17142 if test "$GCC" = yes; then
17143 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17144 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'
17145 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17146 else
17147 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17148 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'
17149 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~
17150 $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'
17151
17152 # Both c and cxx compiler support -rpath directly
17153 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17154 fi
17155 hardcode_libdir_separator_GCJ=:
17156 ;;
17157
17158 solaris*)
17159 no_undefined_flag_GCJ=' -z text'
17160 if test "$GCC" = yes; then
17161 wlarc='${wl}'
17162 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17163 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17164 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17165 else
17166 wlarc=''
17167 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17168 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17169 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17170 fi
17171 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17172 hardcode_shlibpath_var_GCJ=no
17173 case $host_os in
17174 solaris2.[0-5] | solaris2.[0-5].*) ;;
17175 *)
17176 # The compiler driver will combine linker options so we
17177 # cannot just pass the convience library names through
17178 # without $wl, iff we do not link with $LD.
17179 # Luckily, gcc supports the same syntax we need for Sun Studio.
17180 # Supported since Solaris 2.6 (maybe 2.5.1?)
17181 case $wlarc in
17182 '')
17183 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17184 *)
17185 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' ;;
17186 esac ;;
17187 esac
17188 link_all_deplibs_GCJ=yes
17189 ;;
17190
17191 sunos4*)
17192 if test "x$host_vendor" = xsequent; then
17193 # Use $CC to link under sequent, because it throws in some extra .o
17194 # files that make .init and .fini sections work.
17195 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17196 else
17197 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17198 fi
17199 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17200 hardcode_direct_GCJ=yes
17201 hardcode_minus_L_GCJ=yes
17202 hardcode_shlibpath_var_GCJ=no
17203 ;;
17204
17205 sysv4)
17206 case $host_vendor in
17207 sni)
17208 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17209 hardcode_direct_GCJ=yes # is this really true???
17210 ;;
17211 siemens)
17212 ## LD is ld it makes a PLAMLIB
17213 ## CC just makes a GrossModule.
17214 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17215 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17216 hardcode_direct_GCJ=no
17217 ;;
17218 motorola)
17219 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17220 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17221 ;;
17222 esac
17223 runpath_var='LD_RUN_PATH'
17224 hardcode_shlibpath_var_GCJ=no
17225 ;;
17226
17227 sysv4.3*)
17228 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17229 hardcode_shlibpath_var_GCJ=no
17230 export_dynamic_flag_spec_GCJ='-Bexport'
17231 ;;
17232
17233 sysv4*MP*)
17234 if test -d /usr/nec; then
17235 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17236 hardcode_shlibpath_var_GCJ=no
17237 runpath_var=LD_RUN_PATH
17238 hardcode_runpath_var=yes
17239 ld_shlibs_GCJ=yes
17240 fi
17241 ;;
17242
17243 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17244 no_undefined_flag_GCJ='${wl}-z,text'
17245 archive_cmds_need_lc_GCJ=no
17246 hardcode_shlibpath_var_GCJ=no
17247 runpath_var='LD_RUN_PATH'
17248
17249 if test "$GCC" = yes; then
17250 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17251 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17252 else
17253 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17254 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17255 fi
17256 ;;
17257
17258 sysv5* | sco3.2v5* | sco5v6*)
17259 # Note: We can NOT use -z defs as we might desire, because we do not
17260 # link with -lc, and that would cause any symbols used from libc to
17261 # always be unresolved, which means just about no library would
17262 # ever link correctly. If we're not using GNU ld we use -z text
17263 # though, which does catch some bad symbols but isn't as heavy-handed
17264 # as -z defs.
17265 no_undefined_flag_GCJ='${wl}-z,text'
17266 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17267 archive_cmds_need_lc_GCJ=no
17268 hardcode_shlibpath_var_GCJ=no
17269 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17270 hardcode_libdir_separator_GCJ=':'
17271 link_all_deplibs_GCJ=yes
17272 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17273 runpath_var='LD_RUN_PATH'
17274
17275 if test "$GCC" = yes; then
17276 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17277 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17278 else
17279 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17280 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17281 fi
17282 ;;
17283
17284 uts4*)
17285 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17286 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17287 hardcode_shlibpath_var_GCJ=no
17288 ;;
17289
17290 *)
17291 ld_shlibs_GCJ=no
17292 ;;
17293 esac
17294 fi
17295
17296 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17297 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17298 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17299
17300 #
17301 # Do we need to explicitly link libc?
17302 #
17303 case "x$archive_cmds_need_lc_GCJ" in
17304 x|xyes)
17305 # Assume -lc should be added
17306 archive_cmds_need_lc_GCJ=yes
17307
17308 if test "$enable_shared" = yes && test "$GCC" = yes; then
17309 case $archive_cmds_GCJ in
17310 *'~'*)
17311 # FIXME: we may have to deal with multi-command sequences.
17312 ;;
17313 '$CC '*)
17314 # Test whether the compiler implicitly links with -lc since on some
17315 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17316 # to ld, don't add -lc before -lgcc.
17317 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17318 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17319 $rm conftest*
17320 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17321
17322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17323 (eval $ac_compile) 2>&5
17324 ac_status=$?
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); } 2>conftest.err; then
17327 soname=conftest
17328 lib=conftest
17329 libobjs=conftest.$ac_objext
17330 deplibs=
17331 wl=$lt_prog_compiler_wl_GCJ
17332 pic_flag=$lt_prog_compiler_pic_GCJ
17333 compiler_flags=-v
17334 linker_flags=-v
17335 verstring=
17336 output_objdir=.
17337 libname=conftest
17338 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17339 allow_undefined_flag_GCJ=
17340 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17341 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17342 ac_status=$?
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); }
17345 then
17346 archive_cmds_need_lc_GCJ=no
17347 else
17348 archive_cmds_need_lc_GCJ=yes
17349 fi
17350 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17351 else
17352 cat conftest.err 1>&5
17353 fi
17354 $rm conftest*
17355 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17356 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17357 ;;
17358 esac
17359 fi
17360 ;;
17361 esac
17362
17363 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17364 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17365 library_names_spec=
17366 libname_spec='lib$name'
17367 soname_spec=
17368 shrext_cmds=".so"
17369 postinstall_cmds=
17370 postuninstall_cmds=
17371 finish_cmds=
17372 finish_eval=
17373 shlibpath_var=
17374 shlibpath_overrides_runpath=unknown
17375 version_type=none
17376 dynamic_linker="$host_os ld.so"
17377 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17378 if test "$GCC" = yes; then
17379 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17380 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17381 # if the path contains ";" then we assume it to be the separator
17382 # otherwise default to the standard path separator (i.e. ":") - it is
17383 # assumed that no part of a normal pathname contains ";" but that should
17384 # okay in the real world where ";" in dirpaths is itself problematic.
17385 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17386 else
17387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17388 fi
17389 else
17390 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17391 fi
17392 need_lib_prefix=unknown
17393 hardcode_into_libs=no
17394
17395 # when you set need_version to no, make sure it does not cause -set_version
17396 # flags to be left without arguments
17397 need_version=unknown
17398
17399 case $host_os in
17400 aix3*)
17401 version_type=linux
17402 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17403 shlibpath_var=LIBPATH
17404
17405 # AIX 3 has no versioning support, so we append a major version to the name.
17406 soname_spec='${libname}${release}${shared_ext}$major'
17407 ;;
17408
17409 aix4* | aix5*)
17410 version_type=linux
17411 need_lib_prefix=no
17412 need_version=no
17413 hardcode_into_libs=yes
17414 if test "$host_cpu" = ia64; then
17415 # AIX 5 supports IA64
17416 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17417 shlibpath_var=LD_LIBRARY_PATH
17418 else
17419 # With GCC up to 2.95.x, collect2 would create an import file
17420 # for dependence libraries. The import file would start with
17421 # the line `#! .'. This would cause the generated library to
17422 # depend on `.', always an invalid library. This was fixed in
17423 # development snapshots of GCC prior to 3.0.
17424 case $host_os in
17425 aix4 | aix4.[01] | aix4.[01].*)
17426 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17427 echo ' yes '
17428 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17429 :
17430 else
17431 can_build_shared=no
17432 fi
17433 ;;
17434 esac
17435 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17436 # soname into executable. Probably we can add versioning support to
17437 # collect2, so additional links can be useful in future.
17438 if test "$aix_use_runtimelinking" = yes; then
17439 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17440 # instead of lib<name>.a to let people know that these are not
17441 # typical AIX shared libraries.
17442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17443 else
17444 # We preserve .a as extension for shared libraries through AIX4.2
17445 # and later when we are not doing run time linking.
17446 library_names_spec='${libname}${release}.a $libname.a'
17447 soname_spec='${libname}${release}${shared_ext}$major'
17448 fi
17449 shlibpath_var=LIBPATH
17450 fi
17451 ;;
17452
17453 amigaos*)
17454 library_names_spec='$libname.ixlibrary $libname.a'
17455 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17456 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'
17457 ;;
17458
17459 beos*)
17460 library_names_spec='${libname}${shared_ext}'
17461 dynamic_linker="$host_os ld.so"
17462 shlibpath_var=LIBRARY_PATH
17463 ;;
17464
17465 bsdi[45]*)
17466 version_type=linux
17467 need_version=no
17468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17469 soname_spec='${libname}${release}${shared_ext}$major'
17470 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17471 shlibpath_var=LD_LIBRARY_PATH
17472 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17473 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17474 # the default ld.so.conf also contains /usr/contrib/lib and
17475 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17476 # libtool to hard-code these into programs
17477 ;;
17478
17479 cygwin* | mingw* | pw32*)
17480 version_type=windows
17481 shrext_cmds=".dll"
17482 need_version=no
17483 need_lib_prefix=no
17484
17485 case $GCC,$host_os in
17486 yes,cygwin* | yes,mingw* | yes,pw32*)
17487 library_names_spec='$libname.dll.a'
17488 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17489 postinstall_cmds='base_file=`basename \${file}`~
17490 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17491 dldir=$destdir/`dirname \$dlpath`~
17492 test -d \$dldir || mkdir -p \$dldir~
17493 $install_prog $dir/$dlname \$dldir/$dlname~
17494 chmod a+x \$dldir/$dlname'
17495 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17496 dlpath=$dir/\$dldll~
17497 $rm \$dlpath'
17498 shlibpath_overrides_runpath=yes
17499
17500 case $host_os in
17501 cygwin*)
17502 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17503 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17504 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17505 ;;
17506 mingw*)
17507 # MinGW DLLs use traditional 'lib' prefix
17508 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17509 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17510 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17511 # It is most probably a Windows format PATH printed by
17512 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17513 # path with ; separators, and with drive letters. We can handle the
17514 # drive letters (cygwin fileutils understands them), so leave them,
17515 # especially as we might pass files found there to a mingw objdump,
17516 # which wouldn't understand a cygwinified path. Ahh.
17517 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17518 else
17519 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17520 fi
17521 ;;
17522 pw32*)
17523 # pw32 DLLs use 'pw' prefix rather than 'lib'
17524 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17525 ;;
17526 esac
17527 ;;
17528
17529 *)
17530 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17531 ;;
17532 esac
17533 dynamic_linker='Win32 ld.exe'
17534 # FIXME: first we should search . and the directory the executable is in
17535 shlibpath_var=PATH
17536 ;;
17537
17538 darwin* | rhapsody*)
17539 dynamic_linker="$host_os dyld"
17540 version_type=darwin
17541 need_lib_prefix=no
17542 need_version=no
17543 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17544 soname_spec='${libname}${release}${major}$shared_ext'
17545 shlibpath_overrides_runpath=yes
17546 shlibpath_var=DYLD_LIBRARY_PATH
17547 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17548 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17549 if test "$GCC" = yes; then
17550 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"`
17551 else
17552 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17553 fi
17554 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17555 ;;
17556
17557 dgux*)
17558 version_type=linux
17559 need_lib_prefix=no
17560 need_version=no
17561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17562 soname_spec='${libname}${release}${shared_ext}$major'
17563 shlibpath_var=LD_LIBRARY_PATH
17564 ;;
17565
17566 freebsd1*)
17567 dynamic_linker=no
17568 ;;
17569
17570 kfreebsd*-gnu)
17571 version_type=linux
17572 need_lib_prefix=no
17573 need_version=no
17574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17575 soname_spec='${libname}${release}${shared_ext}$major'
17576 shlibpath_var=LD_LIBRARY_PATH
17577 shlibpath_overrides_runpath=no
17578 hardcode_into_libs=yes
17579 dynamic_linker='GNU ld.so'
17580 ;;
17581
17582 freebsd* | dragonfly*)
17583 # DragonFly does not have aout. When/if they implement a new
17584 # versioning mechanism, adjust this.
17585 if test -x /usr/bin/objformat; then
17586 objformat=`/usr/bin/objformat`
17587 else
17588 case $host_os in
17589 freebsd[123]*) objformat=aout ;;
17590 *) objformat=elf ;;
17591 esac
17592 fi
17593 version_type=freebsd-$objformat
17594 case $version_type in
17595 freebsd-elf*)
17596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17597 need_version=no
17598 need_lib_prefix=no
17599 ;;
17600 freebsd-*)
17601 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17602 need_version=yes
17603 ;;
17604 esac
17605 shlibpath_var=LD_LIBRARY_PATH
17606 case $host_os in
17607 freebsd2*)
17608 shlibpath_overrides_runpath=yes
17609 ;;
17610 freebsd3.[01]* | freebsdelf3.[01]*)
17611 shlibpath_overrides_runpath=yes
17612 hardcode_into_libs=yes
17613 ;;
17614 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17615 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17616 shlibpath_overrides_runpath=no
17617 hardcode_into_libs=yes
17618 ;;
17619 freebsd*) # from 4.6 on
17620 shlibpath_overrides_runpath=yes
17621 hardcode_into_libs=yes
17622 ;;
17623 esac
17624 ;;
17625
17626 gnu*)
17627 version_type=linux
17628 need_lib_prefix=no
17629 need_version=no
17630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17631 soname_spec='${libname}${release}${shared_ext}$major'
17632 shlibpath_var=LD_LIBRARY_PATH
17633 hardcode_into_libs=yes
17634 ;;
17635
17636 hpux9* | hpux10* | hpux11*)
17637 # Give a soname corresponding to the major version so that dld.sl refuses to
17638 # link against other versions.
17639 version_type=sunos
17640 need_lib_prefix=no
17641 need_version=no
17642 case $host_cpu in
17643 ia64*)
17644 shrext_cmds='.so'
17645 hardcode_into_libs=yes
17646 dynamic_linker="$host_os dld.so"
17647 shlibpath_var=LD_LIBRARY_PATH
17648 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17650 soname_spec='${libname}${release}${shared_ext}$major'
17651 if test "X$HPUX_IA64_MODE" = X32; then
17652 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17653 else
17654 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17655 fi
17656 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17657 ;;
17658 hppa*64*)
17659 shrext_cmds='.sl'
17660 hardcode_into_libs=yes
17661 dynamic_linker="$host_os dld.sl"
17662 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17663 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17665 soname_spec='${libname}${release}${shared_ext}$major'
17666 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17668 ;;
17669 *)
17670 shrext_cmds='.sl'
17671 dynamic_linker="$host_os dld.sl"
17672 shlibpath_var=SHLIB_PATH
17673 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17675 soname_spec='${libname}${release}${shared_ext}$major'
17676 ;;
17677 esac
17678 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17679 postinstall_cmds='chmod 555 $lib'
17680 ;;
17681
17682 interix3*)
17683 version_type=linux
17684 need_lib_prefix=no
17685 need_version=no
17686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17687 soname_spec='${libname}${release}${shared_ext}$major'
17688 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17689 shlibpath_var=LD_LIBRARY_PATH
17690 shlibpath_overrides_runpath=no
17691 hardcode_into_libs=yes
17692 ;;
17693
17694 irix5* | irix6* | nonstopux*)
17695 case $host_os in
17696 nonstopux*) version_type=nonstopux ;;
17697 *)
17698 if test "$lt_cv_prog_gnu_ld" = yes; then
17699 version_type=linux
17700 else
17701 version_type=irix
17702 fi ;;
17703 esac
17704 need_lib_prefix=no
17705 need_version=no
17706 soname_spec='${libname}${release}${shared_ext}$major'
17707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17708 case $host_os in
17709 irix5* | nonstopux*)
17710 libsuff= shlibsuff=
17711 ;;
17712 *)
17713 case $LD in # libtool.m4 will add one of these switches to LD
17714 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17715 libsuff= shlibsuff= libmagic=32-bit;;
17716 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17717 libsuff=32 shlibsuff=N32 libmagic=N32;;
17718 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17719 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17720 *) libsuff= shlibsuff= libmagic=never-match;;
17721 esac
17722 ;;
17723 esac
17724 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17725 shlibpath_overrides_runpath=no
17726 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17727 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17728 hardcode_into_libs=yes
17729 ;;
17730
17731 # No shared lib support for Linux oldld, aout, or coff.
17732 linux*oldld* | linux*aout* | linux*coff*)
17733 dynamic_linker=no
17734 ;;
17735
17736 # This must be Linux ELF.
17737 linux*)
17738 version_type=linux
17739 need_lib_prefix=no
17740 need_version=no
17741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17742 soname_spec='${libname}${release}${shared_ext}$major'
17743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17744 shlibpath_var=LD_LIBRARY_PATH
17745 shlibpath_overrides_runpath=no
17746 # This implies no fast_install, which is unacceptable.
17747 # Some rework will be needed to allow for fast_install
17748 # before this can be enabled.
17749 hardcode_into_libs=yes
17750
17751 # Append ld.so.conf contents to the search path
17752 if test -f /etc/ld.so.conf; then
17753 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' ' '`
17754 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17755 fi
17756
17757 # We used to test for /lib/ld.so.1 and disable shared libraries on
17758 # powerpc, because MkLinux only supported shared libraries with the
17759 # GNU dynamic linker. Since this was broken with cross compilers,
17760 # most powerpc-linux boxes support dynamic linking these days and
17761 # people can always --disable-shared, the test was removed, and we
17762 # assume the GNU/Linux dynamic linker is in use.
17763 dynamic_linker='GNU/Linux ld.so'
17764 ;;
17765
17766 knetbsd*-gnu)
17767 version_type=linux
17768 need_lib_prefix=no
17769 need_version=no
17770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17771 soname_spec='${libname}${release}${shared_ext}$major'
17772 shlibpath_var=LD_LIBRARY_PATH
17773 shlibpath_overrides_runpath=no
17774 hardcode_into_libs=yes
17775 dynamic_linker='GNU ld.so'
17776 ;;
17777
17778 netbsd*)
17779 version_type=sunos
17780 need_lib_prefix=no
17781 need_version=no
17782 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17785 dynamic_linker='NetBSD (a.out) ld.so'
17786 else
17787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17788 soname_spec='${libname}${release}${shared_ext}$major'
17789 dynamic_linker='NetBSD ld.elf_so'
17790 fi
17791 shlibpath_var=LD_LIBRARY_PATH
17792 shlibpath_overrides_runpath=yes
17793 hardcode_into_libs=yes
17794 ;;
17795
17796 newsos6)
17797 version_type=linux
17798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17799 shlibpath_var=LD_LIBRARY_PATH
17800 shlibpath_overrides_runpath=yes
17801 ;;
17802
17803 nto-qnx*)
17804 version_type=linux
17805 need_lib_prefix=no
17806 need_version=no
17807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17808 soname_spec='${libname}${release}${shared_ext}$major'
17809 shlibpath_var=LD_LIBRARY_PATH
17810 shlibpath_overrides_runpath=yes
17811 ;;
17812
17813 openbsd*)
17814 version_type=sunos
17815 sys_lib_dlsearch_path_spec="/usr/lib"
17816 need_lib_prefix=no
17817 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17818 case $host_os in
17819 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17820 *) need_version=no ;;
17821 esac
17822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17824 shlibpath_var=LD_LIBRARY_PATH
17825 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17826 case $host_os in
17827 openbsd2.[89] | openbsd2.[89].*)
17828 shlibpath_overrides_runpath=no
17829 ;;
17830 *)
17831 shlibpath_overrides_runpath=yes
17832 ;;
17833 esac
17834 else
17835 shlibpath_overrides_runpath=yes
17836 fi
17837 ;;
17838
17839 os2*)
17840 libname_spec='$name'
17841 shrext_cmds=".dll"
17842 need_lib_prefix=no
17843 library_names_spec='$libname${shared_ext} $libname.a'
17844 dynamic_linker='OS/2 ld.exe'
17845 shlibpath_var=LIBPATH
17846 ;;
17847
17848 osf3* | osf4* | osf5*)
17849 version_type=osf
17850 need_lib_prefix=no
17851 need_version=no
17852 soname_spec='${libname}${release}${shared_ext}$major'
17853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17854 shlibpath_var=LD_LIBRARY_PATH
17855 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17856 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17857 ;;
17858
17859 solaris*)
17860 version_type=linux
17861 need_lib_prefix=no
17862 need_version=no
17863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17864 soname_spec='${libname}${release}${shared_ext}$major'
17865 shlibpath_var=LD_LIBRARY_PATH
17866 shlibpath_overrides_runpath=yes
17867 hardcode_into_libs=yes
17868 # ldd complains unless libraries are executable
17869 postinstall_cmds='chmod +x $lib'
17870 ;;
17871
17872 sunos4*)
17873 version_type=sunos
17874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17875 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17876 shlibpath_var=LD_LIBRARY_PATH
17877 shlibpath_overrides_runpath=yes
17878 if test "$with_gnu_ld" = yes; then
17879 need_lib_prefix=no
17880 fi
17881 need_version=yes
17882 ;;
17883
17884 sysv4 | sysv4.3*)
17885 version_type=linux
17886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17887 soname_spec='${libname}${release}${shared_ext}$major'
17888 shlibpath_var=LD_LIBRARY_PATH
17889 case $host_vendor in
17890 sni)
17891 shlibpath_overrides_runpath=no
17892 need_lib_prefix=no
17893 export_dynamic_flag_spec='${wl}-Blargedynsym'
17894 runpath_var=LD_RUN_PATH
17895 ;;
17896 siemens)
17897 need_lib_prefix=no
17898 ;;
17899 motorola)
17900 need_lib_prefix=no
17901 need_version=no
17902 shlibpath_overrides_runpath=no
17903 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17904 ;;
17905 esac
17906 ;;
17907
17908 sysv4*MP*)
17909 if test -d /usr/nec ;then
17910 version_type=linux
17911 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17912 soname_spec='$libname${shared_ext}.$major'
17913 shlibpath_var=LD_LIBRARY_PATH
17914 fi
17915 ;;
17916
17917 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17918 version_type=freebsd-elf
17919 need_lib_prefix=no
17920 need_version=no
17921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17922 soname_spec='${libname}${release}${shared_ext}$major'
17923 shlibpath_var=LD_LIBRARY_PATH
17924 hardcode_into_libs=yes
17925 if test "$with_gnu_ld" = yes; then
17926 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17927 shlibpath_overrides_runpath=no
17928 else
17929 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17930 shlibpath_overrides_runpath=yes
17931 case $host_os in
17932 sco3.2v5*)
17933 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17934 ;;
17935 esac
17936 fi
17937 sys_lib_dlsearch_path_spec='/usr/lib'
17938 ;;
17939
17940 uts4*)
17941 version_type=linux
17942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17943 soname_spec='${libname}${release}${shared_ext}$major'
17944 shlibpath_var=LD_LIBRARY_PATH
17945 ;;
17946
17947 *)
17948 dynamic_linker=no
17949 ;;
17950 esac
17951 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17952 echo "${ECHO_T}$dynamic_linker" >&6
17953 test "$dynamic_linker" = no && can_build_shared=no
17954
17955 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17956 if test "$GCC" = yes; then
17957 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17958 fi
17959
17960 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17961 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17962 hardcode_action_GCJ=
17963 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17964 test -n "$runpath_var_GCJ" || \
17965 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17966
17967 # We can hardcode non-existant directories.
17968 if test "$hardcode_direct_GCJ" != no &&
17969 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17970 # have to relink, otherwise we might link with an installed library
17971 # when we should be linking with a yet-to-be-installed one
17972 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17973 test "$hardcode_minus_L_GCJ" != no; then
17974 # Linking always hardcodes the temporary library directory.
17975 hardcode_action_GCJ=relink
17976 else
17977 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17978 hardcode_action_GCJ=immediate
17979 fi
17980 else
17981 # We cannot hardcode anything, or else we can only hardcode existing
17982 # directories.
17983 hardcode_action_GCJ=unsupported
17984 fi
17985 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17986 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17987
17988 if test "$hardcode_action_GCJ" = relink; then
17989 # Fast installation is not supported
17990 enable_fast_install=no
17991 elif test "$shlibpath_overrides_runpath" = yes ||
17992 test "$enable_shared" = no; then
17993 # Fast installation is not necessary
17994 enable_fast_install=needless
17995 fi
17996
17997
17998 # The else clause should only fire when bootstrapping the
17999 # libtool distribution, otherwise you forgot to ship ltmain.sh
18000 # with your package, and you will get complaints that there are
18001 # no rules to generate ltmain.sh.
18002 if test -f "$ltmain"; then
18003 # See if we are running on zsh, and set the options which allow our commands through
18004 # without removal of \ escapes.
18005 if test -n "${ZSH_VERSION+set}" ; then
18006 setopt NO_GLOB_SUBST
18007 fi
18008 # Now quote all the things that may contain metacharacters while being
18009 # careful not to overquote the AC_SUBSTed values. We take copies of the
18010 # variables and quote the copies for generation of the libtool script.
18011 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18012 SED SHELL STRIP \
18013 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18014 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18015 deplibs_check_method reload_flag reload_cmds need_locks \
18016 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18017 lt_cv_sys_global_symbol_to_c_name_address \
18018 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18019 old_postinstall_cmds old_postuninstall_cmds \
18020 compiler_GCJ \
18021 CC_GCJ \
18022 LD_GCJ \
18023 lt_prog_compiler_wl_GCJ \
18024 lt_prog_compiler_pic_GCJ \
18025 lt_prog_compiler_static_GCJ \
18026 lt_prog_compiler_no_builtin_flag_GCJ \
18027 export_dynamic_flag_spec_GCJ \
18028 thread_safe_flag_spec_GCJ \
18029 whole_archive_flag_spec_GCJ \
18030 enable_shared_with_static_runtimes_GCJ \
18031 old_archive_cmds_GCJ \
18032 old_archive_from_new_cmds_GCJ \
18033 predep_objects_GCJ \
18034 postdep_objects_GCJ \
18035 predeps_GCJ \
18036 postdeps_GCJ \
18037 compiler_lib_search_path_GCJ \
18038 archive_cmds_GCJ \
18039 archive_expsym_cmds_GCJ \
18040 postinstall_cmds_GCJ \
18041 postuninstall_cmds_GCJ \
18042 old_archive_from_expsyms_cmds_GCJ \
18043 allow_undefined_flag_GCJ \
18044 no_undefined_flag_GCJ \
18045 export_symbols_cmds_GCJ \
18046 hardcode_libdir_flag_spec_GCJ \
18047 hardcode_libdir_flag_spec_ld_GCJ \
18048 hardcode_libdir_separator_GCJ \
18049 hardcode_automatic_GCJ \
18050 module_cmds_GCJ \
18051 module_expsym_cmds_GCJ \
18052 lt_cv_prog_compiler_c_o_GCJ \
18053 exclude_expsyms_GCJ \
18054 include_expsyms_GCJ; do
18055
18056 case $var in
18057 old_archive_cmds_GCJ | \
18058 old_archive_from_new_cmds_GCJ | \
18059 archive_cmds_GCJ | \
18060 archive_expsym_cmds_GCJ | \
18061 module_cmds_GCJ | \
18062 module_expsym_cmds_GCJ | \
18063 old_archive_from_expsyms_cmds_GCJ | \
18064 export_symbols_cmds_GCJ | \
18065 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18066 postinstall_cmds | postuninstall_cmds | \
18067 old_postinstall_cmds | old_postuninstall_cmds | \
18068 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18069 # Double-quote double-evaled strings.
18070 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18071 ;;
18072 *)
18073 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18074 ;;
18075 esac
18076 done
18077
18078 case $lt_echo in
18079 *'\$0 --fallback-echo"')
18080 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18081 ;;
18082 esac
18083
18084 cfgfile="$ofile"
18085
18086 cat <<__EOF__ >> "$cfgfile"
18087 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18088
18089 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18090
18091 # Shell to use when invoking shell scripts.
18092 SHELL=$lt_SHELL
18093
18094 # Whether or not to build shared libraries.
18095 build_libtool_libs=$enable_shared
18096
18097 # Whether or not to build static libraries.
18098 build_old_libs=$enable_static
18099
18100 # Whether or not to add -lc for building shared libraries.
18101 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18102
18103 # Whether or not to disallow shared libs when runtime libs are static
18104 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18105
18106 # Whether or not to optimize for fast installation.
18107 fast_install=$enable_fast_install
18108
18109 # The host system.
18110 host_alias=$host_alias
18111 host=$host
18112 host_os=$host_os
18113
18114 # The build system.
18115 build_alias=$build_alias
18116 build=$build
18117 build_os=$build_os
18118
18119 # An echo program that does not interpret backslashes.
18120 echo=$lt_echo
18121
18122 # The archiver.
18123 AR=$lt_AR
18124 AR_FLAGS=$lt_AR_FLAGS
18125
18126 # A C compiler.
18127 LTCC=$lt_LTCC
18128
18129 # LTCC compiler flags.
18130 LTCFLAGS=$lt_LTCFLAGS
18131
18132 # A language-specific compiler.
18133 CC=$lt_compiler_GCJ
18134
18135 # Is the compiler the GNU C compiler?
18136 with_gcc=$GCC_GCJ
18137
18138 # An ERE matcher.
18139 EGREP=$lt_EGREP
18140
18141 # The linker used to build libraries.
18142 LD=$lt_LD_GCJ
18143
18144 # Whether we need hard or soft links.
18145 LN_S=$lt_LN_S
18146
18147 # A BSD-compatible nm program.
18148 NM=$lt_NM
18149
18150 # A symbol stripping program
18151 STRIP=$lt_STRIP
18152
18153 # Used to examine libraries when file_magic_cmd begins "file"
18154 MAGIC_CMD=$MAGIC_CMD
18155
18156 # Used on cygwin: DLL creation program.
18157 DLLTOOL="$DLLTOOL"
18158
18159 # Used on cygwin: object dumper.
18160 OBJDUMP="$OBJDUMP"
18161
18162 # Used on cygwin: assembler.
18163 AS="$AS"
18164
18165 # The name of the directory that contains temporary libtool files.
18166 objdir=$objdir
18167
18168 # How to create reloadable object files.
18169 reload_flag=$lt_reload_flag
18170 reload_cmds=$lt_reload_cmds
18171
18172 # How to pass a linker flag through the compiler.
18173 wl=$lt_lt_prog_compiler_wl_GCJ
18174
18175 # Object file suffix (normally "o").
18176 objext="$ac_objext"
18177
18178 # Old archive suffix (normally "a").
18179 libext="$libext"
18180
18181 # Shared library suffix (normally ".so").
18182 shrext_cmds='$shrext_cmds'
18183
18184 # Executable file suffix (normally "").
18185 exeext="$exeext"
18186
18187 # Additional compiler flags for building library objects.
18188 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18189 pic_mode=$pic_mode
18190
18191 # What is the maximum length of a command?
18192 max_cmd_len=$lt_cv_sys_max_cmd_len
18193
18194 # Does compiler simultaneously support -c and -o options?
18195 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18196
18197 # Must we lock files when doing compilation?
18198 need_locks=$lt_need_locks
18199
18200 # Do we need the lib prefix for modules?
18201 need_lib_prefix=$need_lib_prefix
18202
18203 # Do we need a version for libraries?
18204 need_version=$need_version
18205
18206 # Whether dlopen is supported.
18207 dlopen_support=$enable_dlopen
18208
18209 # Whether dlopen of programs is supported.
18210 dlopen_self=$enable_dlopen_self
18211
18212 # Whether dlopen of statically linked programs is supported.
18213 dlopen_self_static=$enable_dlopen_self_static
18214
18215 # Compiler flag to prevent dynamic linking.
18216 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18217
18218 # Compiler flag to turn off builtin functions.
18219 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18220
18221 # Compiler flag to allow reflexive dlopens.
18222 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18223
18224 # Compiler flag to generate shared objects directly from archives.
18225 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18226
18227 # Compiler flag to generate thread-safe objects.
18228 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18229
18230 # Library versioning type.
18231 version_type=$version_type
18232
18233 # Format of library name prefix.
18234 libname_spec=$lt_libname_spec
18235
18236 # List of archive names. First name is the real one, the rest are links.
18237 # The last name is the one that the linker finds with -lNAME.
18238 library_names_spec=$lt_library_names_spec
18239
18240 # The coded name of the library, if different from the real name.
18241 soname_spec=$lt_soname_spec
18242
18243 # Commands used to build and install an old-style archive.
18244 RANLIB=$lt_RANLIB
18245 old_archive_cmds=$lt_old_archive_cmds_GCJ
18246 old_postinstall_cmds=$lt_old_postinstall_cmds
18247 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18248
18249 # Create an old-style archive from a shared archive.
18250 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18251
18252 # Create a temporary old-style archive to link instead of a shared archive.
18253 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18254
18255 # Commands used to build and install a shared archive.
18256 archive_cmds=$lt_archive_cmds_GCJ
18257 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18258 postinstall_cmds=$lt_postinstall_cmds
18259 postuninstall_cmds=$lt_postuninstall_cmds
18260
18261 # Commands used to build a loadable module (assumed same as above if empty)
18262 module_cmds=$lt_module_cmds_GCJ
18263 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18264
18265 # Commands to strip libraries.
18266 old_striplib=$lt_old_striplib
18267 striplib=$lt_striplib
18268
18269 # Dependencies to place before the objects being linked to create a
18270 # shared library.
18271 predep_objects=$lt_predep_objects_GCJ
18272
18273 # Dependencies to place after the objects being linked to create a
18274 # shared library.
18275 postdep_objects=$lt_postdep_objects_GCJ
18276
18277 # Dependencies to place before the objects being linked to create a
18278 # shared library.
18279 predeps=$lt_predeps_GCJ
18280
18281 # Dependencies to place after the objects being linked to create a
18282 # shared library.
18283 postdeps=$lt_postdeps_GCJ
18284
18285 # The library search path used internally by the compiler when linking
18286 # a shared library.
18287 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18288
18289 # Method to check whether dependent libraries are shared objects.
18290 deplibs_check_method=$lt_deplibs_check_method
18291
18292 # Command to use when deplibs_check_method == file_magic.
18293 file_magic_cmd=$lt_file_magic_cmd
18294
18295 # Flag that allows shared libraries with undefined symbols to be built.
18296 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18297
18298 # Flag that forces no undefined symbols.
18299 no_undefined_flag=$lt_no_undefined_flag_GCJ
18300
18301 # Commands used to finish a libtool library installation in a directory.
18302 finish_cmds=$lt_finish_cmds
18303
18304 # Same as above, but a single script fragment to be evaled but not shown.
18305 finish_eval=$lt_finish_eval
18306
18307 # Take the output of nm and produce a listing of raw symbols and C names.
18308 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18309
18310 # Transform the output of nm in a proper C declaration
18311 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18312
18313 # Transform the output of nm in a C name address pair
18314 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18315
18316 # This is the shared library runtime path variable.
18317 runpath_var=$runpath_var
18318
18319 # This is the shared library path variable.
18320 shlibpath_var=$shlibpath_var
18321
18322 # Is shlibpath searched before the hard-coded library search path?
18323 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18324
18325 # How to hardcode a shared library path into an executable.
18326 hardcode_action=$hardcode_action_GCJ
18327
18328 # Whether we should hardcode library paths into libraries.
18329 hardcode_into_libs=$hardcode_into_libs
18330
18331 # Flag to hardcode \$libdir into a binary during linking.
18332 # This must work even if \$libdir does not exist.
18333 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18334
18335 # If ld is used when linking, flag to hardcode \$libdir into
18336 # a binary during linking. This must work even if \$libdir does
18337 # not exist.
18338 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18339
18340 # Whether we need a single -rpath flag with a separated argument.
18341 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18342
18343 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18344 # resulting binary.
18345 hardcode_direct=$hardcode_direct_GCJ
18346
18347 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18348 # resulting binary.
18349 hardcode_minus_L=$hardcode_minus_L_GCJ
18350
18351 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18352 # the resulting binary.
18353 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18354
18355 # Set to yes if building a shared library automatically hardcodes DIR into the library
18356 # and all subsequent libraries and executables linked against it.
18357 hardcode_automatic=$hardcode_automatic_GCJ
18358
18359 # Variables whose values should be saved in libtool wrapper scripts and
18360 # restored at relink time.
18361 variables_saved_for_relink="$variables_saved_for_relink"
18362
18363 # Whether libtool must link a program against all its dependency libraries.
18364 link_all_deplibs=$link_all_deplibs_GCJ
18365
18366 # Compile-time system search path for libraries
18367 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18368
18369 # Run-time system search path for libraries
18370 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18371
18372 # Fix the shell variable \$srcfile for the compiler.
18373 fix_srcfile_path="$fix_srcfile_path_GCJ"
18374
18375 # Set to yes if exported symbols are required.
18376 always_export_symbols=$always_export_symbols_GCJ
18377
18378 # The commands to list exported symbols.
18379 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18380
18381 # The commands to extract the exported symbol list from a shared archive.
18382 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18383
18384 # Symbols that should not be listed in the preloaded symbols.
18385 exclude_expsyms=$lt_exclude_expsyms_GCJ
18386
18387 # Symbols that must always be exported.
18388 include_expsyms=$lt_include_expsyms_GCJ
18389
18390 # ### END LIBTOOL TAG CONFIG: $tagname
18391
18392 __EOF__
18393
18394
18395 else
18396 # If there is no Makefile yet, we rely on a make rule to execute
18397 # `config.status --recheck' to rerun these tests and create the
18398 # libtool script then.
18399 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18400 if test -f "$ltmain_in"; then
18401 test -f Makefile && make "$ltmain"
18402 fi
18403 fi
18404
18405
18406 ac_ext=c
18407 ac_cpp='$CPP $CPPFLAGS'
18408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18411
18412 CC="$lt_save_CC"
18413
18414 else
18415 tagname=""
18416 fi
18417 ;;
18418
18419 RC)
18420
18421
18422
18423 # Source file extension for RC test sources.
18424 ac_ext=rc
18425
18426 # Object file extension for compiled RC test sources.
18427 objext=o
18428 objext_RC=$objext
18429
18430 # Code to be used in simple compile tests
18431 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18432
18433 # Code to be used in simple link tests
18434 lt_simple_link_test_code="$lt_simple_compile_test_code"
18435
18436 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18437
18438 # If no C compiler was specified, use CC.
18439 LTCC=${LTCC-"$CC"}
18440
18441 # If no C compiler flags were specified, use CFLAGS.
18442 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18443
18444 # Allow CC to be a program name with arguments.
18445 compiler=$CC
18446
18447
18448 # save warnings/boilerplate of simple test code
18449 ac_outfile=conftest.$ac_objext
18450 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18451 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18452 _lt_compiler_boilerplate=`cat conftest.err`
18453 $rm conftest*
18454
18455 ac_outfile=conftest.$ac_objext
18456 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18457 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18458 _lt_linker_boilerplate=`cat conftest.err`
18459 $rm conftest*
18460
18461
18462 # Allow CC to be a program name with arguments.
18463 lt_save_CC="$CC"
18464 CC=${RC-"windres"}
18465 compiler=$CC
18466 compiler_RC=$CC
18467 for cc_temp in $compiler""; do
18468 case $cc_temp in
18469 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18470 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18471 \-*) ;;
18472 *) break;;
18473 esac
18474 done
18475 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18476
18477 lt_cv_prog_compiler_c_o_RC=yes
18478
18479 # The else clause should only fire when bootstrapping the
18480 # libtool distribution, otherwise you forgot to ship ltmain.sh
18481 # with your package, and you will get complaints that there are
18482 # no rules to generate ltmain.sh.
18483 if test -f "$ltmain"; then
18484 # See if we are running on zsh, and set the options which allow our commands through
18485 # without removal of \ escapes.
18486 if test -n "${ZSH_VERSION+set}" ; then
18487 setopt NO_GLOB_SUBST
18488 fi
18489 # Now quote all the things that may contain metacharacters while being
18490 # careful not to overquote the AC_SUBSTed values. We take copies of the
18491 # variables and quote the copies for generation of the libtool script.
18492 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18493 SED SHELL STRIP \
18494 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18495 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18496 deplibs_check_method reload_flag reload_cmds need_locks \
18497 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18498 lt_cv_sys_global_symbol_to_c_name_address \
18499 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18500 old_postinstall_cmds old_postuninstall_cmds \
18501 compiler_RC \
18502 CC_RC \
18503 LD_RC \
18504 lt_prog_compiler_wl_RC \
18505 lt_prog_compiler_pic_RC \
18506 lt_prog_compiler_static_RC \
18507 lt_prog_compiler_no_builtin_flag_RC \
18508 export_dynamic_flag_spec_RC \
18509 thread_safe_flag_spec_RC \
18510 whole_archive_flag_spec_RC \
18511 enable_shared_with_static_runtimes_RC \
18512 old_archive_cmds_RC \
18513 old_archive_from_new_cmds_RC \
18514 predep_objects_RC \
18515 postdep_objects_RC \
18516 predeps_RC \
18517 postdeps_RC \
18518 compiler_lib_search_path_RC \
18519 archive_cmds_RC \
18520 archive_expsym_cmds_RC \
18521 postinstall_cmds_RC \
18522 postuninstall_cmds_RC \
18523 old_archive_from_expsyms_cmds_RC \
18524 allow_undefined_flag_RC \
18525 no_undefined_flag_RC \
18526 export_symbols_cmds_RC \
18527 hardcode_libdir_flag_spec_RC \
18528 hardcode_libdir_flag_spec_ld_RC \
18529 hardcode_libdir_separator_RC \
18530 hardcode_automatic_RC \
18531 module_cmds_RC \
18532 module_expsym_cmds_RC \
18533 lt_cv_prog_compiler_c_o_RC \
18534 exclude_expsyms_RC \
18535 include_expsyms_RC; do
18536
18537 case $var in
18538 old_archive_cmds_RC | \
18539 old_archive_from_new_cmds_RC | \
18540 archive_cmds_RC | \
18541 archive_expsym_cmds_RC | \
18542 module_cmds_RC | \
18543 module_expsym_cmds_RC | \
18544 old_archive_from_expsyms_cmds_RC | \
18545 export_symbols_cmds_RC | \
18546 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18547 postinstall_cmds | postuninstall_cmds | \
18548 old_postinstall_cmds | old_postuninstall_cmds | \
18549 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18550 # Double-quote double-evaled strings.
18551 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18552 ;;
18553 *)
18554 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18555 ;;
18556 esac
18557 done
18558
18559 case $lt_echo in
18560 *'\$0 --fallback-echo"')
18561 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18562 ;;
18563 esac
18564
18565 cfgfile="$ofile"
18566
18567 cat <<__EOF__ >> "$cfgfile"
18568 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18569
18570 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18571
18572 # Shell to use when invoking shell scripts.
18573 SHELL=$lt_SHELL
18574
18575 # Whether or not to build shared libraries.
18576 build_libtool_libs=$enable_shared
18577
18578 # Whether or not to build static libraries.
18579 build_old_libs=$enable_static
18580
18581 # Whether or not to add -lc for building shared libraries.
18582 build_libtool_need_lc=$archive_cmds_need_lc_RC
18583
18584 # Whether or not to disallow shared libs when runtime libs are static
18585 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18586
18587 # Whether or not to optimize for fast installation.
18588 fast_install=$enable_fast_install
18589
18590 # The host system.
18591 host_alias=$host_alias
18592 host=$host
18593 host_os=$host_os
18594
18595 # The build system.
18596 build_alias=$build_alias
18597 build=$build
18598 build_os=$build_os
18599
18600 # An echo program that does not interpret backslashes.
18601 echo=$lt_echo
18602
18603 # The archiver.
18604 AR=$lt_AR
18605 AR_FLAGS=$lt_AR_FLAGS
18606
18607 # A C compiler.
18608 LTCC=$lt_LTCC
18609
18610 # LTCC compiler flags.
18611 LTCFLAGS=$lt_LTCFLAGS
18612
18613 # A language-specific compiler.
18614 CC=$lt_compiler_RC
18615
18616 # Is the compiler the GNU C compiler?
18617 with_gcc=$GCC_RC
18618
18619 # An ERE matcher.
18620 EGREP=$lt_EGREP
18621
18622 # The linker used to build libraries.
18623 LD=$lt_LD_RC
18624
18625 # Whether we need hard or soft links.
18626 LN_S=$lt_LN_S
18627
18628 # A BSD-compatible nm program.
18629 NM=$lt_NM
18630
18631 # A symbol stripping program
18632 STRIP=$lt_STRIP
18633
18634 # Used to examine libraries when file_magic_cmd begins "file"
18635 MAGIC_CMD=$MAGIC_CMD
18636
18637 # Used on cygwin: DLL creation program.
18638 DLLTOOL="$DLLTOOL"
18639
18640 # Used on cygwin: object dumper.
18641 OBJDUMP="$OBJDUMP"
18642
18643 # Used on cygwin: assembler.
18644 AS="$AS"
18645
18646 # The name of the directory that contains temporary libtool files.
18647 objdir=$objdir
18648
18649 # How to create reloadable object files.
18650 reload_flag=$lt_reload_flag
18651 reload_cmds=$lt_reload_cmds
18652
18653 # How to pass a linker flag through the compiler.
18654 wl=$lt_lt_prog_compiler_wl_RC
18655
18656 # Object file suffix (normally "o").
18657 objext="$ac_objext"
18658
18659 # Old archive suffix (normally "a").
18660 libext="$libext"
18661
18662 # Shared library suffix (normally ".so").
18663 shrext_cmds='$shrext_cmds'
18664
18665 # Executable file suffix (normally "").
18666 exeext="$exeext"
18667
18668 # Additional compiler flags for building library objects.
18669 pic_flag=$lt_lt_prog_compiler_pic_RC
18670 pic_mode=$pic_mode
18671
18672 # What is the maximum length of a command?
18673 max_cmd_len=$lt_cv_sys_max_cmd_len
18674
18675 # Does compiler simultaneously support -c and -o options?
18676 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18677
18678 # Must we lock files when doing compilation?
18679 need_locks=$lt_need_locks
18680
18681 # Do we need the lib prefix for modules?
18682 need_lib_prefix=$need_lib_prefix
18683
18684 # Do we need a version for libraries?
18685 need_version=$need_version
18686
18687 # Whether dlopen is supported.
18688 dlopen_support=$enable_dlopen
18689
18690 # Whether dlopen of programs is supported.
18691 dlopen_self=$enable_dlopen_self
18692
18693 # Whether dlopen of statically linked programs is supported.
18694 dlopen_self_static=$enable_dlopen_self_static
18695
18696 # Compiler flag to prevent dynamic linking.
18697 link_static_flag=$lt_lt_prog_compiler_static_RC
18698
18699 # Compiler flag to turn off builtin functions.
18700 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18701
18702 # Compiler flag to allow reflexive dlopens.
18703 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18704
18705 # Compiler flag to generate shared objects directly from archives.
18706 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18707
18708 # Compiler flag to generate thread-safe objects.
18709 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18710
18711 # Library versioning type.
18712 version_type=$version_type
18713
18714 # Format of library name prefix.
18715 libname_spec=$lt_libname_spec
18716
18717 # List of archive names. First name is the real one, the rest are links.
18718 # The last name is the one that the linker finds with -lNAME.
18719 library_names_spec=$lt_library_names_spec
18720
18721 # The coded name of the library, if different from the real name.
18722 soname_spec=$lt_soname_spec
18723
18724 # Commands used to build and install an old-style archive.
18725 RANLIB=$lt_RANLIB
18726 old_archive_cmds=$lt_old_archive_cmds_RC
18727 old_postinstall_cmds=$lt_old_postinstall_cmds
18728 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18729
18730 # Create an old-style archive from a shared archive.
18731 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18732
18733 # Create a temporary old-style archive to link instead of a shared archive.
18734 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18735
18736 # Commands used to build and install a shared archive.
18737 archive_cmds=$lt_archive_cmds_RC
18738 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18739 postinstall_cmds=$lt_postinstall_cmds
18740 postuninstall_cmds=$lt_postuninstall_cmds
18741
18742 # Commands used to build a loadable module (assumed same as above if empty)
18743 module_cmds=$lt_module_cmds_RC
18744 module_expsym_cmds=$lt_module_expsym_cmds_RC
18745
18746 # Commands to strip libraries.
18747 old_striplib=$lt_old_striplib
18748 striplib=$lt_striplib
18749
18750 # Dependencies to place before the objects being linked to create a
18751 # shared library.
18752 predep_objects=$lt_predep_objects_RC
18753
18754 # Dependencies to place after the objects being linked to create a
18755 # shared library.
18756 postdep_objects=$lt_postdep_objects_RC
18757
18758 # Dependencies to place before the objects being linked to create a
18759 # shared library.
18760 predeps=$lt_predeps_RC
18761
18762 # Dependencies to place after the objects being linked to create a
18763 # shared library.
18764 postdeps=$lt_postdeps_RC
18765
18766 # The library search path used internally by the compiler when linking
18767 # a shared library.
18768 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18769
18770 # Method to check whether dependent libraries are shared objects.
18771 deplibs_check_method=$lt_deplibs_check_method
18772
18773 # Command to use when deplibs_check_method == file_magic.
18774 file_magic_cmd=$lt_file_magic_cmd
18775
18776 # Flag that allows shared libraries with undefined symbols to be built.
18777 allow_undefined_flag=$lt_allow_undefined_flag_RC
18778
18779 # Flag that forces no undefined symbols.
18780 no_undefined_flag=$lt_no_undefined_flag_RC
18781
18782 # Commands used to finish a libtool library installation in a directory.
18783 finish_cmds=$lt_finish_cmds
18784
18785 # Same as above, but a single script fragment to be evaled but not shown.
18786 finish_eval=$lt_finish_eval
18787
18788 # Take the output of nm and produce a listing of raw symbols and C names.
18789 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18790
18791 # Transform the output of nm in a proper C declaration
18792 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18793
18794 # Transform the output of nm in a C name address pair
18795 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18796
18797 # This is the shared library runtime path variable.
18798 runpath_var=$runpath_var
18799
18800 # This is the shared library path variable.
18801 shlibpath_var=$shlibpath_var
18802
18803 # Is shlibpath searched before the hard-coded library search path?
18804 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18805
18806 # How to hardcode a shared library path into an executable.
18807 hardcode_action=$hardcode_action_RC
18808
18809 # Whether we should hardcode library paths into libraries.
18810 hardcode_into_libs=$hardcode_into_libs
18811
18812 # Flag to hardcode \$libdir into a binary during linking.
18813 # This must work even if \$libdir does not exist.
18814 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18815
18816 # If ld is used when linking, flag to hardcode \$libdir into
18817 # a binary during linking. This must work even if \$libdir does
18818 # not exist.
18819 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18820
18821 # Whether we need a single -rpath flag with a separated argument.
18822 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18823
18824 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18825 # resulting binary.
18826 hardcode_direct=$hardcode_direct_RC
18827
18828 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18829 # resulting binary.
18830 hardcode_minus_L=$hardcode_minus_L_RC
18831
18832 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18833 # the resulting binary.
18834 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18835
18836 # Set to yes if building a shared library automatically hardcodes DIR into the library
18837 # and all subsequent libraries and executables linked against it.
18838 hardcode_automatic=$hardcode_automatic_RC
18839
18840 # Variables whose values should be saved in libtool wrapper scripts and
18841 # restored at relink time.
18842 variables_saved_for_relink="$variables_saved_for_relink"
18843
18844 # Whether libtool must link a program against all its dependency libraries.
18845 link_all_deplibs=$link_all_deplibs_RC
18846
18847 # Compile-time system search path for libraries
18848 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18849
18850 # Run-time system search path for libraries
18851 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18852
18853 # Fix the shell variable \$srcfile for the compiler.
18854 fix_srcfile_path="$fix_srcfile_path_RC"
18855
18856 # Set to yes if exported symbols are required.
18857 always_export_symbols=$always_export_symbols_RC
18858
18859 # The commands to list exported symbols.
18860 export_symbols_cmds=$lt_export_symbols_cmds_RC
18861
18862 # The commands to extract the exported symbol list from a shared archive.
18863 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18864
18865 # Symbols that should not be listed in the preloaded symbols.
18866 exclude_expsyms=$lt_exclude_expsyms_RC
18867
18868 # Symbols that must always be exported.
18869 include_expsyms=$lt_include_expsyms_RC
18870
18871 # ### END LIBTOOL TAG CONFIG: $tagname
18872
18873 __EOF__
18874
18875
18876 else
18877 # If there is no Makefile yet, we rely on a make rule to execute
18878 # `config.status --recheck' to rerun these tests and create the
18879 # libtool script then.
18880 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18881 if test -f "$ltmain_in"; then
18882 test -f Makefile && make "$ltmain"
18883 fi
18884 fi
18885
18886
18887 ac_ext=c
18888 ac_cpp='$CPP $CPPFLAGS'
18889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18892
18893 CC="$lt_save_CC"
18894
18895 ;;
18896
18897 *)
18898 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18899 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18900 { (exit 1); exit 1; }; }
18901 ;;
18902 esac
18903
18904 # Append the new tag name to the list of available tags.
18905 if test -n "$tagname" ; then
18906 available_tags="$available_tags $tagname"
18907 fi
18908 fi
18909 done
18910 IFS="$lt_save_ifs"
18911
18912 # Now substitute the updated list of available tags.
18913 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18914 mv "${ofile}T" "$ofile"
18915 chmod +x "$ofile"
18916 else
18917 rm -f "${ofile}T"
18918 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18919 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18920 { (exit 1); exit 1; }; }
18921 fi
18922 fi
18923
18924
18925
18926 # This can be used to rebuild libtool when needed
18927 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18928
18929 # Always use our own libtool.
18930 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18931
18932 # Prevent multiple expansion
18933
18934
18935
18936
18937
18938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953 LIBADD_DL=
18954
18955 ac_ext=c
18956 ac_cpp='$CPP $CPPFLAGS'
18957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18960
18961
18962 echo "$as_me:$LINENO: checking for shl_load" >&5
18963 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18964 if test "${ac_cv_func_shl_load+set}" = set; then
18965 echo $ECHO_N "(cached) $ECHO_C" >&6
18966 else
18967 cat >conftest.$ac_ext <<_ACEOF
18968 /* confdefs.h. */
18969 _ACEOF
18970 cat confdefs.h >>conftest.$ac_ext
18971 cat >>conftest.$ac_ext <<_ACEOF
18972 /* end confdefs.h. */
18973 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18975 #define shl_load innocuous_shl_load
18976
18977 /* System header to define __stub macros and hopefully few prototypes,
18978 which can conflict with char shl_load (); below.
18979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18980 <limits.h> exists even on freestanding compilers. */
18981
18982 #ifdef __STDC__
18983 # include <limits.h>
18984 #else
18985 # include <assert.h>
18986 #endif
18987
18988 #undef shl_load
18989
18990 /* Override any gcc2 internal prototype to avoid an error. */
18991 #ifdef __cplusplus
18992 extern "C"
18993 {
18994 #endif
18995 /* We use char because int might match the return type of a gcc2
18996 builtin and then its argument prototype would still apply. */
18997 char shl_load ();
18998 /* The GNU C library defines this for functions which it implements
18999 to always fail with ENOSYS. Some functions are actually named
19000 something starting with __ and the normal name is an alias. */
19001 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19002 choke me
19003 #else
19004 char (*f) () = shl_load;
19005 #endif
19006 #ifdef __cplusplus
19007 }
19008 #endif
19009
19010 int
19011 main ()
19012 {
19013 return f != shl_load;
19014 ;
19015 return 0;
19016 }
19017 _ACEOF
19018 rm -f conftest.$ac_objext conftest$ac_exeext
19019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19020 (eval $ac_link) 2>conftest.er1
19021 ac_status=$?
19022 grep -v '^ *+' conftest.er1 >conftest.err
19023 rm -f conftest.er1
19024 cat conftest.err >&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } &&
19027 { ac_try='test -z "$ac_c_werror_flag"
19028 || test ! -s conftest.err'
19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19031 ac_status=$?
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; } &&
19034 { ac_try='test -s conftest$ac_exeext'
19035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19036 (eval $ac_try) 2>&5
19037 ac_status=$?
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; }; then
19040 ac_cv_func_shl_load=yes
19041 else
19042 echo "$as_me: failed program was:" >&5
19043 sed 's/^/| /' conftest.$ac_ext >&5
19044
19045 ac_cv_func_shl_load=no
19046 fi
19047 rm -f conftest.err conftest.$ac_objext \
19048 conftest$ac_exeext conftest.$ac_ext
19049 fi
19050 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19051 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19052 if test $ac_cv_func_shl_load = yes; then
19053
19054 cat >>confdefs.h <<\_ACEOF
19055 #define HAVE_SHL_LOAD 1
19056 _ACEOF
19057
19058 else
19059 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19060 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19061 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19062 echo $ECHO_N "(cached) $ECHO_C" >&6
19063 else
19064 ac_check_lib_save_LIBS=$LIBS
19065 LIBS="-ldld $LIBS"
19066 cat >conftest.$ac_ext <<_ACEOF
19067 /* confdefs.h. */
19068 _ACEOF
19069 cat confdefs.h >>conftest.$ac_ext
19070 cat >>conftest.$ac_ext <<_ACEOF
19071 /* end confdefs.h. */
19072
19073 /* Override any gcc2 internal prototype to avoid an error. */
19074 #ifdef __cplusplus
19075 extern "C"
19076 #endif
19077 /* We use char because int might match the return type of a gcc2
19078 builtin and then its argument prototype would still apply. */
19079 char shl_load ();
19080 int
19081 main ()
19082 {
19083 shl_load ();
19084 ;
19085 return 0;
19086 }
19087 _ACEOF
19088 rm -f conftest.$ac_objext conftest$ac_exeext
19089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19090 (eval $ac_link) 2>conftest.er1
19091 ac_status=$?
19092 grep -v '^ *+' conftest.er1 >conftest.err
19093 rm -f conftest.er1
19094 cat conftest.err >&5
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); } &&
19097 { ac_try='test -z "$ac_c_werror_flag"
19098 || test ! -s conftest.err'
19099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19100 (eval $ac_try) 2>&5
19101 ac_status=$?
19102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103 (exit $ac_status); }; } &&
19104 { ac_try='test -s conftest$ac_exeext'
19105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19106 (eval $ac_try) 2>&5
19107 ac_status=$?
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); }; }; then
19110 ac_cv_lib_dld_shl_load=yes
19111 else
19112 echo "$as_me: failed program was:" >&5
19113 sed 's/^/| /' conftest.$ac_ext >&5
19114
19115 ac_cv_lib_dld_shl_load=no
19116 fi
19117 rm -f conftest.err conftest.$ac_objext \
19118 conftest$ac_exeext conftest.$ac_ext
19119 LIBS=$ac_check_lib_save_LIBS
19120 fi
19121 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19122 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19123 if test $ac_cv_lib_dld_shl_load = yes; then
19124
19125 cat >>confdefs.h <<\_ACEOF
19126 #define HAVE_SHL_LOAD 1
19127 _ACEOF
19128
19129 LIBADD_DL="$LIBADD_DL -ldld"
19130 else
19131 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19132 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19133 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19134 echo $ECHO_N "(cached) $ECHO_C" >&6
19135 else
19136 ac_check_lib_save_LIBS=$LIBS
19137 LIBS="-ldl $LIBS"
19138 cat >conftest.$ac_ext <<_ACEOF
19139 /* confdefs.h. */
19140 _ACEOF
19141 cat confdefs.h >>conftest.$ac_ext
19142 cat >>conftest.$ac_ext <<_ACEOF
19143 /* end confdefs.h. */
19144
19145 /* Override any gcc2 internal prototype to avoid an error. */
19146 #ifdef __cplusplus
19147 extern "C"
19148 #endif
19149 /* We use char because int might match the return type of a gcc2
19150 builtin and then its argument prototype would still apply. */
19151 char dlopen ();
19152 int
19153 main ()
19154 {
19155 dlopen ();
19156 ;
19157 return 0;
19158 }
19159 _ACEOF
19160 rm -f conftest.$ac_objext conftest$ac_exeext
19161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19162 (eval $ac_link) 2>conftest.er1
19163 ac_status=$?
19164 grep -v '^ *+' conftest.er1 >conftest.err
19165 rm -f conftest.er1
19166 cat conftest.err >&5
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); } &&
19169 { ac_try='test -z "$ac_c_werror_flag"
19170 || test ! -s conftest.err'
19171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172 (eval $ac_try) 2>&5
19173 ac_status=$?
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; } &&
19176 { ac_try='test -s conftest$ac_exeext'
19177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178 (eval $ac_try) 2>&5
19179 ac_status=$?
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; }; then
19182 ac_cv_lib_dl_dlopen=yes
19183 else
19184 echo "$as_me: failed program was:" >&5
19185 sed 's/^/| /' conftest.$ac_ext >&5
19186
19187 ac_cv_lib_dl_dlopen=no
19188 fi
19189 rm -f conftest.err conftest.$ac_objext \
19190 conftest$ac_exeext conftest.$ac_ext
19191 LIBS=$ac_check_lib_save_LIBS
19192 fi
19193 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19194 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19195 if test $ac_cv_lib_dl_dlopen = yes; then
19196
19197 cat >>confdefs.h <<\_ACEOF
19198 #define HAVE_LIBDL 1
19199 _ACEOF
19200
19201 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
19202 else
19203 cat >conftest.$ac_ext <<_ACEOF
19204 /* confdefs.h. */
19205 _ACEOF
19206 cat confdefs.h >>conftest.$ac_ext
19207 cat >>conftest.$ac_ext <<_ACEOF
19208 /* end confdefs.h. */
19209 #if HAVE_DLFCN_H
19210 # include <dlfcn.h>
19211 #endif
19212
19213 int
19214 main ()
19215 {
19216 dlopen(0, 0);
19217 ;
19218 return 0;
19219 }
19220 _ACEOF
19221 rm -f conftest.$ac_objext conftest$ac_exeext
19222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19223 (eval $ac_link) 2>conftest.er1
19224 ac_status=$?
19225 grep -v '^ *+' conftest.er1 >conftest.err
19226 rm -f conftest.er1
19227 cat conftest.err >&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); } &&
19230 { ac_try='test -z "$ac_c_werror_flag"
19231 || test ! -s conftest.err'
19232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233 (eval $ac_try) 2>&5
19234 ac_status=$?
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; } &&
19237 { ac_try='test -s conftest$ac_exeext'
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19240 ac_status=$?
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; }; then
19243
19244 cat >>confdefs.h <<\_ACEOF
19245 #define HAVE_LIBDL 1
19246 _ACEOF
19247 libltdl_cv_func_dlopen="yes"
19248 else
19249 echo "$as_me: failed program was:" >&5
19250 sed 's/^/| /' conftest.$ac_ext >&5
19251
19252 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19253 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19254 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19255 echo $ECHO_N "(cached) $ECHO_C" >&6
19256 else
19257 ac_check_lib_save_LIBS=$LIBS
19258 LIBS="-lsvld $LIBS"
19259 cat >conftest.$ac_ext <<_ACEOF
19260 /* confdefs.h. */
19261 _ACEOF
19262 cat confdefs.h >>conftest.$ac_ext
19263 cat >>conftest.$ac_ext <<_ACEOF
19264 /* end confdefs.h. */
19265
19266 /* Override any gcc2 internal prototype to avoid an error. */
19267 #ifdef __cplusplus
19268 extern "C"
19269 #endif
19270 /* We use char because int might match the return type of a gcc2
19271 builtin and then its argument prototype would still apply. */
19272 char dlopen ();
19273 int
19274 main ()
19275 {
19276 dlopen ();
19277 ;
19278 return 0;
19279 }
19280 _ACEOF
19281 rm -f conftest.$ac_objext conftest$ac_exeext
19282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19283 (eval $ac_link) 2>conftest.er1
19284 ac_status=$?
19285 grep -v '^ *+' conftest.er1 >conftest.err
19286 rm -f conftest.er1
19287 cat conftest.err >&5
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); } &&
19290 { ac_try='test -z "$ac_c_werror_flag"
19291 || test ! -s conftest.err'
19292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19294 ac_status=$?
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; } &&
19297 { ac_try='test -s conftest$ac_exeext'
19298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19299 (eval $ac_try) 2>&5
19300 ac_status=$?
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); }; }; then
19303 ac_cv_lib_svld_dlopen=yes
19304 else
19305 echo "$as_me: failed program was:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19307
19308 ac_cv_lib_svld_dlopen=no
19309 fi
19310 rm -f conftest.err conftest.$ac_objext \
19311 conftest$ac_exeext conftest.$ac_ext
19312 LIBS=$ac_check_lib_save_LIBS
19313 fi
19314 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19315 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19316 if test $ac_cv_lib_svld_dlopen = yes; then
19317
19318 cat >>confdefs.h <<\_ACEOF
19319 #define HAVE_LIBDL 1
19320 _ACEOF
19321
19322 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
19323 else
19324 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19325 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19326 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19327 echo $ECHO_N "(cached) $ECHO_C" >&6
19328 else
19329 ac_check_lib_save_LIBS=$LIBS
19330 LIBS="-ldld $LIBS"
19331 cat >conftest.$ac_ext <<_ACEOF
19332 /* confdefs.h. */
19333 _ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h. */
19337
19338 /* Override any gcc2 internal prototype to avoid an error. */
19339 #ifdef __cplusplus
19340 extern "C"
19341 #endif
19342 /* We use char because int might match the return type of a gcc2
19343 builtin and then its argument prototype would still apply. */
19344 char dld_link ();
19345 int
19346 main ()
19347 {
19348 dld_link ();
19349 ;
19350 return 0;
19351 }
19352 _ACEOF
19353 rm -f conftest.$ac_objext conftest$ac_exeext
19354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19355 (eval $ac_link) 2>conftest.er1
19356 ac_status=$?
19357 grep -v '^ *+' conftest.er1 >conftest.err
19358 rm -f conftest.er1
19359 cat conftest.err >&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } &&
19362 { ac_try='test -z "$ac_c_werror_flag"
19363 || test ! -s conftest.err'
19364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19365 (eval $ac_try) 2>&5
19366 ac_status=$?
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; } &&
19369 { ac_try='test -s conftest$ac_exeext'
19370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19371 (eval $ac_try) 2>&5
19372 ac_status=$?
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); }; }; then
19375 ac_cv_lib_dld_dld_link=yes
19376 else
19377 echo "$as_me: failed program was:" >&5
19378 sed 's/^/| /' conftest.$ac_ext >&5
19379
19380 ac_cv_lib_dld_dld_link=no
19381 fi
19382 rm -f conftest.err conftest.$ac_objext \
19383 conftest$ac_exeext conftest.$ac_ext
19384 LIBS=$ac_check_lib_save_LIBS
19385 fi
19386 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19387 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19388 if test $ac_cv_lib_dld_dld_link = yes; then
19389
19390 cat >>confdefs.h <<\_ACEOF
19391 #define HAVE_DLD 1
19392 _ACEOF
19393
19394 LIBADD_DL="$LIBADD_DL -ldld"
19395 else
19396 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
19397 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
19398 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
19399 echo $ECHO_N "(cached) $ECHO_C" >&6
19400 else
19401 cat >conftest.$ac_ext <<_ACEOF
19402 /* confdefs.h. */
19403 _ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19407 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
19408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19409 #define _dyld_func_lookup innocuous__dyld_func_lookup
19410
19411 /* System header to define __stub macros and hopefully few prototypes,
19412 which can conflict with char _dyld_func_lookup (); below.
19413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19414 <limits.h> exists even on freestanding compilers. */
19415
19416 #ifdef __STDC__
19417 # include <limits.h>
19418 #else
19419 # include <assert.h>
19420 #endif
19421
19422 #undef _dyld_func_lookup
19423
19424 /* Override any gcc2 internal prototype to avoid an error. */
19425 #ifdef __cplusplus
19426 extern "C"
19427 {
19428 #endif
19429 /* We use char because int might match the return type of a gcc2
19430 builtin and then its argument prototype would still apply. */
19431 char _dyld_func_lookup ();
19432 /* The GNU C library defines this for functions which it implements
19433 to always fail with ENOSYS. Some functions are actually named
19434 something starting with __ and the normal name is an alias. */
19435 #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
19436 choke me
19437 #else
19438 char (*f) () = _dyld_func_lookup;
19439 #endif
19440 #ifdef __cplusplus
19441 }
19442 #endif
19443
19444 int
19445 main ()
19446 {
19447 return f != _dyld_func_lookup;
19448 ;
19449 return 0;
19450 }
19451 _ACEOF
19452 rm -f conftest.$ac_objext conftest$ac_exeext
19453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19454 (eval $ac_link) 2>conftest.er1
19455 ac_status=$?
19456 grep -v '^ *+' conftest.er1 >conftest.err
19457 rm -f conftest.er1
19458 cat conftest.err >&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); } &&
19461 { ac_try='test -z "$ac_c_werror_flag"
19462 || test ! -s conftest.err'
19463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19464 (eval $ac_try) 2>&5
19465 ac_status=$?
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; } &&
19468 { ac_try='test -s conftest$ac_exeext'
19469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19470 (eval $ac_try) 2>&5
19471 ac_status=$?
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); }; }; then
19474 ac_cv_func__dyld_func_lookup=yes
19475 else
19476 echo "$as_me: failed program was:" >&5
19477 sed 's/^/| /' conftest.$ac_ext >&5
19478
19479 ac_cv_func__dyld_func_lookup=no
19480 fi
19481 rm -f conftest.err conftest.$ac_objext \
19482 conftest$ac_exeext conftest.$ac_ext
19483 fi
19484 echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
19485 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
19486 if test $ac_cv_func__dyld_func_lookup = yes; then
19487
19488 cat >>confdefs.h <<\_ACEOF
19489 #define HAVE_DYLD 1
19490 _ACEOF
19491
19492 fi
19493
19494
19495 fi
19496
19497
19498 fi
19499
19500
19501 fi
19502 rm -f conftest.err conftest.$ac_objext \
19503 conftest$ac_exeext conftest.$ac_ext
19504
19505 fi
19506
19507
19508 fi
19509
19510
19511 fi
19512
19513
19514 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19515 then
19516 lt_save_LIBS="$LIBS"
19517 LIBS="$LIBS $LIBADD_DL"
19518
19519 for ac_func in dlerror
19520 do
19521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19522 echo "$as_me:$LINENO: checking for $ac_func" >&5
19523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19524 if eval "test \"\${$as_ac_var+set}\" = set"; then
19525 echo $ECHO_N "(cached) $ECHO_C" >&6
19526 else
19527 cat >conftest.$ac_ext <<_ACEOF
19528 /* confdefs.h. */
19529 _ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19535 #define $ac_func innocuous_$ac_func
19536
19537 /* System header to define __stub macros and hopefully few prototypes,
19538 which can conflict with char $ac_func (); below.
19539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19540 <limits.h> exists even on freestanding compilers. */
19541
19542 #ifdef __STDC__
19543 # include <limits.h>
19544 #else
19545 # include <assert.h>
19546 #endif
19547
19548 #undef $ac_func
19549
19550 /* Override any gcc2 internal prototype to avoid an error. */
19551 #ifdef __cplusplus
19552 extern "C"
19553 {
19554 #endif
19555 /* We use char because int might match the return type of a gcc2
19556 builtin and then its argument prototype would still apply. */
19557 char $ac_func ();
19558 /* The GNU C library defines this for functions which it implements
19559 to always fail with ENOSYS. Some functions are actually named
19560 something starting with __ and the normal name is an alias. */
19561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19562 choke me
19563 #else
19564 char (*f) () = $ac_func;
19565 #endif
19566 #ifdef __cplusplus
19567 }
19568 #endif
19569
19570 int
19571 main ()
19572 {
19573 return f != $ac_func;
19574 ;
19575 return 0;
19576 }
19577 _ACEOF
19578 rm -f conftest.$ac_objext conftest$ac_exeext
19579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19580 (eval $ac_link) 2>conftest.er1
19581 ac_status=$?
19582 grep -v '^ *+' conftest.er1 >conftest.err
19583 rm -f conftest.er1
19584 cat conftest.err >&5
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); } &&
19587 { ac_try='test -z "$ac_c_werror_flag"
19588 || test ! -s conftest.err'
19589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19590 (eval $ac_try) 2>&5
19591 ac_status=$?
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; } &&
19594 { ac_try='test -s conftest$ac_exeext'
19595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19596 (eval $ac_try) 2>&5
19597 ac_status=$?
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); }; }; then
19600 eval "$as_ac_var=yes"
19601 else
19602 echo "$as_me: failed program was:" >&5
19603 sed 's/^/| /' conftest.$ac_ext >&5
19604
19605 eval "$as_ac_var=no"
19606 fi
19607 rm -f conftest.err conftest.$ac_objext \
19608 conftest$ac_exeext conftest.$ac_ext
19609 fi
19610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19611 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19612 if test `eval echo '${'$as_ac_var'}'` = yes; then
19613 cat >>confdefs.h <<_ACEOF
19614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19615 _ACEOF
19616
19617 fi
19618 done
19619
19620 LIBS="$lt_save_LIBS"
19621 fi
19622 ac_ext=c
19623 ac_cpp='$CPP $CPPFLAGS'
19624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19627
19628
19629 if test -n "$ac_tool_prefix"; then
19630 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19631 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19632 echo "$as_me:$LINENO: checking for $ac_word" >&5
19633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19634 if test "${ac_cv_prog_RANLIB+set}" = set; then
19635 echo $ECHO_N "(cached) $ECHO_C" >&6
19636 else
19637 if test -n "$RANLIB"; then
19638 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19639 else
19640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19641 for as_dir in $PATH
19642 do
19643 IFS=$as_save_IFS
19644 test -z "$as_dir" && as_dir=.
19645 for ac_exec_ext in '' $ac_executable_extensions; do
19646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19647 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19649 break 2
19650 fi
19651 done
19652 done
19653
19654 fi
19655 fi
19656 RANLIB=$ac_cv_prog_RANLIB
19657 if test -n "$RANLIB"; then
19658 echo "$as_me:$LINENO: result: $RANLIB" >&5
19659 echo "${ECHO_T}$RANLIB" >&6
19660 else
19661 echo "$as_me:$LINENO: result: no" >&5
19662 echo "${ECHO_T}no" >&6
19663 fi
19664
19665 fi
19666 if test -z "$ac_cv_prog_RANLIB"; then
19667 ac_ct_RANLIB=$RANLIB
19668 # Extract the first word of "ranlib", so it can be a program name with args.
19669 set dummy ranlib; ac_word=$2
19670 echo "$as_me:$LINENO: checking for $ac_word" >&5
19671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19672 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
19673 echo $ECHO_N "(cached) $ECHO_C" >&6
19674 else
19675 if test -n "$ac_ct_RANLIB"; then
19676 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19677 else
19678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19679 for as_dir in $PATH
19680 do
19681 IFS=$as_save_IFS
19682 test -z "$as_dir" && as_dir=.
19683 for ac_exec_ext in '' $ac_executable_extensions; do
19684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19685 ac_cv_prog_ac_ct_RANLIB="ranlib"
19686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19687 break 2
19688 fi
19689 done
19690 done
19691
19692 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
19693 fi
19694 fi
19695 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19696 if test -n "$ac_ct_RANLIB"; then
19697 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
19698 echo "${ECHO_T}$ac_ct_RANLIB" >&6
19699 else
19700 echo "$as_me:$LINENO: result: no" >&5
19701 echo "${ECHO_T}no" >&6
19702 fi
19703
19704 RANLIB=$ac_ct_RANLIB
19705 else
19706 RANLIB="$ac_cv_prog_RANLIB"
19707 fi
19708
19709
19710
19711 CRYPTLIB=''
19712 REGEXLIB='' # -lregex
19713 LIBREGEX='' # libregex.a
19714
19715
19716
19717
19718 if test -z "$EXEEXT"; then
19719 CGIEXT=".cgi"
19720 else
19721 # automake automatically adds .exe when installing binaries
19722 CGIEXT=""
19723 fi
19724
19725
19726 case "$host_os" in
19727 mingw|mingw32|cygwin|cygwin32)
19728
19729
19730 if true; then
19731 ENABLE_WIN32SPECIFIC_TRUE=
19732 ENABLE_WIN32SPECIFIC_FALSE='#'
19733 else
19734 ENABLE_WIN32SPECIFIC_TRUE='#'
19735 ENABLE_WIN32SPECIFIC_FALSE=
19736 fi
19737
19738 ;;
19739 *)
19740
19741
19742 if false; then
19743 ENABLE_WIN32SPECIFIC_TRUE=
19744 ENABLE_WIN32SPECIFIC_FALSE='#'
19745 else
19746 ENABLE_WIN32SPECIFIC_TRUE='#'
19747 ENABLE_WIN32SPECIFIC_FALSE=
19748 fi
19749
19750 ;;
19751 esac
19752
19753 case "$host_os" in
19754 mingw|mingw32)
19755 # Extract the first word of "psapi.dll", so it can be a program name with args.
19756 set dummy psapi.dll; ac_word=$2
19757 echo "$as_me:$LINENO: checking for $ac_word" >&5
19758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19759 if test "${ac_cv_path_WIN32_PSAPI+set}" = set; then
19760 echo $ECHO_N "(cached) $ECHO_C" >&6
19761 else
19762 case $WIN32_PSAPI in
19763 [\\/]* | ?:[\\/]*)
19764 ac_cv_path_WIN32_PSAPI="$WIN32_PSAPI" # Let the user override the test with a path.
19765 ;;
19766 *)
19767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19768 for as_dir in $PATH
19769 do
19770 IFS=$as_save_IFS
19771 test -z "$as_dir" && as_dir=.
19772 for ac_exec_ext in '' $ac_executable_extensions; do
19773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19774 ac_cv_path_WIN32_PSAPI="$as_dir/$ac_word$ac_exec_ext"
19775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19776 break 2
19777 fi
19778 done
19779 done
19780
19781 test -z "$ac_cv_path_WIN32_PSAPI" && ac_cv_path_WIN32_PSAPI="none"
19782 ;;
19783 esac
19784 fi
19785 WIN32_PSAPI=$ac_cv_path_WIN32_PSAPI
19786
19787 if test -n "$WIN32_PSAPI"; then
19788 echo "$as_me:$LINENO: result: $WIN32_PSAPI" >&5
19789 echo "${ECHO_T}$WIN32_PSAPI" >&6
19790 else
19791 echo "$as_me:$LINENO: result: no" >&5
19792 echo "${ECHO_T}no" >&6
19793 fi
19794
19795 CFLAGS="$CFLAGS -mthreads"
19796 CXXFLAGS="$CXXFLAGS -mthreads"
19797 if test "$ac_cv_path_WIN32_PSAPI" = "none"; then
19798 echo "PSAPI.DLL is recommended to run Squid on Windows NT Platform"
19799 echo "Please see PSAPI.DLL section on doc/win32-relnotes.html."
19800 else
19801
19802 cat >>confdefs.h <<\_ACEOF
19803 #define HAVE_WIN32_PSAPI 1
19804 _ACEOF
19805
19806 LIBS="$LIBS -lpsapi"
19807 fi
19808 MINGW_LIBS="-lmingwex"
19809
19810
19811 if true; then
19812 USE_IPC_WIN32_TRUE=
19813 USE_IPC_WIN32_FALSE='#'
19814 else
19815 USE_IPC_WIN32_TRUE='#'
19816 USE_IPC_WIN32_FALSE=
19817 fi
19818
19819
19820 ;;
19821 *)
19822
19823
19824 if false; then
19825 USE_IPC_WIN32_TRUE=
19826 USE_IPC_WIN32_FALSE='#'
19827 else
19828 USE_IPC_WIN32_TRUE='#'
19829 USE_IPC_WIN32_FALSE=
19830 fi
19831
19832 ;;
19833 esac
19834
19835 if test -z "$CACHE_HTTP_PORT"; then
19836 CACHE_HTTP_PORT="3128"
19837 fi
19838 if test -z "$CACHE_ICP_PORT"; then
19839 CACHE_ICP_PORT="3130"
19840 fi
19841
19842
19843 cat >>confdefs.h <<_ACEOF
19844 #define CACHE_HTTP_PORT $CACHE_HTTP_PORT
19845 _ACEOF
19846
19847
19848
19849 cat >>confdefs.h <<_ACEOF
19850 #define CACHE_ICP_PORT $CACHE_ICP_PORT
19851 _ACEOF
19852
19853
19854
19855 cat >>confdefs.h <<_ACEOF
19856 #define CONFIG_HOST_TYPE "$host"
19857 _ACEOF
19858
19859
19860
19861 cat >>confdefs.h <<_ACEOF
19862 #define SQUID_CONFIGURE_OPTIONS "$ac_configure_args"
19863 _ACEOF
19864
19865
19866 case "$host" in
19867 mab-next-nextstep3)
19868 CC="$CC -arch m68k -arch i486 -arch hppa -arch sparc"
19869 ;;
19870 esac
19871
19872 if test "$GCC" = "yes"; then
19873 GCCVER=`$CC -v 2>&1 | awk '$2 == "version" {print $3}'`
19874 GCCVER2=`echo $GCCVER | awk '{print $1 * 100}'`
19875 case "$host" in
19876 i386-*-freebsd*)
19877 if test $GCCVER2 -lt 300 ; then
19878 echo "ERROR: GCC $GCCVER causes a coredump on $host"
19879 echo "ERROR: Try a more recent GCC version"
19880 sleep 5
19881 fi
19882 ;;
19883 esac
19884 unset GCCVER
19885 unset GCCVER2
19886 fi
19887
19888 if test -z "$PRESET_CFLAGS"; then
19889 if test "$GCC" = "yes"; then
19890 case "$host" in
19891 *-sun-sunos*)
19892 # sunos has too many warnings for this to be useful
19893 # motorola too
19894 ;;
19895 *m88k*)
19896 # Motorola cc/ld does not like -02 but is ok on -O
19897 CFLAGS=`echo $CFLAGS | sed -e 's/-O0-9/-O/'`
19898 ;;
19899 *)
19900 CFLAGS="-Wall $CFLAGS"
19901 ;;
19902 esac
19903 else
19904 case "$host" in
19905 *mips-sgi-irix6.*)
19906 # suggested by Rafael Seidl <rafaels@cthulhu.engr.sgi.com>
19907 CFLAGS="-O3 -OPT:Olimit=0:space=OFF \
19908 -woff 1009,1014,1110,1116,1183,1185,1188,1204,1230,1233,1355 \
19909 -Wl,-woff,85,-woff,84,-woff,134 \
19910 -nostdinc -I/usr/include -D_BSD_SIGNALS $CFLAGS"
19911 CXXFLAGS="-O3 -OPT:Olimit=0:space=OFF \
19912 -woff 1009,1014,1110,1116,1183,1185,1188,1204,1230,1233,1355 \
19913 -Wl,-woff,85,-woff,84,-woff,134 \
19914 -nostdinc -I/usr/include -D_BSD_SIGNALS $CXXFLAGS"
19915 ;;
19916 alpha-dec-osf4.*)
19917 # Mogul says DEC compilers take both -g and -O2
19918 CFLAGS=`echo $CFLAGS | sed -e 's/-g/-g3/'`
19919 CFLAGS="-O2 $CFLAGS"
19920 ;;
19921 *)
19922 ;;
19923 esac
19924 fi
19925 fi
19926
19927 if test "$GCC" = "yes"; then
19928 case "$host_os" in
19929 mingw|mingw32)
19930 SQUID_CFLAGS="-Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments"
19931 ;;
19932 *)
19933 SQUID_CFLAGS="-Werror -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wcomments"
19934 ;;
19935 esac
19936 SQUID_CXXFLAGS="-Werror -Wall -Wpointer-arith -Wwrite-strings -Wcomments"
19937 else
19938 SQUID_CFLAGS=
19939 SQUID_CXXFLAGS=
19940 fi
19941
19942
19943
19944
19945 echo "$as_me:$LINENO: checking whether compiler accepts -fhuge-objects" >&5
19946 echo $ECHO_N "checking whether compiler accepts -fhuge-objects... $ECHO_C" >&6
19947 if test "${ac_cv_test_checkforhugeobjects+set}" = set; then
19948 echo $ECHO_N "(cached) $ECHO_C" >&6
19949 else
19950
19951 ac_cv_test_checkforhugeobjects=`echo "int foo;" > conftest.cc
19952 ${CXX} -Werror -fhuge-objects -c conftest.cc 2>/dev/null
19953 res=$?
19954 rm -f conftest.*
19955 echo yes
19956 exit $res`
19957 if [ $? -ne 0 ]
19958 then ac_cv_test_checkforhugeobjects=no
19959 else if [ -z "$ac_cv_test_checkforhugeobjects" ]
19960 then ac_cv_test_checkforhugeobjects=yes
19961 fi ; fi
19962
19963 fi
19964 # end of CACHE_VAL
19965 echo "$as_me:$LINENO: result: ${ac_cv_test_checkforhugeobjects}" >&5
19966 echo "${ECHO_T}${ac_cv_test_checkforhugeobjects}" >&6
19967
19968 if test "X${ac_cv_test_checkforhugeobjects}" != Xno
19969 then
19970 HUGE_OBJECT_FLAG="-fhuge-objects"
19971 else
19972 HUGE_OBJECT_FLAG=""
19973 fi
19974
19975 SQUID_CXXFLAGS="$SQUID_CXXFLAGS $HUGE_OBJECT_FLAG"
19976
19977 if test -z "$PRESET_LDFLAGS"; then
19978 if test "$GCC" = "yes"; then
19979 case "$host" in
19980 *mips-sgi-irix6.*)
19981 # Silence Linker warnings 84, 85 and 134
19982 LDFLAGS="-Wl,-woff,85 -Wl,-woff,84 -Wl,-woff,134 $LDFLAGS"
19983 ;;
19984 *)
19985 # nothing
19986 ;;
19987 esac
19988 else
19989 case "$host" in
19990 *)
19991 # nothing
19992 ;;
19993 esac
19994 fi
19995 fi
19996
19997 # Check whether --enable-dlmalloc or --disable-dlmalloc was given.
19998 if test "${enable_dlmalloc+set}" = set; then
19999 enableval="$enable_dlmalloc"
20000
20001 case "$enableval" in
20002 'yes')
20003 use_dlmalloc="yes"
20004 LIBDLMALLOC="libdlmalloc.a"
20005 LIB_MALLOC="-L../lib -ldlmalloc"
20006 echo "dlmalloc enabled"
20007 ;;
20008 'no')
20009 use_dlmalloc="no"
20010 echo "dlmalloc disabled"
20011 ;;
20012 *) use_dlmalloc="yes"
20013 LIB_MALLOC="$enableval"
20014 echo "dlmalloc enabled with $LIB_MALLOC"
20015 esac
20016
20017 fi;
20018 if test "${use_dlmalloc-unset}" = unset; then
20019 case "$host" in
20020 i386-*-solaris2.*)
20021 echo "Enabling dlmalloc for $host"
20022 use_dlmalloc="yes"
20023 LIBDLMALLOC="libdlmalloc.a"
20024 LIB_MALLOC="-L../lib -ldlmalloc"
20025 ;;
20026 *-sgi-irix*)
20027 echo "Enabling dlmalloc for $host"
20028 use_dlmalloc="yes"
20029 LIBDLMALLOC="libdlmalloc.a"
20030 LIB_MALLOC="-L../lib -ldlmalloc"
20031 ;;
20032 esac
20033 fi
20034 if test "x$ac_cv_enabled_dlmalloc" = "xyes"; then
20035 # Ok. dlmalloc was enabled before, but state may be changed.
20036 # we have to test these again
20037 unset ac_cv_func_mallinfo
20038 unset ac_cv_func_mallocblksize
20039 unset ac_cv_func_free
20040 unset ac_cv_func_realloc
20041 unset ac_cv_func_memalign
20042 unset ac_cv_func_valloc
20043 unset ac_cv_func_pvalloc
20044 unset ac_cv_func_calloc
20045 unset ac_cv_func_cfree
20046 unset ac_cv_func_malloc_trim
20047 unset ac_cv_func_malloc_usable_size
20048 unset ac_cv_func_malloc_stats
20049 unset ac_cv_func_mallinfo
20050 unset ac_cv_func_mallopt
20051 unset ac_cv_lib_gnumalloc
20052 unset ac_cv_header_gnumalloc_h
20053 unset ac_cv_lib_malloc
20054 unset ac_cv_enabled_dlmalloc
20055 fi
20056 if test "$use_dlmalloc" = yes; then
20057 ac_cv_func_mallinfo="yes"
20058 ac_cv_func_mallocblksize="no"
20059 ac_cv_func_free="yes"
20060 ac_cv_func_realloc="yes"
20061 ac_cv_func_memalign="yes"
20062 ac_cv_func_valloc="yes"
20063 ac_cv_func_pvalloc="yes"
20064 ac_cv_func_calloc="yes"
20065 ac_cv_func_cfree="yes"
20066 ac_cv_func_malloc_trim="yes"
20067 ac_cv_func_malloc_usable_size="yes"
20068 ac_cv_func_malloc_stats="yes"
20069 ac_cv_func_mallopt="yes"
20070 ac_cv_lib_gnumalloc="no"
20071 ac_cv_header_gnumalloc_h="no"
20072 ac_cv_lib_malloc="no"
20073 ac_cv_enabled_dlmalloc="yes"
20074
20075 cat >>confdefs.h <<\_ACEOF
20076 #define USE_DLMALLOC 1
20077 _ACEOF
20078
20079 fi
20080
20081
20082
20083
20084 # Check whether --enable-gnuregex or --disable-gnuregex was given.
20085 if test "${enable_gnuregex+set}" = set; then
20086 enableval="$enable_gnuregex"
20087 USE_GNUREGEX=$enableval
20088 fi;
20089
20090 SquidInline="yes"
20091
20092 # Check whether --enable-optimizations or --disable-optimizations was given.
20093 if test "${enable_optimizations+set}" = set; then
20094 enableval="$enable_optimizations"
20095 if test "$enableval" = "no" ; then
20096 echo "Disabling compiler optimizations (-O flag)"
20097 CFLAGS="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`"
20098 CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-O[0-9]*//'`"
20099 SquidInline="no"
20100 fi
20101
20102 fi;
20103
20104 # Check whether --enable-inline or --disable-inline was given.
20105 if test "${enable_inline+set}" = set; then
20106 enableval="$enable_inline"
20107 if test "$enableval" = "no" ; then
20108 SquidInline="no"
20109 fi
20110
20111 fi;
20112
20113 if test "$SquidInline" = "yes" ; then
20114
20115 cat >>confdefs.h <<\_ACEOF
20116 #define _SQUID_INLINE_ inline
20117 _ACEOF
20118
20119
20120 cat >>confdefs.h <<\_ACEOF
20121 #define _USE_INLINE_
20122 _ACEOF
20123
20124 else
20125 echo "Inlining optimization disabled"
20126
20127 cat >>confdefs.h <<\_ACEOF
20128 #define _SQUID_INLINE_
20129 _ACEOF
20130
20131 fi
20132
20133 # Check whether --enable-debug-cbdata or --disable-debug-cbdata was given.
20134 if test "${enable_debug_cbdata+set}" = set; then
20135 enableval="$enable_debug_cbdata"
20136 if test "$enableval" = "yes" ; then
20137 echo "cbdata debugging enabled"
20138
20139 cat >>confdefs.h <<\_ACEOF
20140 #define CBDATA_DEBUG 1
20141 _ACEOF
20142
20143 fi
20144
20145 fi;
20146
20147
20148
20149 # Check whether --enable-xmalloc-statistics or --disable-xmalloc-statistics was given.
20150 if test "${enable_xmalloc_statistics+set}" = set; then
20151 enableval="$enable_xmalloc_statistics"
20152 if test "$enableval" = "yes" ; then
20153 echo "Malloc statistics enabled"
20154
20155 cat >>confdefs.h <<\_ACEOF
20156 #define XMALLOC_STATISTICS 1
20157 _ACEOF
20158
20159 fi
20160
20161 fi;
20162
20163 use_carp=1
20164 # Check whether --enable-carp or --disable-carp was given.
20165 if test "${enable_carp+set}" = set; then
20166 enableval="$enable_carp"
20167 if test "$enableval" = "no" ; then
20168 echo "CARP disabled"
20169 use_carp=0
20170 fi
20171
20172 fi;
20173 if test $use_carp = 1; then
20174
20175 cat >>confdefs.h <<\_ACEOF
20176 #define USE_CARP 1
20177 _ACEOF
20178
20179 fi
20180
20181 # Check whether --enable-async-io or --disable-async-io was given.
20182 if test "${enable_async_io+set}" = set; then
20183 enableval="$enable_async_io"
20184 case $enableval in
20185 yes)
20186 with_pthreads="yes"
20187 STORE_MODULES="ufs aufs"
20188 ;;
20189 no)
20190 ;;
20191 *)
20192 aufs_io_threads=$enableval
20193 with_pthreads="yes"
20194 STORE_MODULES="ufs aufs"
20195 ;;
20196 esac
20197
20198 fi;
20199
20200
20201 # Check whether --with-aufs-threads or --without-aufs-threads was given.
20202 if test "${with_aufs_threads+set}" = set; then
20203 withval="$with_aufs_threads"
20204 case $withval in
20205 [0-9]*)
20206 aufs_io_threads=$withval
20207 ;;
20208 *)
20209 echo "ERROR: Invalid --with-aufs-threads argument"
20210 exit 1
20211 ;;
20212 esac
20213
20214 fi;
20215 if test "$aufs_io_threads"; then
20216 echo "With $aufs_io_threads aufs threads"
20217
20218 cat >>confdefs.h <<_ACEOF
20219 #define AUFS_IO_THREADS $aufs_io_threads
20220 _ACEOF
20221
20222 fi
20223
20224
20225 # Check whether --with-pthreads or --without-pthreads was given.
20226 if test "${with_pthreads+set}" = set; then
20227 withval="$with_pthreads"
20228
20229 fi;
20230 if test "$with_pthreads" = "yes"; then
20231 echo "With pthreads"
20232 fi
20233
20234
20235 # Check whether --with-aio or --without-aio was given.
20236 if test "${with_aio+set}" = set; then
20237 withval="$with_aio"
20238
20239 fi;
20240 if test "$with_aio" = "yes"; then
20241 echo "With aio"
20242 fi
20243
20244
20245 # Check whether --with-dl or --without-dl was given.
20246 if test "${with_dl+set}" = set; then
20247 withval="$with_dl"
20248
20249 fi;
20250 if test "$with_dl" = "yes"; then
20251 echo "With dl"
20252 fi
20253
20254 # Check whether --enable-storeio or --disable-storeio was given.
20255 if test "${enable_storeio+set}" = set; then
20256 enableval="$enable_storeio"
20257 case $enableval in
20258 yes)
20259 for dir in $srcdir/src/fs/*; do
20260 module="`basename $dir`"
20261 if test -d "$dir" && test "$module" != CVS; then
20262 STORE_MODULES="$STORE_MODULES $module"
20263 fi
20264 done
20265 ;;
20266 no)
20267 ;;
20268 *)
20269 STORE_MODULES="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
20270 ;;
20271 esac
20272
20273 else
20274 if test -z "$STORE_MODULES"; then
20275 STORE_MODULES="ufs"
20276 fi
20277
20278 fi;
20279 if test -n "$STORE_MODULES"; then
20280 for module in $STORE_MODULES; do
20281 if test -d $srcdir/src/fs/$module; then
20282 :
20283 else
20284 echo "ERROR: storeio $module does not exists"
20285 exit 1
20286 fi
20287 done
20288 echo "Store modules built: $STORE_MODULES"
20289 STORE_LINKOBJS=
20290 for module in $STORE_MODULES; do
20291 STORE_LINKOBJS="$STORE_LINKOBJS fs/${module}/StoreFS${module}.o"
20292 done
20293 fi
20294 UFS_FOUND=
20295 NEED_UFS=
20296 NEED_BLOCKING=
20297 NEED_DISKDAEMON=
20298 NEED_DISKTHREADS=
20299 NEED_AIO=
20300 STORE_TESTS=
20301 for fs in $STORE_MODULES none; do
20302 case "$fs" in
20303 diskd)
20304 NEED_UFS="true"
20305 NEED_BLOCKING="true"
20306 NEED_DISKDAEMON="true"
20307 ;;
20308 aufs)
20309 NEED_UFS="true"
20310 NEED_BLOCKING="true"
20311 NEED_DISKTHREADS="true"
20312 ;;
20313 coss)
20314 NEED_AIO="true"
20315 STORE_TESTS="$STORE_TESTS tests/testCoss$EXEEXT"
20316 ;;
20317 null)
20318 STORE_TESTS="$STORE_TESTS tests/testNull$EXEEXT"
20319 ;;
20320 ufs)
20321 UFS_FOUND="true"
20322 STORE_TESTS="$STORE_TESTS tests/testUfs$EXEEXT"
20323 esac
20324 done
20325 STORE_OBJS=
20326 STORE_LIBS=
20327 for fs in $STORE_MODULES; do
20328 case "$fs" in
20329 diskd);;
20330 aufs);;
20331 *)
20332 STORE_OBJS="$STORE_OBJS fs/lib${fs}.a"
20333 STORE_LIBS="$STORE_LIBS lib${fs}.a"
20334 ;;
20335 esac
20336 done
20337
20338 if test -z "$UFS_FOUND" && test -n "$NEED_UFS"; then
20339 echo "adding UFS, as it contains core logic for diskd and aufs"
20340 STORE_OBJS="$STORE_OBJS fs/libufs.a"
20341 STORE_LIBS="$STORE_LIBS libufs.a"
20342 STORE_MODULES="$STORE_MODULES ufs"
20343 STORE_LINKOBJS="$STORE_LINKOBJS fs/ufs/StoreFSufs.o"
20344 STORE_TESTS="$STORE_TESTS tests/testUfs$EXEEXT"
20345 fi
20346
20347
20348
20349
20350
20351
20352 # Check whether --enable-disk-io or --disable-disk-io was given.
20353 if test "${enable_disk_io+set}" = set; then
20354 enableval="$enable_disk_io"
20355 case $enableval in
20356 yes)
20357 for dir in $srcdir/src/DiskIO/*; do
20358 module="`basename $dir`"
20359 if test -d "$dir" && test "$module" != CVS; then
20360 DISK_MODULES="$DISK_MODULES $module"
20361 fi
20362 done
20363 ;;
20364 no)
20365 ;;
20366 *)
20367 DISK_MODULES="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
20368 ;;
20369 esac
20370
20371 else
20372 if test -z "$DISK_MODULES"; then
20373 DISK_MODULES="Blocking"
20374 fi
20375
20376 fi;
20377 if test -n "$DISK_MODULES"; then
20378 for module in $DISK_MODULES; do
20379 if test -d $srcdir/src/DiskIO/$module; then
20380 :
20381 else
20382 echo "ERROR: disk-io $module does not exists"
20383 exit 1
20384 fi
20385 done
20386 DISK_LIBS="lib`echo $DISK_MODULES|sed -e 's% %.a lib%g'`.a"
20387 DISK_LINKOBJS=
20388 for module in $DISK_MODULES; do
20389 DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/${module}/${module}DiskIOModule.o"
20390 done
20391 fi
20392 for fs in $DISK_MODULES none; do
20393 case "$fs" in
20394 DiskDaemon)
20395 DISK_PROGRAMS="$DISK_PROGRAMS DiskIO/DiskDaemon/diskd"
20396 FOUND_DISKDAEMON="true"
20397 ;;
20398 DiskThreads)
20399 FOUND_DISKTHREADS="true"
20400 ;;
20401 AIO)
20402 FOUND_AIO="true"
20403 ;;
20404 Blocking)
20405 FOUND_BLOCKING="true"
20406 esac
20407 done
20408
20409 if test -z "$FOUND_BLOCKING" && test -n "$NEED_BLOCKING"; then
20410 echo "adding Blocking, as it is used by an active, legacy Store Module"
20411 DISK_LIBS="$DISK_LIBS libBlocking.a"
20412 DISK_MODULES="$DISK_MODULES Blocking"
20413 DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/Blocking/BlockingDiskIOModule.o"
20414 fi
20415
20416 if test -z "$FOUND_DISKDAEMON" && test -n "$NEED_DISKDAEMON"; then
20417 echo "adding DiskDaemon, as it is used by an active, legacy Store Module"
20418 DISK_LIBS="$DISK_LIBS libDiskDaemon.a"
20419 DISK_MODULES="$DISK_MODULES DiskDaemon"
20420 DISK_PROGRAMS="$DISK_PROGRAMS DiskIO/DiskDaemon/diskd"
20421 DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/DiskDaemon/DiskDaemonDiskIOModule.o"
20422 fi
20423
20424 if test -z "$FOUND_DISKTHREADS" && test -n "$NEED_DISKTHREADS"; then
20425 echo "adding DiskThreads, as it is used by an active, legacy Store Module"
20426 DISK_LIBS="$DISK_LIBS libDiskThreads.a"
20427 DISK_MODULES="$DISK_MODULES DiskThreads"
20428 DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/DiskThreads/DiskThreadsDiskIOModule.o"
20429 fi
20430
20431 if test -z "$FOUND_AIO" && test -n "$NEED_AIO"; then
20432 echo "adding AIO, as it is used by an active, legacy Store Module"
20433 DISK_LIBS="$DISK_LIBS libAIO.a"
20434 DISK_MODULES="$DISK_MODULES AIO"
20435 DISK_LINKOBJS="$DISK_LINKOBJS DiskIO/AIO/AIODiskIOModule.o"
20436 fi
20437 echo "IO Modules built: $DISK_MODULES"
20438 USE_AIOPS_WIN32=0
20439 USE_AIO_WIN32=0
20440 for fs in $DISK_MODULES none; do
20441 case "$fs" in
20442 DiskThreads)
20443 if test -z "$with_pthreads"; then
20444 case "$host_os" in
20445 mingw|mingw32)
20446 USE_AIOPS_WIN32=1
20447 echo "DiskThreads IO Module used, Windows threads support automatically enabled"
20448 ;;
20449 *)
20450 echo "DiskThreads IO Module used, pthreads support automatically enabled"
20451 with_pthreads=yes
20452 ;;
20453 esac
20454 fi
20455 ;;
20456 AIO)
20457 if test -z "$with_aio"; then
20458 case "$host_os" in
20459 mingw|mingw32)
20460 USE_AIO_WIN32=1
20461 echo "Aio IO Module used, Windows overlapped I/O support automatically enabled"
20462 ;;
20463 *)
20464 echo "Aio IO Module used, aio support automatically enabled"
20465 with_aio=yes
20466 ;;
20467 esac
20468 fi
20469 ;;
20470 esac
20471 done
20472
20473
20474
20475
20476
20477
20478 if test "$USE_AIOPS_WIN32" = 1; then
20479 USE_AIOPS_WIN32_TRUE=
20480 USE_AIOPS_WIN32_FALSE='#'
20481 else
20482 USE_AIOPS_WIN32_TRUE='#'
20483 USE_AIOPS_WIN32_FALSE=
20484 fi
20485
20486
20487
20488 if test "$USE_AIO_WIN32" = 1; then
20489 USE_AIO_WIN32_TRUE=
20490 USE_AIO_WIN32_FALSE='#'
20491 else
20492 USE_AIO_WIN32_TRUE='#'
20493 USE_AIO_WIN32_FALSE=
20494 fi
20495
20496
20497 # Check whether --enable-removal-policies or --disable-removal-policies was given.
20498 if test "${enable_removal_policies+set}" = set; then
20499 enableval="$enable_removal_policies"
20500 case $enableval in
20501 yes)
20502 for dir in $srcdir/src/repl/*; do
20503 module="`basename $dir`"
20504 if test -d "$dir" && test "$module" != CVS; then
20505 REPL_POLICIES="$REPL_POLICIES $module"
20506 fi
20507 done
20508 ;;
20509 no)
20510 ;;
20511 *)
20512 REPL_POLICIES="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
20513 ;;
20514 esac
20515
20516 else
20517 if test -z "$REPL_POLICIES"; then
20518 REPL_POLICIES="lru"
20519 fi
20520
20521 fi;
20522 if test -n "$REPL_POLICIES"; then
20523 for module in $REPL_POLICIES; do
20524 if test -d $srcdir/src/repl/$module; then
20525 :
20526 else
20527 echo "ERROR: Removal policy $module does not exists"
20528 exit 1
20529 fi
20530 done
20531 echo "Removal policies built: $REPL_POLICIES"
20532 REPL_OBJS="repl/lib`echo $REPL_POLICIES|sed -e 's% %.a repl/lib%g'`.a"
20533 REPL_LIBS="`echo $REPL_OBJS|sed -e 's%repl/%%g'`"
20534 fi
20535
20536
20537
20538
20539
20540
20541 if false; then
20542 ENABLE_PINGER_TRUE=
20543 ENABLE_PINGER_FALSE='#'
20544 else
20545 ENABLE_PINGER_TRUE='#'
20546 ENABLE_PINGER_FALSE=
20547 fi
20548
20549 # Check whether --enable-icmp or --disable-icmp was given.
20550 if test "${enable_icmp+set}" = set; then
20551 enableval="$enable_icmp"
20552 if test "$enableval" = "yes" ; then
20553 echo "ICMP enabled"
20554
20555 cat >>confdefs.h <<\_ACEOF
20556 #define USE_ICMP 1
20557 _ACEOF
20558
20559
20560
20561 if true; then
20562 ENABLE_PINGER_TRUE=
20563 ENABLE_PINGER_FALSE='#'
20564 else
20565 ENABLE_PINGER_TRUE='#'
20566 ENABLE_PINGER_FALSE=
20567 fi
20568
20569 fi
20570
20571 fi;
20572
20573
20574
20575 if false; then
20576 USE_DELAY_POOLS_TRUE=
20577 USE_DELAY_POOLS_FALSE='#'
20578 else
20579 USE_DELAY_POOLS_TRUE='#'
20580 USE_DELAY_POOLS_FALSE=
20581 fi
20582
20583 # Check whether --enable-delay-pools or --disable-delay-pools was given.
20584 if test "${enable_delay_pools+set}" = set; then
20585 enableval="$enable_delay_pools"
20586 if test "$enableval" = "yes" ; then
20587 echo "Delay pools enabled"
20588
20589 cat >>confdefs.h <<\_ACEOF
20590 #define DELAY_POOLS 1
20591 _ACEOF
20592
20593
20594
20595 if true; then
20596 USE_DELAY_POOLS_TRUE=
20597 USE_DELAY_POOLS_FALSE='#'
20598 else
20599 USE_DELAY_POOLS_TRUE='#'
20600 USE_DELAY_POOLS_FALSE=
20601 fi
20602
20603 fi
20604
20605 fi;
20606
20607
20608
20609 if false; then
20610 USE_ESI_TRUE=
20611 USE_ESI_FALSE='#'
20612 else
20613 USE_ESI_TRUE='#'
20614 USE_ESI_FALSE=
20615 fi
20616
20617 # Check whether --enable-esi or --disable-esi was given.
20618 if test "${enable_esi+set}" = set; then
20619 enableval="$enable_esi"
20620 ac_cv_use_esi=$enableval
20621 else
20622 ac_cv_use_esi=no
20623 fi;
20624 echo "$as_me:$LINENO: checking whether to enable ESI" >&5
20625 echo $ECHO_N "checking whether to enable ESI... $ECHO_C" >&6
20626 if test "${ac_cv_use_esi+set}" = set; then
20627 echo $ECHO_N "(cached) $ECHO_C" >&6
20628 else
20629 ac_cv_use_esi=no
20630 fi
20631 echo "$as_me:$LINENO: result: $ac_cv_use_esi" >&5
20632 echo "${ECHO_T}$ac_cv_use_esi" >&6
20633 if test "$ac_cv_use_esi" = "yes" ; then
20634
20635 cat >>confdefs.h <<\_ACEOF
20636 #define ESI 1
20637 _ACEOF
20638
20639
20640
20641 if true; then
20642 USE_ESI_TRUE=
20643 USE_ESI_FALSE='#'
20644 else
20645 USE_ESI_TRUE='#'
20646 USE_ESI_FALSE=
20647 fi
20648
20649 XTRA_LIBS="$XTRA_LIBS -lexpat -lxml2"
20650 else
20651
20652 cat >>confdefs.h <<\_ACEOF
20653 #define ESI 0
20654 _ACEOF
20655
20656 fi
20657
20658
20659
20660 if false; then
20661 USE_ICAP_CLIENT_TRUE=
20662 USE_ICAP_CLIENT_FALSE='#'
20663 else
20664 USE_ICAP_CLIENT_TRUE='#'
20665 USE_ICAP_CLIENT_FALSE=
20666 fi
20667
20668 # Check whether --enable-icap-client or --disable-icap-client was given.
20669 if test "${enable_icap_client+set}" = set; then
20670 enableval="$enable_icap_client"
20671 ac_cv_use_icap_client=$enableval
20672 else
20673 ac_cv_use_icap_client=no
20674 fi;
20675 echo "$as_me:$LINENO: checking whether to enable the ICAP client" >&5
20676 echo $ECHO_N "checking whether to enable the ICAP client... $ECHO_C" >&6
20677 if test "${ac_cv_use_icap_client+set}" = set; then
20678 echo $ECHO_N "(cached) $ECHO_C" >&6
20679 else
20680 ac_cv_use_icap_client=no
20681 fi
20682 echo "$as_me:$LINENO: result: $ac_cv_use_icap_client" >&5
20683 echo "${ECHO_T}$ac_cv_use_icap_client" >&6
20684 if test "$ac_cv_use_icap_client" = "yes" ; then
20685
20686 cat >>confdefs.h <<\_ACEOF
20687 #define ICAP_CLIENT 1
20688 _ACEOF
20689
20690
20691
20692 if true; then
20693 USE_ICAP_CLIENT_TRUE=
20694 USE_ICAP_CLIENT_FALSE='#'
20695 else
20696 USE_ICAP_CLIENT_TRUE='#'
20697 USE_ICAP_CLIENT_FALSE=
20698 fi
20699
20700 ICAP_LIBS="ICAP/libicap.a"
20701 else
20702
20703 cat >>confdefs.h <<\_ACEOF
20704 #define ICAP_CLIENT 0
20705 _ACEOF
20706
20707 ICAP_LIBS=""
20708 fi
20709
20710
20711
20712 # Check whether --enable-useragent-log or --disable-useragent-log was given.
20713 if test "${enable_useragent_log+set}" = set; then
20714 enableval="$enable_useragent_log"
20715 if test "$enableval" = "yes" ; then
20716 echo "User-Agent logging enabled"
20717
20718 cat >>confdefs.h <<\_ACEOF
20719 #define USE_USERAGENT_LOG 1
20720 _ACEOF
20721
20722 fi
20723
20724 fi;
20725
20726 # Check whether --enable-referer-log or --disable-referer-log was given.
20727 if test "${enable_referer_log+set}" = set; then
20728 enableval="$enable_referer_log"
20729 if test "$enableval" = "yes" ; then
20730 echo "Referer logging enabled"
20731
20732 cat >>confdefs.h <<\_ACEOF
20733 #define USE_REFERER_LOG 1
20734 _ACEOF
20735
20736 fi
20737
20738 fi;
20739
20740 USE_WCCP=1
20741 # Check whether --enable-wccp or --disable-wccp was given.
20742 if test "${enable_wccp+set}" = set; then
20743 enableval="$enable_wccp"
20744 if test "$enableval" = "no" ; then
20745 echo "Web Cache Coordination Protocol disabled"
20746 USE_WCCP=0
20747 fi
20748
20749 fi;
20750 if test $USE_WCCP = 1; then
20751
20752 cat >>confdefs.h <<\_ACEOF
20753 #define USE_WCCP 1
20754 _ACEOF
20755
20756 fi
20757
20758 USE_WCCPv2=1
20759 # Check whether --enable-wccpv2 or --disable-wccpv2 was given.
20760 if test "${enable_wccpv2+set}" = set; then
20761 enableval="$enable_wccpv2"
20762 if test "$enableval" = "no" ; then
20763 echo "Web Cache Coordination V2 Protocol disabled"
20764 USE_WCCPv2=0
20765 fi
20766
20767 fi;
20768 if test $USE_WCCPv2 = 1; then
20769
20770 cat >>confdefs.h <<\_ACEOF
20771 #define USE_WCCPv2 1
20772 _ACEOF
20773
20774 fi
20775
20776 # Check whether --enable-kill-parent-hack or --disable-kill-parent-hack was given.
20777 if test "${enable_kill_parent_hack+set}" = set; then
20778 enableval="$enable_kill_parent_hack"
20779 if test "$enableval" = "yes" ; then
20780 echo "Kill parent on shutdown"
20781
20782 cat >>confdefs.h <<\_ACEOF
20783 #define KILL_PARENT_OPT 1
20784 _ACEOF
20785
20786 fi
20787
20788 fi;
20789
20790
20791
20792 if false; then
20793 USE_SNMP_TRUE=
20794 USE_SNMP_FALSE='#'
20795 else
20796 USE_SNMP_TRUE='#'
20797 USE_SNMP_FALSE=
20798 fi
20799
20800 # Check whether --enable-snmp or --disable-snmp was given.
20801 if test "${enable_snmp+set}" = set; then
20802 enableval="$enable_snmp"
20803 if test "$enableval" = "yes" ; then
20804 echo "SNMP monitoring enabled"
20805
20806 cat >>confdefs.h <<\_ACEOF
20807 #define SQUID_SNMP 1
20808 _ACEOF
20809
20810 SNMPLIB='../snmplib/libsnmp.a'
20811
20812
20813 if true; then
20814 USE_SNMP_TRUE=
20815 USE_SNMP_FALSE='#'
20816 else
20817 USE_SNMP_TRUE='#'
20818 USE_SNMP_FALSE=
20819 fi
20820
20821 SNMP_MAKEFILE=./snmplib/Makefile
20822 makesnmplib=snmplib
20823 fi
20824
20825 fi;
20826
20827
20828
20829 # Check whether --enable-cachemgr-hostname or --disable-cachemgr-hostname was given.
20830 if test "${enable_cachemgr_hostname+set}" = set; then
20831 enableval="$enable_cachemgr_hostname"
20832 case $enableval in
20833 yes)
20834
20835 cat >>confdefs.h <<\_ACEOF
20836 #define CACHEMGR_HOSTNAME getfullhostname()
20837 _ACEOF
20838
20839 echo "Cachemgr default hostname == host where cachemgr runs"
20840 ;;
20841 no)
20842 : # Nothing to do..
20843 ;;
20844 *)
20845 cat >>confdefs.h <<_ACEOF
20846 #define CACHEMGR_HOSTNAME "${enableval}"
20847 _ACEOF
20848
20849 echo "Cachemgr default hostname set to ${enableval}"
20850 ;;
20851 esac
20852
20853 fi;
20854
20855
20856
20857 if false; then
20858 ENABLE_ARP_ACL_TRUE=
20859 ENABLE_ARP_ACL_FALSE='#'
20860 else
20861 ENABLE_ARP_ACL_TRUE='#'
20862 ENABLE_ARP_ACL_FALSE=
20863 fi
20864
20865 # Check whether --enable-arp-acl or --disable-arp-acl was given.
20866 if test "${enable_arp_acl+set}" = set; then
20867 enableval="$enable_arp_acl"
20868 if test "$enableval" = "yes" ; then
20869 echo "ARP ACL lists enabled (ether address)"
20870 case "$host" in
20871 *-linux-*)
20872 ;;
20873 *-solaris*)
20874 ;;
20875 *-freebsd*)
20876 ;;
20877 *-openbsd*)
20878 ;;
20879 *-netbsd*)
20880 ;;
20881 *-cygwin*)
20882 LIBS="$LIBS -liphlpapi"
20883 ;;
20884 *-mingw*)
20885 LIBS="$LIBS -liphlpapi"
20886 ;;
20887 *)
20888 echo "WARNING: ARP ACL support probably won't work on $host."
20889 sleep 10
20890 ;;
20891 esac
20892
20893 cat >>confdefs.h <<\_ACEOF
20894 #define USE_ARP_ACL 1
20895 _ACEOF
20896
20897
20898
20899 if true; then
20900 ENABLE_ARP_ACL_TRUE=
20901 ENABLE_ARP_ACL_FALSE='#'
20902 else
20903 ENABLE_ARP_ACL_TRUE='#'
20904 ENABLE_ARP_ACL_FALSE=
20905 fi
20906
20907 fi
20908
20909 fi;
20910
20911
20912
20913 if false; then
20914 ENABLE_HTCP_TRUE=
20915 ENABLE_HTCP_FALSE='#'
20916 else
20917 ENABLE_HTCP_TRUE='#'
20918 ENABLE_HTCP_FALSE=
20919 fi
20920
20921 # Check whether --enable-htcp or --disable-htcp was given.
20922 if test "${enable_htcp+set}" = set; then
20923 enableval="$enable_htcp"
20924 if test "$enableval" = "yes" ; then
20925 echo "HTCP enabled"
20926
20927 cat >>confdefs.h <<\_ACEOF
20928 #define USE_HTCP 1
20929 _ACEOF
20930
20931
20932
20933 if true; then
20934 ENABLE_HTCP_TRUE=
20935 ENABLE_HTCP_FALSE='#'
20936 else
20937 ENABLE_HTCP_TRUE='#'
20938 ENABLE_HTCP_FALSE=
20939 fi
20940
20941 fi
20942
20943 fi;
20944
20945
20946
20947 if false; then
20948 ENABLE_SSL_TRUE=
20949 ENABLE_SSL_FALSE='#'
20950 else
20951 ENABLE_SSL_TRUE='#'
20952 ENABLE_SSL_FALSE=
20953 fi
20954
20955
20956 # Check whether --enable-ssl or --disable-ssl was given.
20957 if test "${enable_ssl+set}" = set; then
20958 enableval="$enable_ssl"
20959 if test "$enableval" != "no"; then
20960 echo "SSL gatewaying using OpenSSL enabled"
20961
20962 cat >>confdefs.h <<\_ACEOF
20963 #define USE_SSL 1
20964 _ACEOF
20965
20966
20967
20968 if true; then
20969 ENABLE_SSL_TRUE=
20970 ENABLE_SSL_FALSE='#'
20971 else
20972 ENABLE_SSL_TRUE='#'
20973 ENABLE_SSL_FALSE=
20974 fi
20975
20976 case "$host_os" in
20977 mingw|mingw32)
20978 SSLLIB='-lssleay32 -leay32 -lgdi32'
20979 ;;
20980 *)
20981 SSLLIB='-lssl -lcrypto'
20982 ;;
20983 esac
20984 USE_OPENSSL=1
20985 fi
20986
20987 fi;
20988
20989
20990
20991 if true; then
20992 NEED_OWN_MD5_TRUE=
20993 NEED_OWN_MD5_FALSE='#'
20994 else
20995 NEED_OWN_MD5_TRUE='#'
20996 NEED_OWN_MD5_FALSE=
20997 fi
20998
20999
21000
21001 # Check whether --with-openssl or --without-openssl was given.
21002 if test "${with_openssl+set}" = set; then
21003 withval="$with_openssl"
21004
21005 case "$with_openssl" in
21006 yes)
21007 USE_OPENSSL=1
21008 ;;
21009 no)
21010 USE_OPENSSL=
21011 ;;
21012 *)
21013 SSLLIBDIR="$with_openssl/lib"
21014 CPPFLAGS="-I$with_openssl/include $CPPFLAGS"
21015 USE_OPENSSL=1
21016 esac
21017
21018 fi;
21019
21020 if test -n "$USE_OPENSSL"; then
21021 echo "Using OpenSSL MD5 implementation"
21022
21023 cat >>confdefs.h <<\_ACEOF
21024 #define USE_OPENSSL 1
21025 _ACEOF
21026
21027
21028
21029 if false; then
21030 NEED_OWN_MD5_TRUE=
21031 NEED_OWN_MD5_FALSE='#'
21032 else
21033 NEED_OWN_MD5_TRUE='#'
21034 NEED_OWN_MD5_FALSE=
21035 fi
21036
21037 if test -z "$SSLLIB"; then
21038 SSLLIB="-lcrypto" # for MD5 routines
21039 fi
21040 if test -d /usr/kerberos/include && test -z "$SSLLIBDIR" && test -f /usr/include/openssl/kssl.h; then
21041 echo "OpenSSL depends on Kerberos"
21042 SSLLIBDIR="/usr/kerberos/lib"
21043 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
21044 fi
21045 fi
21046 if test -n "$SSLLIBDIR"; then
21047 SSLLIB="-L$SSLLIBDIR $SSLLIB"
21048 fi
21049
21050
21051 # Check whether --enable-forw-via-db or --disable-forw-via-db was given.
21052 if test "${enable_forw_via_db+set}" = set; then
21053 enableval="$enable_forw_via_db"
21054 if test "$enableval" = "yes" ; then
21055 echo "FORW-VIA enabled"
21056
21057 cat >>confdefs.h <<\_ACEOF
21058 #define FORW_VIA_DB 1
21059 _ACEOF
21060
21061 fi
21062
21063 fi;
21064
21065 # Check whether --enable-cache-digests or --disable-cache-digests was given.
21066 if test "${enable_cache_digests+set}" = set; then
21067 enableval="$enable_cache_digests"
21068 if test "$enableval" = "yes" ; then
21069 echo "USE_CACHE_DIGESTS enabled"
21070
21071 cat >>confdefs.h <<\_ACEOF
21072 #define USE_CACHE_DIGESTS 1
21073 _ACEOF
21074
21075 fi
21076
21077 fi;
21078
21079 # Check whether --enable-default-err-language or --disable-default-err-language was given.
21080 if test "${enable_default_err_language+set}" = set; then
21081 enableval="$enable_default_err_language"
21082
21083 if test -d $srcdir/errors/$enableval; then
21084 ERR_DEFAULT_LANGUAGE=$enableval
21085 else
21086 echo "ERROR! Unknown language $enableval, see errors/ directory"
21087 exit 1
21088 fi
21089
21090 else
21091 ERR_DEFAULT_LANGUAGE="English"
21092 fi;
21093
21094
21095 # Check whether --enable-err-languages or --disable-err-languages was given.
21096 if test "${enable_err_languages+set}" = set; then
21097 enableval="$enable_err_languages"
21098
21099 for l in $enableval; do
21100 if test -d $srcdir/errors/$l; then :; else
21101 echo "ERROR! Unknown language $$l, see errors/"
21102 exit 1
21103 fi
21104 done
21105 ERR_LANGUAGES=$enableval
21106
21107 else
21108
21109 ERR_LANGUAGES=
21110 for l in $srcdir/errors/*; do
21111 if test -f $l/ERR_ACCESS_DENIED; then
21112 ERR_LANGUAGES="$ERR_LANGUAGES `basename $l`"
21113 fi
21114 done
21115
21116 fi;
21117
21118
21119
21120 # Check whether --with-coss-membuf-size or --without-coss-membuf-size was given.
21121 if test "${with_coss_membuf_size+set}" = set; then
21122 withval="$with_coss_membuf_size"
21123 if test "$with_coss_membuf_size"; then
21124 echo "Setting COSS membuf size to $with_coss_membuf_size bytes"
21125
21126 cat >>confdefs.h <<_ACEOF
21127 #define COSS_MEMBUF_SZ $with_coss_membuf_size
21128 _ACEOF
21129
21130 fi
21131
21132 fi;
21133
21134 # Check whether --enable-poll or --disable-poll was given.
21135 if test "${enable_poll+set}" = set; then
21136 enableval="$enable_poll"
21137
21138 case "$enableval" in
21139 yes)
21140 echo "Forcing poll() to be enabled"
21141 ac_cv_func_poll='yes'
21142 SELECT_TYPE="poll"
21143 ;;
21144 no)
21145 echo "Forcing poll() to be disabled"
21146 ac_cv_func_poll='no'
21147 ;;
21148 esac
21149
21150 fi;
21151
21152 # Check whether --enable-select or --disable-select was given.
21153 if test "${enable_select+set}" = set; then
21154 enableval="$enable_select"
21155
21156 case "$enableval" in
21157 yes)
21158 echo "Forcing select() to be enabled"
21159 ac_cv_func_select='yes'
21160 SELECT_TYPE="select"
21161 ;;
21162 no)
21163 echo "Forcing select() to be disabled"
21164 ac_cv_func_select='no'
21165 ;;
21166 esac
21167
21168 fi;
21169
21170 # Check whether --enable-kqueue or --disable-kqueue was given.
21171 if test "${enable_kqueue+set}" = set; then
21172 enableval="$enable_kqueue"
21173
21174 case "$enableval" in
21175 yes)
21176 echo "Forcing kqueue() to be enabled"
21177 ac_cv_func_kqueue='yes'
21178 SELECT_TYPE="kqueue"
21179 ;;
21180 no)
21181 echo "Forcing kqueue() to be disabled"
21182 ac_cv_func_kqueue='no'
21183 ;;
21184 esac
21185
21186 fi;
21187
21188 # Check whether --enable-epoll or --disable-epoll was given.
21189 if test "${enable_epoll+set}" = set; then
21190 enableval="$enable_epoll"
21191
21192 case "$enableval" in
21193 yes)
21194 echo "Forcing epoll() to be enabled"
21195 ac_cv_func_epoll_ctl='yes'
21196 SELECT_TYPE="epoll"
21197 ;;
21198 no)
21199 echo "Forcing epoll() to be disabled"
21200 ac_cv_func_epoll_ctl='no'
21201 ;;
21202 esac
21203
21204 fi;
21205
21206
21207 http_violations=1
21208 # Check whether --enable-http-violations or --disable-http-violations was given.
21209 if test "${enable_http_violations+set}" = set; then
21210 enableval="$enable_http_violations"
21211 if test "$enableval" = "no" ; then
21212 echo "Disabling HTTP Violations"
21213 http_violations=0
21214 fi
21215
21216 fi;
21217 if test $http_violations = 1; then
21218
21219 cat >>confdefs.h <<\_ACEOF
21220 #define HTTP_VIOLATIONS 1
21221 _ACEOF
21222
21223 else
21224 cat >>confdefs.h <<\_ACEOF
21225 #define HTTP_VIOLATIONS 0
21226 _ACEOF
21227
21228 fi
21229
21230 # Check whether --enable-ipfw-transparent or --disable-ipfw-transparent was given.
21231 if test "${enable_ipfw_transparent+set}" = set; then
21232 enableval="$enable_ipfw_transparent"
21233 if test "$enableval" = "yes" ; then
21234 echo "IPFW Transparent Proxy enabled"
21235
21236 cat >>confdefs.h <<\_ACEOF
21237 #define IPFW_TRANSPARENT 1
21238 _ACEOF
21239
21240 IPFW_TRANSPARENT="yes"
21241 fi
21242
21243 fi;
21244
21245 # Check whether --enable-ipf-transparent or --disable-ipf-transparent was given.
21246 if test "${enable_ipf_transparent+set}" = set; then
21247 enableval="$enable_ipf_transparent"
21248 if test "$enableval" = "yes" ; then
21249 echo "IP-Filter Transparent Proxy enabled"
21250
21251 cat >>confdefs.h <<\_ACEOF
21252 #define IPF_TRANSPARENT 1
21253 _ACEOF
21254
21255 IPF_TRANSPARENT="yes"
21256 fi
21257
21258 fi;
21259
21260 # Check whether --enable-pf-transparent or --disable-pf-transparent was given.
21261 if test "${enable_pf_transparent+set}" = set; then
21262 enableval="$enable_pf_transparent"
21263 if test "$enableval" = "yes" ; then
21264 echo "PF Transparent Proxy enabled"
21265
21266 cat >>confdefs.h <<\_ACEOF
21267 #define PF_TRANSPARENT 1
21268 _ACEOF
21269
21270 PF_TRANSPARENT="yes"
21271 fi
21272
21273 fi;
21274
21275 # Check whether --enable-linux-netfilter or --disable-linux-netfilter was given.
21276 if test "${enable_linux_netfilter+set}" = set; then
21277 enableval="$enable_linux_netfilter"
21278 if test "$enableval" = "yes" ; then
21279 echo "Linux (Netfilter) Transparent Proxy enabled"
21280
21281 cat >>confdefs.h <<\_ACEOF
21282 #define LINUX_NETFILTER 1
21283 _ACEOF
21284
21285 LINUX_NETFILTER="yes"
21286 fi
21287
21288 fi;
21289
21290 buildmodel=""
21291 needlargefiles=
21292
21293
21294 # Check whether --with-large-files or --without-large-files was given.
21295 if test "${with_large_files+set}" = set; then
21296 withval="$with_large_files"
21297 if test "$withval" = yes; then
21298 needlargefiles=1
21299 fi
21300
21301 fi;
21302
21303
21304 # Check whether --with-build-environment or --without-build-environment was given.
21305 if test "${with_build_environment+set}" = set; then
21306 withval="$with_build_environment"
21307 case "$withval" in
21308 yes|no)
21309 echo "--with-build-environment expects a build environment string as used by getconf"
21310 exit 1
21311 ;;
21312 *)
21313 buildmodel="$withval"
21314 ;;
21315 esac
21316
21317 fi;
21318
21319 if test $needlargefiles && test -z "$buildmodel"; then
21320 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
21321 if test "`getconf _$model 2>/dev/null || true`" = 1 || test "`getconf $model 2>/dev/null || true`" ; then
21322 buildmodel=$model
21323 break
21324 fi
21325 done
21326 if test -z "$buildmodel"; then
21327 echo "WARNING: No suitable build environment found for large files. Trying to use _FILE_OFFSET_BITS=64"
21328 sleep 1
21329 CFLAGS="-D_FILE_OFFSET_BITS=64 $CFLAGS"
21330 CXXFLAGS="-D_FILE_OFFSET_BITS=64 $CXXFLAGS"
21331 fi
21332 fi
21333 if test -n "$buildmodel" && test "$buildmodel" != "default"; then
21334 echo "Using $buildmodel build environment"
21335 if test "`getconf _$buildmodel 2>/dev/null || true`" = 1 || test "`getconf $buildmodel 2>/dev/null || true`" ; then
21336 : # All fine
21337 else
21338 echo "ERROR: Build environment $buildmodel not known to getconf."
21339 exit 1
21340 fi
21341 CFLAGS="`getconf ${buildmodel}_CFLAGS` $CFLAGS"
21342 CXXFLAGS="`getconf ${buildmodel}_CFLAGS` $CXXFLAGS"
21343 LIBS="`getconf ${buildmodel}_LIBS` $LIBS"
21344 LDFLAGS="`getconf ${buildmodel}_LDFLAGS` $LDFLAGS"
21345 case "$host" in
21346 *-solaris*)
21347 if test "$GCC" = "yes"; then
21348 echo "Removing -Xa for gcc on $host"
21349 CFLAGS="`echo $CFLAGS | sed -e 's/-Xa//'`"
21350 CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-Xa//'`"
21351 fi
21352 echo "Removing -Usun on $host"
21353 CFLAGS="`echo $CFLAGS | sed -e 's/-Usun//'`"
21354 CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-Usun//'`"
21355 ;;
21356 *-sgi-irix6.*)
21357 if test "$GCC" = "yes"; then
21358 CFLAGS="`echo $CFLAGS | sed -e 's/-n32/-mabi=n32/'`"
21359 CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-n32/-mabi=n32/'`"
21360 LDFLAGS="`echo $LDFLAGS | sed -e 's/-n32//'`"
21361 CFLAGS="`echo $CFLAGS | sed -e 's/-64/-mabi=64/'`"
21362 CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-64/-mabi=64/'`"
21363 LDFLAGS="`echo $LDFLAGS | sed -e 's/-64//'`"
21364 fi
21365 ;;
21366 *)
21367 ;;
21368 esac
21369 fi
21370
21371 # Check whether --enable-linux-tproxy or --disable-linux-tproxy was given.
21372 if test "${enable_linux_tproxy+set}" = set; then
21373 enableval="$enable_linux_tproxy"
21374 if test "$enableval" = "yes" ; then
21375 echo "Linux Netfilter/TPROXY enabled"
21376
21377 cat >>confdefs.h <<\_ACEOF
21378 #define LINUX_TPROXY 1
21379 _ACEOF
21380
21381 LINUX_TPROXY="yes"
21382 if test -z "$LINUX_NETFILTER"; then
21383 echo "Linux-Netfilter Transparent Proxy automatically enabled"
21384 LINUX_NETFILTER="yes"
21385 fi
21386 fi
21387
21388 fi;
21389
21390
21391
21392 if false; then
21393 MAKE_LEAKFINDER_TRUE=
21394 MAKE_LEAKFINDER_FALSE='#'
21395 else
21396 MAKE_LEAKFINDER_TRUE='#'
21397 MAKE_LEAKFINDER_FALSE=
21398 fi
21399
21400 # Check whether --enable-leakfinder or --disable-leakfinder was given.
21401 if test "${enable_leakfinder+set}" = set; then
21402 enableval="$enable_leakfinder"
21403 if test "$enableval" = "yes" ; then
21404 echo "Leak-Finding enabled"
21405
21406 cat >>confdefs.h <<\_ACEOF
21407 #define USE_LEAKFINDER 1
21408 _ACEOF
21409
21410 USE_LEAKFINDER="yes"
21411
21412
21413 if true; then
21414 MAKE_LEAKFINDER_TRUE=
21415 MAKE_LEAKFINDER_FALSE='#'
21416 else
21417 MAKE_LEAKFINDER_TRUE='#'
21418 MAKE_LEAKFINDER_FALSE=
21419 fi
21420
21421 fi
21422
21423 fi;
21424
21425 use_ident=1
21426 # Check whether --enable-ident-lookups or --disable-ident-lookups was given.
21427 if test "${enable_ident_lookups+set}" = set; then
21428 enableval="$enable_ident_lookups"
21429 if test "$enableval" = "no" ; then
21430 echo "Disabling Ident Lookups"
21431 use_ident=0
21432 fi
21433
21434 fi;
21435 if test $use_ident = 1; then
21436
21437 cat >>confdefs.h <<\_ACEOF
21438 #define USE_IDENT 1
21439 _ACEOF
21440
21441
21442
21443 if true; then
21444 ENABLE_IDENT_TRUE=
21445 ENABLE_IDENT_FALSE='#'
21446 else
21447 ENABLE_IDENT_TRUE='#'
21448 ENABLE_IDENT_FALSE=
21449 fi
21450
21451 else
21452 cat >>confdefs.h <<\_ACEOF
21453 #define USE_IDENT 0
21454 _ACEOF
21455
21456
21457
21458 if false; then
21459 ENABLE_IDENT_TRUE=
21460 ENABLE_IDENT_FALSE='#'
21461 else
21462 ENABLE_IDENT_TRUE='#'
21463 ENABLE_IDENT_FALSE=
21464 fi
21465
21466 fi
21467
21468
21469
21470 if false; then
21471 USE_DNSSERVER_TRUE=
21472 USE_DNSSERVER_FALSE='#'
21473 else
21474 USE_DNSSERVER_TRUE='#'
21475 USE_DNSSERVER_FALSE=
21476 fi
21477
21478 use_dnsserver=
21479 # Check whether --enable-internal-dns or --disable-internal-dns was given.
21480 if test "${enable_internal_dns+set}" = set; then
21481 enableval="$enable_internal_dns"
21482 if test "$enableval" = "no" ; then
21483 echo "Disabling Internal DNS queries"
21484 use_dnsserver="yes"
21485 fi
21486
21487 fi;
21488 if test "$use_dnsserver" = "yes"; then
21489
21490 cat >>confdefs.h <<\_ACEOF
21491 #define USE_DNSSERVERS 1
21492 _ACEOF
21493
21494
21495
21496 if true; then
21497 USE_DNSSERVER_TRUE=
21498 USE_DNSSERVER_FALSE='#'
21499 else
21500 USE_DNSSERVER_TRUE='#'
21501 USE_DNSSERVER_FALSE=
21502 fi
21503
21504 fi
21505
21506 # Check whether --enable-default-hostsfile or --disable-default-hostsfile was given.
21507 if test "${enable_default_hostsfile+set}" = set; then
21508 enableval="$enable_default_hostsfile"
21509
21510 if test "$enableval" != "none" ; then
21511 if test -f $enableval; then
21512 OPT_DEFAULT_HOSTS=$enableval
21513 else
21514 echo "Warning Unable to find $enableval"
21515 sleep 5
21516 fi
21517 else
21518 OPT_DEFAULT_HOSTS="none"
21519 fi
21520 echo "Default hosts file set to: $enableval"
21521
21522 else
21523 OPT_DEFAULT_HOSTS="/etc/hosts"
21524 fi;
21525
21526
21527 # Check whether --enable-auth or --disable-auth was given.
21528 if test "${enable_auth+set}" = set; then
21529 enableval="$enable_auth"
21530 case $enableval in
21531 yes)
21532 for dir in $srcdir/src/auth/*; do
21533 module="`basename $dir`"
21534 if test -d "$dir" && test "$module" != CVS; then
21535 AUTH_MODULES="$AUTH_MODULES $module"
21536 fi
21537 done
21538 ;;
21539 no)
21540 ;;
21541 *)
21542 AUTH_MODULES="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
21543 ;;
21544 esac
21545
21546 else
21547 if test -z "$AUTH_MODULES"; then
21548 AUTH_MODULES="ntlm basic digest negotiate"
21549 fi
21550
21551 fi;
21552 if test -n "$AUTH_MODULES"; then
21553 for module in $AUTH_MODULES; do
21554 if test -d $srcdir/src/auth/$module; then
21555 :
21556 else
21557 echo "ERROR: Auth scheme $module does not exists"
21558 exit 1
21559 fi
21560 eval AUTH_MODULE_${module}=yes
21561 done
21562 echo "Auth scheme modules built: $AUTH_MODULES"
21563 AUTH_OBJS="auth/lib`echo $AUTH_MODULES|sed -e 's% %.a auth/lib%g'`.a"
21564 AUTH_LIBS="`echo $AUTH_OBJS|sed -e 's%auth/%%g'`"
21565 else
21566 echo "Auth scheme modules built: None"
21567 fi
21568 AUTH_LINKOBJS=
21569 for module in $AUTH_MODULES; do
21570 AUTH_LINKOBJS="$AUTH_LINKOBJS auth/${module}/${module}Scheme.o"
21571 done
21572
21573
21574
21575
21576
21577 if test -n "$AUTH_MODULE_basic"; then
21578 BASIC_AUTH_HELPERS="all"
21579 fi
21580 # Check whether --enable-basic-auth-helpers or --disable-basic-auth-helpers was given.
21581 if test "${enable_basic_auth_helpers+set}" = set; then
21582 enableval="$enable_basic_auth_helpers"
21583 case "$enableval" in
21584 yes)
21585 BASIC_AUTH_HELPERS="all"
21586 ;;
21587 no)
21588 BASIC_AUTH_HELPERS=""
21589 ;;
21590 *)
21591 if test -z "$AUTH_MODULE_basic"; then
21592 echo "WARNING: Basic auth helpers selected without the basic scheme enabled"
21593 sleep 15
21594 fi
21595 BASIC_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
21596 ;;
21597 esac
21598
21599 fi;
21600 if test "$BASIC_AUTH_HELPERS" = "all" ; then
21601 BASIC_AUTH_HELPERS=""
21602 for dir in $srcdir/helpers/basic_auth/*; do
21603 helper="`basename $dir`"
21604 if test -f $dir/config.test && sh $dir/config.test "$@"; then
21605 BASIC_AUTH_HELPERS="$BASIC_AUTH_HELPERS $helper"
21606 fi
21607 done
21608 fi
21609 if test -n "$BASIC_AUTH_HELPERS"; then
21610 for helper in $BASIC_AUTH_HELPERS; do
21611 if test -d $srcdir/helpers/basic_auth/$helper; then
21612 case $helper in
21613 SASL)
21614 require_sasl=yes
21615 ;;
21616 esac
21617 else
21618 echo "ERROR: Basic auth helper $helper does not exists"
21619 exit 1
21620 fi
21621 done
21622 echo "Basic auth helpers built: $BASIC_AUTH_HELPERS"
21623 fi
21624
21625
21626 if test -n "$AUTH_MODULE_ntlm"; then
21627 NTLM_AUTH_HELPERS="all"
21628 fi
21629 # Check whether --enable-ntlm-auth-helpers or --disable-ntlm-auth-helpers was given.
21630 if test "${enable_ntlm_auth_helpers+set}" = set; then
21631 enableval="$enable_ntlm_auth_helpers"
21632 case "$enableval" in
21633 yes)
21634 NTLM_AUTH_HELPERS="all"
21635 ;;
21636 no)
21637 NTLM_AUTH_HELPERS=""
21638 ;;
21639 *)
21640 NTLM_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
21641 ;;
21642 esac
21643
21644 fi;
21645 if test "$NTLM_AUTH_HELPERS" = "all" ; then
21646 NTLM_AUTH_HELPERS=""
21647 for dir in $srcdir/helpers/ntlm_auth/*; do
21648 helper="`basename $dir`"
21649 if test -f $dir/config.test && sh $dir/config.test "$@"; then
21650 NTLM_AUTH_HELPERS="$NTLM_AUTH_HELPERS $helper"
21651 fi
21652 done
21653 fi
21654 if test -n "$NTLM_AUTH_HELPERS"; then
21655 for helper in $NTLM_AUTH_HELPERS; do
21656 if test -d $srcdir/helpers/ntlm_auth/$helper; then
21657 :
21658 else
21659 echo "ERROR: NTLM Auth helper $helper does not exists"
21660 exit 1
21661 fi
21662 done
21663 echo "NTLM auth helpers built: $NTLM_AUTH_HELPERS"
21664 fi
21665
21666
21667 if test -n "$AUTH_MODULE_negotiate"; then
21668 NEGOTIATE_AUTH_HELPERS="all"
21669 fi
21670 # Check whether --enable-negotiate-auth-helpers or --disable-negotiate-auth-helpers was given.
21671 if test "${enable_negotiate_auth_helpers+set}" = set; then
21672 enableval="$enable_negotiate_auth_helpers"
21673 case "$enableval" in
21674 yes)
21675 NEGOTIATE_AUTH_HELPERS="all"
21676 ;;
21677 no)
21678 NEGOTIATE_AUTH_HELPERS=""
21679 ;;
21680 *)
21681 NEGOTIATE_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
21682 ;;
21683 esac
21684
21685 fi;
21686 if test "$NEGOTIATE_AUTH_HELPERS" = "all" ; then
21687 NEGOTIATE_AUTH_HELPERS=""
21688 for dir in $srcdir/helpers/negotiate_auth/*; do
21689 helper="`basename $dir`"
21690 if test -f $dir/config.test && sh $dir/config.test "$@"; then
21691 NEGOTIATE_AUTH_HELPERS="$NEGOTIATE_AUTH_HELPERS $helper"
21692 fi
21693 done
21694 fi
21695 if test -n "$NEGOTIATE_AUTH_HELPERS"; then
21696 for helper in $NEGOTIATE_AUTH_HELPERS; do
21697 if test -d $srcdir/helpers/negotiate_auth/$helper; then
21698 :
21699 else
21700 echo "ERROR: Negotiate Auth helper $helper does not exists"
21701 exit 1
21702 fi
21703 done
21704 echo "Negotiate auth helpers built: $NEGOTIATE_AUTH_HELPERS"
21705 fi
21706
21707
21708 if test -n "$AUTH_MODULE_digest"; then
21709 DIGEST_AUTH_HELPERS=all
21710 fi
21711 # Check whether --enable-digest-auth-helpers or --disable-digest-auth-helpers was given.
21712 if test "${enable_digest_auth_helpers+set}" = set; then
21713 enableval="$enable_digest_auth_helpers"
21714 case "$enableval" in
21715 yes)
21716 DIGEST_AUTH_HELPERS="all"
21717 ;;
21718 no)
21719 DIGEST_AUTH_HELPERS=""
21720 ;;
21721 *)
21722 DIGEST_AUTH_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
21723 ;;
21724 esac
21725
21726 fi;
21727 if test "$DIGEST_AUTH_HELPERS" = "all" ; then
21728 DIGEST_AUTH_HELPERS=""
21729 for dir in $srcdir/helpers/digest_auth/*; do
21730 helper="`basename $dir`"
21731 if test -f $dir/config.test && sh $dir/config.test "$@"; then
21732 DIGEST_AUTH_HELPERS="$DIGEST_AUTH_HELPERS $helper"
21733 fi
21734 done
21735 fi
21736 if test -n "$DIGEST_AUTH_HELPERS"; then
21737 for helper in $DIGEST_AUTH_HELPERS; do
21738 if test -f $srcdir/helpers/digest_auth/$helper/Makefile.in; then
21739 :
21740 else
21741 echo "ERROR: digest auth helper $helper does not exists"
21742 exit 1
21743 fi
21744 done
21745 echo "Digest auth helpers built: $DIGEST_AUTH_HELPERS"
21746 fi
21747
21748
21749 # Check whether --enable-ntlm-fail-open or --disable-ntlm-fail-open was given.
21750 if test "${enable_ntlm_fail_open+set}" = set; then
21751 enableval="$enable_ntlm_fail_open"
21752 if test "$enableval" = "yes" ; then
21753
21754 cat >>confdefs.h <<\_ACEOF
21755 #define NTLM_FAIL_OPEN 1
21756 _ACEOF
21757
21758 fi
21759
21760 fi;
21761
21762 EXTERNAL_ACL_HELPERS=all
21763 # Check whether --enable-external-acl-helpers or --disable-external-acl-helpers was given.
21764 if test "${enable_external_acl_helpers+set}" = set; then
21765 enableval="$enable_external_acl_helpers"
21766 case "$enableval" in
21767 yes)
21768 EXTERNAL_ACL_HELPERS=all
21769 ;;
21770 no)
21771 EXTERNAL_ACL_HELPERS=""
21772 ;;
21773 *)
21774 EXTERNAL_ACL_HELPERS="`echo $enableval| sed -e 's/,/ /g;s/ */ /g'`"
21775 ;;
21776 esac
21777
21778 fi;
21779 if test "$EXTERNAL_ACL_HELPERS" = "all" ; then
21780 EXTERNAL_ACL_HELPERS=""
21781 for dir in $srcdir/helpers/external_acl/*; do
21782 helper="`basename $dir`"
21783 if test -f $dir/config.test && sh $dir/config.test "$@"; then
21784 EXTERNAL_ACL_HELPERS="$EXTERNAL_ACL_HELPERS $helper"
21785 fi
21786 done
21787 fi
21788 if test -n "$EXTERNAL_ACL_HELPERS"; then
21789 for helper in $EXTERNAL_ACL_HELPERS; do
21790 if test -f $srcdir/helpers/external_acl/$helper/Makefile.in; then
21791 :
21792 else
21793 echo "ERROR: external acl helper $helper does not exists"
21794 exit 1
21795 fi
21796 done
21797 echo "External acl helpers built: $EXTERNAL_ACL_HELPERS"
21798 fi
21799
21800
21801
21802 # Check whether --with-valgrind or --without-valgrind was given.
21803 if test "${with_valgrind+set}" = set; then
21804 withval="$with_valgrind"
21805 case $withval in
21806 yes)
21807 valgrind=1
21808 ;;
21809 no)
21810 valgrind=
21811 ;;
21812 *)
21813 CPPFLAGS="$CPPFLAGS -I${enableval}/include"
21814 valgrind=1
21815 ;;
21816 esac
21817 if test $valgrind; then
21818
21819 cat >>confdefs.h <<\_ACEOF
21820 #define WITH_VALGRIND 1
21821 _ACEOF
21822
21823 echo "Valgrind debug support enabled"
21824 fi
21825
21826 fi;
21827
21828
21829 cat >>confdefs.h <<\_ACEOF
21830 #define DISABLE_POOLS 0
21831 _ACEOF
21832
21833 # Check whether --enable-mempools or --disable-mempools was given.
21834 if test "${enable_mempools+set}" = set; then
21835 enableval="$enable_mempools"
21836 if test "$enableval" = "no" ; then
21837 echo "memPools disabled"
21838
21839 cat >>confdefs.h <<\_ACEOF
21840 #define DISABLE_POOLS 1
21841 _ACEOF
21842
21843 fi
21844
21845 fi;
21846
21847 # Check whether --enable-win32-service or --disable-win32-service was given.
21848 if test "${enable_win32_service+set}" = set; then
21849 enableval="$enable_win32_service"
21850 if test "$enableval" = "yes" ; then
21851 echo "Enabling WIN32 run service mode"
21852
21853 cat >>confdefs.h <<\_ACEOF
21854 #define USE_WIN32_SERVICE 1
21855 _ACEOF
21856
21857 fi
21858
21859 fi;
21860
21861
21862 if test "$require_sasl" = "yes"; then
21863
21864
21865 for ac_header in sasl/sasl.h sasl.h
21866 do
21867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21869 echo "$as_me:$LINENO: checking for $ac_header" >&5
21870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21872 echo $ECHO_N "(cached) $ECHO_C" >&6
21873 fi
21874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21875 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21876 else
21877 # Is the header compilable?
21878 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21879 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21880 cat >conftest.$ac_ext <<_ACEOF
21881 /* confdefs.h. */
21882 _ACEOF
21883 cat confdefs.h >>conftest.$ac_ext
21884 cat >>conftest.$ac_ext <<_ACEOF
21885 /* end confdefs.h. */
21886 $ac_includes_default
21887 #include <$ac_header>
21888 _ACEOF
21889 rm -f conftest.$ac_objext
21890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21891 (eval $ac_compile) 2>conftest.er1
21892 ac_status=$?
21893 grep -v '^ *+' conftest.er1 >conftest.err
21894 rm -f conftest.er1
21895 cat conftest.err >&5
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); } &&
21898 { ac_try='test -z "$ac_c_werror_flag"
21899 || test ! -s conftest.err'
21900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21901 (eval $ac_try) 2>&5
21902 ac_status=$?
21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); }; } &&
21905 { ac_try='test -s conftest.$ac_objext'
21906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21907 (eval $ac_try) 2>&5
21908 ac_status=$?
21909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); }; }; then
21911 ac_header_compiler=yes
21912 else
21913 echo "$as_me: failed program was:" >&5
21914 sed 's/^/| /' conftest.$ac_ext >&5
21915
21916 ac_header_compiler=no
21917 fi
21918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21919 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21920 echo "${ECHO_T}$ac_header_compiler" >&6
21921
21922 # Is the header present?
21923 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21925 cat >conftest.$ac_ext <<_ACEOF
21926 /* confdefs.h. */
21927 _ACEOF
21928 cat confdefs.h >>conftest.$ac_ext
21929 cat >>conftest.$ac_ext <<_ACEOF
21930 /* end confdefs.h. */
21931 #include <$ac_header>
21932 _ACEOF
21933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21935 ac_status=$?
21936 grep -v '^ *+' conftest.er1 >conftest.err
21937 rm -f conftest.er1
21938 cat conftest.err >&5
21939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21940 (exit $ac_status); } >/dev/null; then
21941 if test -s conftest.err; then
21942 ac_cpp_err=$ac_c_preproc_warn_flag
21943 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21944 else
21945 ac_cpp_err=
21946 fi
21947 else
21948 ac_cpp_err=yes
21949 fi
21950 if test -z "$ac_cpp_err"; then
21951 ac_header_preproc=yes
21952 else
21953 echo "$as_me: failed program was:" >&5
21954 sed 's/^/| /' conftest.$ac_ext >&5
21955
21956 ac_header_preproc=no
21957 fi
21958 rm -f conftest.err conftest.$ac_ext
21959 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21960 echo "${ECHO_T}$ac_header_preproc" >&6
21961
21962 # So? What about this header?
21963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21964 yes:no: )
21965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21966 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21969 ac_header_preproc=yes
21970 ;;
21971 no:yes:* )
21972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21973 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21975 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21977 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21979 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21983 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21984 (
21985 cat <<\_ASBOX
21986 ## ----------------------------------------------- ##
21987 ## Report this to http://www.squid-cache.org/bugs/ ##
21988 ## ----------------------------------------------- ##
21989 _ASBOX
21990 ) |
21991 sed "s/^/$as_me: WARNING: /" >&2
21992 ;;
21993 esac
21994 echo "$as_me:$LINENO: checking for $ac_header" >&5
21995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21997 echo $ECHO_N "(cached) $ECHO_C" >&6
21998 else
21999 eval "$as_ac_Header=\$ac_header_preproc"
22000 fi
22001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22003
22004 fi
22005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22006 cat >>confdefs.h <<_ACEOF
22007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22008 _ACEOF
22009
22010 fi
22011
22012 done
22013
22014 if test "$ac_cv_header_sasl_sasl_h" = "yes"; then
22015 echo "using SASL2"
22016 LIBSASL="-lsasl2"
22017 else
22018 if test "$ac_cv_header_sasl_h" = "yes"; then
22019 echo "using SASL"
22020 LIBSASL="-lsasl"
22021 else
22022 echo "ERROR: Neither SASL nor SASL2 found"
22023 exit 1
22024 fi
22025 fi
22026
22027 fi
22028
22029 # Check whether --enable-unlinkd or --disable-unlinkd was given.
22030 if test "${enable_unlinkd+set}" = set; then
22031 enableval="$enable_unlinkd"
22032 if test "$enableval" = "no" ; then
22033 use_unlinkd=no
22034 else
22035 use_unlinkd=yes
22036 fi
22037
22038 else
22039
22040 # Here we should probably use some magic depending on the selected
22041 # storage models
22042 use_unlinkd=yes
22043
22044 fi;
22045 if test "$use_unlinkd" = "yes"; then
22046 echo "unlinkd enabled"
22047
22048 cat >>confdefs.h <<\_ACEOF
22049 #define USE_UNLINKD 1
22050 _ACEOF
22051
22052
22053
22054 if true; then
22055 ENABLE_UNLINKD_TRUE=
22056 ENABLE_UNLINKD_FALSE='#'
22057 else
22058 ENABLE_UNLINKD_TRUE='#'
22059 ENABLE_UNLINKD_FALSE=
22060 fi
22061
22062 else
22063 echo "unlinkd disabled"
22064
22065
22066 if false; then
22067 ENABLE_UNLINKD_TRUE=
22068 ENABLE_UNLINKD_FALSE='#'
22069 else
22070 ENABLE_UNLINKD_TRUE='#'
22071 ENABLE_UNLINKD_FALSE=
22072 fi
22073
22074 fi
22075
22076 # Check whether --enable-stacktraces or --disable-stacktraces was given.
22077 if test "${enable_stacktraces+set}" = set; then
22078 enableval="$enable_stacktraces"
22079 if test "$enableval" = "yes" ; then
22080 echo "Enabling automatic stack backtraces on fatal errors"
22081
22082 cat >>confdefs.h <<\_ACEOF
22083 #define PRINT_STACK_TRACE 1
22084 _ACEOF
22085
22086 fi
22087
22088 fi;
22089
22090
22091
22092 if false; then
22093 ENABLE_XPROF_STATS_TRUE=
22094 ENABLE_XPROF_STATS_FALSE='#'
22095 else
22096 ENABLE_XPROF_STATS_TRUE='#'
22097 ENABLE_XPROF_STATS_FALSE=
22098 fi
22099
22100 # Check whether --enable-cpu-profiling or --disable-cpu-profiling was given.
22101 if test "${enable_cpu_profiling+set}" = set; then
22102 enableval="$enable_cpu_profiling"
22103 if test "$enableval" = "yes" ; then
22104 echo "Enabling cpu-profiling"
22105
22106 cat >>confdefs.h <<\_ACEOF
22107 #define USE_XPROF_STATS 1
22108 _ACEOF
22109
22110
22111
22112 if true; then
22113 ENABLE_XPROF_STATS_TRUE=
22114 ENABLE_XPROF_STATS_FALSE='#'
22115 else
22116 ENABLE_XPROF_STATS_TRUE='#'
22117 ENABLE_XPROF_STATS_FALSE=
22118 fi
22119
22120 fi
22121
22122 fi;
22123
22124 # Check whether --enable-x_accelerator_vary or --disable-x_accelerator_vary was given.
22125 if test "${enable_x_accelerator_vary+set}" = set; then
22126 enableval="$enable_x_accelerator_vary"
22127 if test "$enableval" = "yes" ; then
22128 echo "Enabling support for X-Accelerator-Vary"
22129
22130 cat >>confdefs.h <<\_ACEOF
22131 #define X_ACCELERATOR_VARY 1
22132 _ACEOF
22133
22134 fi
22135
22136 fi;
22137
22138
22139 # Check whether --with-filedescriptors or --without-filedescriptors was given.
22140 if test "${with_filedescriptors+set}" = set; then
22141 withval="$with_filedescriptors"
22142 squid_filedescriptors_num=$withval
22143 fi;
22144
22145 # Extract the first word of "cppunit-config", so it can be a program name with args.
22146 set dummy cppunit-config; ac_word=$2
22147 echo "$as_me:$LINENO: checking for $ac_word" >&5
22148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22149 if test "${ac_cv_path_CPPUNITCONFIG+set}" = set; then
22150 echo $ECHO_N "(cached) $ECHO_C" >&6
22151 else
22152 case $CPPUNITCONFIG in
22153 [\\/]* | ?:[\\/]*)
22154 ac_cv_path_CPPUNITCONFIG="$CPPUNITCONFIG" # Let the user override the test with a path.
22155 ;;
22156 *)
22157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22158 for as_dir in $PATH
22159 do
22160 IFS=$as_save_IFS
22161 test -z "$as_dir" && as_dir=.
22162 for ac_exec_ext in '' $ac_executable_extensions; do
22163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22164 ac_cv_path_CPPUNITCONFIG="$as_dir/$ac_word$ac_exec_ext"
22165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22166 break 2
22167 fi
22168 done
22169 done
22170
22171 test -z "$ac_cv_path_CPPUNITCONFIG" && ac_cv_path_CPPUNITCONFIG="false"
22172 ;;
22173 esac
22174 fi
22175 CPPUNITCONFIG=$ac_cv_path_CPPUNITCONFIG
22176
22177 if test -n "$CPPUNITCONFIG"; then
22178 echo "$as_me:$LINENO: result: $CPPUNITCONFIG" >&5
22179 echo "${ECHO_T}$CPPUNITCONFIG" >&6
22180 else
22181 echo "$as_me:$LINENO: result: no" >&5
22182 echo "${ECHO_T}no" >&6
22183 fi
22184
22185 if $CPPUNITCONFIG --help >/dev/null; then
22186 echo "using system installed cppunit"
22187 SQUID_CPPUNIT_LIBS="`$CPPUNITCONFIG --libs`"
22188 SQUID_CPPUNIT_LA=''
22189 SQUID_CPPUNIT_INC="`$CPPUNITCONFIG --cflags`"
22190 else
22191 echo "cppunit does not apear to be installed. squid does not require this, but code testing with 'make check' will fail."
22192 SQUID_CPPUNIT_LA=''
22193 SQUID_CPPUNIT_LIBS=''
22194 SQUID_CPPUNIT_INC=''
22195 fi
22196
22197
22198 # Check whether --with-cppunit-basedir or --without-cppunit-basedir was given.
22199 if test "${with_cppunit_basedir+set}" = set; then
22200 withval="$with_cppunit_basedir"
22201 if test -f $withval/include/cppunit/TestCase.h; then
22202 echo "Using cppunit includes from $withval"
22203 SQUID_CPPUNIT_INC="-I${withval}/include"
22204 else
22205 echo "ERROR: Cannot find cppunit at $withval"
22206 exit 1
22207 fi
22208 if test -f $withval/lib/libcppunit.la; then
22209 echo "Using cppunit lib from $withval"
22210 SQUID_CPPUNIT_LA="-I${withval}/lib/libcppunit.la"
22211 SQUID_CPPUNIT_LIBS='$(SQUID_CPPUNIT_LA)'
22212 else
22213 echo "ERROR: Cannot find cppunit at $withval"
22214 exit 1
22215 fi
22216
22217 fi;
22218
22219
22220
22221
22222 # Force some compilers to use ANSI features
22223 #
22224 case "$host" in
22225 alpha-dec-osf*)
22226 if test "$ac_cv_prog_CC" = "cc" ; then
22227 echo "adding '-std1' to cc args for $host"
22228 CC="cc -std1";
22229 ac_cv_prog_CC="$CC"
22230 fi
22231 ;;
22232 *-hp-hpux*)
22233 if test "$ac_cv_prog_CC" = "cc" ; then
22234 echo "adding '-Ae' to cc args for $host"
22235 CC="cc -Ae";
22236 ac_cv_prog_CC="$CC"
22237 fi
22238 ;;
22239 esac
22240
22241 ac_ext=c
22242 ac_cpp='$CPP $CPPFLAGS'
22243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22246 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
22247 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
22248 # On Suns, sometimes $CPP names a directory.
22249 if test -n "$CPP" && test -d "$CPP"; then
22250 CPP=
22251 fi
22252 if test -z "$CPP"; then
22253 if test "${ac_cv_prog_CPP+set}" = set; then
22254 echo $ECHO_N "(cached) $ECHO_C" >&6
22255 else
22256 # Double quotes because CPP needs to be expanded
22257 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
22258 do
22259 ac_preproc_ok=false
22260 for ac_c_preproc_warn_flag in '' yes
22261 do
22262 # Use a header file that comes with gcc, so configuring glibc
22263 # with a fresh cross-compiler works.
22264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22265 # <limits.h> exists even on freestanding compilers.
22266 # On the NeXT, cc -E runs the code through the compiler's parser,
22267 # not just through cpp. "Syntax error" is here to catch this case.
22268 cat >conftest.$ac_ext <<_ACEOF
22269 /* confdefs.h. */
22270 _ACEOF
22271 cat confdefs.h >>conftest.$ac_ext
22272 cat >>conftest.$ac_ext <<_ACEOF
22273 /* end confdefs.h. */
22274 #ifdef __STDC__
22275 # include <limits.h>
22276 #else
22277 # include <assert.h>
22278 #endif
22279 Syntax error
22280 _ACEOF
22281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22283 ac_status=$?
22284 grep -v '^ *+' conftest.er1 >conftest.err
22285 rm -f conftest.er1
22286 cat conftest.err >&5
22287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288 (exit $ac_status); } >/dev/null; then
22289 if test -s conftest.err; then
22290 ac_cpp_err=$ac_c_preproc_warn_flag
22291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22292 else
22293 ac_cpp_err=
22294 fi
22295 else
22296 ac_cpp_err=yes
22297 fi
22298 if test -z "$ac_cpp_err"; then
22299 :
22300 else
22301 echo "$as_me: failed program was:" >&5
22302 sed 's/^/| /' conftest.$ac_ext >&5
22303
22304 # Broken: fails on valid input.
22305 continue
22306 fi
22307 rm -f conftest.err conftest.$ac_ext
22308
22309 # OK, works on sane cases. Now check whether non-existent headers
22310 # can be detected and how.
22311 cat >conftest.$ac_ext <<_ACEOF
22312 /* confdefs.h. */
22313 _ACEOF
22314 cat confdefs.h >>conftest.$ac_ext
22315 cat >>conftest.$ac_ext <<_ACEOF
22316 /* end confdefs.h. */
22317 #include <ac_nonexistent.h>
22318 _ACEOF
22319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22321 ac_status=$?
22322 grep -v '^ *+' conftest.er1 >conftest.err
22323 rm -f conftest.er1
22324 cat conftest.err >&5
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } >/dev/null; then
22327 if test -s conftest.err; then
22328 ac_cpp_err=$ac_c_preproc_warn_flag
22329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22330 else
22331 ac_cpp_err=
22332 fi
22333 else
22334 ac_cpp_err=yes
22335 fi
22336 if test -z "$ac_cpp_err"; then
22337 # Broken: success on invalid input.
22338 continue
22339 else
22340 echo "$as_me: failed program was:" >&5
22341 sed 's/^/| /' conftest.$ac_ext >&5
22342
22343 # Passes both tests.
22344 ac_preproc_ok=:
22345 break
22346 fi
22347 rm -f conftest.err conftest.$ac_ext
22348
22349 done
22350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22351 rm -f conftest.err conftest.$ac_ext
22352 if $ac_preproc_ok; then
22353 break
22354 fi
22355
22356 done
22357 ac_cv_prog_CPP=$CPP
22358
22359 fi
22360 CPP=$ac_cv_prog_CPP
22361 else
22362 ac_cv_prog_CPP=$CPP
22363 fi
22364 echo "$as_me:$LINENO: result: $CPP" >&5
22365 echo "${ECHO_T}$CPP" >&6
22366 ac_preproc_ok=false
22367 for ac_c_preproc_warn_flag in '' yes
22368 do
22369 # Use a header file that comes with gcc, so configuring glibc
22370 # with a fresh cross-compiler works.
22371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22372 # <limits.h> exists even on freestanding compilers.
22373 # On the NeXT, cc -E runs the code through the compiler's parser,
22374 # not just through cpp. "Syntax error" is here to catch this case.
22375 cat >conftest.$ac_ext <<_ACEOF
22376 /* confdefs.h. */
22377 _ACEOF
22378 cat confdefs.h >>conftest.$ac_ext
22379 cat >>conftest.$ac_ext <<_ACEOF
22380 /* end confdefs.h. */
22381 #ifdef __STDC__
22382 # include <limits.h>
22383 #else
22384 # include <assert.h>
22385 #endif
22386 Syntax error
22387 _ACEOF
22388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22390 ac_status=$?
22391 grep -v '^ *+' conftest.er1 >conftest.err
22392 rm -f conftest.er1
22393 cat conftest.err >&5
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); } >/dev/null; then
22396 if test -s conftest.err; then
22397 ac_cpp_err=$ac_c_preproc_warn_flag
22398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22399 else
22400 ac_cpp_err=
22401 fi
22402 else
22403 ac_cpp_err=yes
22404 fi
22405 if test -z "$ac_cpp_err"; then
22406 :
22407 else
22408 echo "$as_me: failed program was:" >&5
22409 sed 's/^/| /' conftest.$ac_ext >&5
22410
22411 # Broken: fails on valid input.
22412 continue
22413 fi
22414 rm -f conftest.err conftest.$ac_ext
22415
22416 # OK, works on sane cases. Now check whether non-existent headers
22417 # can be detected and how.
22418 cat >conftest.$ac_ext <<_ACEOF
22419 /* confdefs.h. */
22420 _ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h. */
22424 #include <ac_nonexistent.h>
22425 _ACEOF
22426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22428 ac_status=$?
22429 grep -v '^ *+' conftest.er1 >conftest.err
22430 rm -f conftest.er1
22431 cat conftest.err >&5
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); } >/dev/null; then
22434 if test -s conftest.err; then
22435 ac_cpp_err=$ac_c_preproc_warn_flag
22436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22437 else
22438 ac_cpp_err=
22439 fi
22440 else
22441 ac_cpp_err=yes
22442 fi
22443 if test -z "$ac_cpp_err"; then
22444 # Broken: success on invalid input.
22445 continue
22446 else
22447 echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22449
22450 # Passes both tests.
22451 ac_preproc_ok=:
22452 break
22453 fi
22454 rm -f conftest.err conftest.$ac_ext
22455
22456 done
22457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22458 rm -f conftest.err conftest.$ac_ext
22459 if $ac_preproc_ok; then
22460 :
22461 else
22462 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
22463 See \`config.log' for more details." >&5
22464 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
22465 See \`config.log' for more details." >&2;}
22466 { (exit 1); exit 1; }; }
22467 fi
22468
22469 ac_ext=c
22470 ac_cpp='$CPP $CPPFLAGS'
22471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22474
22475 # Find a good install program. We prefer a C program (faster),
22476 # so one script is as good as another. But avoid the broken or
22477 # incompatible versions:
22478 # SysV /etc/install, /usr/sbin/install
22479 # SunOS /usr/etc/install
22480 # IRIX /sbin/install
22481 # AIX /bin/install
22482 # AmigaOS /C/install, which installs bootblocks on floppy discs
22483 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
22484 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
22485 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
22486 # OS/2's system install, which has a completely different semantic
22487 # ./install, which can be erroneously created by make from ./install.sh.
22488 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
22489 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
22490 if test -z "$INSTALL"; then
22491 if test "${ac_cv_path_install+set}" = set; then
22492 echo $ECHO_N "(cached) $ECHO_C" >&6
22493 else
22494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22495 for as_dir in $PATH
22496 do
22497 IFS=$as_save_IFS
22498 test -z "$as_dir" && as_dir=.
22499 # Account for people who put trailing slashes in PATH elements.
22500 case $as_dir/ in
22501 ./ | .// | /cC/* | \
22502 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
22503 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
22504 /usr/ucb/* ) ;;
22505 *)
22506 # OSF1 and SCO ODT 3.0 have their own names for install.
22507 # Don't use installbsd from OSF since it installs stuff as root
22508 # by default.
22509 for ac_prog in ginstall scoinst install; do
22510 for ac_exec_ext in '' $ac_executable_extensions; do
22511 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
22512 if test $ac_prog = install &&
22513 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
22514 # AIX install. It has an incompatible calling convention.
22515 :
22516 elif test $ac_prog = install &&
22517 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
22518 # program-specific install script used by HP pwplus--don't use.
22519 :
22520 else
22521 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
22522 break 3
22523 fi
22524 fi
22525 done
22526 done
22527 ;;
22528 esac
22529 done
22530
22531
22532 fi
22533 if test "${ac_cv_path_install+set}" = set; then
22534 INSTALL=$ac_cv_path_install
22535 else
22536 # As a last resort, use the slow shell script. We don't cache a
22537 # path for INSTALL within a source directory, because that will
22538 # break other packages using the cache if that directory is
22539 # removed, or if the path is relative.
22540 INSTALL=$ac_install_sh
22541 fi
22542 fi
22543 echo "$as_me:$LINENO: result: $INSTALL" >&5
22544 echo "${ECHO_T}$INSTALL" >&6
22545
22546 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
22547 # It thinks the first close brace ends the variable substitution.
22548 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
22549
22550 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
22551
22552 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
22553
22554 echo "$as_me:$LINENO: checking whether ln -s works" >&5
22555 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
22556 LN_S=$as_ln_s
22557 if test "$LN_S" = "ln -s"; then
22558 echo "$as_me:$LINENO: result: yes" >&5
22559 echo "${ECHO_T}yes" >&6
22560 else
22561 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
22562 echo "${ECHO_T}no, using $LN_S" >&6
22563 fi
22564
22565 # Extract the first word of "sh", so it can be a program name with args.
22566 set dummy sh; ac_word=$2
22567 echo "$as_me:$LINENO: checking for $ac_word" >&5
22568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22569 if test "${ac_cv_path_SH+set}" = set; then
22570 echo $ECHO_N "(cached) $ECHO_C" >&6
22571 else
22572 case $SH in
22573 [\\/]* | ?:[\\/]*)
22574 ac_cv_path_SH="$SH" # Let the user override the test with a path.
22575 ;;
22576 *)
22577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22578 for as_dir in $PATH
22579 do
22580 IFS=$as_save_IFS
22581 test -z "$as_dir" && as_dir=.
22582 for ac_exec_ext in '' $ac_executable_extensions; do
22583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22584 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
22585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22586 break 2
22587 fi
22588 done
22589 done
22590
22591 test -z "$ac_cv_path_SH" && ac_cv_path_SH="/bin/sh"
22592 ;;
22593 esac
22594 fi
22595 SH=$ac_cv_path_SH
22596
22597 if test -n "$SH"; then
22598 echo "$as_me:$LINENO: result: $SH" >&5
22599 echo "${ECHO_T}$SH" >&6
22600 else
22601 echo "$as_me:$LINENO: result: no" >&5
22602 echo "${ECHO_T}no" >&6
22603 fi
22604
22605 # Extract the first word of "false", so it can be a program name with args.
22606 set dummy false; ac_word=$2
22607 echo "$as_me:$LINENO: checking for $ac_word" >&5
22608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22609 if test "${ac_cv_path_FALSE+set}" = set; then
22610 echo $ECHO_N "(cached) $ECHO_C" >&6
22611 else
22612 case $FALSE in
22613 [\\/]* | ?:[\\/]*)
22614 ac_cv_path_FALSE="$FALSE" # Let the user override the test with a path.
22615 ;;
22616 *)
22617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22618 for as_dir in $PATH
22619 do
22620 IFS=$as_save_IFS
22621 test -z "$as_dir" && as_dir=.
22622 for ac_exec_ext in '' $ac_executable_extensions; do
22623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22624 ac_cv_path_FALSE="$as_dir/$ac_word$ac_exec_ext"
22625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22626 break 2
22627 fi
22628 done
22629 done
22630
22631 test -z "$ac_cv_path_FALSE" && ac_cv_path_FALSE="/usr/bin/false"
22632 ;;
22633 esac
22634 fi
22635 FALSE=$ac_cv_path_FALSE
22636
22637 if test -n "$FALSE"; then
22638 echo "$as_me:$LINENO: result: $FALSE" >&5
22639 echo "${ECHO_T}$FALSE" >&6
22640 else
22641 echo "$as_me:$LINENO: result: no" >&5
22642 echo "${ECHO_T}no" >&6
22643 fi
22644
22645 # Extract the first word of "true", so it can be a program name with args.
22646 set dummy true; ac_word=$2
22647 echo "$as_me:$LINENO: checking for $ac_word" >&5
22648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22649 if test "${ac_cv_path_TRUE+set}" = set; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22651 else
22652 case $TRUE in
22653 [\\/]* | ?:[\\/]*)
22654 ac_cv_path_TRUE="$TRUE" # Let the user override the test with a path.
22655 ;;
22656 *)
22657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22658 for as_dir in $PATH
22659 do
22660 IFS=$as_save_IFS
22661 test -z "$as_dir" && as_dir=.
22662 for ac_exec_ext in '' $ac_executable_extensions; do
22663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22664 ac_cv_path_TRUE="$as_dir/$ac_word$ac_exec_ext"
22665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22666 break 2
22667 fi
22668 done
22669 done
22670
22671 test -z "$ac_cv_path_TRUE" && ac_cv_path_TRUE="/usr/bin/true"
22672 ;;
22673 esac
22674 fi
22675 TRUE=$ac_cv_path_TRUE
22676
22677 if test -n "$TRUE"; then
22678 echo "$as_me:$LINENO: result: $TRUE" >&5
22679 echo "${ECHO_T}$TRUE" >&6
22680 else
22681 echo "$as_me:$LINENO: result: no" >&5
22682 echo "${ECHO_T}no" >&6
22683 fi
22684
22685 # Extract the first word of "rm", so it can be a program name with args.
22686 set dummy rm; ac_word=$2
22687 echo "$as_me:$LINENO: checking for $ac_word" >&5
22688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22689 if test "${ac_cv_path_RM+set}" = set; then
22690 echo $ECHO_N "(cached) $ECHO_C" >&6
22691 else
22692 case $RM in
22693 [\\/]* | ?:[\\/]*)
22694 ac_cv_path_RM="$RM" # Let the user override the test with a path.
22695 ;;
22696 *)
22697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22698 for as_dir in $PATH
22699 do
22700 IFS=$as_save_IFS
22701 test -z "$as_dir" && as_dir=.
22702 for ac_exec_ext in '' $ac_executable_extensions; do
22703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22704 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
22705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22706 break 2
22707 fi
22708 done
22709 done
22710
22711 test -z "$ac_cv_path_RM" && ac_cv_path_RM="$FALSE"
22712 ;;
22713 esac
22714 fi
22715 RM=$ac_cv_path_RM
22716
22717 if test -n "$RM"; then
22718 echo "$as_me:$LINENO: result: $RM" >&5
22719 echo "${ECHO_T}$RM" >&6
22720 else
22721 echo "$as_me:$LINENO: result: no" >&5
22722 echo "${ECHO_T}no" >&6
22723 fi
22724
22725 # Extract the first word of "mv", so it can be a program name with args.
22726 set dummy mv; ac_word=$2
22727 echo "$as_me:$LINENO: checking for $ac_word" >&5
22728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22729 if test "${ac_cv_path_MV+set}" = set; then
22730 echo $ECHO_N "(cached) $ECHO_C" >&6
22731 else
22732 case $MV in
22733 [\\/]* | ?:[\\/]*)
22734 ac_cv_path_MV="$MV" # Let the user override the test with a path.
22735 ;;
22736 *)
22737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22738 for as_dir in $PATH
22739 do
22740 IFS=$as_save_IFS
22741 test -z "$as_dir" && as_dir=.
22742 for ac_exec_ext in '' $ac_executable_extensions; do
22743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22744 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
22745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22746 break 2
22747 fi
22748 done
22749 done
22750
22751 test -z "$ac_cv_path_MV" && ac_cv_path_MV="$FALSE"
22752 ;;
22753 esac
22754 fi
22755 MV=$ac_cv_path_MV
22756
22757 if test -n "$MV"; then
22758 echo "$as_me:$LINENO: result: $MV" >&5
22759 echo "${ECHO_T}$MV" >&6
22760 else
22761 echo "$as_me:$LINENO: result: no" >&5
22762 echo "${ECHO_T}no" >&6
22763 fi
22764
22765 # Extract the first word of "mkdir", so it can be a program name with args.
22766 set dummy mkdir; ac_word=$2
22767 echo "$as_me:$LINENO: checking for $ac_word" >&5
22768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22769 if test "${ac_cv_path_MKDIR+set}" = set; then
22770 echo $ECHO_N "(cached) $ECHO_C" >&6
22771 else
22772 case $MKDIR in
22773 [\\/]* | ?:[\\/]*)
22774 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
22775 ;;
22776 *)
22777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22778 for as_dir in $PATH
22779 do
22780 IFS=$as_save_IFS
22781 test -z "$as_dir" && as_dir=.
22782 for ac_exec_ext in '' $ac_executable_extensions; do
22783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22784 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
22785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22786 break 2
22787 fi
22788 done
22789 done
22790
22791 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="$FALSE"
22792 ;;
22793 esac
22794 fi
22795 MKDIR=$ac_cv_path_MKDIR
22796
22797 if test -n "$MKDIR"; then
22798 echo "$as_me:$LINENO: result: $MKDIR" >&5
22799 echo "${ECHO_T}$MKDIR" >&6
22800 else
22801 echo "$as_me:$LINENO: result: no" >&5
22802 echo "${ECHO_T}no" >&6
22803 fi
22804
22805 # Extract the first word of "ln", so it can be a program name with args.
22806 set dummy ln; ac_word=$2
22807 echo "$as_me:$LINENO: checking for $ac_word" >&5
22808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22809 if test "${ac_cv_path_LN+set}" = set; then
22810 echo $ECHO_N "(cached) $ECHO_C" >&6
22811 else
22812 case $LN in
22813 [\\/]* | ?:[\\/]*)
22814 ac_cv_path_LN="$LN" # Let the user override the test with a path.
22815 ;;
22816 *)
22817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22818 for as_dir in $PATH
22819 do
22820 IFS=$as_save_IFS
22821 test -z "$as_dir" && as_dir=.
22822 for ac_exec_ext in '' $ac_executable_extensions; do
22823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22824 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
22825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22826 break 2
22827 fi
22828 done
22829 done
22830
22831 test -z "$ac_cv_path_LN" && ac_cv_path_LN="cp"
22832 ;;
22833 esac
22834 fi
22835 LN=$ac_cv_path_LN
22836
22837 if test -n "$LN"; then
22838 echo "$as_me:$LINENO: result: $LN" >&5
22839 echo "${ECHO_T}$LN" >&6
22840 else
22841 echo "$as_me:$LINENO: result: no" >&5
22842 echo "${ECHO_T}no" >&6
22843 fi
22844
22845 # Extract the first word of "perl", so it can be a program name with args.
22846 set dummy perl; ac_word=$2
22847 echo "$as_me:$LINENO: checking for $ac_word" >&5
22848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22849 if test "${ac_cv_path_PERL+set}" = set; then
22850 echo $ECHO_N "(cached) $ECHO_C" >&6
22851 else
22852 case $PERL in
22853 [\\/]* | ?:[\\/]*)
22854 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
22855 ;;
22856 *)
22857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22858 for as_dir in $PATH
22859 do
22860 IFS=$as_save_IFS
22861 test -z "$as_dir" && as_dir=.
22862 for ac_exec_ext in '' $ac_executable_extensions; do
22863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22864 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
22865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22866 break 2
22867 fi
22868 done
22869 done
22870
22871 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
22872 ;;
22873 esac
22874 fi
22875 PERL=$ac_cv_path_PERL
22876
22877 if test -n "$PERL"; then
22878 echo "$as_me:$LINENO: result: $PERL" >&5
22879 echo "${ECHO_T}$PERL" >&6
22880 else
22881 echo "$as_me:$LINENO: result: no" >&5
22882 echo "${ECHO_T}no" >&6
22883 fi
22884
22885 # Extract the first word of "ar", so it can be a program name with args.
22886 set dummy ar; ac_word=$2
22887 echo "$as_me:$LINENO: checking for $ac_word" >&5
22888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22889 if test "${ac_cv_path_AR+set}" = set; then
22890 echo $ECHO_N "(cached) $ECHO_C" >&6
22891 else
22892 case $AR in
22893 [\\/]* | ?:[\\/]*)
22894 ac_cv_path_AR="$AR" # Let the user override the test with a path.
22895 ;;
22896 *)
22897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22898 for as_dir in $PATH
22899 do
22900 IFS=$as_save_IFS
22901 test -z "$as_dir" && as_dir=.
22902 for ac_exec_ext in '' $ac_executable_extensions; do
22903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22904 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
22905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22906 break 2
22907 fi
22908 done
22909 done
22910
22911 test -z "$ac_cv_path_AR" && ac_cv_path_AR="$FALSE"
22912 ;;
22913 esac
22914 fi
22915 AR=$ac_cv_path_AR
22916
22917 if test -n "$AR"; then
22918 echo "$as_me:$LINENO: result: $AR" >&5
22919 echo "${ECHO_T}$AR" >&6
22920 else
22921 echo "$as_me:$LINENO: result: no" >&5
22922 echo "${ECHO_T}no" >&6
22923 fi
22924
22925
22926 if test "$ac_cv_path_PERL" = "none"; then
22927 echo "Perl is required to compile Squid"
22928 echo "Please install Perl and then re-run configure"
22929 exit 1
22930 fi
22931
22932 case "$host" in
22933 *-hp-hpux*)
22934 echo "Disabling 'ranlib' for HP-UX..."
22935 RANLIB=":"
22936 ;;
22937 esac
22938
22939 AR_R="$AR r"
22940 case "$host" in
22941 *-next-nextstep3)
22942 AR="libtool -o"
22943 ;;
22944 esac
22945
22946
22947
22948
22949
22950
22951
22952 ac_header_dirent=no
22953 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22954 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22955 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22956 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
22957 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22958 echo $ECHO_N "(cached) $ECHO_C" >&6
22959 else
22960 cat >conftest.$ac_ext <<_ACEOF
22961 /* confdefs.h. */
22962 _ACEOF
22963 cat confdefs.h >>conftest.$ac_ext
22964 cat >>conftest.$ac_ext <<_ACEOF
22965 /* end confdefs.h. */
22966 #include <sys/types.h>
22967 #include <$ac_hdr>
22968
22969 int
22970 main ()
22971 {
22972 if ((DIR *) 0)
22973 return 0;
22974 ;
22975 return 0;
22976 }
22977 _ACEOF
22978 rm -f conftest.$ac_objext
22979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22980 (eval $ac_compile) 2>conftest.er1
22981 ac_status=$?
22982 grep -v '^ *+' conftest.er1 >conftest.err
22983 rm -f conftest.er1
22984 cat conftest.err >&5
22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986 (exit $ac_status); } &&
22987 { ac_try='test -z "$ac_c_werror_flag"
22988 || test ! -s conftest.err'
22989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22990 (eval $ac_try) 2>&5
22991 ac_status=$?
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); }; } &&
22994 { ac_try='test -s conftest.$ac_objext'
22995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22996 (eval $ac_try) 2>&5
22997 ac_status=$?
22998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22999 (exit $ac_status); }; }; then
23000 eval "$as_ac_Header=yes"
23001 else
23002 echo "$as_me: failed program was:" >&5
23003 sed 's/^/| /' conftest.$ac_ext >&5
23004
23005 eval "$as_ac_Header=no"
23006 fi
23007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23008 fi
23009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23012 cat >>confdefs.h <<_ACEOF
23013 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23014 _ACEOF
23015
23016 ac_header_dirent=$ac_hdr; break
23017 fi
23018
23019 done
23020 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23021 if test $ac_header_dirent = dirent.h; then
23022 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23023 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23024 if test "${ac_cv_search_opendir+set}" = set; then
23025 echo $ECHO_N "(cached) $ECHO_C" >&6
23026 else
23027 ac_func_search_save_LIBS=$LIBS
23028 ac_cv_search_opendir=no
23029 cat >conftest.$ac_ext <<_ACEOF
23030 /* confdefs.h. */
23031 _ACEOF
23032 cat confdefs.h >>conftest.$ac_ext
23033 cat >>conftest.$ac_ext <<_ACEOF
23034 /* end confdefs.h. */
23035
23036 /* Override any gcc2 internal prototype to avoid an error. */
23037 #ifdef __cplusplus
23038 extern "C"
23039 #endif
23040 /* We use char because int might match the return type of a gcc2
23041 builtin and then its argument prototype would still apply. */
23042 char opendir ();
23043 int
23044 main ()
23045 {
23046 opendir ();
23047 ;
23048 return 0;
23049 }
23050 _ACEOF
23051 rm -f conftest.$ac_objext conftest$ac_exeext
23052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23053 (eval $ac_link) 2>conftest.er1
23054 ac_status=$?
23055 grep -v '^ *+' conftest.er1 >conftest.err
23056 rm -f conftest.er1
23057 cat conftest.err >&5
23058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); } &&
23060 { ac_try='test -z "$ac_c_werror_flag"
23061 || test ! -s conftest.err'
23062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23063 (eval $ac_try) 2>&5
23064 ac_status=$?
23065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066 (exit $ac_status); }; } &&
23067 { ac_try='test -s conftest$ac_exeext'
23068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23069 (eval $ac_try) 2>&5
23070 ac_status=$?
23071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072 (exit $ac_status); }; }; then
23073 ac_cv_search_opendir="none required"
23074 else
23075 echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23077
23078 fi
23079 rm -f conftest.err conftest.$ac_objext \
23080 conftest$ac_exeext conftest.$ac_ext
23081 if test "$ac_cv_search_opendir" = no; then
23082 for ac_lib in dir; do
23083 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23084 cat >conftest.$ac_ext <<_ACEOF
23085 /* confdefs.h. */
23086 _ACEOF
23087 cat confdefs.h >>conftest.$ac_ext
23088 cat >>conftest.$ac_ext <<_ACEOF
23089 /* end confdefs.h. */
23090
23091 /* Override any gcc2 internal prototype to avoid an error. */
23092 #ifdef __cplusplus
23093 extern "C"
23094 #endif
23095 /* We use char because int might match the return type of a gcc2
23096 builtin and then its argument prototype would still apply. */
23097 char opendir ();
23098 int
23099 main ()
23100 {
23101 opendir ();
23102 ;
23103 return 0;
23104 }
23105 _ACEOF
23106 rm -f conftest.$ac_objext conftest$ac_exeext
23107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23108 (eval $ac_link) 2>conftest.er1
23109 ac_status=$?
23110 grep -v '^ *+' conftest.er1 >conftest.err
23111 rm -f conftest.er1
23112 cat conftest.err >&5
23113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114 (exit $ac_status); } &&
23115 { ac_try='test -z "$ac_c_werror_flag"
23116 || test ! -s conftest.err'
23117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23118 (eval $ac_try) 2>&5
23119 ac_status=$?
23120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121 (exit $ac_status); }; } &&
23122 { ac_try='test -s conftest$ac_exeext'
23123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23124 (eval $ac_try) 2>&5
23125 ac_status=$?
23126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127 (exit $ac_status); }; }; then
23128 ac_cv_search_opendir="-l$ac_lib"
23129 break
23130 else
23131 echo "$as_me: failed program was:" >&5
23132 sed 's/^/| /' conftest.$ac_ext >&5
23133
23134 fi
23135 rm -f conftest.err conftest.$ac_objext \
23136 conftest$ac_exeext conftest.$ac_ext
23137 done
23138 fi
23139 LIBS=$ac_func_search_save_LIBS
23140 fi
23141 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23142 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23143 if test "$ac_cv_search_opendir" != no; then
23144 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23145
23146 fi
23147
23148 else
23149 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23150 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23151 if test "${ac_cv_search_opendir+set}" = set; then
23152 echo $ECHO_N "(cached) $ECHO_C" >&6
23153 else
23154 ac_func_search_save_LIBS=$LIBS
23155 ac_cv_search_opendir=no
23156 cat >conftest.$ac_ext <<_ACEOF
23157 /* confdefs.h. */
23158 _ACEOF
23159 cat confdefs.h >>conftest.$ac_ext
23160 cat >>conftest.$ac_ext <<_ACEOF
23161 /* end confdefs.h. */
23162
23163 /* Override any gcc2 internal prototype to avoid an error. */
23164 #ifdef __cplusplus
23165 extern "C"
23166 #endif
23167 /* We use char because int might match the return type of a gcc2
23168 builtin and then its argument prototype would still apply. */
23169 char opendir ();
23170 int
23171 main ()
23172 {
23173 opendir ();
23174 ;
23175 return 0;
23176 }
23177 _ACEOF
23178 rm -f conftest.$ac_objext conftest$ac_exeext
23179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23180 (eval $ac_link) 2>conftest.er1
23181 ac_status=$?
23182 grep -v '^ *+' conftest.er1 >conftest.err
23183 rm -f conftest.er1
23184 cat conftest.err >&5
23185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23186 (exit $ac_status); } &&
23187 { ac_try='test -z "$ac_c_werror_flag"
23188 || test ! -s conftest.err'
23189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23190 (eval $ac_try) 2>&5
23191 ac_status=$?
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); }; } &&
23194 { ac_try='test -s conftest$ac_exeext'
23195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23196 (eval $ac_try) 2>&5
23197 ac_status=$?
23198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199 (exit $ac_status); }; }; then
23200 ac_cv_search_opendir="none required"
23201 else
23202 echo "$as_me: failed program was:" >&5
23203 sed 's/^/| /' conftest.$ac_ext >&5
23204
23205 fi
23206 rm -f conftest.err conftest.$ac_objext \
23207 conftest$ac_exeext conftest.$ac_ext
23208 if test "$ac_cv_search_opendir" = no; then
23209 for ac_lib in x; do
23210 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23211 cat >conftest.$ac_ext <<_ACEOF
23212 /* confdefs.h. */
23213 _ACEOF
23214 cat confdefs.h >>conftest.$ac_ext
23215 cat >>conftest.$ac_ext <<_ACEOF
23216 /* end confdefs.h. */
23217
23218 /* Override any gcc2 internal prototype to avoid an error. */
23219 #ifdef __cplusplus
23220 extern "C"
23221 #endif
23222 /* We use char because int might match the return type of a gcc2
23223 builtin and then its argument prototype would still apply. */
23224 char opendir ();
23225 int
23226 main ()
23227 {
23228 opendir ();
23229 ;
23230 return 0;
23231 }
23232 _ACEOF
23233 rm -f conftest.$ac_objext conftest$ac_exeext
23234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23235 (eval $ac_link) 2>conftest.er1
23236 ac_status=$?
23237 grep -v '^ *+' conftest.er1 >conftest.err
23238 rm -f conftest.er1
23239 cat conftest.err >&5
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); } &&
23242 { ac_try='test -z "$ac_c_werror_flag"
23243 || test ! -s conftest.err'
23244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23245 (eval $ac_try) 2>&5
23246 ac_status=$?
23247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); }; } &&
23249 { ac_try='test -s conftest$ac_exeext'
23250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23251 (eval $ac_try) 2>&5
23252 ac_status=$?
23253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); }; }; then
23255 ac_cv_search_opendir="-l$ac_lib"
23256 break
23257 else
23258 echo "$as_me: failed program was:" >&5
23259 sed 's/^/| /' conftest.$ac_ext >&5
23260
23261 fi
23262 rm -f conftest.err conftest.$ac_objext \
23263 conftest$ac_exeext conftest.$ac_ext
23264 done
23265 fi
23266 LIBS=$ac_func_search_save_LIBS
23267 fi
23268 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23269 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23270 if test "$ac_cv_search_opendir" != no; then
23271 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23272
23273 fi
23274
23275 fi
23276
23277 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23278 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23279 if test "${ac_cv_header_stdc+set}" = set; then
23280 echo $ECHO_N "(cached) $ECHO_C" >&6
23281 else
23282 cat >conftest.$ac_ext <<_ACEOF
23283 /* confdefs.h. */
23284 _ACEOF
23285 cat confdefs.h >>conftest.$ac_ext
23286 cat >>conftest.$ac_ext <<_ACEOF
23287 /* end confdefs.h. */
23288 #include <stdlib.h>
23289 #include <stdarg.h>
23290 #include <string.h>
23291 #include <float.h>
23292
23293 int
23294 main ()
23295 {
23296
23297 ;
23298 return 0;
23299 }
23300 _ACEOF
23301 rm -f conftest.$ac_objext
23302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23303 (eval $ac_compile) 2>conftest.er1
23304 ac_status=$?
23305 grep -v '^ *+' conftest.er1 >conftest.err
23306 rm -f conftest.er1
23307 cat conftest.err >&5
23308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309 (exit $ac_status); } &&
23310 { ac_try='test -z "$ac_c_werror_flag"
23311 || test ! -s conftest.err'
23312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23313 (eval $ac_try) 2>&5
23314 ac_status=$?
23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 (exit $ac_status); }; } &&
23317 { ac_try='test -s conftest.$ac_objext'
23318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23319 (eval $ac_try) 2>&5
23320 ac_status=$?
23321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322 (exit $ac_status); }; }; then
23323 ac_cv_header_stdc=yes
23324 else
23325 echo "$as_me: failed program was:" >&5
23326 sed 's/^/| /' conftest.$ac_ext >&5
23327
23328 ac_cv_header_stdc=no
23329 fi
23330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23331
23332 if test $ac_cv_header_stdc = yes; then
23333 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23334 cat >conftest.$ac_ext <<_ACEOF
23335 /* confdefs.h. */
23336 _ACEOF
23337 cat confdefs.h >>conftest.$ac_ext
23338 cat >>conftest.$ac_ext <<_ACEOF
23339 /* end confdefs.h. */
23340 #include <string.h>
23341
23342 _ACEOF
23343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23344 $EGREP "memchr" >/dev/null 2>&1; then
23345 :
23346 else
23347 ac_cv_header_stdc=no
23348 fi
23349 rm -f conftest*
23350
23351 fi
23352
23353 if test $ac_cv_header_stdc = yes; then
23354 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23355 cat >conftest.$ac_ext <<_ACEOF
23356 /* confdefs.h. */
23357 _ACEOF
23358 cat confdefs.h >>conftest.$ac_ext
23359 cat >>conftest.$ac_ext <<_ACEOF
23360 /* end confdefs.h. */
23361 #include <stdlib.h>
23362
23363 _ACEOF
23364 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23365 $EGREP "free" >/dev/null 2>&1; then
23366 :
23367 else
23368 ac_cv_header_stdc=no
23369 fi
23370 rm -f conftest*
23371
23372 fi
23373
23374 if test $ac_cv_header_stdc = yes; then
23375 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23376 if test "$cross_compiling" = yes; then
23377 :
23378 else
23379 cat >conftest.$ac_ext <<_ACEOF
23380 /* confdefs.h. */
23381 _ACEOF
23382 cat confdefs.h >>conftest.$ac_ext
23383 cat >>conftest.$ac_ext <<_ACEOF
23384 /* end confdefs.h. */
23385 #include <ctype.h>
23386 #if ((' ' & 0x0FF) == 0x020)
23387 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23388 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23389 #else
23390 # define ISLOWER(c) \
23391 (('a' <= (c) && (c) <= 'i') \
23392 || ('j' <= (c) && (c) <= 'r') \
23393 || ('s' <= (c) && (c) <= 'z'))
23394 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23395 #endif
23396
23397 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23398 int
23399 main ()
23400 {
23401 int i;
23402 for (i = 0; i < 256; i++)
23403 if (XOR (islower (i), ISLOWER (i))
23404 || toupper (i) != TOUPPER (i))
23405 exit(2);
23406 exit (0);
23407 }
23408 _ACEOF
23409 rm -f conftest$ac_exeext
23410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23411 (eval $ac_link) 2>&5
23412 ac_status=$?
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23416 (eval $ac_try) 2>&5
23417 ac_status=$?
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); }; }; then
23420 :
23421 else
23422 echo "$as_me: program exited with status $ac_status" >&5
23423 echo "$as_me: failed program was:" >&5
23424 sed 's/^/| /' conftest.$ac_ext >&5
23425
23426 ( exit $ac_status )
23427 ac_cv_header_stdc=no
23428 fi
23429 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23430 fi
23431 fi
23432 fi
23433 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
23434 echo "${ECHO_T}$ac_cv_header_stdc" >&6
23435 if test $ac_cv_header_stdc = yes; then
23436
23437 cat >>confdefs.h <<\_ACEOF
23438 #define STDC_HEADERS 1
23439 _ACEOF
23440
23441 fi
23442
23443
23444
23445
23446
23447
23448
23449
23450
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
23517
23518
23519
23520
23521
23522
23523
23524 for ac_header in \
23525 arpa/inet.h \
23526 arpa/nameser.h \
23527 assert.h \
23528 bstring.h \
23529 crypt.h \
23530 ctype.h \
23531 errno.h \
23532 execinfo.h \
23533 fcntl.h \
23534 fnmatch.h \
23535 getopt.h \
23536 gnumalloc.h \
23537 grp.h \
23538 ip_compat.h \
23539 ip_fil_compat.h \
23540 ip_fil.h \
23541 ip_nat.h \
23542 ipl.h \
23543 libc.h \
23544 limits.h \
23545 malloc.h \
23546 math.h \
23547 memory.h \
23548 mount.h \
23549 net/pfvar.h \
23550 netdb.h \
23551 netinet/in.h \
23552 netinet/tcp.h \
23553 netinet/ip_fil_compat.h \
23554 openssl/err.h \
23555 openssl/md5.h \
23556 openssl/ssl.h \
23557 openssl/engine.h \
23558 paths.h \
23559 poll.h \
23560 pwd.h \
23561 shadow.h \
23562 regex.h \
23563 sched.h \
23564 signal.h \
23565 stdarg.h \
23566 stddef.h \
23567 stdio.h \
23568 stdlib.h \
23569 string.h \
23570 strings.h \
23571 sys/bitypes.h \
23572 sys/bswap.h \
23573 sys/endian.h \
23574 sys/file.h \
23575 sys/ioctl.h \
23576 sys/param.h \
23577 sys/prctl.h \
23578 sys/msg.h \
23579 sys/resource.h \
23580 sys/select.h\
23581 sys/socket.h \
23582 sys/stat.h \
23583 sys/statvfs.h \
23584 syscall.h \
23585 sys/syscall.h \
23586 sys/time.h \
23587 sys/types.h \
23588 sys/un.h \
23589 sys/vfs.h \
23590 sys/wait.h \
23591 syslog.h \
23592 time.h \
23593 unistd.h \
23594 utime.h \
23595 varargs.h \
23596 byteswap.h \
23597 glib.h \
23598 stdint.h \
23599 inttypes.h \
23600 grp.h \
23601 nss_common.h \
23602 nss.h \
23603 db.h \
23604 db_185.h
23605
23606 do
23607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23609 echo "$as_me:$LINENO: checking for $ac_header" >&5
23610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23611 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23612 echo $ECHO_N "(cached) $ECHO_C" >&6
23613 fi
23614 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23615 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23616 else
23617 # Is the header compilable?
23618 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23620 cat >conftest.$ac_ext <<_ACEOF
23621 /* confdefs.h. */
23622 _ACEOF
23623 cat confdefs.h >>conftest.$ac_ext
23624 cat >>conftest.$ac_ext <<_ACEOF
23625 /* end confdefs.h. */
23626 $ac_includes_default
23627 #include <$ac_header>
23628 _ACEOF
23629 rm -f conftest.$ac_objext
23630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23631 (eval $ac_compile) 2>conftest.er1
23632 ac_status=$?
23633 grep -v '^ *+' conftest.er1 >conftest.err
23634 rm -f conftest.er1
23635 cat conftest.err >&5
23636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637 (exit $ac_status); } &&
23638 { ac_try='test -z "$ac_c_werror_flag"
23639 || test ! -s conftest.err'
23640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23641 (eval $ac_try) 2>&5
23642 ac_status=$?
23643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644 (exit $ac_status); }; } &&
23645 { ac_try='test -s conftest.$ac_objext'
23646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23647 (eval $ac_try) 2>&5
23648 ac_status=$?
23649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650 (exit $ac_status); }; }; then
23651 ac_header_compiler=yes
23652 else
23653 echo "$as_me: failed program was:" >&5
23654 sed 's/^/| /' conftest.$ac_ext >&5
23655
23656 ac_header_compiler=no
23657 fi
23658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23659 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23660 echo "${ECHO_T}$ac_header_compiler" >&6
23661
23662 # Is the header present?
23663 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23665 cat >conftest.$ac_ext <<_ACEOF
23666 /* confdefs.h. */
23667 _ACEOF
23668 cat confdefs.h >>conftest.$ac_ext
23669 cat >>conftest.$ac_ext <<_ACEOF
23670 /* end confdefs.h. */
23671 #include <$ac_header>
23672 _ACEOF
23673 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23675 ac_status=$?
23676 grep -v '^ *+' conftest.er1 >conftest.err
23677 rm -f conftest.er1
23678 cat conftest.err >&5
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); } >/dev/null; then
23681 if test -s conftest.err; then
23682 ac_cpp_err=$ac_c_preproc_warn_flag
23683 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23684 else
23685 ac_cpp_err=
23686 fi
23687 else
23688 ac_cpp_err=yes
23689 fi
23690 if test -z "$ac_cpp_err"; then
23691 ac_header_preproc=yes
23692 else
23693 echo "$as_me: failed program was:" >&5
23694 sed 's/^/| /' conftest.$ac_ext >&5
23695
23696 ac_header_preproc=no
23697 fi
23698 rm -f conftest.err conftest.$ac_ext
23699 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23700 echo "${ECHO_T}$ac_header_preproc" >&6
23701
23702 # So? What about this header?
23703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23704 yes:no: )
23705 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23706 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23708 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23709 ac_header_preproc=yes
23710 ;;
23711 no:yes:* )
23712 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23713 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23714 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23715 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23716 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23717 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23718 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23719 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23720 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23722 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23723 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23724 (
23725 cat <<\_ASBOX
23726 ## ----------------------------------------------- ##
23727 ## Report this to http://www.squid-cache.org/bugs/ ##
23728 ## ----------------------------------------------- ##
23729 _ASBOX
23730 ) |
23731 sed "s/^/$as_me: WARNING: /" >&2
23732 ;;
23733 esac
23734 echo "$as_me:$LINENO: checking for $ac_header" >&5
23735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23737 echo $ECHO_N "(cached) $ECHO_C" >&6
23738 else
23739 eval "$as_ac_Header=\$ac_header_preproc"
23740 fi
23741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23743
23744 fi
23745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23746 cat >>confdefs.h <<_ACEOF
23747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23748 _ACEOF
23749
23750 fi
23751
23752 done
23753
23754
23755
23756
23757 for ac_header in linux/netfilter_ipv4.h \
23758 linux/netfilter_ipv4/ip_tproxy.h \
23759
23760 do
23761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23762 echo "$as_me:$LINENO: checking for $ac_header" >&5
23763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23765 echo $ECHO_N "(cached) $ECHO_C" >&6
23766 else
23767 cat >conftest.$ac_ext <<_ACEOF
23768 /* confdefs.h. */
23769 _ACEOF
23770 cat confdefs.h >>conftest.$ac_ext
23771 cat >>conftest.$ac_ext <<_ACEOF
23772 /* end confdefs.h. */
23773
23774 /* What a mess.. many systems have added the (now standard) bit types
23775 * in their own ways, so we need to scan a wide variety of headers to
23776 * find them..
23777 * IMPORTANT: Keep include/squid_types.h syncronised with this list
23778 */
23779 #if HAVE_SYS_TYPES_H
23780 #include <sys/types.h>
23781 #endif
23782 #if STDC_HEADERS
23783 #include <stdlib.h>
23784 #include <stddef.h>
23785 #endif
23786 #if HAVE_INTTYPES_H
23787 #include <inttypes.h>
23788 #endif
23789 #if HAVE_SYS_BITYPES_H
23790 #include <sys/bitypes.h>
23791 #endif
23792 #if HAVE_SYS_SELECT_H
23793 #include <sys/select.h>
23794 #endif
23795
23796 #if HAVE_LIMITS_H
23797 #include <limits.h>
23798 #endif
23799
23800
23801 #include <$ac_header>
23802 _ACEOF
23803 rm -f conftest.$ac_objext
23804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23805 (eval $ac_compile) 2>conftest.er1
23806 ac_status=$?
23807 grep -v '^ *+' conftest.er1 >conftest.err
23808 rm -f conftest.er1
23809 cat conftest.err >&5
23810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811 (exit $ac_status); } &&
23812 { ac_try='test -z "$ac_c_werror_flag"
23813 || test ! -s conftest.err'
23814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23815 (eval $ac_try) 2>&5
23816 ac_status=$?
23817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23818 (exit $ac_status); }; } &&
23819 { ac_try='test -s conftest.$ac_objext'
23820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23821 (eval $ac_try) 2>&5
23822 ac_status=$?
23823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824 (exit $ac_status); }; }; then
23825 eval "$as_ac_Header=yes"
23826 else
23827 echo "$as_me: failed program was:" >&5
23828 sed 's/^/| /' conftest.$ac_ext >&5
23829
23830 eval "$as_ac_Header=no"
23831 fi
23832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23833 fi
23834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23835 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23837 cat >>confdefs.h <<_ACEOF
23838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23839 _ACEOF
23840
23841 fi
23842
23843 done
23844
23845
23846
23847
23848
23849
23850
23851
23852
23853
23854 for ac_header in net/if.h \
23855 netinet/if_ether.h\
23856 netinet/ip_compat.h\
23857 netinet/ip_fil.h\
23858 netinet/ip_nat.h\
23859 netinet/ipl.h \
23860 sys/mount.h\
23861 resolv.h
23862 do
23863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23864 echo "$as_me:$LINENO: checking for $ac_header" >&5
23865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23867 echo $ECHO_N "(cached) $ECHO_C" >&6
23868 else
23869 cat >conftest.$ac_ext <<_ACEOF
23870 /* confdefs.h. */
23871 _ACEOF
23872 cat confdefs.h >>conftest.$ac_ext
23873 cat >>conftest.$ac_ext <<_ACEOF
23874 /* end confdefs.h. */
23875
23876
23877 /* What a mess.. many systems have added the (now standard) bit types
23878 * in their own ways, so we need to scan a wide variety of headers to
23879 * find them..
23880 * IMPORTANT: Keep include/squid_types.h syncronised with this list
23881 */
23882 #if HAVE_SYS_TYPES_H
23883 #include <sys/types.h>
23884 #endif
23885 #if STDC_HEADERS
23886 #include <stdlib.h>
23887 #include <stddef.h>
23888 #endif
23889 #if HAVE_INTTYPES_H
23890 #include <inttypes.h>
23891 #endif
23892 #if HAVE_SYS_BITYPES_H
23893 #include <sys/bitypes.h>
23894 #endif
23895 #if HAVE_SYS_SELECT_H
23896 #include <sys/select.h>
23897 #endif
23898
23899 #if HAVE_SYS_TIME_H
23900 #include <sys/time.h>
23901 #endif
23902 #if HAVE_SYS_SOCKET_H
23903 #include <sys/socket.h>
23904 #endif
23905 #if HAVE_NETINET_IN_H
23906 #include <netinet/in.h>
23907 #endif
23908 #if HAVE_NETINET_IP_COMPAT_H
23909 #include <netinet/ip_compat.h>
23910 #endif
23911 #if HAVE_NET_IF_H
23912 #include <net/if.h>
23913 #endif
23914 #if HAVE_NETINET_IP_FIL_H
23915 #include <netinet/ip_fil.h>
23916 #endif
23917 #if HAVE_SYS_PARAM_H
23918 #include <sys/param.h>
23919 #endif
23920
23921
23922 #include <$ac_header>
23923 _ACEOF
23924 rm -f conftest.$ac_objext
23925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23926 (eval $ac_compile) 2>conftest.er1
23927 ac_status=$?
23928 grep -v '^ *+' conftest.er1 >conftest.err
23929 rm -f conftest.er1
23930 cat conftest.err >&5
23931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932 (exit $ac_status); } &&
23933 { ac_try='test -z "$ac_c_werror_flag"
23934 || test ! -s conftest.err'
23935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23936 (eval $ac_try) 2>&5
23937 ac_status=$?
23938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23939 (exit $ac_status); }; } &&
23940 { ac_try='test -s conftest.$ac_objext'
23941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23942 (eval $ac_try) 2>&5
23943 ac_status=$?
23944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945 (exit $ac_status); }; }; then
23946 eval "$as_ac_Header=yes"
23947 else
23948 echo "$as_me: failed program was:" >&5
23949 sed 's/^/| /' conftest.$ac_ext >&5
23950
23951 eval "$as_ac_Header=no"
23952 fi
23953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23954 fi
23955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23958 cat >>confdefs.h <<_ACEOF
23959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23960 _ACEOF
23961
23962 fi
23963
23964 done
23965
23966
23967
23968 for ac_header in libxml/parser.h
23969 do
23970 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23972 echo "$as_me:$LINENO: checking for $ac_header" >&5
23973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23975 echo $ECHO_N "(cached) $ECHO_C" >&6
23976 fi
23977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23979 else
23980 # Is the header compilable?
23981 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23983 cat >conftest.$ac_ext <<_ACEOF
23984 /* confdefs.h. */
23985 _ACEOF
23986 cat confdefs.h >>conftest.$ac_ext
23987 cat >>conftest.$ac_ext <<_ACEOF
23988 /* end confdefs.h. */
23989 $ac_includes_default
23990 #include <$ac_header>
23991 _ACEOF
23992 rm -f conftest.$ac_objext
23993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23994 (eval $ac_compile) 2>conftest.er1
23995 ac_status=$?
23996 grep -v '^ *+' conftest.er1 >conftest.err
23997 rm -f conftest.er1
23998 cat conftest.err >&5
23999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000 (exit $ac_status); } &&
24001 { ac_try='test -z "$ac_c_werror_flag"
24002 || test ! -s conftest.err'
24003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24004 (eval $ac_try) 2>&5
24005 ac_status=$?
24006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007 (exit $ac_status); }; } &&
24008 { ac_try='test -s conftest.$ac_objext'
24009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24010 (eval $ac_try) 2>&5
24011 ac_status=$?
24012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24013 (exit $ac_status); }; }; then
24014 ac_header_compiler=yes
24015 else
24016 echo "$as_me: failed program was:" >&5
24017 sed 's/^/| /' conftest.$ac_ext >&5
24018
24019 ac_header_compiler=no
24020 fi
24021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24023 echo "${ECHO_T}$ac_header_compiler" >&6
24024
24025 # Is the header present?
24026 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24027 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24028 cat >conftest.$ac_ext <<_ACEOF
24029 /* confdefs.h. */
24030 _ACEOF
24031 cat confdefs.h >>conftest.$ac_ext
24032 cat >>conftest.$ac_ext <<_ACEOF
24033 /* end confdefs.h. */
24034 #include <$ac_header>
24035 _ACEOF
24036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24038 ac_status=$?
24039 grep -v '^ *+' conftest.er1 >conftest.err
24040 rm -f conftest.er1
24041 cat conftest.err >&5
24042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24043 (exit $ac_status); } >/dev/null; then
24044 if test -s conftest.err; then
24045 ac_cpp_err=$ac_c_preproc_warn_flag
24046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24047 else
24048 ac_cpp_err=
24049 fi
24050 else
24051 ac_cpp_err=yes
24052 fi
24053 if test -z "$ac_cpp_err"; then
24054 ac_header_preproc=yes
24055 else
24056 echo "$as_me: failed program was:" >&5
24057 sed 's/^/| /' conftest.$ac_ext >&5
24058
24059 ac_header_preproc=no
24060 fi
24061 rm -f conftest.err conftest.$ac_ext
24062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24063 echo "${ECHO_T}$ac_header_preproc" >&6
24064
24065 # So? What about this header?
24066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24067 yes:no: )
24068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24072 ac_header_preproc=yes
24073 ;;
24074 no:yes:* )
24075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24078 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24082 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24087 (
24088 cat <<\_ASBOX
24089 ## ----------------------------------------------- ##
24090 ## Report this to http://www.squid-cache.org/bugs/ ##
24091 ## ----------------------------------------------- ##
24092 _ASBOX
24093 ) |
24094 sed "s/^/$as_me: WARNING: /" >&2
24095 ;;
24096 esac
24097 echo "$as_me:$LINENO: checking for $ac_header" >&5
24098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24099 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24100 echo $ECHO_N "(cached) $ECHO_C" >&6
24101 else
24102 eval "$as_ac_Header=\$ac_header_preproc"
24103 fi
24104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24106
24107 fi
24108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24109 cat >>confdefs.h <<_ACEOF
24110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24111 _ACEOF
24112
24113 else
24114
24115 SAVED_CPPFLAGS="$CPPFLAGS"
24116 CPPFLAGS="-I/usr/include/libxml2 $CPPFLAGS"
24117 unset ac_cv_header_libxml_parser_h
24118
24119 for ac_header in libxml/parser.h
24120 do
24121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24123 echo "$as_me:$LINENO: checking for $ac_header" >&5
24124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24126 echo $ECHO_N "(cached) $ECHO_C" >&6
24127 fi
24128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24130 else
24131 # Is the header compilable?
24132 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24134 cat >conftest.$ac_ext <<_ACEOF
24135 /* confdefs.h. */
24136 _ACEOF
24137 cat confdefs.h >>conftest.$ac_ext
24138 cat >>conftest.$ac_ext <<_ACEOF
24139 /* end confdefs.h. */
24140 $ac_includes_default
24141 #include <$ac_header>
24142 _ACEOF
24143 rm -f conftest.$ac_objext
24144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24145 (eval $ac_compile) 2>conftest.er1
24146 ac_status=$?
24147 grep -v '^ *+' conftest.er1 >conftest.err
24148 rm -f conftest.er1
24149 cat conftest.err >&5
24150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151 (exit $ac_status); } &&
24152 { ac_try='test -z "$ac_c_werror_flag"
24153 || test ! -s conftest.err'
24154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24155 (eval $ac_try) 2>&5
24156 ac_status=$?
24157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158 (exit $ac_status); }; } &&
24159 { ac_try='test -s conftest.$ac_objext'
24160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24161 (eval $ac_try) 2>&5
24162 ac_status=$?
24163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); }; }; then
24165 ac_header_compiler=yes
24166 else
24167 echo "$as_me: failed program was:" >&5
24168 sed 's/^/| /' conftest.$ac_ext >&5
24169
24170 ac_header_compiler=no
24171 fi
24172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24173 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24174 echo "${ECHO_T}$ac_header_compiler" >&6
24175
24176 # Is the header present?
24177 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24179 cat >conftest.$ac_ext <<_ACEOF
24180 /* confdefs.h. */
24181 _ACEOF
24182 cat confdefs.h >>conftest.$ac_ext
24183 cat >>conftest.$ac_ext <<_ACEOF
24184 /* end confdefs.h. */
24185 #include <$ac_header>
24186 _ACEOF
24187 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24189 ac_status=$?
24190 grep -v '^ *+' conftest.er1 >conftest.err
24191 rm -f conftest.er1
24192 cat conftest.err >&5
24193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194 (exit $ac_status); } >/dev/null; then
24195 if test -s conftest.err; then
24196 ac_cpp_err=$ac_c_preproc_warn_flag
24197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24198 else
24199 ac_cpp_err=
24200 fi
24201 else
24202 ac_cpp_err=yes
24203 fi
24204 if test -z "$ac_cpp_err"; then
24205 ac_header_preproc=yes
24206 else
24207 echo "$as_me: failed program was:" >&5
24208 sed 's/^/| /' conftest.$ac_ext >&5
24209
24210 ac_header_preproc=no
24211 fi
24212 rm -f conftest.err conftest.$ac_ext
24213 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24214 echo "${ECHO_T}$ac_header_preproc" >&6
24215
24216 # So? What about this header?
24217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24218 yes:no: )
24219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24223 ac_header_preproc=yes
24224 ;;
24225 no:yes:* )
24226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24233 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24238 (
24239 cat <<\_ASBOX
24240 ## ----------------------------------------------- ##
24241 ## Report this to http://www.squid-cache.org/bugs/ ##
24242 ## ----------------------------------------------- ##
24243 _ASBOX
24244 ) |
24245 sed "s/^/$as_me: WARNING: /" >&2
24246 ;;
24247 esac
24248 echo "$as_me:$LINENO: checking for $ac_header" >&5
24249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24251 echo $ECHO_N "(cached) $ECHO_C" >&6
24252 else
24253 eval "$as_ac_Header=\$ac_header_preproc"
24254 fi
24255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24256 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24257
24258 fi
24259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24260 cat >>confdefs.h <<_ACEOF
24261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24262 _ACEOF
24263
24264 else
24265
24266 CPPFLAGS="$SAVED_CPPFLAGS"
24267
24268 fi
24269
24270 done
24271
24272
24273 fi
24274
24275 done
24276
24277
24278 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24279 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
24280 if test "${ac_cv_c_const+set}" = set; then
24281 echo $ECHO_N "(cached) $ECHO_C" >&6
24282 else
24283 cat >conftest.$ac_ext <<_ACEOF
24284 /* confdefs.h. */
24285 _ACEOF
24286 cat confdefs.h >>conftest.$ac_ext
24287 cat >>conftest.$ac_ext <<_ACEOF
24288 /* end confdefs.h. */
24289
24290 int
24291 main ()
24292 {
24293 /* FIXME: Include the comments suggested by Paul. */
24294 #ifndef __cplusplus
24295 /* Ultrix mips cc rejects this. */
24296 typedef int charset[2];
24297 const charset x;
24298 /* SunOS 4.1.1 cc rejects this. */
24299 char const *const *ccp;
24300 char **p;
24301 /* NEC SVR4.0.2 mips cc rejects this. */
24302 struct point {int x, y;};
24303 static struct point const zero = {0,0};
24304 /* AIX XL C 1.02.0.0 rejects this.
24305 It does not let you subtract one const X* pointer from another in
24306 an arm of an if-expression whose if-part is not a constant
24307 expression */
24308 const char *g = "string";
24309 ccp = &g + (g ? g-g : 0);
24310 /* HPUX 7.0 cc rejects these. */
24311 ++ccp;
24312 p = (char**) ccp;
24313 ccp = (char const *const *) p;
24314 { /* SCO 3.2v4 cc rejects this. */
24315 char *t;
24316 char const *s = 0 ? (char *) 0 : (char const *) 0;
24317
24318 *t++ = 0;
24319 }
24320 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24321 int x[] = {25, 17};
24322 const int *foo = &x[0];
24323 ++foo;
24324 }
24325 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24326 typedef const int *iptr;
24327 iptr p = 0;
24328 ++p;
24329 }
24330 { /* AIX XL C 1.02.0.0 rejects this saying
24331 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24332 struct s { int j; const int *ap[3]; };
24333 struct s *b; b->j = 5;
24334 }
24335 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24336 const int foo = 10;
24337 }
24338 #endif
24339
24340 ;
24341 return 0;
24342 }
24343 _ACEOF
24344 rm -f conftest.$ac_objext
24345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24346 (eval $ac_compile) 2>conftest.er1
24347 ac_status=$?
24348 grep -v '^ *+' conftest.er1 >conftest.err
24349 rm -f conftest.er1
24350 cat conftest.err >&5
24351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24352 (exit $ac_status); } &&
24353 { ac_try='test -z "$ac_c_werror_flag"
24354 || test ! -s conftest.err'
24355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24356 (eval $ac_try) 2>&5
24357 ac_status=$?
24358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359 (exit $ac_status); }; } &&
24360 { ac_try='test -s conftest.$ac_objext'
24361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24362 (eval $ac_try) 2>&5
24363 ac_status=$?
24364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24365 (exit $ac_status); }; }; then
24366 ac_cv_c_const=yes
24367 else
24368 echo "$as_me: failed program was:" >&5
24369 sed 's/^/| /' conftest.$ac_ext >&5
24370
24371 ac_cv_c_const=no
24372 fi
24373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24374 fi
24375 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24376 echo "${ECHO_T}$ac_cv_c_const" >&6
24377 if test $ac_cv_c_const = no; then
24378
24379 cat >>confdefs.h <<\_ACEOF
24380 #define const
24381 _ACEOF
24382
24383 fi
24384
24385 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
24386 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
24387 if test "${ac_cv_c_bigendian+set}" = set; then
24388 echo $ECHO_N "(cached) $ECHO_C" >&6
24389 else
24390 # See if sys/param.h defines the BYTE_ORDER macro.
24391 cat >conftest.$ac_ext <<_ACEOF
24392 /* confdefs.h. */
24393 _ACEOF
24394 cat confdefs.h >>conftest.$ac_ext
24395 cat >>conftest.$ac_ext <<_ACEOF
24396 /* end confdefs.h. */
24397 #include <sys/types.h>
24398 #include <sys/param.h>
24399
24400 int
24401 main ()
24402 {
24403 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
24404 bogus endian macros
24405 #endif
24406
24407 ;
24408 return 0;
24409 }
24410 _ACEOF
24411 rm -f conftest.$ac_objext
24412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24413 (eval $ac_compile) 2>conftest.er1
24414 ac_status=$?
24415 grep -v '^ *+' conftest.er1 >conftest.err
24416 rm -f conftest.er1
24417 cat conftest.err >&5
24418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419 (exit $ac_status); } &&
24420 { ac_try='test -z "$ac_c_werror_flag"
24421 || test ! -s conftest.err'
24422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24423 (eval $ac_try) 2>&5
24424 ac_status=$?
24425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426 (exit $ac_status); }; } &&
24427 { ac_try='test -s conftest.$ac_objext'
24428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24429 (eval $ac_try) 2>&5
24430 ac_status=$?
24431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432 (exit $ac_status); }; }; then
24433 # It does; now see whether it defined to BIG_ENDIAN or not.
24434 cat >conftest.$ac_ext <<_ACEOF
24435 /* confdefs.h. */
24436 _ACEOF
24437 cat confdefs.h >>conftest.$ac_ext
24438 cat >>conftest.$ac_ext <<_ACEOF
24439 /* end confdefs.h. */
24440 #include <sys/types.h>
24441 #include <sys/param.h>
24442
24443 int
24444 main ()
24445 {
24446 #if BYTE_ORDER != BIG_ENDIAN
24447 not big endian
24448 #endif
24449
24450 ;
24451 return 0;
24452 }
24453 _ACEOF
24454 rm -f conftest.$ac_objext
24455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24456 (eval $ac_compile) 2>conftest.er1
24457 ac_status=$?
24458 grep -v '^ *+' conftest.er1 >conftest.err
24459 rm -f conftest.er1
24460 cat conftest.err >&5
24461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462 (exit $ac_status); } &&
24463 { ac_try='test -z "$ac_c_werror_flag"
24464 || test ! -s conftest.err'
24465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24466 (eval $ac_try) 2>&5
24467 ac_status=$?
24468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); }; } &&
24470 { ac_try='test -s conftest.$ac_objext'
24471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24472 (eval $ac_try) 2>&5
24473 ac_status=$?
24474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24475 (exit $ac_status); }; }; then
24476 ac_cv_c_bigendian=yes
24477 else
24478 echo "$as_me: failed program was:" >&5
24479 sed 's/^/| /' conftest.$ac_ext >&5
24480
24481 ac_cv_c_bigendian=no
24482 fi
24483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24484 else
24485 echo "$as_me: failed program was:" >&5
24486 sed 's/^/| /' conftest.$ac_ext >&5
24487
24488 # It does not; compile a test program.
24489 if test "$cross_compiling" = yes; then
24490 # try to guess the endianness by grepping values into an object file
24491 ac_cv_c_bigendian=unknown
24492 cat >conftest.$ac_ext <<_ACEOF
24493 /* confdefs.h. */
24494 _ACEOF
24495 cat confdefs.h >>conftest.$ac_ext
24496 cat >>conftest.$ac_ext <<_ACEOF
24497 /* end confdefs.h. */
24498 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24499 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24500 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
24501 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24502 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24503 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
24504 int
24505 main ()
24506 {
24507 _ascii (); _ebcdic ();
24508 ;
24509 return 0;
24510 }
24511 _ACEOF
24512 rm -f conftest.$ac_objext
24513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24514 (eval $ac_compile) 2>conftest.er1
24515 ac_status=$?
24516 grep -v '^ *+' conftest.er1 >conftest.err
24517 rm -f conftest.er1
24518 cat conftest.err >&5
24519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24520 (exit $ac_status); } &&
24521 { ac_try='test -z "$ac_c_werror_flag"
24522 || test ! -s conftest.err'
24523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24524 (eval $ac_try) 2>&5
24525 ac_status=$?
24526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24527 (exit $ac_status); }; } &&
24528 { ac_try='test -s conftest.$ac_objext'
24529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24530 (eval $ac_try) 2>&5
24531 ac_status=$?
24532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); }; }; then
24534 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
24535 ac_cv_c_bigendian=yes
24536 fi
24537 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24538 if test "$ac_cv_c_bigendian" = unknown; then
24539 ac_cv_c_bigendian=no
24540 else
24541 # finding both strings is unlikely to happen, but who knows?
24542 ac_cv_c_bigendian=unknown
24543 fi
24544 fi
24545 else
24546 echo "$as_me: failed program was:" >&5
24547 sed 's/^/| /' conftest.$ac_ext >&5
24548
24549 fi
24550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24551 else
24552 cat >conftest.$ac_ext <<_ACEOF
24553 /* confdefs.h. */
24554 _ACEOF
24555 cat confdefs.h >>conftest.$ac_ext
24556 cat >>conftest.$ac_ext <<_ACEOF
24557 /* end confdefs.h. */
24558 int
24559 main ()
24560 {
24561 /* Are we little or big endian? From Harbison&Steele. */
24562 union
24563 {
24564 long l;
24565 char c[sizeof (long)];
24566 } u;
24567 u.l = 1;
24568 exit (u.c[sizeof (long) - 1] == 1);
24569 }
24570 _ACEOF
24571 rm -f conftest$ac_exeext
24572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24573 (eval $ac_link) 2>&5
24574 ac_status=$?
24575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24578 (eval $ac_try) 2>&5
24579 ac_status=$?
24580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24581 (exit $ac_status); }; }; then
24582 ac_cv_c_bigendian=no
24583 else
24584 echo "$as_me: program exited with status $ac_status" >&5
24585 echo "$as_me: failed program was:" >&5
24586 sed 's/^/| /' conftest.$ac_ext >&5
24587
24588 ( exit $ac_status )
24589 ac_cv_c_bigendian=yes
24590 fi
24591 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24592 fi
24593 fi
24594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24595 fi
24596 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
24597 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
24598 case $ac_cv_c_bigendian in
24599 yes)
24600
24601 cat >>confdefs.h <<\_ACEOF
24602 #define WORDS_BIGENDIAN 1
24603 _ACEOF
24604 ;;
24605 no)
24606 ;;
24607 *)
24608 { { echo "$as_me:$LINENO: error: unknown endianness
24609 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
24610 echo "$as_me: error: unknown endianness
24611 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
24612 { (exit 1); exit 1; }; } ;;
24613 esac
24614
24615
24616 echo "$as_me:$LINENO: checking if ANSI prototypes work" >&5
24617 echo $ECHO_N "checking if ANSI prototypes work... $ECHO_C" >&6
24618 if test "${ac_cv_have_ansi_prototypes+set}" = set; then
24619 echo $ECHO_N "(cached) $ECHO_C" >&6
24620 else
24621
24622 cat >conftest.$ac_ext <<_ACEOF
24623 /* confdefs.h. */
24624 _ACEOF
24625 cat confdefs.h >>conftest.$ac_ext
24626 cat >>conftest.$ac_ext <<_ACEOF
24627 /* end confdefs.h. */
24628 int foo(char *); int foo (char *bar) {return 1;}
24629 int
24630 main ()
24631 {
24632 foo("bar")
24633 ;
24634 return 0;
24635 }
24636 _ACEOF
24637 rm -f conftest.$ac_objext
24638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24639 (eval $ac_compile) 2>conftest.er1
24640 ac_status=$?
24641 grep -v '^ *+' conftest.er1 >conftest.err
24642 rm -f conftest.er1
24643 cat conftest.err >&5
24644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645 (exit $ac_status); } &&
24646 { ac_try='test -z "$ac_c_werror_flag"
24647 || test ! -s conftest.err'
24648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24649 (eval $ac_try) 2>&5
24650 ac_status=$?
24651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24652 (exit $ac_status); }; } &&
24653 { ac_try='test -s conftest.$ac_objext'
24654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24655 (eval $ac_try) 2>&5
24656 ac_status=$?
24657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24658 (exit $ac_status); }; }; then
24659 ac_cv_have_ansi_prototypes="yes"
24660 else
24661 echo "$as_me: failed program was:" >&5
24662 sed 's/^/| /' conftest.$ac_ext >&5
24663
24664 ac_cv_have_ansi_prototypes="no"
24665 fi
24666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24667
24668 fi
24669 echo "$as_me:$LINENO: result: $ac_cv_have_ansi_prototypes" >&5
24670 echo "${ECHO_T}$ac_cv_have_ansi_prototypes" >&6
24671 if test $ac_cv_have_ansi_prototypes = "yes" ; then
24672
24673 cat >>confdefs.h <<\_ACEOF
24674 #define HAVE_ANSI_PROTOTYPES 1
24675 _ACEOF
24676
24677 fi
24678
24679 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24680 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
24681 if test "${ac_cv_struct_tm+set}" = set; then
24682 echo $ECHO_N "(cached) $ECHO_C" >&6
24683 else
24684 cat >conftest.$ac_ext <<_ACEOF
24685 /* confdefs.h. */
24686 _ACEOF
24687 cat confdefs.h >>conftest.$ac_ext
24688 cat >>conftest.$ac_ext <<_ACEOF
24689 /* end confdefs.h. */
24690 #include <sys/types.h>
24691 #include <time.h>
24692
24693 int
24694 main ()
24695 {
24696 struct tm *tp; tp->tm_sec;
24697 ;
24698 return 0;
24699 }
24700 _ACEOF
24701 rm -f conftest.$ac_objext
24702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24703 (eval $ac_compile) 2>conftest.er1
24704 ac_status=$?
24705 grep -v '^ *+' conftest.er1 >conftest.err
24706 rm -f conftest.er1
24707 cat conftest.err >&5
24708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709 (exit $ac_status); } &&
24710 { ac_try='test -z "$ac_c_werror_flag"
24711 || test ! -s conftest.err'
24712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24713 (eval $ac_try) 2>&5
24714 ac_status=$?
24715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716 (exit $ac_status); }; } &&
24717 { ac_try='test -s conftest.$ac_objext'
24718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24719 (eval $ac_try) 2>&5
24720 ac_status=$?
24721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722 (exit $ac_status); }; }; then
24723 ac_cv_struct_tm=time.h
24724 else
24725 echo "$as_me: failed program was:" >&5
24726 sed 's/^/| /' conftest.$ac_ext >&5
24727
24728 ac_cv_struct_tm=sys/time.h
24729 fi
24730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24731 fi
24732 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24733 echo "${ECHO_T}$ac_cv_struct_tm" >&6
24734 if test $ac_cv_struct_tm = sys/time.h; then
24735
24736 cat >>confdefs.h <<\_ACEOF
24737 #define TM_IN_SYS_TIME 1
24738 _ACEOF
24739
24740 fi
24741
24742 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
24743 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
24744 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
24745 echo $ECHO_N "(cached) $ECHO_C" >&6
24746 else
24747 cat >conftest.$ac_ext <<_ACEOF
24748 /* confdefs.h. */
24749 _ACEOF
24750 cat confdefs.h >>conftest.$ac_ext
24751 cat >>conftest.$ac_ext <<_ACEOF
24752 /* end confdefs.h. */
24753
24754 #if TM_IN_SYS_TIME
24755 #if HAVE_SYS_TIME_H
24756 #include <sys/time.h>
24757 #endif
24758 #elif HAVE_TIME_H
24759 #include <time.h>
24760 #endif
24761
24762
24763 int
24764 main ()
24765 {
24766 static struct tm ac_aggr;
24767 if (ac_aggr.tm_gmtoff)
24768 return 0;
24769 ;
24770 return 0;
24771 }
24772 _ACEOF
24773 rm -f conftest.$ac_objext
24774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24775 (eval $ac_compile) 2>conftest.er1
24776 ac_status=$?
24777 grep -v '^ *+' conftest.er1 >conftest.err
24778 rm -f conftest.er1
24779 cat conftest.err >&5
24780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781 (exit $ac_status); } &&
24782 { ac_try='test -z "$ac_c_werror_flag"
24783 || test ! -s conftest.err'
24784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24785 (eval $ac_try) 2>&5
24786 ac_status=$?
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); }; } &&
24789 { ac_try='test -s conftest.$ac_objext'
24790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24791 (eval $ac_try) 2>&5
24792 ac_status=$?
24793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794 (exit $ac_status); }; }; then
24795 ac_cv_member_struct_tm_tm_gmtoff=yes
24796 else
24797 echo "$as_me: failed program was:" >&5
24798 sed 's/^/| /' conftest.$ac_ext >&5
24799
24800 cat >conftest.$ac_ext <<_ACEOF
24801 /* confdefs.h. */
24802 _ACEOF
24803 cat confdefs.h >>conftest.$ac_ext
24804 cat >>conftest.$ac_ext <<_ACEOF
24805 /* end confdefs.h. */
24806
24807 #if TM_IN_SYS_TIME
24808 #if HAVE_SYS_TIME_H
24809 #include <sys/time.h>
24810 #endif
24811 #elif HAVE_TIME_H
24812 #include <time.h>
24813 #endif
24814
24815
24816 int
24817 main ()
24818 {
24819 static struct tm ac_aggr;
24820 if (sizeof ac_aggr.tm_gmtoff)
24821 return 0;
24822 ;
24823 return 0;
24824 }
24825 _ACEOF
24826 rm -f conftest.$ac_objext
24827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24828 (eval $ac_compile) 2>conftest.er1
24829 ac_status=$?
24830 grep -v '^ *+' conftest.er1 >conftest.err
24831 rm -f conftest.er1
24832 cat conftest.err >&5
24833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834 (exit $ac_status); } &&
24835 { ac_try='test -z "$ac_c_werror_flag"
24836 || test ! -s conftest.err'
24837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24838 (eval $ac_try) 2>&5
24839 ac_status=$?
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); }; } &&
24842 { ac_try='test -s conftest.$ac_objext'
24843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24844 (eval $ac_try) 2>&5
24845 ac_status=$?
24846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847 (exit $ac_status); }; }; then
24848 ac_cv_member_struct_tm_tm_gmtoff=yes
24849 else
24850 echo "$as_me: failed program was:" >&5
24851 sed 's/^/| /' conftest.$ac_ext >&5
24852
24853 ac_cv_member_struct_tm_tm_gmtoff=no
24854 fi
24855 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24856 fi
24857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24858 fi
24859 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
24860 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
24861 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
24862
24863 cat >>confdefs.h <<_ACEOF
24864 #define HAVE_STRUCT_TM_TM_GMTOFF 1
24865 _ACEOF
24866
24867
24868 fi
24869
24870
24871 echo "$as_me:$LINENO: checking for struct mallinfo" >&5
24872 echo $ECHO_N "checking for struct mallinfo... $ECHO_C" >&6
24873 if test "${ac_cv_type_struct_mallinfo+set}" = set; then
24874 echo $ECHO_N "(cached) $ECHO_C" >&6
24875 else
24876 cat >conftest.$ac_ext <<_ACEOF
24877 /* confdefs.h. */
24878 _ACEOF
24879 cat confdefs.h >>conftest.$ac_ext
24880 cat >>conftest.$ac_ext <<_ACEOF
24881 /* end confdefs.h. */
24882
24883 #if HAVE_SYS_TYPES_H
24884 #include <sys/types.h>
24885 #endif
24886 #if HAVE_MALLOC_H
24887 #include <malloc.h>
24888 #endif
24889
24890 int
24891 main ()
24892 {
24893 if ((struct mallinfo *) 0)
24894 return 0;
24895 if (sizeof (struct mallinfo))
24896 return 0;
24897 ;
24898 return 0;
24899 }
24900 _ACEOF
24901 rm -f conftest.$ac_objext
24902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24903 (eval $ac_compile) 2>conftest.er1
24904 ac_status=$?
24905 grep -v '^ *+' conftest.er1 >conftest.err
24906 rm -f conftest.er1
24907 cat conftest.err >&5
24908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); } &&
24910 { ac_try='test -z "$ac_c_werror_flag"
24911 || test ! -s conftest.err'
24912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24913 (eval $ac_try) 2>&5
24914 ac_status=$?
24915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916 (exit $ac_status); }; } &&
24917 { ac_try='test -s conftest.$ac_objext'
24918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24919 (eval $ac_try) 2>&5
24920 ac_status=$?
24921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922 (exit $ac_status); }; }; then
24923 ac_cv_type_struct_mallinfo=yes
24924 else
24925 echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24927
24928 ac_cv_type_struct_mallinfo=no
24929 fi
24930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24931 fi
24932 echo "$as_me:$LINENO: result: $ac_cv_type_struct_mallinfo" >&5
24933 echo "${ECHO_T}$ac_cv_type_struct_mallinfo" >&6
24934 if test $ac_cv_type_struct_mallinfo = yes; then
24935
24936 cat >>confdefs.h <<\_ACEOF
24937 #define HAVE_STRUCT_MALLINFO 1
24938 _ACEOF
24939
24940 fi
24941
24942
24943 echo "$as_me:$LINENO: checking for struct mallinfo.mxfast" >&5
24944 echo $ECHO_N "checking for struct mallinfo.mxfast... $ECHO_C" >&6
24945 if test "${ac_cv_member_struct_mallinfo_mxfast+set}" = set; then
24946 echo $ECHO_N "(cached) $ECHO_C" >&6
24947 else
24948 cat >conftest.$ac_ext <<_ACEOF
24949 /* confdefs.h. */
24950 _ACEOF
24951 cat confdefs.h >>conftest.$ac_ext
24952 cat >>conftest.$ac_ext <<_ACEOF
24953 /* end confdefs.h. */
24954
24955 #if HAVE_SYS_TYPES_H
24956 #include <sys/types.h>
24957 #endif
24958 #if HAVE_MALLOC_H
24959 #include <malloc.h>
24960 #endif
24961
24962 int
24963 main ()
24964 {
24965 static struct mallinfo ac_aggr;
24966 if (ac_aggr.mxfast)
24967 return 0;
24968 ;
24969 return 0;
24970 }
24971 _ACEOF
24972 rm -f conftest.$ac_objext
24973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24974 (eval $ac_compile) 2>conftest.er1
24975 ac_status=$?
24976 grep -v '^ *+' conftest.er1 >conftest.err
24977 rm -f conftest.er1
24978 cat conftest.err >&5
24979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980 (exit $ac_status); } &&
24981 { ac_try='test -z "$ac_c_werror_flag"
24982 || test ! -s conftest.err'
24983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24984 (eval $ac_try) 2>&5
24985 ac_status=$?
24986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987 (exit $ac_status); }; } &&
24988 { ac_try='test -s conftest.$ac_objext'
24989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24990 (eval $ac_try) 2>&5
24991 ac_status=$?
24992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993 (exit $ac_status); }; }; then
24994 ac_cv_member_struct_mallinfo_mxfast=yes
24995 else
24996 echo "$as_me: failed program was:" >&5
24997 sed 's/^/| /' conftest.$ac_ext >&5
24998
24999 cat >conftest.$ac_ext <<_ACEOF
25000 /* confdefs.h. */
25001 _ACEOF
25002 cat confdefs.h >>conftest.$ac_ext
25003 cat >>conftest.$ac_ext <<_ACEOF
25004 /* end confdefs.h. */
25005
25006 #if HAVE_SYS_TYPES_H
25007 #include <sys/types.h>
25008 #endif
25009 #if HAVE_MALLOC_H
25010 #include <malloc.h>
25011 #endif
25012
25013 int
25014 main ()
25015 {
25016 static struct mallinfo ac_aggr;
25017 if (sizeof ac_aggr.mxfast)
25018 return 0;
25019 ;
25020 return 0;
25021 }
25022 _ACEOF
25023 rm -f conftest.$ac_objext
25024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25025 (eval $ac_compile) 2>conftest.er1
25026 ac_status=$?
25027 grep -v '^ *+' conftest.er1 >conftest.err
25028 rm -f conftest.er1
25029 cat conftest.err >&5
25030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031 (exit $ac_status); } &&
25032 { ac_try='test -z "$ac_c_werror_flag"
25033 || test ! -s conftest.err'
25034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25035 (eval $ac_try) 2>&5
25036 ac_status=$?
25037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038 (exit $ac_status); }; } &&
25039 { ac_try='test -s conftest.$ac_objext'
25040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25041 (eval $ac_try) 2>&5
25042 ac_status=$?
25043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25044 (exit $ac_status); }; }; then
25045 ac_cv_member_struct_mallinfo_mxfast=yes
25046 else
25047 echo "$as_me: failed program was:" >&5
25048 sed 's/^/| /' conftest.$ac_ext >&5
25049
25050 ac_cv_member_struct_mallinfo_mxfast=no
25051 fi
25052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25053 fi
25054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25055 fi
25056 echo "$as_me:$LINENO: result: $ac_cv_member_struct_mallinfo_mxfast" >&5
25057 echo "${ECHO_T}$ac_cv_member_struct_mallinfo_mxfast" >&6
25058 if test $ac_cv_member_struct_mallinfo_mxfast = yes; then
25059
25060 cat >>confdefs.h <<_ACEOF
25061 #define HAVE_STRUCT_MALLINFO_MXFAST 1
25062 _ACEOF
25063
25064
25065 fi
25066
25067
25068 case "$host_os" in
25069 mingw|mingw32)
25070 cat >>confdefs.h <<\_ACEOF
25071 #define HAVE_STRUCT_RUSAGE 1
25072 _ACEOF
25073
25074 ac_cv_func_getrusage='yes'
25075 echo "Using own rusage on Windows."
25076 ;;
25077 *)
25078 echo "$as_me:$LINENO: checking for struct rusage" >&5
25079 echo $ECHO_N "checking for struct rusage... $ECHO_C" >&6
25080 if test "${ac_cv_type_struct_rusage+set}" = set; then
25081 echo $ECHO_N "(cached) $ECHO_C" >&6
25082 else
25083 cat >conftest.$ac_ext <<_ACEOF
25084 /* confdefs.h. */
25085 _ACEOF
25086 cat confdefs.h >>conftest.$ac_ext
25087 cat >>conftest.$ac_ext <<_ACEOF
25088 /* end confdefs.h. */
25089
25090 #if HAVE_SYS_TIME_H
25091 #include <sys/time.h>
25092 #endif
25093 #if HAVE_SYS_RESOURCE_H
25094 #include <sys/resource.h>
25095 #endif
25096
25097 int
25098 main ()
25099 {
25100 if ((struct rusage *) 0)
25101 return 0;
25102 if (sizeof (struct rusage))
25103 return 0;
25104 ;
25105 return 0;
25106 }
25107 _ACEOF
25108 rm -f conftest.$ac_objext
25109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25110 (eval $ac_compile) 2>conftest.er1
25111 ac_status=$?
25112 grep -v '^ *+' conftest.er1 >conftest.err
25113 rm -f conftest.er1
25114 cat conftest.err >&5
25115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116 (exit $ac_status); } &&
25117 { ac_try='test -z "$ac_c_werror_flag"
25118 || test ! -s conftest.err'
25119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25120 (eval $ac_try) 2>&5
25121 ac_status=$?
25122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25123 (exit $ac_status); }; } &&
25124 { ac_try='test -s conftest.$ac_objext'
25125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25126 (eval $ac_try) 2>&5
25127 ac_status=$?
25128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); }; }; then
25130 ac_cv_type_struct_rusage=yes
25131 else
25132 echo "$as_me: failed program was:" >&5
25133 sed 's/^/| /' conftest.$ac_ext >&5
25134
25135 ac_cv_type_struct_rusage=no
25136 fi
25137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25138 fi
25139 echo "$as_me:$LINENO: result: $ac_cv_type_struct_rusage" >&5
25140 echo "${ECHO_T}$ac_cv_type_struct_rusage" >&6
25141 if test $ac_cv_type_struct_rusage = yes; then
25142
25143 cat >>confdefs.h <<\_ACEOF
25144 #define HAVE_STRUCT_RUSAGE 1
25145 _ACEOF
25146
25147 fi
25148
25149 ;;
25150 esac
25151
25152 echo "$as_me:$LINENO: checking for struct iphdr.ip_hl" >&5
25153 echo $ECHO_N "checking for struct iphdr.ip_hl... $ECHO_C" >&6
25154 if test "${ac_cv_member_struct_iphdr_ip_hl+set}" = set; then
25155 echo $ECHO_N "(cached) $ECHO_C" >&6
25156 else
25157 cat >conftest.$ac_ext <<_ACEOF
25158 /* confdefs.h. */
25159 _ACEOF
25160 cat confdefs.h >>conftest.$ac_ext
25161 cat >>conftest.$ac_ext <<_ACEOF
25162 /* end confdefs.h. */
25163
25164 #if HAVE_SYS_TYPES_H
25165 #include <sys/types.h>
25166 #endif
25167 #include <netinet/in.h>
25168 #include <netinet/in_systm.h>
25169 #include <netinet/ip.h>
25170 #if defined (__linux__) || defined (__CYGWIN__)
25171 #define ip_hl ihl
25172 #endif
25173 #ifndef __linux__
25174 #ifndef __CYGWIN__
25175 #define iphdr ip
25176 #endif
25177 #endif
25178
25179 int
25180 main ()
25181 {
25182 static struct iphdr ac_aggr;
25183 if (ac_aggr.ip_hl)
25184 return 0;
25185 ;
25186 return 0;
25187 }
25188 _ACEOF
25189 rm -f conftest.$ac_objext
25190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25191 (eval $ac_compile) 2>conftest.er1
25192 ac_status=$?
25193 grep -v '^ *+' conftest.er1 >conftest.err
25194 rm -f conftest.er1
25195 cat conftest.err >&5
25196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); } &&
25198 { ac_try='test -z "$ac_c_werror_flag"
25199 || test ! -s conftest.err'
25200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25201 (eval $ac_try) 2>&5
25202 ac_status=$?
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); }; } &&
25205 { ac_try='test -s conftest.$ac_objext'
25206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25207 (eval $ac_try) 2>&5
25208 ac_status=$?
25209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210 (exit $ac_status); }; }; then
25211 ac_cv_member_struct_iphdr_ip_hl=yes
25212 else
25213 echo "$as_me: failed program was:" >&5
25214 sed 's/^/| /' conftest.$ac_ext >&5
25215
25216 cat >conftest.$ac_ext <<_ACEOF
25217 /* confdefs.h. */
25218 _ACEOF
25219 cat confdefs.h >>conftest.$ac_ext
25220 cat >>conftest.$ac_ext <<_ACEOF
25221 /* end confdefs.h. */
25222
25223 #if HAVE_SYS_TYPES_H
25224 #include <sys/types.h>
25225 #endif
25226 #include <netinet/in.h>
25227 #include <netinet/in_systm.h>
25228 #include <netinet/ip.h>
25229 #if defined (__linux__) || defined (__CYGWIN__)
25230 #define ip_hl ihl
25231 #endif
25232 #ifndef __linux__
25233 #ifndef __CYGWIN__
25234 #define iphdr ip
25235 #endif
25236 #endif
25237
25238 int
25239 main ()
25240 {
25241 static struct iphdr ac_aggr;
25242 if (sizeof ac_aggr.ip_hl)
25243 return 0;
25244 ;
25245 return 0;
25246 }
25247 _ACEOF
25248 rm -f conftest.$ac_objext
25249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25250 (eval $ac_compile) 2>conftest.er1
25251 ac_status=$?
25252 grep -v '^ *+' conftest.er1 >conftest.err
25253 rm -f conftest.er1
25254 cat conftest.err >&5
25255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256 (exit $ac_status); } &&
25257 { ac_try='test -z "$ac_c_werror_flag"
25258 || test ! -s conftest.err'
25259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25260 (eval $ac_try) 2>&5
25261 ac_status=$?
25262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263 (exit $ac_status); }; } &&
25264 { ac_try='test -s conftest.$ac_objext'
25265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25266 (eval $ac_try) 2>&5
25267 ac_status=$?
25268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269 (exit $ac_status); }; }; then
25270 ac_cv_member_struct_iphdr_ip_hl=yes
25271 else
25272 echo "$as_me: failed program was:" >&5
25273 sed 's/^/| /' conftest.$ac_ext >&5
25274
25275 ac_cv_member_struct_iphdr_ip_hl=no
25276 fi
25277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25278 fi
25279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25280 fi
25281 echo "$as_me:$LINENO: result: $ac_cv_member_struct_iphdr_ip_hl" >&5
25282 echo "${ECHO_T}$ac_cv_member_struct_iphdr_ip_hl" >&6
25283 if test $ac_cv_member_struct_iphdr_ip_hl = yes; then
25284
25285 cat >>confdefs.h <<_ACEOF
25286 #define HAVE_STRUCT_IPHDR_IP_HL 1
25287 _ACEOF
25288
25289
25290 fi
25291
25292
25293 echo "$as_me:$LINENO: checking for void *" >&5
25294 echo $ECHO_N "checking for void *... $ECHO_C" >&6
25295 if test "${ac_cv_type_void_p+set}" = set; then
25296 echo $ECHO_N "(cached) $ECHO_C" >&6
25297 else
25298 cat >conftest.$ac_ext <<_ACEOF
25299 /* confdefs.h. */
25300 _ACEOF
25301 cat confdefs.h >>conftest.$ac_ext
25302 cat >>conftest.$ac_ext <<_ACEOF
25303 /* end confdefs.h. */
25304 $ac_includes_default
25305 int
25306 main ()
25307 {
25308 if ((void * *) 0)
25309 return 0;
25310 if (sizeof (void *))
25311 return 0;
25312 ;
25313 return 0;
25314 }
25315 _ACEOF
25316 rm -f conftest.$ac_objext
25317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25318 (eval $ac_compile) 2>conftest.er1
25319 ac_status=$?
25320 grep -v '^ *+' conftest.er1 >conftest.err
25321 rm -f conftest.er1
25322 cat conftest.err >&5
25323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324 (exit $ac_status); } &&
25325 { ac_try='test -z "$ac_c_werror_flag"
25326 || test ! -s conftest.err'
25327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25328 (eval $ac_try) 2>&5
25329 ac_status=$?
25330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331 (exit $ac_status); }; } &&
25332 { ac_try='test -s conftest.$ac_objext'
25333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25334 (eval $ac_try) 2>&5
25335 ac_status=$?
25336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337 (exit $ac_status); }; }; then
25338 ac_cv_type_void_p=yes
25339 else
25340 echo "$as_me: failed program was:" >&5
25341 sed 's/^/| /' conftest.$ac_ext >&5
25342
25343 ac_cv_type_void_p=no
25344 fi
25345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25346 fi
25347 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
25348 echo "${ECHO_T}$ac_cv_type_void_p" >&6
25349
25350 echo "$as_me:$LINENO: checking size of void *" >&5
25351 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
25352 if test "${ac_cv_sizeof_void_p+set}" = set; then
25353 echo $ECHO_N "(cached) $ECHO_C" >&6
25354 else
25355 if test "$ac_cv_type_void_p" = yes; then
25356 # The cast to unsigned long works around a bug in the HP C Compiler
25357 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25358 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25359 # This bug is HP SR number 8606223364.
25360 if test "$cross_compiling" = yes; then
25361 # Depending upon the size, compute the lo and hi bounds.
25362 cat >conftest.$ac_ext <<_ACEOF
25363 /* confdefs.h. */
25364 _ACEOF
25365 cat confdefs.h >>conftest.$ac_ext
25366 cat >>conftest.$ac_ext <<_ACEOF
25367 /* end confdefs.h. */
25368 $ac_includes_default
25369 int
25370 main ()
25371 {
25372 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
25373 test_array [0] = 0
25374
25375 ;
25376 return 0;
25377 }
25378 _ACEOF
25379 rm -f conftest.$ac_objext
25380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25381 (eval $ac_compile) 2>conftest.er1
25382 ac_status=$?
25383 grep -v '^ *+' conftest.er1 >conftest.err
25384 rm -f conftest.er1
25385 cat conftest.err >&5
25386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25387 (exit $ac_status); } &&
25388 { ac_try='test -z "$ac_c_werror_flag"
25389 || test ! -s conftest.err'
25390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25391 (eval $ac_try) 2>&5
25392 ac_status=$?
25393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394 (exit $ac_status); }; } &&
25395 { ac_try='test -s conftest.$ac_objext'
25396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25397 (eval $ac_try) 2>&5
25398 ac_status=$?
25399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400 (exit $ac_status); }; }; then
25401 ac_lo=0 ac_mid=0
25402 while :; do
25403 cat >conftest.$ac_ext <<_ACEOF
25404 /* confdefs.h. */
25405 _ACEOF
25406 cat confdefs.h >>conftest.$ac_ext
25407 cat >>conftest.$ac_ext <<_ACEOF
25408 /* end confdefs.h. */
25409 $ac_includes_default
25410 int
25411 main ()
25412 {
25413 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25414 test_array [0] = 0
25415
25416 ;
25417 return 0;
25418 }
25419 _ACEOF
25420 rm -f conftest.$ac_objext
25421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25422 (eval $ac_compile) 2>conftest.er1
25423 ac_status=$?
25424 grep -v '^ *+' conftest.er1 >conftest.err
25425 rm -f conftest.er1
25426 cat conftest.err >&5
25427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25428 (exit $ac_status); } &&
25429 { ac_try='test -z "$ac_c_werror_flag"
25430 || test ! -s conftest.err'
25431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25432 (eval $ac_try) 2>&5
25433 ac_status=$?
25434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25435 (exit $ac_status); }; } &&
25436 { ac_try='test -s conftest.$ac_objext'
25437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25438 (eval $ac_try) 2>&5
25439 ac_status=$?
25440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25441 (exit $ac_status); }; }; then
25442 ac_hi=$ac_mid; break
25443 else
25444 echo "$as_me: failed program was:" >&5
25445 sed 's/^/| /' conftest.$ac_ext >&5
25446
25447 ac_lo=`expr $ac_mid + 1`
25448 if test $ac_lo -le $ac_mid; then
25449 ac_lo= ac_hi=
25450 break
25451 fi
25452 ac_mid=`expr 2 '*' $ac_mid + 1`
25453 fi
25454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25455 done
25456 else
25457 echo "$as_me: failed program was:" >&5
25458 sed 's/^/| /' conftest.$ac_ext >&5
25459
25460 cat >conftest.$ac_ext <<_ACEOF
25461 /* confdefs.h. */
25462 _ACEOF
25463 cat confdefs.h >>conftest.$ac_ext
25464 cat >>conftest.$ac_ext <<_ACEOF
25465 /* end confdefs.h. */
25466 $ac_includes_default
25467 int
25468 main ()
25469 {
25470 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
25471 test_array [0] = 0
25472
25473 ;
25474 return 0;
25475 }
25476 _ACEOF
25477 rm -f conftest.$ac_objext
25478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25479 (eval $ac_compile) 2>conftest.er1
25480 ac_status=$?
25481 grep -v '^ *+' conftest.er1 >conftest.err
25482 rm -f conftest.er1
25483 cat conftest.err >&5
25484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25485 (exit $ac_status); } &&
25486 { ac_try='test -z "$ac_c_werror_flag"
25487 || test ! -s conftest.err'
25488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25489 (eval $ac_try) 2>&5
25490 ac_status=$?
25491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); }; } &&
25493 { ac_try='test -s conftest.$ac_objext'
25494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25495 (eval $ac_try) 2>&5
25496 ac_status=$?
25497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25498 (exit $ac_status); }; }; then
25499 ac_hi=-1 ac_mid=-1
25500 while :; do
25501 cat >conftest.$ac_ext <<_ACEOF
25502 /* confdefs.h. */
25503 _ACEOF
25504 cat confdefs.h >>conftest.$ac_ext
25505 cat >>conftest.$ac_ext <<_ACEOF
25506 /* end confdefs.h. */
25507 $ac_includes_default
25508 int
25509 main ()
25510 {
25511 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
25512 test_array [0] = 0
25513
25514 ;
25515 return 0;
25516 }
25517 _ACEOF
25518 rm -f conftest.$ac_objext
25519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25520 (eval $ac_compile) 2>conftest.er1
25521 ac_status=$?
25522 grep -v '^ *+' conftest.er1 >conftest.err
25523 rm -f conftest.er1
25524 cat conftest.err >&5
25525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526 (exit $ac_status); } &&
25527 { ac_try='test -z "$ac_c_werror_flag"
25528 || test ! -s conftest.err'
25529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25530 (eval $ac_try) 2>&5
25531 ac_status=$?
25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); }; } &&
25534 { ac_try='test -s conftest.$ac_objext'
25535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25536 (eval $ac_try) 2>&5
25537 ac_status=$?
25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539 (exit $ac_status); }; }; then
25540 ac_lo=$ac_mid; break
25541 else
25542 echo "$as_me: failed program was:" >&5
25543 sed 's/^/| /' conftest.$ac_ext >&5
25544
25545 ac_hi=`expr '(' $ac_mid ')' - 1`
25546 if test $ac_mid -le $ac_hi; then
25547 ac_lo= ac_hi=
25548 break
25549 fi
25550 ac_mid=`expr 2 '*' $ac_mid`
25551 fi
25552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25553 done
25554 else
25555 echo "$as_me: failed program was:" >&5
25556 sed 's/^/| /' conftest.$ac_ext >&5
25557
25558 ac_lo= ac_hi=
25559 fi
25560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25561 fi
25562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25563 # Binary search between lo and hi bounds.
25564 while test "x$ac_lo" != "x$ac_hi"; do
25565 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25566 cat >conftest.$ac_ext <<_ACEOF
25567 /* confdefs.h. */
25568 _ACEOF
25569 cat confdefs.h >>conftest.$ac_ext
25570 cat >>conftest.$ac_ext <<_ACEOF
25571 /* end confdefs.h. */
25572 $ac_includes_default
25573 int
25574 main ()
25575 {
25576 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
25577 test_array [0] = 0
25578
25579 ;
25580 return 0;
25581 }
25582 _ACEOF
25583 rm -f conftest.$ac_objext
25584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25585 (eval $ac_compile) 2>conftest.er1
25586 ac_status=$?
25587 grep -v '^ *+' conftest.er1 >conftest.err
25588 rm -f conftest.er1
25589 cat conftest.err >&5
25590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); } &&
25592 { ac_try='test -z "$ac_c_werror_flag"
25593 || test ! -s conftest.err'
25594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25595 (eval $ac_try) 2>&5
25596 ac_status=$?
25597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598 (exit $ac_status); }; } &&
25599 { ac_try='test -s conftest.$ac_objext'
25600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25601 (eval $ac_try) 2>&5
25602 ac_status=$?
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); }; }; then
25605 ac_hi=$ac_mid
25606 else
25607 echo "$as_me: failed program was:" >&5
25608 sed 's/^/| /' conftest.$ac_ext >&5
25609
25610 ac_lo=`expr '(' $ac_mid ')' + 1`
25611 fi
25612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25613 done
25614 case $ac_lo in
25615 ?*) ac_cv_sizeof_void_p=$ac_lo;;
25616 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25617 See \`config.log' for more details." >&5
25618 echo "$as_me: error: cannot compute sizeof (void *), 77
25619 See \`config.log' for more details." >&2;}
25620 { (exit 1); exit 1; }; } ;;
25621 esac
25622 else
25623 if test "$cross_compiling" = yes; then
25624 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25625 See \`config.log' for more details." >&5
25626 echo "$as_me: error: cannot run test program while cross compiling
25627 See \`config.log' for more details." >&2;}
25628 { (exit 1); exit 1; }; }
25629 else
25630 cat >conftest.$ac_ext <<_ACEOF
25631 /* confdefs.h. */
25632 _ACEOF
25633 cat confdefs.h >>conftest.$ac_ext
25634 cat >>conftest.$ac_ext <<_ACEOF
25635 /* end confdefs.h. */
25636 $ac_includes_default
25637 long longval () { return (long) (sizeof (void *)); }
25638 unsigned long ulongval () { return (long) (sizeof (void *)); }
25639 #include <stdio.h>
25640 #include <stdlib.h>
25641 int
25642 main ()
25643 {
25644
25645 FILE *f = fopen ("conftest.val", "w");
25646 if (! f)
25647 exit (1);
25648 if (((long) (sizeof (void *))) < 0)
25649 {
25650 long i = longval ();
25651 if (i != ((long) (sizeof (void *))))
25652 exit (1);
25653 fprintf (f, "%ld\n", i);
25654 }
25655 else
25656 {
25657 unsigned long i = ulongval ();
25658 if (i != ((long) (sizeof (void *))))
25659 exit (1);
25660 fprintf (f, "%lu\n", i);
25661 }
25662 exit (ferror (f) || fclose (f) != 0);
25663
25664 ;
25665 return 0;
25666 }
25667 _ACEOF
25668 rm -f conftest$ac_exeext
25669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25670 (eval $ac_link) 2>&5
25671 ac_status=$?
25672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25675 (eval $ac_try) 2>&5
25676 ac_status=$?
25677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25678 (exit $ac_status); }; }; then
25679 ac_cv_sizeof_void_p=`cat conftest.val`
25680 else
25681 echo "$as_me: program exited with status $ac_status" >&5
25682 echo "$as_me: failed program was:" >&5
25683 sed 's/^/| /' conftest.$ac_ext >&5
25684
25685 ( exit $ac_status )
25686 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
25687 See \`config.log' for more details." >&5
25688 echo "$as_me: error: cannot compute sizeof (void *), 77
25689 See \`config.log' for more details." >&2;}
25690 { (exit 1); exit 1; }; }
25691 fi
25692 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25693 fi
25694 fi
25695 rm -f conftest.val
25696 else
25697 ac_cv_sizeof_void_p=0
25698 fi
25699 fi
25700 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
25701 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
25702 cat >>confdefs.h <<_ACEOF
25703 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25704 _ACEOF
25705
25706
25707
25708 echo "$as_me:$LINENO: checking for int8_t" >&5
25709 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
25710 if test "${ac_cv_type_int8_t+set}" = set; then
25711 echo $ECHO_N "(cached) $ECHO_C" >&6
25712 else
25713 cat >conftest.$ac_ext <<_ACEOF
25714 /* confdefs.h. */
25715 _ACEOF
25716 cat confdefs.h >>conftest.$ac_ext
25717 cat >>conftest.$ac_ext <<_ACEOF
25718 /* end confdefs.h. */
25719
25720 /* What a mess.. many systems have added the (now standard) bit types
25721 * in their own ways, so we need to scan a wide variety of headers to
25722 * find them..
25723 * IMPORTANT: Keep include/squid_types.h syncronised with this list
25724 */
25725 #if HAVE_SYS_TYPES_H
25726 #include <sys/types.h>
25727 #endif
25728 #if STDC_HEADERS
25729 #include <stdlib.h>
25730 #include <stddef.h>
25731 #endif
25732 #if HAVE_INTTYPES_H
25733 #include <inttypes.h>
25734 #endif
25735 #if HAVE_SYS_BITYPES_H
25736 #include <sys/bitypes.h>
25737 #endif
25738 #if HAVE_SYS_SELECT_H
25739 #include <sys/select.h>
25740 #endif
25741
25742
25743 int
25744 main ()
25745 {
25746 if ((int8_t *) 0)
25747 return 0;
25748 if (sizeof (int8_t))
25749 return 0;
25750 ;
25751 return 0;
25752 }
25753 _ACEOF
25754 rm -f conftest.$ac_objext
25755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25756 (eval $ac_compile) 2>conftest.er1
25757 ac_status=$?
25758 grep -v '^ *+' conftest.er1 >conftest.err
25759 rm -f conftest.er1
25760 cat conftest.err >&5
25761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25762 (exit $ac_status); } &&
25763 { ac_try='test -z "$ac_c_werror_flag"
25764 || test ! -s conftest.err'
25765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25766 (eval $ac_try) 2>&5
25767 ac_status=$?
25768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25769 (exit $ac_status); }; } &&
25770 { ac_try='test -s conftest.$ac_objext'
25771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25772 (eval $ac_try) 2>&5
25773 ac_status=$?
25774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775 (exit $ac_status); }; }; then
25776 ac_cv_type_int8_t=yes
25777 else
25778 echo "$as_me: failed program was:" >&5
25779 sed 's/^/| /' conftest.$ac_ext >&5
25780
25781 ac_cv_type_int8_t=no
25782 fi
25783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25784 fi
25785 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
25786 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
25787 if test $ac_cv_type_int8_t = yes; then
25788
25789 echo "$as_me:$LINENO: checking for int8_t" >&5
25790 echo $ECHO_N "checking for int8_t... $ECHO_C" >&6
25791 if test "${ac_cv_type_int8_t+set}" = set; then
25792 echo $ECHO_N "(cached) $ECHO_C" >&6
25793 else
25794 cat >conftest.$ac_ext <<_ACEOF
25795 /* confdefs.h. */
25796 _ACEOF
25797 cat confdefs.h >>conftest.$ac_ext
25798 cat >>conftest.$ac_ext <<_ACEOF
25799 /* end confdefs.h. */
25800
25801 #include <stdio.h>
25802
25803 /* What a mess.. many systems have added the (now standard) bit types
25804 * in their own ways, so we need to scan a wide variety of headers to
25805 * find them..
25806 * IMPORTANT: Keep include/squid_types.h syncronised with this list
25807 */
25808 #if HAVE_SYS_TYPES_H
25809 #include <sys/types.h>
25810 #endif
25811 #if STDC_HEADERS
25812 #include <stdlib.h>
25813 #include <stddef.h>
25814 #endif
25815 #if HAVE_INTTYPES_H
25816 #include <inttypes.h>
25817 #endif
25818 #if HAVE_SYS_BITYPES_H
25819 #include <sys/bitypes.h>
25820 #endif
25821 #if HAVE_SYS_SELECT_H
25822 #include <sys/select.h>
25823 #endif
25824
25825
25826
25827 int
25828 main ()
25829 {
25830 if ((int8_t *) 0)
25831 return 0;
25832 if (sizeof (int8_t))
25833 return 0;
25834 ;
25835 return 0;
25836 }
25837 _ACEOF
25838 rm -f conftest.$ac_objext
25839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25840 (eval $ac_compile) 2>conftest.er1
25841 ac_status=$?
25842 grep -v '^ *+' conftest.er1 >conftest.err
25843 rm -f conftest.er1
25844 cat conftest.err >&5
25845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846 (exit $ac_status); } &&
25847 { ac_try='test -z "$ac_c_werror_flag"
25848 || test ! -s conftest.err'
25849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25850 (eval $ac_try) 2>&5
25851 ac_status=$?
25852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25853 (exit $ac_status); }; } &&
25854 { ac_try='test -s conftest.$ac_objext'
25855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25856 (eval $ac_try) 2>&5
25857 ac_status=$?
25858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25859 (exit $ac_status); }; }; then
25860 ac_cv_type_int8_t=yes
25861 else
25862 echo "$as_me: failed program was:" >&5
25863 sed 's/^/| /' conftest.$ac_ext >&5
25864
25865 ac_cv_type_int8_t=no
25866 fi
25867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25868 fi
25869 echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
25870 echo "${ECHO_T}$ac_cv_type_int8_t" >&6
25871
25872 echo "$as_me:$LINENO: checking size of int8_t" >&5
25873 echo $ECHO_N "checking size of int8_t... $ECHO_C" >&6
25874 if test "${ac_cv_sizeof_int8_t+set}" = set; then
25875 echo $ECHO_N "(cached) $ECHO_C" >&6
25876 else
25877 if test "$ac_cv_type_int8_t" = yes; then
25878 # The cast to unsigned long works around a bug in the HP C Compiler
25879 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25880 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25881 # This bug is HP SR number 8606223364.
25882 if test "$cross_compiling" = yes; then
25883 # Depending upon the size, compute the lo and hi bounds.
25884 cat >conftest.$ac_ext <<_ACEOF
25885 /* confdefs.h. */
25886 _ACEOF
25887 cat confdefs.h >>conftest.$ac_ext
25888 cat >>conftest.$ac_ext <<_ACEOF
25889 /* end confdefs.h. */
25890
25891 #include <stdio.h>
25892
25893 /* What a mess.. many systems have added the (now standard) bit types
25894 * in their own ways, so we need to scan a wide variety of headers to
25895 * find them..
25896 * IMPORTANT: Keep include/squid_types.h syncronised with this list
25897 */
25898 #if HAVE_SYS_TYPES_H
25899 #include <sys/types.h>
25900 #endif
25901 #if STDC_HEADERS
25902 #include <stdlib.h>
25903 #include <stddef.h>
25904 #endif
25905 #if HAVE_INTTYPES_H
25906 #include <inttypes.h>
25907 #endif
25908 #if HAVE_SYS_BITYPES_H
25909 #include <sys/bitypes.h>
25910 #endif
25911 #if HAVE_SYS_SELECT_H
25912 #include <sys/select.h>
25913 #endif
25914
25915
25916
25917 int
25918 main ()
25919 {
25920 static int test_array [1 - 2 * !(((long) (sizeof (int8_t))) >= 0)];
25921 test_array [0] = 0
25922
25923 ;
25924 return 0;
25925 }
25926 _ACEOF
25927 rm -f conftest.$ac_objext
25928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25929 (eval $ac_compile) 2>conftest.er1
25930 ac_status=$?
25931 grep -v '^ *+' conftest.er1 >conftest.err
25932 rm -f conftest.er1
25933 cat conftest.err >&5
25934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935 (exit $ac_status); } &&
25936 { ac_try='test -z "$ac_c_werror_flag"
25937 || test ! -s conftest.err'
25938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25939 (eval $ac_try) 2>&5
25940 ac_status=$?
25941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942 (exit $ac_status); }; } &&
25943 { ac_try='test -s conftest.$ac_objext'
25944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25945 (eval $ac_try) 2>&5
25946 ac_status=$?
25947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948 (exit $ac_status); }; }; then
25949 ac_lo=0 ac_mid=0
25950 while :; do
25951 cat >conftest.$ac_ext <<_ACEOF
25952 /* confdefs.h. */
25953 _ACEOF
25954 cat confdefs.h >>conftest.$ac_ext
25955 cat >>conftest.$ac_ext <<_ACEOF
25956 /* end confdefs.h. */
25957
25958 #include <stdio.h>
25959
25960 /* What a mess.. many systems have added the (now standard) bit types
25961 * in their own ways, so we need to scan a wide variety of headers to
25962 * find them..
25963 * IMPORTANT: Keep include/squid_types.h syncronised with this list
25964 */
25965 #if HAVE_SYS_TYPES_H
25966 #include <sys/types.h>
25967 #endif
25968 #if STDC_HEADERS
25969 #include <stdlib.h>
25970 #include <stddef.h>
25971 #endif
25972 #if HAVE_INTTYPES_H
25973 #include <inttypes.h>
25974 #endif
25975 #if HAVE_SYS_BITYPES_H
25976 #include <sys/bitypes.h>
25977 #endif
25978 #if HAVE_SYS_SELECT_H
25979 #include <sys/select.h>
25980 #endif
25981
25982
25983
25984 int
25985 main ()
25986 {
25987 static int test_array [1 - 2 * !(((long) (sizeof (int8_t))) <= $ac_mid)];
25988 test_array [0] = 0
25989
25990 ;
25991 return 0;
25992 }
25993 _ACEOF
25994 rm -f conftest.$ac_objext
25995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25996 (eval $ac_compile) 2>conftest.er1
25997 ac_status=$?
25998 grep -v '^ *+' conftest.er1 >conftest.err
25999 rm -f conftest.er1
26000 cat conftest.err >&5
26001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26002 (exit $ac_status); } &&
26003 { ac_try='test -z "$ac_c_werror_flag"
26004 || test ! -s conftest.err'
26005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26006 (eval $ac_try) 2>&5
26007 ac_status=$?
26008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26009 (exit $ac_status); }; } &&
26010 { ac_try='test -s conftest.$ac_objext'
26011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26012 (eval $ac_try) 2>&5
26013 ac_status=$?
26014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015 (exit $ac_status); }; }; then
26016 ac_hi=$ac_mid; break
26017 else
26018 echo "$as_me: failed program was:" >&5
26019 sed 's/^/| /' conftest.$ac_ext >&5
26020
26021 ac_lo=`expr $ac_mid + 1`
26022 if test $ac_lo -le $ac_mid; then
26023 ac_lo= ac_hi=
26024 break
26025 fi
26026 ac_mid=`expr 2 '*' $ac_mid + 1`
26027 fi
26028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26029 done
26030 else
26031 echo "$as_me: failed program was:" >&5
26032 sed 's/^/| /' conftest.$ac_ext >&5
26033
26034 cat >conftest.$ac_ext <<_ACEOF
26035 /* confdefs.h. */
26036 _ACEOF
26037 cat confdefs.h >>conftest.$ac_ext
26038 cat >>conftest.$ac_ext <<_ACEOF
26039 /* end confdefs.h. */
26040
26041 #include <stdio.h>
26042
26043 /* What a mess.. many systems have added the (now standard) bit types
26044 * in their own ways, so we need to scan a wide variety of headers to
26045 * find them..
26046 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26047 */
26048 #if HAVE_SYS_TYPES_H
26049 #include <sys/types.h>
26050 #endif
26051 #if STDC_HEADERS
26052 #include <stdlib.h>
26053 #include <stddef.h>
26054 #endif
26055 #if HAVE_INTTYPES_H
26056 #include <inttypes.h>
26057 #endif
26058 #if HAVE_SYS_BITYPES_H
26059 #include <sys/bitypes.h>
26060 #endif
26061 #if HAVE_SYS_SELECT_H
26062 #include <sys/select.h>
26063 #endif
26064
26065
26066
26067 int
26068 main ()
26069 {
26070 static int test_array [1 - 2 * !(((long) (sizeof (int8_t))) < 0)];
26071 test_array [0] = 0
26072
26073 ;
26074 return 0;
26075 }
26076 _ACEOF
26077 rm -f conftest.$ac_objext
26078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26079 (eval $ac_compile) 2>conftest.er1
26080 ac_status=$?
26081 grep -v '^ *+' conftest.er1 >conftest.err
26082 rm -f conftest.er1
26083 cat conftest.err >&5
26084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 (exit $ac_status); } &&
26086 { ac_try='test -z "$ac_c_werror_flag"
26087 || test ! -s conftest.err'
26088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26089 (eval $ac_try) 2>&5
26090 ac_status=$?
26091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092 (exit $ac_status); }; } &&
26093 { ac_try='test -s conftest.$ac_objext'
26094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26095 (eval $ac_try) 2>&5
26096 ac_status=$?
26097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098 (exit $ac_status); }; }; then
26099 ac_hi=-1 ac_mid=-1
26100 while :; do
26101 cat >conftest.$ac_ext <<_ACEOF
26102 /* confdefs.h. */
26103 _ACEOF
26104 cat confdefs.h >>conftest.$ac_ext
26105 cat >>conftest.$ac_ext <<_ACEOF
26106 /* end confdefs.h. */
26107
26108 #include <stdio.h>
26109
26110 /* What a mess.. many systems have added the (now standard) bit types
26111 * in their own ways, so we need to scan a wide variety of headers to
26112 * find them..
26113 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26114 */
26115 #if HAVE_SYS_TYPES_H
26116 #include <sys/types.h>
26117 #endif
26118 #if STDC_HEADERS
26119 #include <stdlib.h>
26120 #include <stddef.h>
26121 #endif
26122 #if HAVE_INTTYPES_H
26123 #include <inttypes.h>
26124 #endif
26125 #if HAVE_SYS_BITYPES_H
26126 #include <sys/bitypes.h>
26127 #endif
26128 #if HAVE_SYS_SELECT_H
26129 #include <sys/select.h>
26130 #endif
26131
26132
26133
26134 int
26135 main ()
26136 {
26137 static int test_array [1 - 2 * !(((long) (sizeof (int8_t))) >= $ac_mid)];
26138 test_array [0] = 0
26139
26140 ;
26141 return 0;
26142 }
26143 _ACEOF
26144 rm -f conftest.$ac_objext
26145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26146 (eval $ac_compile) 2>conftest.er1
26147 ac_status=$?
26148 grep -v '^ *+' conftest.er1 >conftest.err
26149 rm -f conftest.er1
26150 cat conftest.err >&5
26151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26152 (exit $ac_status); } &&
26153 { ac_try='test -z "$ac_c_werror_flag"
26154 || test ! -s conftest.err'
26155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26156 (eval $ac_try) 2>&5
26157 ac_status=$?
26158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159 (exit $ac_status); }; } &&
26160 { ac_try='test -s conftest.$ac_objext'
26161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26162 (eval $ac_try) 2>&5
26163 ac_status=$?
26164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165 (exit $ac_status); }; }; then
26166 ac_lo=$ac_mid; break
26167 else
26168 echo "$as_me: failed program was:" >&5
26169 sed 's/^/| /' conftest.$ac_ext >&5
26170
26171 ac_hi=`expr '(' $ac_mid ')' - 1`
26172 if test $ac_mid -le $ac_hi; then
26173 ac_lo= ac_hi=
26174 break
26175 fi
26176 ac_mid=`expr 2 '*' $ac_mid`
26177 fi
26178 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26179 done
26180 else
26181 echo "$as_me: failed program was:" >&5
26182 sed 's/^/| /' conftest.$ac_ext >&5
26183
26184 ac_lo= ac_hi=
26185 fi
26186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26187 fi
26188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26189 # Binary search between lo and hi bounds.
26190 while test "x$ac_lo" != "x$ac_hi"; do
26191 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26192 cat >conftest.$ac_ext <<_ACEOF
26193 /* confdefs.h. */
26194 _ACEOF
26195 cat confdefs.h >>conftest.$ac_ext
26196 cat >>conftest.$ac_ext <<_ACEOF
26197 /* end confdefs.h. */
26198
26199 #include <stdio.h>
26200
26201 /* What a mess.. many systems have added the (now standard) bit types
26202 * in their own ways, so we need to scan a wide variety of headers to
26203 * find them..
26204 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26205 */
26206 #if HAVE_SYS_TYPES_H
26207 #include <sys/types.h>
26208 #endif
26209 #if STDC_HEADERS
26210 #include <stdlib.h>
26211 #include <stddef.h>
26212 #endif
26213 #if HAVE_INTTYPES_H
26214 #include <inttypes.h>
26215 #endif
26216 #if HAVE_SYS_BITYPES_H
26217 #include <sys/bitypes.h>
26218 #endif
26219 #if HAVE_SYS_SELECT_H
26220 #include <sys/select.h>
26221 #endif
26222
26223
26224
26225 int
26226 main ()
26227 {
26228 static int test_array [1 - 2 * !(((long) (sizeof (int8_t))) <= $ac_mid)];
26229 test_array [0] = 0
26230
26231 ;
26232 return 0;
26233 }
26234 _ACEOF
26235 rm -f conftest.$ac_objext
26236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26237 (eval $ac_compile) 2>conftest.er1
26238 ac_status=$?
26239 grep -v '^ *+' conftest.er1 >conftest.err
26240 rm -f conftest.er1
26241 cat conftest.err >&5
26242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243 (exit $ac_status); } &&
26244 { ac_try='test -z "$ac_c_werror_flag"
26245 || test ! -s conftest.err'
26246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26247 (eval $ac_try) 2>&5
26248 ac_status=$?
26249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250 (exit $ac_status); }; } &&
26251 { ac_try='test -s conftest.$ac_objext'
26252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26253 (eval $ac_try) 2>&5
26254 ac_status=$?
26255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26256 (exit $ac_status); }; }; then
26257 ac_hi=$ac_mid
26258 else
26259 echo "$as_me: failed program was:" >&5
26260 sed 's/^/| /' conftest.$ac_ext >&5
26261
26262 ac_lo=`expr '(' $ac_mid ')' + 1`
26263 fi
26264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26265 done
26266 case $ac_lo in
26267 ?*) ac_cv_sizeof_int8_t=$ac_lo;;
26268 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int8_t), 77
26269 See \`config.log' for more details." >&5
26270 echo "$as_me: error: cannot compute sizeof (int8_t), 77
26271 See \`config.log' for more details." >&2;}
26272 { (exit 1); exit 1; }; } ;;
26273 esac
26274 else
26275 if test "$cross_compiling" = yes; then
26276 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26277 See \`config.log' for more details." >&5
26278 echo "$as_me: error: cannot run test program while cross compiling
26279 See \`config.log' for more details." >&2;}
26280 { (exit 1); exit 1; }; }
26281 else
26282 cat >conftest.$ac_ext <<_ACEOF
26283 /* confdefs.h. */
26284 _ACEOF
26285 cat confdefs.h >>conftest.$ac_ext
26286 cat >>conftest.$ac_ext <<_ACEOF
26287 /* end confdefs.h. */
26288
26289 #include <stdio.h>
26290
26291 /* What a mess.. many systems have added the (now standard) bit types
26292 * in their own ways, so we need to scan a wide variety of headers to
26293 * find them..
26294 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26295 */
26296 #if HAVE_SYS_TYPES_H
26297 #include <sys/types.h>
26298 #endif
26299 #if STDC_HEADERS
26300 #include <stdlib.h>
26301 #include <stddef.h>
26302 #endif
26303 #if HAVE_INTTYPES_H
26304 #include <inttypes.h>
26305 #endif
26306 #if HAVE_SYS_BITYPES_H
26307 #include <sys/bitypes.h>
26308 #endif
26309 #if HAVE_SYS_SELECT_H
26310 #include <sys/select.h>
26311 #endif
26312
26313
26314
26315 long longval () { return (long) (sizeof (int8_t)); }
26316 unsigned long ulongval () { return (long) (sizeof (int8_t)); }
26317 #include <stdio.h>
26318 #include <stdlib.h>
26319 int
26320 main ()
26321 {
26322
26323 FILE *f = fopen ("conftest.val", "w");
26324 if (! f)
26325 exit (1);
26326 if (((long) (sizeof (int8_t))) < 0)
26327 {
26328 long i = longval ();
26329 if (i != ((long) (sizeof (int8_t))))
26330 exit (1);
26331 fprintf (f, "%ld\n", i);
26332 }
26333 else
26334 {
26335 unsigned long i = ulongval ();
26336 if (i != ((long) (sizeof (int8_t))))
26337 exit (1);
26338 fprintf (f, "%lu\n", i);
26339 }
26340 exit (ferror (f) || fclose (f) != 0);
26341
26342 ;
26343 return 0;
26344 }
26345 _ACEOF
26346 rm -f conftest$ac_exeext
26347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26348 (eval $ac_link) 2>&5
26349 ac_status=$?
26350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26353 (eval $ac_try) 2>&5
26354 ac_status=$?
26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356 (exit $ac_status); }; }; then
26357 ac_cv_sizeof_int8_t=`cat conftest.val`
26358 else
26359 echo "$as_me: program exited with status $ac_status" >&5
26360 echo "$as_me: failed program was:" >&5
26361 sed 's/^/| /' conftest.$ac_ext >&5
26362
26363 ( exit $ac_status )
26364 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int8_t), 77
26365 See \`config.log' for more details." >&5
26366 echo "$as_me: error: cannot compute sizeof (int8_t), 77
26367 See \`config.log' for more details." >&2;}
26368 { (exit 1); exit 1; }; }
26369 fi
26370 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26371 fi
26372 fi
26373 rm -f conftest.val
26374 else
26375 ac_cv_sizeof_int8_t=0
26376 fi
26377 fi
26378 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int8_t" >&5
26379 echo "${ECHO_T}$ac_cv_sizeof_int8_t" >&6
26380 cat >>confdefs.h <<_ACEOF
26381 #define SIZEOF_INT8_T $ac_cv_sizeof_int8_t
26382 _ACEOF
26383
26384
26385
26386 cat >>confdefs.h <<\_ACEOF
26387 #define HAVE_INT8_T 1
26388 _ACEOF
26389
26390
26391 fi
26392
26393
26394 echo "$as_me:$LINENO: checking for char" >&5
26395 echo $ECHO_N "checking for char... $ECHO_C" >&6
26396 if test "${ac_cv_type_char+set}" = set; then
26397 echo $ECHO_N "(cached) $ECHO_C" >&6
26398 else
26399 cat >conftest.$ac_ext <<_ACEOF
26400 /* confdefs.h. */
26401 _ACEOF
26402 cat confdefs.h >>conftest.$ac_ext
26403 cat >>conftest.$ac_ext <<_ACEOF
26404 /* end confdefs.h. */
26405
26406 /* What a mess.. many systems have added the (now standard) bit types
26407 * in their own ways, so we need to scan a wide variety of headers to
26408 * find them..
26409 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26410 */
26411 #if HAVE_SYS_TYPES_H
26412 #include <sys/types.h>
26413 #endif
26414 #if STDC_HEADERS
26415 #include <stdlib.h>
26416 #include <stddef.h>
26417 #endif
26418 #if HAVE_INTTYPES_H
26419 #include <inttypes.h>
26420 #endif
26421 #if HAVE_SYS_BITYPES_H
26422 #include <sys/bitypes.h>
26423 #endif
26424 #if HAVE_SYS_SELECT_H
26425 #include <sys/select.h>
26426 #endif
26427
26428
26429 int
26430 main ()
26431 {
26432 if ((char *) 0)
26433 return 0;
26434 if (sizeof (char))
26435 return 0;
26436 ;
26437 return 0;
26438 }
26439 _ACEOF
26440 rm -f conftest.$ac_objext
26441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26442 (eval $ac_compile) 2>conftest.er1
26443 ac_status=$?
26444 grep -v '^ *+' conftest.er1 >conftest.err
26445 rm -f conftest.er1
26446 cat conftest.err >&5
26447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26448 (exit $ac_status); } &&
26449 { ac_try='test -z "$ac_c_werror_flag"
26450 || test ! -s conftest.err'
26451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26452 (eval $ac_try) 2>&5
26453 ac_status=$?
26454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26455 (exit $ac_status); }; } &&
26456 { ac_try='test -s conftest.$ac_objext'
26457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26458 (eval $ac_try) 2>&5
26459 ac_status=$?
26460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26461 (exit $ac_status); }; }; then
26462 ac_cv_type_char=yes
26463 else
26464 echo "$as_me: failed program was:" >&5
26465 sed 's/^/| /' conftest.$ac_ext >&5
26466
26467 ac_cv_type_char=no
26468 fi
26469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26470 fi
26471 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
26472 echo "${ECHO_T}$ac_cv_type_char" >&6
26473 if test $ac_cv_type_char = yes; then
26474
26475 echo "$as_me:$LINENO: checking for char" >&5
26476 echo $ECHO_N "checking for char... $ECHO_C" >&6
26477 if test "${ac_cv_type_char+set}" = set; then
26478 echo $ECHO_N "(cached) $ECHO_C" >&6
26479 else
26480 cat >conftest.$ac_ext <<_ACEOF
26481 /* confdefs.h. */
26482 _ACEOF
26483 cat confdefs.h >>conftest.$ac_ext
26484 cat >>conftest.$ac_ext <<_ACEOF
26485 /* end confdefs.h. */
26486
26487 #include <stdio.h>
26488
26489 /* What a mess.. many systems have added the (now standard) bit types
26490 * in their own ways, so we need to scan a wide variety of headers to
26491 * find them..
26492 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26493 */
26494 #if HAVE_SYS_TYPES_H
26495 #include <sys/types.h>
26496 #endif
26497 #if STDC_HEADERS
26498 #include <stdlib.h>
26499 #include <stddef.h>
26500 #endif
26501 #if HAVE_INTTYPES_H
26502 #include <inttypes.h>
26503 #endif
26504 #if HAVE_SYS_BITYPES_H
26505 #include <sys/bitypes.h>
26506 #endif
26507 #if HAVE_SYS_SELECT_H
26508 #include <sys/select.h>
26509 #endif
26510
26511
26512
26513 int
26514 main ()
26515 {
26516 if ((char *) 0)
26517 return 0;
26518 if (sizeof (char))
26519 return 0;
26520 ;
26521 return 0;
26522 }
26523 _ACEOF
26524 rm -f conftest.$ac_objext
26525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26526 (eval $ac_compile) 2>conftest.er1
26527 ac_status=$?
26528 grep -v '^ *+' conftest.er1 >conftest.err
26529 rm -f conftest.er1
26530 cat conftest.err >&5
26531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532 (exit $ac_status); } &&
26533 { ac_try='test -z "$ac_c_werror_flag"
26534 || test ! -s conftest.err'
26535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26536 (eval $ac_try) 2>&5
26537 ac_status=$?
26538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539 (exit $ac_status); }; } &&
26540 { ac_try='test -s conftest.$ac_objext'
26541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26542 (eval $ac_try) 2>&5
26543 ac_status=$?
26544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545 (exit $ac_status); }; }; then
26546 ac_cv_type_char=yes
26547 else
26548 echo "$as_me: failed program was:" >&5
26549 sed 's/^/| /' conftest.$ac_ext >&5
26550
26551 ac_cv_type_char=no
26552 fi
26553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26554 fi
26555 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
26556 echo "${ECHO_T}$ac_cv_type_char" >&6
26557
26558 echo "$as_me:$LINENO: checking size of char" >&5
26559 echo $ECHO_N "checking size of char... $ECHO_C" >&6
26560 if test "${ac_cv_sizeof_char+set}" = set; then
26561 echo $ECHO_N "(cached) $ECHO_C" >&6
26562 else
26563 if test "$ac_cv_type_char" = yes; then
26564 # The cast to unsigned long works around a bug in the HP C Compiler
26565 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26566 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26567 # This bug is HP SR number 8606223364.
26568 if test "$cross_compiling" = yes; then
26569 # Depending upon the size, compute the lo and hi bounds.
26570 cat >conftest.$ac_ext <<_ACEOF
26571 /* confdefs.h. */
26572 _ACEOF
26573 cat confdefs.h >>conftest.$ac_ext
26574 cat >>conftest.$ac_ext <<_ACEOF
26575 /* end confdefs.h. */
26576
26577 #include <stdio.h>
26578
26579 /* What a mess.. many systems have added the (now standard) bit types
26580 * in their own ways, so we need to scan a wide variety of headers to
26581 * find them..
26582 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26583 */
26584 #if HAVE_SYS_TYPES_H
26585 #include <sys/types.h>
26586 #endif
26587 #if STDC_HEADERS
26588 #include <stdlib.h>
26589 #include <stddef.h>
26590 #endif
26591 #if HAVE_INTTYPES_H
26592 #include <inttypes.h>
26593 #endif
26594 #if HAVE_SYS_BITYPES_H
26595 #include <sys/bitypes.h>
26596 #endif
26597 #if HAVE_SYS_SELECT_H
26598 #include <sys/select.h>
26599 #endif
26600
26601
26602
26603 int
26604 main ()
26605 {
26606 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
26607 test_array [0] = 0
26608
26609 ;
26610 return 0;
26611 }
26612 _ACEOF
26613 rm -f conftest.$ac_objext
26614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26615 (eval $ac_compile) 2>conftest.er1
26616 ac_status=$?
26617 grep -v '^ *+' conftest.er1 >conftest.err
26618 rm -f conftest.er1
26619 cat conftest.err >&5
26620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621 (exit $ac_status); } &&
26622 { ac_try='test -z "$ac_c_werror_flag"
26623 || test ! -s conftest.err'
26624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26625 (eval $ac_try) 2>&5
26626 ac_status=$?
26627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26628 (exit $ac_status); }; } &&
26629 { ac_try='test -s conftest.$ac_objext'
26630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26631 (eval $ac_try) 2>&5
26632 ac_status=$?
26633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634 (exit $ac_status); }; }; then
26635 ac_lo=0 ac_mid=0
26636 while :; do
26637 cat >conftest.$ac_ext <<_ACEOF
26638 /* confdefs.h. */
26639 _ACEOF
26640 cat confdefs.h >>conftest.$ac_ext
26641 cat >>conftest.$ac_ext <<_ACEOF
26642 /* end confdefs.h. */
26643
26644 #include <stdio.h>
26645
26646 /* What a mess.. many systems have added the (now standard) bit types
26647 * in their own ways, so we need to scan a wide variety of headers to
26648 * find them..
26649 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26650 */
26651 #if HAVE_SYS_TYPES_H
26652 #include <sys/types.h>
26653 #endif
26654 #if STDC_HEADERS
26655 #include <stdlib.h>
26656 #include <stddef.h>
26657 #endif
26658 #if HAVE_INTTYPES_H
26659 #include <inttypes.h>
26660 #endif
26661 #if HAVE_SYS_BITYPES_H
26662 #include <sys/bitypes.h>
26663 #endif
26664 #if HAVE_SYS_SELECT_H
26665 #include <sys/select.h>
26666 #endif
26667
26668
26669
26670 int
26671 main ()
26672 {
26673 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
26674 test_array [0] = 0
26675
26676 ;
26677 return 0;
26678 }
26679 _ACEOF
26680 rm -f conftest.$ac_objext
26681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26682 (eval $ac_compile) 2>conftest.er1
26683 ac_status=$?
26684 grep -v '^ *+' conftest.er1 >conftest.err
26685 rm -f conftest.er1
26686 cat conftest.err >&5
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); } &&
26689 { ac_try='test -z "$ac_c_werror_flag"
26690 || test ! -s conftest.err'
26691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692 (eval $ac_try) 2>&5
26693 ac_status=$?
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); }; } &&
26696 { ac_try='test -s conftest.$ac_objext'
26697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26698 (eval $ac_try) 2>&5
26699 ac_status=$?
26700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701 (exit $ac_status); }; }; then
26702 ac_hi=$ac_mid; break
26703 else
26704 echo "$as_me: failed program was:" >&5
26705 sed 's/^/| /' conftest.$ac_ext >&5
26706
26707 ac_lo=`expr $ac_mid + 1`
26708 if test $ac_lo -le $ac_mid; then
26709 ac_lo= ac_hi=
26710 break
26711 fi
26712 ac_mid=`expr 2 '*' $ac_mid + 1`
26713 fi
26714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26715 done
26716 else
26717 echo "$as_me: failed program was:" >&5
26718 sed 's/^/| /' conftest.$ac_ext >&5
26719
26720 cat >conftest.$ac_ext <<_ACEOF
26721 /* confdefs.h. */
26722 _ACEOF
26723 cat confdefs.h >>conftest.$ac_ext
26724 cat >>conftest.$ac_ext <<_ACEOF
26725 /* end confdefs.h. */
26726
26727 #include <stdio.h>
26728
26729 /* What a mess.. many systems have added the (now standard) bit types
26730 * in their own ways, so we need to scan a wide variety of headers to
26731 * find them..
26732 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26733 */
26734 #if HAVE_SYS_TYPES_H
26735 #include <sys/types.h>
26736 #endif
26737 #if STDC_HEADERS
26738 #include <stdlib.h>
26739 #include <stddef.h>
26740 #endif
26741 #if HAVE_INTTYPES_H
26742 #include <inttypes.h>
26743 #endif
26744 #if HAVE_SYS_BITYPES_H
26745 #include <sys/bitypes.h>
26746 #endif
26747 #if HAVE_SYS_SELECT_H
26748 #include <sys/select.h>
26749 #endif
26750
26751
26752
26753 int
26754 main ()
26755 {
26756 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
26757 test_array [0] = 0
26758
26759 ;
26760 return 0;
26761 }
26762 _ACEOF
26763 rm -f conftest.$ac_objext
26764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26765 (eval $ac_compile) 2>conftest.er1
26766 ac_status=$?
26767 grep -v '^ *+' conftest.er1 >conftest.err
26768 rm -f conftest.er1
26769 cat conftest.err >&5
26770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771 (exit $ac_status); } &&
26772 { ac_try='test -z "$ac_c_werror_flag"
26773 || test ! -s conftest.err'
26774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26775 (eval $ac_try) 2>&5
26776 ac_status=$?
26777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26778 (exit $ac_status); }; } &&
26779 { ac_try='test -s conftest.$ac_objext'
26780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26781 (eval $ac_try) 2>&5
26782 ac_status=$?
26783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26784 (exit $ac_status); }; }; then
26785 ac_hi=-1 ac_mid=-1
26786 while :; do
26787 cat >conftest.$ac_ext <<_ACEOF
26788 /* confdefs.h. */
26789 _ACEOF
26790 cat confdefs.h >>conftest.$ac_ext
26791 cat >>conftest.$ac_ext <<_ACEOF
26792 /* end confdefs.h. */
26793
26794 #include <stdio.h>
26795
26796 /* What a mess.. many systems have added the (now standard) bit types
26797 * in their own ways, so we need to scan a wide variety of headers to
26798 * find them..
26799 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26800 */
26801 #if HAVE_SYS_TYPES_H
26802 #include <sys/types.h>
26803 #endif
26804 #if STDC_HEADERS
26805 #include <stdlib.h>
26806 #include <stddef.h>
26807 #endif
26808 #if HAVE_INTTYPES_H
26809 #include <inttypes.h>
26810 #endif
26811 #if HAVE_SYS_BITYPES_H
26812 #include <sys/bitypes.h>
26813 #endif
26814 #if HAVE_SYS_SELECT_H
26815 #include <sys/select.h>
26816 #endif
26817
26818
26819
26820 int
26821 main ()
26822 {
26823 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
26824 test_array [0] = 0
26825
26826 ;
26827 return 0;
26828 }
26829 _ACEOF
26830 rm -f conftest.$ac_objext
26831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26832 (eval $ac_compile) 2>conftest.er1
26833 ac_status=$?
26834 grep -v '^ *+' conftest.er1 >conftest.err
26835 rm -f conftest.er1
26836 cat conftest.err >&5
26837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838 (exit $ac_status); } &&
26839 { ac_try='test -z "$ac_c_werror_flag"
26840 || test ! -s conftest.err'
26841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26842 (eval $ac_try) 2>&5
26843 ac_status=$?
26844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26845 (exit $ac_status); }; } &&
26846 { ac_try='test -s conftest.$ac_objext'
26847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26848 (eval $ac_try) 2>&5
26849 ac_status=$?
26850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851 (exit $ac_status); }; }; then
26852 ac_lo=$ac_mid; break
26853 else
26854 echo "$as_me: failed program was:" >&5
26855 sed 's/^/| /' conftest.$ac_ext >&5
26856
26857 ac_hi=`expr '(' $ac_mid ')' - 1`
26858 if test $ac_mid -le $ac_hi; then
26859 ac_lo= ac_hi=
26860 break
26861 fi
26862 ac_mid=`expr 2 '*' $ac_mid`
26863 fi
26864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26865 done
26866 else
26867 echo "$as_me: failed program was:" >&5
26868 sed 's/^/| /' conftest.$ac_ext >&5
26869
26870 ac_lo= ac_hi=
26871 fi
26872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26873 fi
26874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26875 # Binary search between lo and hi bounds.
26876 while test "x$ac_lo" != "x$ac_hi"; do
26877 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26878 cat >conftest.$ac_ext <<_ACEOF
26879 /* confdefs.h. */
26880 _ACEOF
26881 cat confdefs.h >>conftest.$ac_ext
26882 cat >>conftest.$ac_ext <<_ACEOF
26883 /* end confdefs.h. */
26884
26885 #include <stdio.h>
26886
26887 /* What a mess.. many systems have added the (now standard) bit types
26888 * in their own ways, so we need to scan a wide variety of headers to
26889 * find them..
26890 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26891 */
26892 #if HAVE_SYS_TYPES_H
26893 #include <sys/types.h>
26894 #endif
26895 #if STDC_HEADERS
26896 #include <stdlib.h>
26897 #include <stddef.h>
26898 #endif
26899 #if HAVE_INTTYPES_H
26900 #include <inttypes.h>
26901 #endif
26902 #if HAVE_SYS_BITYPES_H
26903 #include <sys/bitypes.h>
26904 #endif
26905 #if HAVE_SYS_SELECT_H
26906 #include <sys/select.h>
26907 #endif
26908
26909
26910
26911 int
26912 main ()
26913 {
26914 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
26915 test_array [0] = 0
26916
26917 ;
26918 return 0;
26919 }
26920 _ACEOF
26921 rm -f conftest.$ac_objext
26922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26923 (eval $ac_compile) 2>conftest.er1
26924 ac_status=$?
26925 grep -v '^ *+' conftest.er1 >conftest.err
26926 rm -f conftest.er1
26927 cat conftest.err >&5
26928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); } &&
26930 { ac_try='test -z "$ac_c_werror_flag"
26931 || test ! -s conftest.err'
26932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26933 (eval $ac_try) 2>&5
26934 ac_status=$?
26935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26936 (exit $ac_status); }; } &&
26937 { ac_try='test -s conftest.$ac_objext'
26938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26939 (eval $ac_try) 2>&5
26940 ac_status=$?
26941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942 (exit $ac_status); }; }; then
26943 ac_hi=$ac_mid
26944 else
26945 echo "$as_me: failed program was:" >&5
26946 sed 's/^/| /' conftest.$ac_ext >&5
26947
26948 ac_lo=`expr '(' $ac_mid ')' + 1`
26949 fi
26950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26951 done
26952 case $ac_lo in
26953 ?*) ac_cv_sizeof_char=$ac_lo;;
26954 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
26955 See \`config.log' for more details." >&5
26956 echo "$as_me: error: cannot compute sizeof (char), 77
26957 See \`config.log' for more details." >&2;}
26958 { (exit 1); exit 1; }; } ;;
26959 esac
26960 else
26961 if test "$cross_compiling" = yes; then
26962 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26963 See \`config.log' for more details." >&5
26964 echo "$as_me: error: cannot run test program while cross compiling
26965 See \`config.log' for more details." >&2;}
26966 { (exit 1); exit 1; }; }
26967 else
26968 cat >conftest.$ac_ext <<_ACEOF
26969 /* confdefs.h. */
26970 _ACEOF
26971 cat confdefs.h >>conftest.$ac_ext
26972 cat >>conftest.$ac_ext <<_ACEOF
26973 /* end confdefs.h. */
26974
26975 #include <stdio.h>
26976
26977 /* What a mess.. many systems have added the (now standard) bit types
26978 * in their own ways, so we need to scan a wide variety of headers to
26979 * find them..
26980 * IMPORTANT: Keep include/squid_types.h syncronised with this list
26981 */
26982 #if HAVE_SYS_TYPES_H
26983 #include <sys/types.h>
26984 #endif
26985 #if STDC_HEADERS
26986 #include <stdlib.h>
26987 #include <stddef.h>
26988 #endif
26989 #if HAVE_INTTYPES_H
26990 #include <inttypes.h>
26991 #endif
26992 #if HAVE_SYS_BITYPES_H
26993 #include <sys/bitypes.h>
26994 #endif
26995 #if HAVE_SYS_SELECT_H
26996 #include <sys/select.h>
26997 #endif
26998
26999
27000
27001 long longval () { return (long) (sizeof (char)); }
27002 unsigned long ulongval () { return (long) (sizeof (char)); }
27003 #include <stdio.h>
27004 #include <stdlib.h>
27005 int
27006 main ()
27007 {
27008
27009 FILE *f = fopen ("conftest.val", "w");
27010 if (! f)
27011 exit (1);
27012 if (((long) (sizeof (char))) < 0)
27013 {
27014 long i = longval ();
27015 if (i != ((long) (sizeof (char))))
27016 exit (1);
27017 fprintf (f, "%ld\n", i);
27018 }
27019 else
27020 {
27021 unsigned long i = ulongval ();
27022 if (i != ((long) (sizeof (char))))
27023 exit (1);
27024 fprintf (f, "%lu\n", i);
27025 }
27026 exit (ferror (f) || fclose (f) != 0);
27027
27028 ;
27029 return 0;
27030 }
27031 _ACEOF
27032 rm -f conftest$ac_exeext
27033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27034 (eval $ac_link) 2>&5
27035 ac_status=$?
27036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27039 (eval $ac_try) 2>&5
27040 ac_status=$?
27041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042 (exit $ac_status); }; }; then
27043 ac_cv_sizeof_char=`cat conftest.val`
27044 else
27045 echo "$as_me: program exited with status $ac_status" >&5
27046 echo "$as_me: failed program was:" >&5
27047 sed 's/^/| /' conftest.$ac_ext >&5
27048
27049 ( exit $ac_status )
27050 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
27051 See \`config.log' for more details." >&5
27052 echo "$as_me: error: cannot compute sizeof (char), 77
27053 See \`config.log' for more details." >&2;}
27054 { (exit 1); exit 1; }; }
27055 fi
27056 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27057 fi
27058 fi
27059 rm -f conftest.val
27060 else
27061 ac_cv_sizeof_char=0
27062 fi
27063 fi
27064 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
27065 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
27066 cat >>confdefs.h <<_ACEOF
27067 #define SIZEOF_CHAR $ac_cv_sizeof_char
27068 _ACEOF
27069
27070
27071
27072 cat >>confdefs.h <<\_ACEOF
27073 #define HAVE_CHAR 1
27074 _ACEOF
27075
27076
27077 fi
27078
27079
27080 echo "$as_me:$LINENO: checking for u_int8_t" >&5
27081 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
27082 if test "${ac_cv_type_u_int8_t+set}" = set; then
27083 echo $ECHO_N "(cached) $ECHO_C" >&6
27084 else
27085 cat >conftest.$ac_ext <<_ACEOF
27086 /* confdefs.h. */
27087 _ACEOF
27088 cat confdefs.h >>conftest.$ac_ext
27089 cat >>conftest.$ac_ext <<_ACEOF
27090 /* end confdefs.h. */
27091
27092 /* What a mess.. many systems have added the (now standard) bit types
27093 * in their own ways, so we need to scan a wide variety of headers to
27094 * find them..
27095 * IMPORTANT: Keep include/squid_types.h syncronised with this list
27096 */
27097 #if HAVE_SYS_TYPES_H
27098 #include <sys/types.h>
27099 #endif
27100 #if STDC_HEADERS
27101 #include <stdlib.h>
27102 #include <stddef.h>
27103 #endif
27104 #if HAVE_INTTYPES_H
27105 #include <inttypes.h>
27106 #endif
27107 #if HAVE_SYS_BITYPES_H
27108 #include <sys/bitypes.h>
27109 #endif
27110 #if HAVE_SYS_SELECT_H
27111 #include <sys/select.h>
27112 #endif
27113
27114
27115 int
27116 main ()
27117 {
27118 if ((u_int8_t *) 0)
27119 return 0;
27120 if (sizeof (u_int8_t))
27121 return 0;
27122 ;
27123 return 0;
27124 }
27125 _ACEOF
27126 rm -f conftest.$ac_objext
27127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27128 (eval $ac_compile) 2>conftest.er1
27129 ac_status=$?
27130 grep -v '^ *+' conftest.er1 >conftest.err
27131 rm -f conftest.er1
27132 cat conftest.err >&5
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); } &&
27135 { ac_try='test -z "$ac_c_werror_flag"
27136 || test ! -s conftest.err'
27137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27138 (eval $ac_try) 2>&5
27139 ac_status=$?
27140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141 (exit $ac_status); }; } &&
27142 { ac_try='test -s conftest.$ac_objext'
27143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27144 (eval $ac_try) 2>&5
27145 ac_status=$?
27146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147 (exit $ac_status); }; }; then
27148 ac_cv_type_u_int8_t=yes
27149 else
27150 echo "$as_me: failed program was:" >&5
27151 sed 's/^/| /' conftest.$ac_ext >&5
27152
27153 ac_cv_type_u_int8_t=no
27154 fi
27155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27156 fi
27157 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
27158 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
27159 if test $ac_cv_type_u_int8_t = yes; then
27160
27161 echo "$as_me:$LINENO: checking for u_int8_t" >&5
27162 echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
27163 if test "${ac_cv_type_u_int8_t+set}" = set; then
27164 echo $ECHO_N "(cached) $ECHO_C" >&6
27165 else
27166 cat >conftest.$ac_ext <<_ACEOF
27167 /* confdefs.h. */
27168 _ACEOF
27169 cat confdefs.h >>conftest.$ac_ext
27170 cat >>conftest.$ac_ext <<_ACEOF
27171 /* end confdefs.h. */
27172
27173 #include <stdio.h>
27174
27175 /* What a mess.. many systems have added the (now standard) bit types
27176 * in their own ways, so we need to scan a wide variety of headers to
27177 * find them..
27178 * IMPORTANT: Keep include/squid_types.h syncronised with this list
27179 */
27180 #if HAVE_SYS_TYPES_H
27181 #include <sys/types.h>
27182 #endif
27183 #if STDC_HEADERS
27184 #include <stdlib.h>
27185 #include <stddef.h>
27186 #endif
27187 #if HAVE_INTTYPES_H
27188 #include <inttypes.h>
27189 #endif
27190 #if HAVE_SYS_BITYPES_H
27191 #include <sys/bitypes.h>
27192 #endif
27193 #if HAVE_SYS_SELECT_H
27194 #include <sys/select.h>
27195 #endif
27196
27197
27198
27199 int
27200 main ()
27201 {
27202 if ((u_int8_t *) 0)
27203 return 0;
27204 if (sizeof (u_int8_t))
27205 return 0;
27206 ;
27207 return 0;
27208 }
27209 _ACEOF
27210 rm -f conftest.$ac_objext
27211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27212 (eval $ac_compile) 2>conftest.er1
27213 ac_status=$?
27214 grep -v '^ *+' conftest.er1 >conftest.err
27215 rm -f conftest.er1
27216 cat conftest.err >&5
27217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27218 (exit $ac_status); } &&
27219 { ac_try='test -z "$ac_c_werror_flag"
27220 || test ! -s conftest.err'
27221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27222 (eval $ac_try) 2>&5
27223 ac_status=$?
27224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27225 (exit $ac_status); }; } &&
27226 { ac_try='test -s conftest.$ac_objext'
27227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27228 (eval $ac_try) 2>&5
27229 ac_status=$?
27230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27231 (exit $ac_status); }; }; then
27232 ac_cv_type_u_int8_t=yes
27233 else
27234 echo "$as_me: failed program was:" >&5
27235 sed 's/^/| /' conftest.$ac_ext >&5
27236
27237 ac_cv_type_u_int8_t=no
27238 fi
27239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27240 fi
27241 echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
27242 echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
27243
27244 echo "$as_me:$LINENO: checking size of u_int8_t" >&5
27245 echo $ECHO_N "checking size of u_int8_t... $ECHO_C" >&6
27246 if test "${ac_cv_sizeof_u_int8_t+set}" = set; then
27247 echo $ECHO_N "(cached) $ECHO_C" >&6
27248 else
27249 if test "$ac_cv_type_u_int8_t" = yes; then
27250 # The cast to unsigned long works around a bug in the HP C Compiler
27251 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27252 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27253 # This bug is HP SR number 8606223364.
27254 if test "$cross_compiling" = yes; then
27255 # Depending upon the size, compute the lo and hi bounds.
27256 cat >conftest.$ac_ext <<_ACEOF
27257 /* confdefs.h. */
27258 _ACEOF
27259 cat confdefs.h >>conftest.$ac_ext
27260 cat >>conftest.$ac_ext <<_ACEOF
27261 /* end confdefs.h. */
27262
27263 #include <stdio.h>
27264
27265 /* What a mess.. many systems have added the (now standard) bit types
27266 * in their own ways, so we need to scan a wide variety of headers to
27267 * find them..
27268 * IMPORTANT: Keep include/squid_types.h syncronised with this list
27269 */
27270 #if HAVE_SYS_TYPES_H
27271 #include <sys/types.h>
27272 #endif
27273 #if STDC_HEADERS
27274 #include <stdlib.h>
27275 #include <stddef.h>
27276 #endif
27277 #if HAVE_INTTYPES_H
27278 #include <inttypes.h>
27279 #endif
27280 #if HAVE_SYS_BITYPES_H
27281 #include <sys/bitypes.h>
27282 #endif
27283 #if HAVE_SYS_SELECT_H
27284 #include <sys/select.h>
27285 #endif
27286
27287
27288
27289 int
27290 main ()
27291 {
27292 static int test_array [1 - 2 * !(((long) (sizeof (u_int8_t))) >= 0)];
27293 test_array [0] = 0
27294
27295 ;
27296 return 0;
27297 }
27298 _ACEOF
27299 rm -f conftest.$ac_objext
27300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27301 (eval $ac_compile) 2>conftest.er1
27302 ac_status=$?
27303 grep -v '^ *+' conftest.er1 >conftest.err
27304 rm -f conftest.er1
27305 cat conftest.err >&5
27306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307 (exit $ac_status); } &&
27308 { ac_try='test -z "$ac_c_werror_flag"
27309 || test ! -s conftest.err'
27310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27311 (eval $ac_try) 2>&5
27312 ac_status=$?
27313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27314 (exit $ac_status); }; } &&
27315 { ac_try='test -s conftest.$ac_objext'
27316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27317 (eval $ac_try) 2>&5
27318 ac_status=$?
27319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); }; }; then
27321 ac_lo=0 ac_mid=0
27322 while :; do
27323 cat >conftest.$ac_ext <<_ACEOF
27324 /* confdefs.h. */
27325 _ACEOF
27326 cat confdefs.h >>conftest.$ac_ext
27327 cat >>conftest.$ac_ext <<_ACEOF
27328 /* end confdefs.h. */
27329
27330 #include <stdio.h>
27331
27332 /* What a mess.. many systems have added the (now standard) bit types
27333 * in their own ways, so we need to scan a wide variety of headers to
27334 * find them..
27335 * IMPORTANT: Keep include/squid_types.h syncronised with this list
27336 */
27337 #if HAVE_SYS_TYPES_H
27338 #include <sys/types.h>
27339 #endif
27340 #if STDC_HEADERS
27341 #include <stdlib.h>
27342 #include <stddef.h>
27343 #endif
27344 #if HAVE_INTTYPES_H
27345 #include <inttypes.h>
27346 #endif
27347 #if HAVE_SYS_BITYPES_H
27348 #include <sys/bitypes.h>
27349 #endif
27350 #if HAVE_SYS_SELECT_H
27351 #include <sys/select.h>
27352 #endif
27353
27354
27355
27356 int
27357 main ()
27358 {
27359 static int test_array [1 - 2 * !(((long) (sizeof (u_int8_t))) <= $ac_mid)];
27360 test_array [0] = 0
27361
27362 ;
27363 return 0;
27364 }
27365 _ACEOF
27366 rm -f conftest.$ac_objext
27367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27368 (eval $ac_compile) 2>conftest.er1
27369 ac_status=$?
27370 grep -v '^ *+' conftest.er1 >conftest.err
27371 rm -f conftest.er1
27372 cat conftest.err >&5
27373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374 (exit $ac_status); } &&
27375 { ac_try='test -z "$ac_c_werror_flag"
27376 || test ! -s conftest.err'
27377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27378 (eval $ac_try) 2>&5
27379 ac_status=$?
27380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381 (exit $ac_status); }; } &&
27382 { ac_try='test -s conftest.$ac_objext'
27383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27384 (eval $ac_try) 2>&5
27385 ac_status=$?
27386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27387 (exit $ac_status); }; }; then
27388 ac_hi=$ac_mid; break
27389 else
27390 echo "$as_me: failed program was:" >&5
27391 sed 's/^/| /' conftest.$ac_ext >&5
27392
27393 ac_lo=`expr $ac_mid + 1`
27394 if test $ac_lo -le $ac_mid; then
27395 ac_lo= ac_hi=
27396 break
27397 fi
27398 ac_mid=`expr 2 '*' $ac_mid + 1`
27399 fi
27400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27401 done
27402 else
27403 echo "$as_me: failed program was:" >&5
27404 sed 's/^/| /' conftest.$ac_ext >&5
27405
27406 cat >conftest.$ac_ext <<_ACEOF
27407 /* confdefs.h. */
27408 _ACEOF
27409 cat confdefs.h >>conftest.$ac_ext
27410 cat >>conftest.$ac_ext <<_ACEOF
27411 /* end confdefs.h. */
27412
27413 #include <stdio.h>
27414
27415 /* What a mess.. many systems have added the (now standard) bit types
27416 * in their own ways, so we need to scan a wide variety of headers to
27417 * find them..
27418 * IMPORTANT: Keep include/squid_types.h syncronised with this list
27419 */
27420 #if HAVE_SYS_TYPES_H
27421 #include <sys/types.h>
27422 #endif
27423 #if STDC_HEADERS
27424 #include <stdlib.h>
27425 #include <stddef.h>
27426 #endif
27427 #if HAVE_INTTYPES_H
27428 #include <inttypes.h>
27429 #endif
27430 #if HAVE_SYS_BITYPES_H
27431 #include <sys/bitypes.h>
27432 #endif
27433 #if HAVE_SYS_SELECT_H
27434 #include <sys/select.h>
27435 #endif
27436
27437
27438
27439 int
27440 main ()
27441 {
27442 static int test_array [1 - 2 * !(((long) (sizeof (u_int8_t))) < 0)];
27443 test_array [0] = 0
27444
27445 ;
27446 return 0;
27447 }
27448 _ACEOF
27449 rm -f conftest.$ac_objext
27450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27451 (eval $ac_compile) 2>conftest.er1
27452 ac_status=$?
27453 grep -v '^ *+' conftest.er1 >conftest.err
27454 rm -f conftest.er1
27455 cat conftest.err >&5
27456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457 (exit $ac_status); } &&
27458 { ac_try='test -z "$ac_c_werror_flag"
27459 || test ! -s conftest.err'
27460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27461 (eval $ac_try) 2>&5
27462 ac_status=$?
27463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27464 (exit $ac_status); }; } &&
27465 { ac_try='test -s conftest.$ac_objext'
27466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27467 (eval $ac_try) 2>&5
27468 ac_status=$?
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); }; }; then
27471 ac_hi=-1 ac_mid=-1
27472 while :; do
27473 cat >conftest.$ac_ext <<_ACEOF
27474 /* confdefs.h. */
27475 _ACEOF
27476 cat confdefs.h >>conftest.$ac_ext
27477 cat >>conftest.$ac_ext <<_ACEOF
27478 /* end confdefs.h. */
27479
27480 #include <stdio.h>
27481
27482 /* What a mess.. many systems have added the (now standard) bit types
27483 * in their own ways, so we need to scan a wide variety of headers to
27484 * find them..
27485 * IMPORTANT: Keep include/squid_types.h syncronised with this list
27486 */
27487 #if HAVE_SYS_TYPES_H
27488 #include <sys/types.h>
27489 #endif
27490 #if STDC_HEADERS
27491 #include <stdlib.h>
27492 #include <stddef.h>
27493 #endif
27494 #if HAVE_INTTYPES_H
27495 #include <inttypes.h>
27496 #endif
27497 #if HAVE_SYS_BITYPES_H
27498 #include <sys/bitypes.h>
27499 #endif
27500 #if HAVE_SYS_SELECT_H
27501 #include <sys/select.h>
27502 #endif
27503
27504
27505
27506 int
27507 main ()
27508 {
27509 static int test_array [1 - 2 * !(((long) (sizeof (u_int8_t))) >= $ac_mid)];
27510 test_array [0] = 0
27511
27512 ;
27513 return 0;
27514 }
27515 _ACEOF
27516 rm -f conftest.$ac_objext
27517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27518 (eval $ac_compile) 2>conftest.er1
27519 ac_status=$?
27520 grep -v '^ *+' conftest.er1 >conftest.err
27521 rm -f conftest.er1
27522 cat conftest.err >&5
27523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27524 (exit $ac_status); } &&
27525 { ac_try='test -z "$ac_c_werror_flag"
27526 || test ! -s conftest.err'
27527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27528 (eval $ac_try) 2>&5
27529 ac_status=$?
27530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531 (exit $ac_status); }; } &&
27532 { ac_try='test -s conftest.$ac_objext'
27533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27534 (eval $ac_try) 2>&5
27535 ac_status=$?
27536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537 (exit $ac_status); }; }; then
27538 ac_lo=$ac_mid; break
27539 else
27540 echo "$as_me: failed program was:" >&5
27541 sed 's/^/| /' conftest.$ac_ext >&5
27542
27543 ac_hi=`expr '(' $ac_mid ')' - 1`
27544 if test $ac_mid -le $ac_hi; then
27545 ac_lo= ac_hi=
27546 break
27547 fi
27548 ac_mid=`expr 2 '*' $ac_mid`
27549 fi
27550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27551 done
27552 else
27553 echo "$as_me: failed program was:" >&5
27554 sed 's/^/| /' conftest.$ac_ext >&5
27555
27556 ac_lo= ac_hi=
27557 fi
27558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27559 fi
27560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27561 # Binary search between lo and hi bounds.
27562 while test "x$ac_lo" != "x$ac_hi"; do
27563 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27564 cat >conftest.$ac_ext <<_ACEOF
27565 /* confdefs.h. */
27566 _ACEOF
27567 cat confdefs.h >>conftest.$ac_ext
27568 cat >>conftest.$ac_ext <<_ACEOF
27569 /* end confdefs.h. */
27570
27571 #include <stdio.h>
27572
27573 /* What a mess.. many systems have added the (now standard) bit types
27574 * in their own ways, so we need to scan a wide variety of headers to
27575 * find them..
27576 * IMPORTANT: Keep include/squid_types.h syncronised with this list
27577 */
27578 #if HAVE_SYS_TYPES_H
27579 #include <sys/types.h>
27580 #endif
27581 #if STDC_HEADERS
27582 #include <stdlib.h>
27583 #include <stddef.h>
27584 #endif
27585 #if HAVE_INTTYPES_H
27586 #include <inttypes.h>
27587 #endif
27588 #if HAVE_SYS_BITYPES_H
27589 #include <sys/bitypes.h>
27590 #endif
27591 #if HAVE_SYS_SELECT_H
27592 #include <sys/select.h>
27593 #endif
27594
27595
27596
27597 int
27598 main ()
27599 {
27600 static int test_array [1 - 2 * !(((long) (sizeof (u_int8_t))) <= $ac_mid)];
27601 test_array [0] = 0
27602
27603 ;
27604 return 0;
27605 }
27606 _ACEOF
27607 rm -f conftest.$ac_objext
27608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27609 (eval $ac_compile) 2>conftest.er1
27610 ac_status=$?
27611 grep -v '^ *+' conftest.er1 >conftest.err
27612 rm -f conftest.er1
27613 cat conftest.err >&5
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); } &&
27616 { ac_try='test -z "$ac_c_werror_flag"
27617 || test ! -s conftest.err'
27618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27619 (eval $ac_try) 2>&5
27620 ac_status=$?
27621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622 (exit $ac_status); }; } &&
27623 { ac_try='test -s conftest.$ac_objext'
27624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27625 (eval $ac_try) 2>&5
27626 ac_status=$?
27627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628 (exit $ac_status); }; }; then
27629 ac_hi=$ac_mid
27630 else
27631 echo "$as_me: failed program was:" >&5
27632 sed 's/^/| /' conftest.$ac_ext >&5
27633
27634 ac_lo=`expr '(' $ac_mid ')' + 1`
27635 fi
27636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27637 done
27638 case $ac_lo in
27639 ?*) ac_cv_sizeof_u_int8_t=$ac_lo;;
27640 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int8_t), 77
27641 See \`config.log' for more details." >&5
27642 echo "$as_me: error: cannot compute sizeof (u_int8_t), 77
27643 See \`config.log' for more details." >&2;}
27644 { (exit 1); exit 1; }; } ;;
27645 esac
27646 else
27647 if test "$cross_compiling" = yes; then
27648 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27649 See \`config.log' for more details." >&5
27650 echo "$as_me: error: cannot run test program while cross compiling
27651 See \`config.log' for more details." >&2;}
27652 { (exit 1); exit 1; }; }
27653 else
27654 cat >conftest.$ac_ext <<_ACEOF
27655 /* confdefs.h. */
27656 _ACEOF
27657 cat confdefs.h >>conftest.$ac_ext
27658 cat >>conftest.$ac_ext <<_ACEOF
27659 /* end confdefs.h. */
27660
27661 #include <stdio.h>
27662
27663 /* What a mess.. many systems have added the (now standard) bit types
27664 * in their own ways, so we need to scan a wide variety of headers to
27665 * find them..
27666 * IMPORTANT: Keep include/squid_types.h syncronised with this list
27667 */
27668 #if HAVE_SYS_TYPES_H
27669 #include <sys/types.h>
27670 #endif
27671 #if STDC_HEADERS
27672 #include <stdlib.h>
27673 #include <stddef.h>
27674 #endif
27675 #if HAVE_INTTYPES_H
27676 #include <inttypes.h>
27677 #endif
27678 #if HAVE_SYS_BITYPES_H
27679 #include <sys/bitypes.h>
27680 #endif
27681 #if HAVE_SYS_SELECT_H
27682 #include <sys/select.h>
27683 #endif
27684
27685
27686
27687 long longval () { return (long) (sizeof (u_int8_t)); }
27688 unsigned long ulongval () { return (long) (sizeof (u_int8_t)); }
27689 #include <stdio.h>
27690 #include <stdlib.h>
27691 int
27692 main ()
27693 {
27694
27695 FILE *f = fopen ("conftest.val", "w");
27696 if (! f)
27697 exit (1);
27698 if (((long) (sizeof (u_int8_t))) < 0)
27699 {
27700 long i = longval ();
27701 if (i != ((long) (sizeof (u_int8_t))))
27702 exit (1);
27703 fprintf (f, "%ld\n", i);
27704 }
27705 else
27706 {
27707 unsigned long i = ulongval ();
27708 if (i != ((long) (sizeof (u_int8_t))))
27709 exit (1);
27710 fprintf (f, "%lu\n", i);
27711 }
27712 exit (ferror (f) || fclose (f) != 0);
27713
27714 ;
27715 return 0;
27716 }
27717 _ACEOF
27718 rm -f conftest$ac_exeext
27719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27720 (eval $ac_link) 2>&5
27721 ac_status=$?
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27725 (eval $ac_try) 2>&5
27726 ac_status=$?
27727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728 (exit $ac_status); }; }; then
27729 ac_cv_sizeof_u_int8_t=`cat conftest.val`
27730 else
27731 echo "$as_me: program exited with status $ac_status" >&5
27732 echo "$as_me: failed program was:" >&5
27733 sed 's/^/| /' conftest.$ac_ext >&5
27734
27735 ( exit $ac_status )
27736 { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int8_t), 77
27737 See \`config.log' for more details." >&5
27738 echo "$as_me: error: cannot compute sizeof (u_int8_t), 77
27739 See \`config.log' for more details." >&2;}
27740 { (exit 1); exit 1; }; }
27741 fi
27742 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27743 fi
27744 fi
27745 rm -f conftest.val
27746 else
27747 ac_cv_sizeof_u_int8_t=0
27748 fi
27749 fi
27750 echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int8_t" >&5
27751 echo "${ECHO_T}$ac_cv_sizeof_u_int8_t" >&6
27752 cat >>confdefs.h <<_ACEOF
27753 #define SIZEOF_U_INT8_T $ac_cv_sizeof_u_int8_t
27754 _ACEOF
27755
27756
27757
27758 cat >>confdefs.h <<\_ACEOF
27759 #define HAVE_U_INT8_T 1
27760 _ACEOF
27761
27762
27763 fi
27764
27765
27766 echo "$as_me:$LINENO: checking for uint8_t" >&5
27767 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
27768 if test "${ac_cv_type_uint8_t+set}" = set; then
27769 echo $ECHO_N "(cached) $ECHO_C" >&6
27770 else
27771 cat >conftest.$ac_ext <<_ACEOF
27772 /* confdefs.h. */
27773 _ACEOF
27774 cat confdefs.h >>conftest.$ac_ext
27775 cat >>conftest.$ac_ext <<_ACEOF
27776 /* end confdefs.h. */
27777
27778 /* What a mess.. many systems have added the (now standard) bit types
27779 * in their own ways, so we need to scan a wide variety of headers to
27780 * find them..
27781 * IMPORTANT: Keep include/squid_types.h syncronised with this list
27782 */
27783 #if HAVE_SYS_TYPES_H
27784 #include <sys/types.h>
27785 #endif
27786 #if STDC_HEADERS
27787 #include <stdlib.h>
27788 #include <stddef.h>
27789 #endif
27790 #if HAVE_INTTYPES_H
27791 #include <inttypes.h>
27792 #endif
27793 #if HAVE_SYS_BITYPES_H
27794 #include <sys/bitypes.h>
27795 #endif
27796 #if HAVE_SYS_SELECT_H
27797 #include <sys/select.h>
27798 #endif
27799
27800
27801 int
27802 main ()
27803 {
27804 if ((uint8_t *) 0)
27805 return 0;
27806 if (sizeof (uint8_t))
27807 return 0;
27808 ;
27809 return 0;
27810 }
27811 _ACEOF
27812 rm -f conftest.$ac_objext
27813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27814 (eval $ac_compile) 2>conftest.er1
27815 ac_status=$?
27816 grep -v '^ *+' conftest.er1 >conftest.err
27817 rm -f conftest.er1
27818 cat conftest.err >&5
27819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820 (exit $ac_status); } &&
27821 { ac_try='test -z "$ac_c_werror_flag"
27822 || test ! -s conftest.err'
27823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27824 (eval $ac_try) 2>&5
27825 ac_status=$?
27826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827 (exit $ac_status); }; } &&
27828 { ac_try='test -s conftest.$ac_objext'
27829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27830 (eval $ac_try) 2>&5
27831 ac_status=$?
27832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27833 (exit $ac_status); }; }; then
27834 ac_cv_type_uint8_t=yes
27835 else
27836 echo "$as_me: failed program was:" >&5
27837 sed 's/^/| /' conftest.$ac_ext >&5
27838
27839 ac_cv_type_uint8_t=no
27840 fi
27841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27842 fi
27843 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
27844 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
27845 if test $ac_cv_type_uint8_t = yes; then
27846
27847 echo "$as_me:$LINENO: checking for uint8_t" >&5
27848 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
27849 if test "${ac_cv_type_uint8_t+set}" = set; then
27850 echo $ECHO_N "(cached) $ECHO_C" >&6
27851 else
27852 cat >conftest.$ac_ext <<_ACEOF
27853 /* confdefs.h. */
27854 _ACEOF
27855 cat confdefs.h >>conftest.$ac_ext
27856 cat >>conftest.$ac_ext <<_ACEOF
27857 /* end confdefs.h. */
27858
27859 #include <stdio.h>
27860
27861 /* What a mess.. many systems have added the (now standard) bit types
27862 * in their own ways, so we need to scan a wide variety of headers to
27863 * find them..
27864 * IMPORTANT: Keep include/squid_types.h syncronised with this list
27865 */
27866 #if HAVE_SYS_TYPES_H
27867 #include <sys/types.h>
27868 #endif
27869 #if STDC_HEADERS
27870 #include <stdlib.h>
27871 #include <stddef.h>
27872 #endif
27873 #if HAVE_INTTYPES_H
27874 #include <inttypes.h>
27875 #endif
27876 #if HAVE_SYS_BITYPES_H
27877 #include <sys/bitypes.h>
27878 #endif
27879 #if HAVE_SYS_SELECT_H
27880 #include <sys/select.h>
27881 #endif
27882
27883
27884
27885 int
27886 main ()
27887 {
27888 if ((uint8_t *) 0)
27889 return 0;
27890 if (sizeof (uint8_t))
27891 return 0;
27892 ;
27893 return 0;
27894 }
27895 _ACEOF
27896 rm -f conftest.$ac_objext
27897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27898 (eval $ac_compile) 2>conftest.er1
27899 ac_status=$?
27900 grep -v '^ *+' conftest.er1 >conftest.err
27901 rm -f conftest.er1
27902 cat conftest.err >&5
27903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904 (exit $ac_status); } &&
27905 { ac_try='test -z "$ac_c_werror_flag"
27906 || test ! -s conftest.err'
27907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27908 (eval $ac_try) 2>&5
27909 ac_status=$?
27910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911 (exit $ac_status); }; } &&
27912 { ac_try='test -s conftest.$ac_objext'
27913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27914 (eval $ac_try) 2>&5
27915 ac_status=$?
27916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27917 (exit $ac_status); }; }; then
27918 ac_cv_type_uint8_t=yes
27919 else
27920 echo "$as_me: failed program was:" >&5
27921 sed 's/^/| /' conftest.$ac_ext >&5
27922
27923 ac_cv_type_uint8_t=no
27924 fi
27925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27926 fi
27927 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
27928 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
27929
27930 echo "$as_me:$LINENO: checking size of uint8_t" >&5
27931 echo $ECHO_N "checking size of uint8_t... $ECHO_C" >&6
27932 if test "${ac_cv_sizeof_uint8_t+set}" = set; then
27933 echo $ECHO_N "(cached) $ECHO_C" >&6
27934 else
27935 if test "$ac_cv_type_uint8_t" = yes; then
27936 # The cast to unsigned long works around a bug in the HP C Compiler
27937 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27938 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27939 # This bug is HP SR number 8606223364.
27940 if test "$cross_compiling" = yes; then
27941 # Depending upon the size, compute the lo and hi bounds.
27942 cat >conftest.$ac_ext <<_ACEOF
27943 /* confdefs.h. */
27944 _ACEOF
27945 cat confdefs.h >>conftest.$ac_ext
27946 cat >>conftest.$ac_ext <<_ACEOF
27947 /* end confdefs.h. */
27948
27949 #include <stdio.h>
27950
27951 /* What a mess.. many systems have added the (now standard) bit types
27952 * in their own ways, so we need to scan a wide variety of headers to
27953 * find them..
27954 * IMPORTANT: Keep include/squid_types.h syncronised with this list
27955 */
27956 #if HAVE_SYS_TYPES_H
27957 #include <sys/types.h>
27958 #endif
27959 #if STDC_HEADERS
27960 #include <stdlib.h>
27961 #include <stddef.h>
27962 #endif
27963 #if HAVE_INTTYPES_H
27964 #include <inttypes.h>
27965 #endif
27966 #if HAVE_SYS_BITYPES_H
27967 #include <sys/bitypes.h>
27968 #endif
27969 #if HAVE_SYS_SELECT_H
27970 #include <sys/select.h>
27971 #endif
27972
27973
27974
27975 int
27976 main ()
27977 {
27978 static int test_array [1 - 2 * !(((long) (sizeof (uint8_t))) >= 0)];
27979 test_array [0] = 0
27980
27981 ;
27982 return 0;
27983 }
27984 _ACEOF
27985 rm -f conftest.$ac_objext
27986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27987 (eval $ac_compile) 2>conftest.er1
27988 ac_status=$?
27989 grep -v '^ *+' conftest.er1 >conftest.err
27990 rm -f conftest.er1
27991 cat conftest.err >&5
27992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993 (exit $ac_status); } &&
27994 { ac_try='test -z "$ac_c_werror_flag"
27995 || test ! -s conftest.err'
27996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27997 (eval $ac_try) 2>&5
27998 ac_status=$?
27999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000 (exit $ac_status); }; } &&
28001 { ac_try='test -s conftest.$ac_objext'
28002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28003 (eval $ac_try) 2>&5
28004 ac_status=$?
28005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28006 (exit $ac_status); }; }; then
28007 ac_lo=0 ac_mid=0
28008 while :; do
28009 cat >conftest.$ac_ext <<_ACEOF
28010 /* confdefs.h. */
28011 _ACEOF
28012 cat confdefs.h >>conftest.$ac_ext
28013 cat >>conftest.$ac_ext <<_ACEOF
28014 /* end confdefs.h. */
28015
28016 #include <stdio.h>
28017
28018 /* What a mess.. many systems have added the (now standard) bit types
28019 * in their own ways, so we need to scan a wide variety of headers to
28020 * find them..
28021 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28022 */
28023 #if HAVE_SYS_TYPES_H
28024 #include <sys/types.h>
28025 #endif
28026 #if STDC_HEADERS
28027 #include <stdlib.h>
28028 #include <stddef.h>
28029 #endif
28030 #if HAVE_INTTYPES_H
28031 #include <inttypes.h>
28032 #endif
28033 #if HAVE_SYS_BITYPES_H
28034 #include <sys/bitypes.h>
28035 #endif
28036 #if HAVE_SYS_SELECT_H
28037 #include <sys/select.h>
28038 #endif
28039
28040
28041
28042 int
28043 main ()
28044 {
28045 static int test_array [1 - 2 * !(((long) (sizeof (uint8_t))) <= $ac_mid)];
28046 test_array [0] = 0
28047
28048 ;
28049 return 0;
28050 }
28051 _ACEOF
28052 rm -f conftest.$ac_objext
28053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28054 (eval $ac_compile) 2>conftest.er1
28055 ac_status=$?
28056 grep -v '^ *+' conftest.er1 >conftest.err
28057 rm -f conftest.er1
28058 cat conftest.err >&5
28059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28060 (exit $ac_status); } &&
28061 { ac_try='test -z "$ac_c_werror_flag"
28062 || test ! -s conftest.err'
28063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28064 (eval $ac_try) 2>&5
28065 ac_status=$?
28066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067 (exit $ac_status); }; } &&
28068 { ac_try='test -s conftest.$ac_objext'
28069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28070 (eval $ac_try) 2>&5
28071 ac_status=$?
28072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073 (exit $ac_status); }; }; then
28074 ac_hi=$ac_mid; break
28075 else
28076 echo "$as_me: failed program was:" >&5
28077 sed 's/^/| /' conftest.$ac_ext >&5
28078
28079 ac_lo=`expr $ac_mid + 1`
28080 if test $ac_lo -le $ac_mid; then
28081 ac_lo= ac_hi=
28082 break
28083 fi
28084 ac_mid=`expr 2 '*' $ac_mid + 1`
28085 fi
28086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28087 done
28088 else
28089 echo "$as_me: failed program was:" >&5
28090 sed 's/^/| /' conftest.$ac_ext >&5
28091
28092 cat >conftest.$ac_ext <<_ACEOF
28093 /* confdefs.h. */
28094 _ACEOF
28095 cat confdefs.h >>conftest.$ac_ext
28096 cat >>conftest.$ac_ext <<_ACEOF
28097 /* end confdefs.h. */
28098
28099 #include <stdio.h>
28100
28101 /* What a mess.. many systems have added the (now standard) bit types
28102 * in their own ways, so we need to scan a wide variety of headers to
28103 * find them..
28104 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28105 */
28106 #if HAVE_SYS_TYPES_H
28107 #include <sys/types.h>
28108 #endif
28109 #if STDC_HEADERS
28110 #include <stdlib.h>
28111 #include <stddef.h>
28112 #endif
28113 #if HAVE_INTTYPES_H
28114 #include <inttypes.h>
28115 #endif
28116 #if HAVE_SYS_BITYPES_H
28117 #include <sys/bitypes.h>
28118 #endif
28119 #if HAVE_SYS_SELECT_H
28120 #include <sys/select.h>
28121 #endif
28122
28123
28124
28125 int
28126 main ()
28127 {
28128 static int test_array [1 - 2 * !(((long) (sizeof (uint8_t))) < 0)];
28129 test_array [0] = 0
28130
28131 ;
28132 return 0;
28133 }
28134 _ACEOF
28135 rm -f conftest.$ac_objext
28136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28137 (eval $ac_compile) 2>conftest.er1
28138 ac_status=$?
28139 grep -v '^ *+' conftest.er1 >conftest.err
28140 rm -f conftest.er1
28141 cat conftest.err >&5
28142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143 (exit $ac_status); } &&
28144 { ac_try='test -z "$ac_c_werror_flag"
28145 || test ! -s conftest.err'
28146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28147 (eval $ac_try) 2>&5
28148 ac_status=$?
28149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150 (exit $ac_status); }; } &&
28151 { ac_try='test -s conftest.$ac_objext'
28152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28153 (eval $ac_try) 2>&5
28154 ac_status=$?
28155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156 (exit $ac_status); }; }; then
28157 ac_hi=-1 ac_mid=-1
28158 while :; do
28159 cat >conftest.$ac_ext <<_ACEOF
28160 /* confdefs.h. */
28161 _ACEOF
28162 cat confdefs.h >>conftest.$ac_ext
28163 cat >>conftest.$ac_ext <<_ACEOF
28164 /* end confdefs.h. */
28165
28166 #include <stdio.h>
28167
28168 /* What a mess.. many systems have added the (now standard) bit types
28169 * in their own ways, so we need to scan a wide variety of headers to
28170 * find them..
28171 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28172 */
28173 #if HAVE_SYS_TYPES_H
28174 #include <sys/types.h>
28175 #endif
28176 #if STDC_HEADERS
28177 #include <stdlib.h>
28178 #include <stddef.h>
28179 #endif
28180 #if HAVE_INTTYPES_H
28181 #include <inttypes.h>
28182 #endif
28183 #if HAVE_SYS_BITYPES_H
28184 #include <sys/bitypes.h>
28185 #endif
28186 #if HAVE_SYS_SELECT_H
28187 #include <sys/select.h>
28188 #endif
28189
28190
28191
28192 int
28193 main ()
28194 {
28195 static int test_array [1 - 2 * !(((long) (sizeof (uint8_t))) >= $ac_mid)];
28196 test_array [0] = 0
28197
28198 ;
28199 return 0;
28200 }
28201 _ACEOF
28202 rm -f conftest.$ac_objext
28203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28204 (eval $ac_compile) 2>conftest.er1
28205 ac_status=$?
28206 grep -v '^ *+' conftest.er1 >conftest.err
28207 rm -f conftest.er1
28208 cat conftest.err >&5
28209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28210 (exit $ac_status); } &&
28211 { ac_try='test -z "$ac_c_werror_flag"
28212 || test ! -s conftest.err'
28213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28214 (eval $ac_try) 2>&5
28215 ac_status=$?
28216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217 (exit $ac_status); }; } &&
28218 { ac_try='test -s conftest.$ac_objext'
28219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28220 (eval $ac_try) 2>&5
28221 ac_status=$?
28222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28223 (exit $ac_status); }; }; then
28224 ac_lo=$ac_mid; break
28225 else
28226 echo "$as_me: failed program was:" >&5
28227 sed 's/^/| /' conftest.$ac_ext >&5
28228
28229 ac_hi=`expr '(' $ac_mid ')' - 1`
28230 if test $ac_mid -le $ac_hi; then
28231 ac_lo= ac_hi=
28232 break
28233 fi
28234 ac_mid=`expr 2 '*' $ac_mid`
28235 fi
28236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28237 done
28238 else
28239 echo "$as_me: failed program was:" >&5
28240 sed 's/^/| /' conftest.$ac_ext >&5
28241
28242 ac_lo= ac_hi=
28243 fi
28244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28245 fi
28246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28247 # Binary search between lo and hi bounds.
28248 while test "x$ac_lo" != "x$ac_hi"; do
28249 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28250 cat >conftest.$ac_ext <<_ACEOF
28251 /* confdefs.h. */
28252 _ACEOF
28253 cat confdefs.h >>conftest.$ac_ext
28254 cat >>conftest.$ac_ext <<_ACEOF
28255 /* end confdefs.h. */
28256
28257 #include <stdio.h>
28258
28259 /* What a mess.. many systems have added the (now standard) bit types
28260 * in their own ways, so we need to scan a wide variety of headers to
28261 * find them..
28262 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28263 */
28264 #if HAVE_SYS_TYPES_H
28265 #include <sys/types.h>
28266 #endif
28267 #if STDC_HEADERS
28268 #include <stdlib.h>
28269 #include <stddef.h>
28270 #endif
28271 #if HAVE_INTTYPES_H
28272 #include <inttypes.h>
28273 #endif
28274 #if HAVE_SYS_BITYPES_H
28275 #include <sys/bitypes.h>
28276 #endif
28277 #if HAVE_SYS_SELECT_H
28278 #include <sys/select.h>
28279 #endif
28280
28281
28282
28283 int
28284 main ()
28285 {
28286 static int test_array [1 - 2 * !(((long) (sizeof (uint8_t))) <= $ac_mid)];
28287 test_array [0] = 0
28288
28289 ;
28290 return 0;
28291 }
28292 _ACEOF
28293 rm -f conftest.$ac_objext
28294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28295 (eval $ac_compile) 2>conftest.er1
28296 ac_status=$?
28297 grep -v '^ *+' conftest.er1 >conftest.err
28298 rm -f conftest.er1
28299 cat conftest.err >&5
28300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301 (exit $ac_status); } &&
28302 { ac_try='test -z "$ac_c_werror_flag"
28303 || test ! -s conftest.err'
28304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28305 (eval $ac_try) 2>&5
28306 ac_status=$?
28307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308 (exit $ac_status); }; } &&
28309 { ac_try='test -s conftest.$ac_objext'
28310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28311 (eval $ac_try) 2>&5
28312 ac_status=$?
28313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28314 (exit $ac_status); }; }; then
28315 ac_hi=$ac_mid
28316 else
28317 echo "$as_me: failed program was:" >&5
28318 sed 's/^/| /' conftest.$ac_ext >&5
28319
28320 ac_lo=`expr '(' $ac_mid ')' + 1`
28321 fi
28322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28323 done
28324 case $ac_lo in
28325 ?*) ac_cv_sizeof_uint8_t=$ac_lo;;
28326 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint8_t), 77
28327 See \`config.log' for more details." >&5
28328 echo "$as_me: error: cannot compute sizeof (uint8_t), 77
28329 See \`config.log' for more details." >&2;}
28330 { (exit 1); exit 1; }; } ;;
28331 esac
28332 else
28333 if test "$cross_compiling" = yes; then
28334 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28335 See \`config.log' for more details." >&5
28336 echo "$as_me: error: cannot run test program while cross compiling
28337 See \`config.log' for more details." >&2;}
28338 { (exit 1); exit 1; }; }
28339 else
28340 cat >conftest.$ac_ext <<_ACEOF
28341 /* confdefs.h. */
28342 _ACEOF
28343 cat confdefs.h >>conftest.$ac_ext
28344 cat >>conftest.$ac_ext <<_ACEOF
28345 /* end confdefs.h. */
28346
28347 #include <stdio.h>
28348
28349 /* What a mess.. many systems have added the (now standard) bit types
28350 * in their own ways, so we need to scan a wide variety of headers to
28351 * find them..
28352 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28353 */
28354 #if HAVE_SYS_TYPES_H
28355 #include <sys/types.h>
28356 #endif
28357 #if STDC_HEADERS
28358 #include <stdlib.h>
28359 #include <stddef.h>
28360 #endif
28361 #if HAVE_INTTYPES_H
28362 #include <inttypes.h>
28363 #endif
28364 #if HAVE_SYS_BITYPES_H
28365 #include <sys/bitypes.h>
28366 #endif
28367 #if HAVE_SYS_SELECT_H
28368 #include <sys/select.h>
28369 #endif
28370
28371
28372
28373 long longval () { return (long) (sizeof (uint8_t)); }
28374 unsigned long ulongval () { return (long) (sizeof (uint8_t)); }
28375 #include <stdio.h>
28376 #include <stdlib.h>
28377 int
28378 main ()
28379 {
28380
28381 FILE *f = fopen ("conftest.val", "w");
28382 if (! f)
28383 exit (1);
28384 if (((long) (sizeof (uint8_t))) < 0)
28385 {
28386 long i = longval ();
28387 if (i != ((long) (sizeof (uint8_t))))
28388 exit (1);
28389 fprintf (f, "%ld\n", i);
28390 }
28391 else
28392 {
28393 unsigned long i = ulongval ();
28394 if (i != ((long) (sizeof (uint8_t))))
28395 exit (1);
28396 fprintf (f, "%lu\n", i);
28397 }
28398 exit (ferror (f) || fclose (f) != 0);
28399
28400 ;
28401 return 0;
28402 }
28403 _ACEOF
28404 rm -f conftest$ac_exeext
28405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28406 (eval $ac_link) 2>&5
28407 ac_status=$?
28408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28411 (eval $ac_try) 2>&5
28412 ac_status=$?
28413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414 (exit $ac_status); }; }; then
28415 ac_cv_sizeof_uint8_t=`cat conftest.val`
28416 else
28417 echo "$as_me: program exited with status $ac_status" >&5
28418 echo "$as_me: failed program was:" >&5
28419 sed 's/^/| /' conftest.$ac_ext >&5
28420
28421 ( exit $ac_status )
28422 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint8_t), 77
28423 See \`config.log' for more details." >&5
28424 echo "$as_me: error: cannot compute sizeof (uint8_t), 77
28425 See \`config.log' for more details." >&2;}
28426 { (exit 1); exit 1; }; }
28427 fi
28428 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28429 fi
28430 fi
28431 rm -f conftest.val
28432 else
28433 ac_cv_sizeof_uint8_t=0
28434 fi
28435 fi
28436 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint8_t" >&5
28437 echo "${ECHO_T}$ac_cv_sizeof_uint8_t" >&6
28438 cat >>confdefs.h <<_ACEOF
28439 #define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t
28440 _ACEOF
28441
28442
28443
28444 cat >>confdefs.h <<\_ACEOF
28445 #define HAVE_UINT8_T 1
28446 _ACEOF
28447
28448
28449 fi
28450
28451
28452 echo "$as_me:$LINENO: checking for int16_t" >&5
28453 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
28454 if test "${ac_cv_type_int16_t+set}" = set; then
28455 echo $ECHO_N "(cached) $ECHO_C" >&6
28456 else
28457 cat >conftest.$ac_ext <<_ACEOF
28458 /* confdefs.h. */
28459 _ACEOF
28460 cat confdefs.h >>conftest.$ac_ext
28461 cat >>conftest.$ac_ext <<_ACEOF
28462 /* end confdefs.h. */
28463
28464 /* What a mess.. many systems have added the (now standard) bit types
28465 * in their own ways, so we need to scan a wide variety of headers to
28466 * find them..
28467 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28468 */
28469 #if HAVE_SYS_TYPES_H
28470 #include <sys/types.h>
28471 #endif
28472 #if STDC_HEADERS
28473 #include <stdlib.h>
28474 #include <stddef.h>
28475 #endif
28476 #if HAVE_INTTYPES_H
28477 #include <inttypes.h>
28478 #endif
28479 #if HAVE_SYS_BITYPES_H
28480 #include <sys/bitypes.h>
28481 #endif
28482 #if HAVE_SYS_SELECT_H
28483 #include <sys/select.h>
28484 #endif
28485
28486
28487 int
28488 main ()
28489 {
28490 if ((int16_t *) 0)
28491 return 0;
28492 if (sizeof (int16_t))
28493 return 0;
28494 ;
28495 return 0;
28496 }
28497 _ACEOF
28498 rm -f conftest.$ac_objext
28499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28500 (eval $ac_compile) 2>conftest.er1
28501 ac_status=$?
28502 grep -v '^ *+' conftest.er1 >conftest.err
28503 rm -f conftest.er1
28504 cat conftest.err >&5
28505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506 (exit $ac_status); } &&
28507 { ac_try='test -z "$ac_c_werror_flag"
28508 || test ! -s conftest.err'
28509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28510 (eval $ac_try) 2>&5
28511 ac_status=$?
28512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513 (exit $ac_status); }; } &&
28514 { ac_try='test -s conftest.$ac_objext'
28515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28516 (eval $ac_try) 2>&5
28517 ac_status=$?
28518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519 (exit $ac_status); }; }; then
28520 ac_cv_type_int16_t=yes
28521 else
28522 echo "$as_me: failed program was:" >&5
28523 sed 's/^/| /' conftest.$ac_ext >&5
28524
28525 ac_cv_type_int16_t=no
28526 fi
28527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28528 fi
28529 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
28530 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
28531 if test $ac_cv_type_int16_t = yes; then
28532
28533 echo "$as_me:$LINENO: checking for int16_t" >&5
28534 echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
28535 if test "${ac_cv_type_int16_t+set}" = set; then
28536 echo $ECHO_N "(cached) $ECHO_C" >&6
28537 else
28538 cat >conftest.$ac_ext <<_ACEOF
28539 /* confdefs.h. */
28540 _ACEOF
28541 cat confdefs.h >>conftest.$ac_ext
28542 cat >>conftest.$ac_ext <<_ACEOF
28543 /* end confdefs.h. */
28544
28545 #include <stdio.h>
28546
28547 /* What a mess.. many systems have added the (now standard) bit types
28548 * in their own ways, so we need to scan a wide variety of headers to
28549 * find them..
28550 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28551 */
28552 #if HAVE_SYS_TYPES_H
28553 #include <sys/types.h>
28554 #endif
28555 #if STDC_HEADERS
28556 #include <stdlib.h>
28557 #include <stddef.h>
28558 #endif
28559 #if HAVE_INTTYPES_H
28560 #include <inttypes.h>
28561 #endif
28562 #if HAVE_SYS_BITYPES_H
28563 #include <sys/bitypes.h>
28564 #endif
28565 #if HAVE_SYS_SELECT_H
28566 #include <sys/select.h>
28567 #endif
28568
28569
28570
28571 int
28572 main ()
28573 {
28574 if ((int16_t *) 0)
28575 return 0;
28576 if (sizeof (int16_t))
28577 return 0;
28578 ;
28579 return 0;
28580 }
28581 _ACEOF
28582 rm -f conftest.$ac_objext
28583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28584 (eval $ac_compile) 2>conftest.er1
28585 ac_status=$?
28586 grep -v '^ *+' conftest.er1 >conftest.err
28587 rm -f conftest.er1
28588 cat conftest.err >&5
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); } &&
28591 { ac_try='test -z "$ac_c_werror_flag"
28592 || test ! -s conftest.err'
28593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28594 (eval $ac_try) 2>&5
28595 ac_status=$?
28596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597 (exit $ac_status); }; } &&
28598 { ac_try='test -s conftest.$ac_objext'
28599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28600 (eval $ac_try) 2>&5
28601 ac_status=$?
28602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603 (exit $ac_status); }; }; then
28604 ac_cv_type_int16_t=yes
28605 else
28606 echo "$as_me: failed program was:" >&5
28607 sed 's/^/| /' conftest.$ac_ext >&5
28608
28609 ac_cv_type_int16_t=no
28610 fi
28611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28612 fi
28613 echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
28614 echo "${ECHO_T}$ac_cv_type_int16_t" >&6
28615
28616 echo "$as_me:$LINENO: checking size of int16_t" >&5
28617 echo $ECHO_N "checking size of int16_t... $ECHO_C" >&6
28618 if test "${ac_cv_sizeof_int16_t+set}" = set; then
28619 echo $ECHO_N "(cached) $ECHO_C" >&6
28620 else
28621 if test "$ac_cv_type_int16_t" = yes; then
28622 # The cast to unsigned long works around a bug in the HP C Compiler
28623 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28624 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28625 # This bug is HP SR number 8606223364.
28626 if test "$cross_compiling" = yes; then
28627 # Depending upon the size, compute the lo and hi bounds.
28628 cat >conftest.$ac_ext <<_ACEOF
28629 /* confdefs.h. */
28630 _ACEOF
28631 cat confdefs.h >>conftest.$ac_ext
28632 cat >>conftest.$ac_ext <<_ACEOF
28633 /* end confdefs.h. */
28634
28635 #include <stdio.h>
28636
28637 /* What a mess.. many systems have added the (now standard) bit types
28638 * in their own ways, so we need to scan a wide variety of headers to
28639 * find them..
28640 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28641 */
28642 #if HAVE_SYS_TYPES_H
28643 #include <sys/types.h>
28644 #endif
28645 #if STDC_HEADERS
28646 #include <stdlib.h>
28647 #include <stddef.h>
28648 #endif
28649 #if HAVE_INTTYPES_H
28650 #include <inttypes.h>
28651 #endif
28652 #if HAVE_SYS_BITYPES_H
28653 #include <sys/bitypes.h>
28654 #endif
28655 #if HAVE_SYS_SELECT_H
28656 #include <sys/select.h>
28657 #endif
28658
28659
28660
28661 int
28662 main ()
28663 {
28664 static int test_array [1 - 2 * !(((long) (sizeof (int16_t))) >= 0)];
28665 test_array [0] = 0
28666
28667 ;
28668 return 0;
28669 }
28670 _ACEOF
28671 rm -f conftest.$ac_objext
28672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28673 (eval $ac_compile) 2>conftest.er1
28674 ac_status=$?
28675 grep -v '^ *+' conftest.er1 >conftest.err
28676 rm -f conftest.er1
28677 cat conftest.err >&5
28678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679 (exit $ac_status); } &&
28680 { ac_try='test -z "$ac_c_werror_flag"
28681 || test ! -s conftest.err'
28682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28683 (eval $ac_try) 2>&5
28684 ac_status=$?
28685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28686 (exit $ac_status); }; } &&
28687 { ac_try='test -s conftest.$ac_objext'
28688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28689 (eval $ac_try) 2>&5
28690 ac_status=$?
28691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28692 (exit $ac_status); }; }; then
28693 ac_lo=0 ac_mid=0
28694 while :; do
28695 cat >conftest.$ac_ext <<_ACEOF
28696 /* confdefs.h. */
28697 _ACEOF
28698 cat confdefs.h >>conftest.$ac_ext
28699 cat >>conftest.$ac_ext <<_ACEOF
28700 /* end confdefs.h. */
28701
28702 #include <stdio.h>
28703
28704 /* What a mess.. many systems have added the (now standard) bit types
28705 * in their own ways, so we need to scan a wide variety of headers to
28706 * find them..
28707 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28708 */
28709 #if HAVE_SYS_TYPES_H
28710 #include <sys/types.h>
28711 #endif
28712 #if STDC_HEADERS
28713 #include <stdlib.h>
28714 #include <stddef.h>
28715 #endif
28716 #if HAVE_INTTYPES_H
28717 #include <inttypes.h>
28718 #endif
28719 #if HAVE_SYS_BITYPES_H
28720 #include <sys/bitypes.h>
28721 #endif
28722 #if HAVE_SYS_SELECT_H
28723 #include <sys/select.h>
28724 #endif
28725
28726
28727
28728 int
28729 main ()
28730 {
28731 static int test_array [1 - 2 * !(((long) (sizeof (int16_t))) <= $ac_mid)];
28732 test_array [0] = 0
28733
28734 ;
28735 return 0;
28736 }
28737 _ACEOF
28738 rm -f conftest.$ac_objext
28739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28740 (eval $ac_compile) 2>conftest.er1
28741 ac_status=$?
28742 grep -v '^ *+' conftest.er1 >conftest.err
28743 rm -f conftest.er1
28744 cat conftest.err >&5
28745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746 (exit $ac_status); } &&
28747 { ac_try='test -z "$ac_c_werror_flag"
28748 || test ! -s conftest.err'
28749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28750 (eval $ac_try) 2>&5
28751 ac_status=$?
28752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 (exit $ac_status); }; } &&
28754 { ac_try='test -s conftest.$ac_objext'
28755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28756 (eval $ac_try) 2>&5
28757 ac_status=$?
28758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28759 (exit $ac_status); }; }; then
28760 ac_hi=$ac_mid; break
28761 else
28762 echo "$as_me: failed program was:" >&5
28763 sed 's/^/| /' conftest.$ac_ext >&5
28764
28765 ac_lo=`expr $ac_mid + 1`
28766 if test $ac_lo -le $ac_mid; then
28767 ac_lo= ac_hi=
28768 break
28769 fi
28770 ac_mid=`expr 2 '*' $ac_mid + 1`
28771 fi
28772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28773 done
28774 else
28775 echo "$as_me: failed program was:" >&5
28776 sed 's/^/| /' conftest.$ac_ext >&5
28777
28778 cat >conftest.$ac_ext <<_ACEOF
28779 /* confdefs.h. */
28780 _ACEOF
28781 cat confdefs.h >>conftest.$ac_ext
28782 cat >>conftest.$ac_ext <<_ACEOF
28783 /* end confdefs.h. */
28784
28785 #include <stdio.h>
28786
28787 /* What a mess.. many systems have added the (now standard) bit types
28788 * in their own ways, so we need to scan a wide variety of headers to
28789 * find them..
28790 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28791 */
28792 #if HAVE_SYS_TYPES_H
28793 #include <sys/types.h>
28794 #endif
28795 #if STDC_HEADERS
28796 #include <stdlib.h>
28797 #include <stddef.h>
28798 #endif
28799 #if HAVE_INTTYPES_H
28800 #include <inttypes.h>
28801 #endif
28802 #if HAVE_SYS_BITYPES_H
28803 #include <sys/bitypes.h>
28804 #endif
28805 #if HAVE_SYS_SELECT_H
28806 #include <sys/select.h>
28807 #endif
28808
28809
28810
28811 int
28812 main ()
28813 {
28814 static int test_array [1 - 2 * !(((long) (sizeof (int16_t))) < 0)];
28815 test_array [0] = 0
28816
28817 ;
28818 return 0;
28819 }
28820 _ACEOF
28821 rm -f conftest.$ac_objext
28822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28823 (eval $ac_compile) 2>conftest.er1
28824 ac_status=$?
28825 grep -v '^ *+' conftest.er1 >conftest.err
28826 rm -f conftest.er1
28827 cat conftest.err >&5
28828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829 (exit $ac_status); } &&
28830 { ac_try='test -z "$ac_c_werror_flag"
28831 || test ! -s conftest.err'
28832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28833 (eval $ac_try) 2>&5
28834 ac_status=$?
28835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836 (exit $ac_status); }; } &&
28837 { ac_try='test -s conftest.$ac_objext'
28838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28839 (eval $ac_try) 2>&5
28840 ac_status=$?
28841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842 (exit $ac_status); }; }; then
28843 ac_hi=-1 ac_mid=-1
28844 while :; do
28845 cat >conftest.$ac_ext <<_ACEOF
28846 /* confdefs.h. */
28847 _ACEOF
28848 cat confdefs.h >>conftest.$ac_ext
28849 cat >>conftest.$ac_ext <<_ACEOF
28850 /* end confdefs.h. */
28851
28852 #include <stdio.h>
28853
28854 /* What a mess.. many systems have added the (now standard) bit types
28855 * in their own ways, so we need to scan a wide variety of headers to
28856 * find them..
28857 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28858 */
28859 #if HAVE_SYS_TYPES_H
28860 #include <sys/types.h>
28861 #endif
28862 #if STDC_HEADERS
28863 #include <stdlib.h>
28864 #include <stddef.h>
28865 #endif
28866 #if HAVE_INTTYPES_H
28867 #include <inttypes.h>
28868 #endif
28869 #if HAVE_SYS_BITYPES_H
28870 #include <sys/bitypes.h>
28871 #endif
28872 #if HAVE_SYS_SELECT_H
28873 #include <sys/select.h>
28874 #endif
28875
28876
28877
28878 int
28879 main ()
28880 {
28881 static int test_array [1 - 2 * !(((long) (sizeof (int16_t))) >= $ac_mid)];
28882 test_array [0] = 0
28883
28884 ;
28885 return 0;
28886 }
28887 _ACEOF
28888 rm -f conftest.$ac_objext
28889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28890 (eval $ac_compile) 2>conftest.er1
28891 ac_status=$?
28892 grep -v '^ *+' conftest.er1 >conftest.err
28893 rm -f conftest.er1
28894 cat conftest.err >&5
28895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896 (exit $ac_status); } &&
28897 { ac_try='test -z "$ac_c_werror_flag"
28898 || test ! -s conftest.err'
28899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28900 (eval $ac_try) 2>&5
28901 ac_status=$?
28902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903 (exit $ac_status); }; } &&
28904 { ac_try='test -s conftest.$ac_objext'
28905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28906 (eval $ac_try) 2>&5
28907 ac_status=$?
28908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909 (exit $ac_status); }; }; then
28910 ac_lo=$ac_mid; break
28911 else
28912 echo "$as_me: failed program was:" >&5
28913 sed 's/^/| /' conftest.$ac_ext >&5
28914
28915 ac_hi=`expr '(' $ac_mid ')' - 1`
28916 if test $ac_mid -le $ac_hi; then
28917 ac_lo= ac_hi=
28918 break
28919 fi
28920 ac_mid=`expr 2 '*' $ac_mid`
28921 fi
28922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28923 done
28924 else
28925 echo "$as_me: failed program was:" >&5
28926 sed 's/^/| /' conftest.$ac_ext >&5
28927
28928 ac_lo= ac_hi=
28929 fi
28930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28931 fi
28932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28933 # Binary search between lo and hi bounds.
28934 while test "x$ac_lo" != "x$ac_hi"; do
28935 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28936 cat >conftest.$ac_ext <<_ACEOF
28937 /* confdefs.h. */
28938 _ACEOF
28939 cat confdefs.h >>conftest.$ac_ext
28940 cat >>conftest.$ac_ext <<_ACEOF
28941 /* end confdefs.h. */
28942
28943 #include <stdio.h>
28944
28945 /* What a mess.. many systems have added the (now standard) bit types
28946 * in their own ways, so we need to scan a wide variety of headers to
28947 * find them..
28948 * IMPORTANT: Keep include/squid_types.h syncronised with this list
28949 */
28950 #if HAVE_SYS_TYPES_H
28951 #include <sys/types.h>
28952 #endif
28953 #if STDC_HEADERS
28954 #include <stdlib.h>
28955 #include <stddef.h>
28956 #endif
28957 #if HAVE_INTTYPES_H
28958 #include <inttypes.h>
28959 #endif
28960 #if HAVE_SYS_BITYPES_H
28961 #include <sys/bitypes.h>
28962 #endif
28963 #if HAVE_SYS_SELECT_H
28964 #include <sys/select.h>
28965 #endif
28966
28967
28968
28969 int
28970 main ()
28971 {
28972 static int test_array [1 - 2 * !(((long) (sizeof (int16_t))) <= $ac_mid)];
28973 test_array [0] = 0
28974
28975 ;
28976 return 0;
28977 }
28978 _ACEOF
28979 rm -f conftest.$ac_objext
28980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28981 (eval $ac_compile) 2>conftest.er1
28982 ac_status=$?
28983 grep -v '^ *+' conftest.er1 >conftest.err
28984 rm -f conftest.er1
28985 cat conftest.err >&5
28986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28987 (exit $ac_status); } &&
28988 { ac_try='test -z "$ac_c_werror_flag"
28989 || test ! -s conftest.err'
28990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28991 (eval $ac_try) 2>&5
28992 ac_status=$?
28993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994 (exit $ac_status); }; } &&
28995 { ac_try='test -s conftest.$ac_objext'
28996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28997 (eval $ac_try) 2>&5
28998 ac_status=$?
28999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29000 (exit $ac_status); }; }; then
29001 ac_hi=$ac_mid
29002 else
29003 echo "$as_me: failed program was:" >&5
29004 sed 's/^/| /' conftest.$ac_ext >&5
29005
29006 ac_lo=`expr '(' $ac_mid ')' + 1`
29007 fi
29008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29009 done
29010 case $ac_lo in
29011 ?*) ac_cv_sizeof_int16_t=$ac_lo;;
29012 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int16_t), 77
29013 See \`config.log' for more details." >&5
29014 echo "$as_me: error: cannot compute sizeof (int16_t), 77
29015 See \`config.log' for more details." >&2;}
29016 { (exit 1); exit 1; }; } ;;
29017 esac
29018 else
29019 if test "$cross_compiling" = yes; then
29020 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29021 See \`config.log' for more details." >&5
29022 echo "$as_me: error: cannot run test program while cross compiling
29023 See \`config.log' for more details." >&2;}
29024 { (exit 1); exit 1; }; }
29025 else
29026 cat >conftest.$ac_ext <<_ACEOF
29027 /* confdefs.h. */
29028 _ACEOF
29029 cat confdefs.h >>conftest.$ac_ext
29030 cat >>conftest.$ac_ext <<_ACEOF
29031 /* end confdefs.h. */
29032
29033 #include <stdio.h>
29034
29035 /* What a mess.. many systems have added the (now standard) bit types
29036 * in their own ways, so we need to scan a wide variety of headers to
29037 * find them..
29038 * IMPORTANT: Keep include/squid_types.h syncronised with this list
29039 */
29040 #if HAVE_SYS_TYPES_H
29041 #include <sys/types.h>
29042 #endif
29043 #if STDC_HEADERS
29044 #include <stdlib.h>
29045 #include <stddef.h>
29046 #endif
29047 #if HAVE_INTTYPES_H
29048 #include <inttypes.h>
29049 #endif
29050 #if HAVE_SYS_BITYPES_H
29051 #include <sys/bitypes.h>
29052 #endif
29053 #if HAVE_SYS_SELECT_H
29054 #include <sys/select.h>
29055 #endif
29056
29057
29058
29059 long longval () { return (long) (sizeof (int16_t)); }
29060 unsigned long ulongval () { return (long) (sizeof (int16_t)); }
29061 #include <stdio.h>
29062 #include <stdlib.h>
29063 int
29064 main ()
29065 {
29066
29067 FILE *f = fopen ("conftest.val", "w");
29068 if (! f)
29069 exit (1);
29070 if (((long) (sizeof (int16_t))) < 0)
29071 {
29072 long i = longval ();
29073 if (i != ((long) (sizeof (int16_t))))
29074 exit (1);
29075 fprintf (f, "%ld\n", i);
29076 }
29077 else
29078 {
29079 unsigned long i = ulongval ();
29080 if (i != ((long) (sizeof (int16_t))))
29081 exit (1);
29082 fprintf (f, "%lu\n", i);
29083 }
29084 exit (ferror (f) || fclose (f) != 0);
29085
29086 ;
29087 return 0;
29088 }
29089 _ACEOF
29090 rm -f conftest$ac_exeext
29091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29092 (eval $ac_link) 2>&5
29093 ac_status=$?
29094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29097 (eval $ac_try) 2>&5
29098 ac_status=$?
29099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100 (exit $ac_status); }; }; then
29101 ac_cv_sizeof_int16_t=`cat conftest.val`
29102 else
29103 echo "$as_me: program exited with status $ac_status" >&5
29104 echo "$as_me: failed program was:" >&5
29105 sed 's/^/| /' conftest.$ac_ext >&5
29106
29107 ( exit $ac_status )
29108 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int16_t), 77
29109 See \`config.log' for more details." >&5
29110 echo "$as_me: error: cannot compute sizeof (int16_t), 77
29111 See \`config.log' for more details." >&2;}
29112 { (exit 1); exit 1; }; }
29113 fi
29114 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29115 fi
29116 fi
29117 rm -f conftest.val
29118 else
29119 ac_cv_sizeof_int16_t=0
29120 fi
29121 fi
29122 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int16_t" >&5
29123 echo "${ECHO_T}$ac_cv_sizeof_int16_t" >&6
29124 cat >>confdefs.h <<_ACEOF
29125 #define SIZEOF_INT16_T $ac_cv_sizeof_int16_t
29126 _ACEOF
29127
29128
29129
29130 cat >>confdefs.h <<\_ACEOF
29131 #define HAVE_INT16_T 1
29132 _ACEOF
29133
29134
29135 fi
29136
29137
29138 echo "$as_me:$LINENO: checking for short" >&5
29139 echo $ECHO_N "checking for short... $ECHO_C" >&6
29140 if test "${ac_cv_type_short+set}" = set; then
29141 echo $ECHO_N "(cached) $ECHO_C" >&6
29142 else
29143 cat >conftest.$ac_ext <<_ACEOF
29144 /* confdefs.h. */
29145 _ACEOF
29146 cat confdefs.h >>conftest.$ac_ext
29147 cat >>conftest.$ac_ext <<_ACEOF
29148 /* end confdefs.h. */
29149
29150 /* What a mess.. many systems have added the (now standard) bit types
29151 * in their own ways, so we need to scan a wide variety of headers to
29152 * find them..
29153 * IMPORTANT: Keep include/squid_types.h syncronised with this list
29154 */
29155 #if HAVE_SYS_TYPES_H
29156 #include <sys/types.h>
29157 #endif
29158 #if STDC_HEADERS
29159 #include <stdlib.h>
29160 #include <stddef.h>
29161 #endif
29162 #if HAVE_INTTYPES_H
29163 #include <inttypes.h>
29164 #endif
29165 #if HAVE_SYS_BITYPES_H
29166 #include <sys/bitypes.h>
29167 #endif
29168 #if HAVE_SYS_SELECT_H
29169 #include <sys/select.h>
29170 #endif
29171
29172
29173 int
29174 main ()
29175 {
29176 if ((short *) 0)
29177 return 0;
29178 if (sizeof (short))
29179 return 0;
29180 ;
29181 return 0;
29182 }
29183 _ACEOF
29184 rm -f conftest.$ac_objext
29185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29186 (eval $ac_compile) 2>conftest.er1
29187 ac_status=$?
29188 grep -v '^ *+' conftest.er1 >conftest.err
29189 rm -f conftest.er1
29190 cat conftest.err >&5
29191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29192 (exit $ac_status); } &&
29193 { ac_try='test -z "$ac_c_werror_flag"
29194 || test ! -s conftest.err'
29195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29196 (eval $ac_try) 2>&5
29197 ac_status=$?
29198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29199 (exit $ac_status); }; } &&
29200 { ac_try='test -s conftest.$ac_objext'
29201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29202 (eval $ac_try) 2>&5
29203 ac_status=$?
29204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205 (exit $ac_status); }; }; then
29206 ac_cv_type_short=yes
29207 else
29208 echo "$as_me: failed program was:" >&5
29209 sed 's/^/| /' conftest.$ac_ext >&5
29210
29211 ac_cv_type_short=no
29212 fi
29213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29214 fi
29215 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
29216 echo "${ECHO_T}$ac_cv_type_short" >&6
29217 if test $ac_cv_type_short = yes; then
29218
29219 echo "$as_me:$LINENO: checking for short" >&5
29220 echo $ECHO_N "checking for short... $ECHO_C" >&6
29221 if test "${ac_cv_type_short+set}" = set; then
29222 echo $ECHO_N "(cached) $ECHO_C" >&6
29223 else
29224 cat >conftest.$ac_ext <<_ACEOF
29225 /* confdefs.h. */
29226 _ACEOF
29227 cat confdefs.h >>conftest.$ac_ext
29228 cat >>conftest.$ac_ext <<_ACEOF
29229 /* end confdefs.h. */
29230
29231 #include <stdio.h>
29232
29233 /* What a mess.. many systems have added the (now standard) bit types
29234 * in their own ways, so we need to scan a wide variety of headers to
29235 * find them..
29236 * IMPORTANT: Keep include/squid_types.h syncronised with this list
29237 */
29238 #if HAVE_SYS_TYPES_H
29239 #include <sys/types.h>
29240 #endif
29241 #if STDC_HEADERS
29242 #include <stdlib.h>
29243 #include <stddef.h>
29244 #endif
29245 #if HAVE_INTTYPES_H
29246 #include <inttypes.h>
29247 #endif
29248 #if HAVE_SYS_BITYPES_H
29249 #include <sys/bitypes.h>
29250 #endif
29251 #if HAVE_SYS_SELECT_H
29252 #include <sys/select.h>
29253 #endif
29254
29255
29256
29257 int
29258 main ()
29259 {
29260 if ((short *) 0)
29261 return 0;
29262 if (sizeof (short))
29263 return 0;
29264 ;
29265 return 0;
29266 }
29267 _ACEOF
29268 rm -f conftest.$ac_objext
29269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29270 (eval $ac_compile) 2>conftest.er1
29271 ac_status=$?
29272 grep -v '^ *+' conftest.er1 >conftest.err
29273 rm -f conftest.er1
29274 cat conftest.err >&5
29275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276 (exit $ac_status); } &&
29277 { ac_try='test -z "$ac_c_werror_flag"
29278 || test ! -s conftest.err'
29279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29280 (eval $ac_try) 2>&5
29281 ac_status=$?
29282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283 (exit $ac_status); }; } &&
29284 { ac_try='test -s conftest.$ac_objext'
29285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29286 (eval $ac_try) 2>&5
29287 ac_status=$?
29288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29289 (exit $ac_status); }; }; then
29290 ac_cv_type_short=yes
29291 else
29292 echo "$as_me: failed program was:" >&5
29293 sed 's/^/| /' conftest.$ac_ext >&5
29294
29295 ac_cv_type_short=no
29296 fi
29297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29298 fi
29299 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
29300 echo "${ECHO_T}$ac_cv_type_short" >&6
29301
29302 echo "$as_me:$LINENO: checking size of short" >&5
29303 echo $ECHO_N "checking size of short... $ECHO_C" >&6
29304 if test "${ac_cv_sizeof_short+set}" = set; then
29305 echo $ECHO_N "(cached) $ECHO_C" >&6
29306 else
29307 if test "$ac_cv_type_short" = yes; then
29308 # The cast to unsigned long works around a bug in the HP C Compiler
29309 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29310 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29311 # This bug is HP SR number 8606223364.
29312 if test "$cross_compiling" = yes; then
29313 # Depending upon the size, compute the lo and hi bounds.
29314 cat >conftest.$ac_ext <<_ACEOF
29315 /* confdefs.h. */
29316 _ACEOF
29317 cat confdefs.h >>conftest.$ac_ext
29318 cat >>conftest.$ac_ext <<_ACEOF
29319 /* end confdefs.h. */
29320
29321 #include <stdio.h>
29322
29323 /* What a mess.. many systems have added the (now standard) bit types
29324 * in their own ways, so we need to scan a wide variety of headers to
29325 * find them..
29326 * IMPORTANT: Keep include/squid_types.h syncronised with this list
29327 */
29328 #if HAVE_SYS_TYPES_H
29329 #include <sys/types.h>
29330 #endif
29331 #if STDC_HEADERS
29332 #include <stdlib.h>
29333 #include <stddef.h>
29334 #endif
29335 #if HAVE_INTTYPES_H
29336 #include <inttypes.h>
29337 #endif
29338 #if HAVE_SYS_BITYPES_H
29339 #include <sys/bitypes.h>
29340 #endif
29341 #if HAVE_SYS_SELECT_H
29342 #include <sys/select.h>
29343 #endif
29344
29345
29346
29347 int
29348 main ()
29349 {
29350 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
29351 test_array [0] = 0
29352
29353 ;
29354 return 0;
29355 }
29356 _ACEOF
29357 rm -f conftest.$ac_objext
29358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29359 (eval $ac_compile) 2>conftest.er1
29360 ac_status=$?
29361 grep -v '^ *+' conftest.er1 >conftest.err
29362 rm -f conftest.er1
29363 cat conftest.err >&5
29364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29365 (exit $ac_status); } &&
29366 { ac_try='test -z "$ac_c_werror_flag"
29367 || test ! -s conftest.err'
29368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29369 (eval $ac_try) 2>&5
29370 ac_status=$?
29371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372 (exit $ac_status); }; } &&
29373 { ac_try='test -s conftest.$ac_objext'
29374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29375 (eval $ac_try) 2>&5
29376 ac_status=$?
29377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378 (exit $ac_status); }; }; then
29379 ac_lo=0 ac_mid=0
29380 while :; do
29381 cat >conftest.$ac_ext <<_ACEOF
29382 /* confdefs.h. */
29383 _ACEOF
29384 cat confdefs.h >>conftest.$ac_ext
29385 cat >>conftest.$ac_ext <<_ACEOF
29386 /* end confdefs.h. */
29387
29388 #include <stdio.h>
29389
29390 /* What a mess.. many systems have added the (now standard) bit types
29391 * in their own ways, so we need to scan a wide variety of headers to
29392 * find them..
29393 * IMPORTANT: Keep include/squid_types.h syncronised with this list
29394 */
29395 #if HAVE_SYS_TYPES_H
29396 #include <sys/types.h>
29397 #endif
29398 #if STDC_HEADERS
29399 #include <stdlib.h>
29400 #include <stddef.h>
29401 #endif
29402 #if HAVE_INTTYPES_H
29403 #include <inttypes.h>
29404 #endif
29405 #if HAVE_SYS_BITYPES_H
29406 #include <sys/bitypes.h>
29407 #endif
29408 #if HAVE_SYS_SELECT_H
29409 #include <sys/select.h>
29410 #endif
29411
29412
29413
29414 int
29415 main ()
29416 {
29417 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
29418 test_array [0] = 0
29419
29420 ;
29421 return 0;
29422 }
29423 _ACEOF
29424 rm -f conftest.$ac_objext
29425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29426 (eval $ac_compile) 2>conftest.er1
29427 ac_status=$?
29428 grep -v '^ *+' conftest.er1 >conftest.err
29429 rm -f conftest.er1
29430 cat conftest.err >&5
29431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29432 (exit $ac_status); } &&
29433 { ac_try='test -z "$ac_c_werror_flag"
29434 || test ! -s conftest.err'
29435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29436 (eval $ac_try) 2>&5
29437 ac_status=$?
29438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439 (exit $ac_status); }; } &&
29440 { ac_try='test -s conftest.$ac_objext'
29441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29442 (eval $ac_try) 2>&5
29443 ac_status=$?
29444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29445 (exit $ac_status); }; }; then
29446 ac_hi=$ac_mid; break
29447 else
29448 echo "$as_me: failed program was:" >&5
29449 sed 's/^/| /' conftest.$ac_ext >&5
29450
29451 ac_lo=`expr $ac_mid + 1`
29452 if test $ac_lo -le $ac_mid; then
29453 ac_lo= ac_hi=
29454 break
29455 fi
29456 ac_mid=`expr 2 '*' $ac_mid + 1`
29457 fi
29458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29459 done
29460 else
29461 echo "$as_me: failed program was:" >&5
29462 sed 's/^/| /' conftest.$ac_ext >&5
29463
29464 cat >conftest.$ac_ext <<_ACEOF
29465 /* confdefs.h. */
29466 _ACEOF
29467 cat confdefs.h >>conftest.$ac_ext
29468 cat >>conftest.$ac_ext <<_ACEOF
29469 /* end confdefs.h. */
29470
29471 #include <stdio.h>
29472
29473 /* What a mess.. many systems have added the (now standard) bit types
29474 * in their own ways, so we need to scan a wide variety of headers to
29475 * find them..
29476 * IMPORTANT: Keep include/squid_types.h syncronised with this list
29477 */
29478 #if HAVE_SYS_TYPES_H
29479 #include <sys/types.h>
29480 #endif
29481 #if STDC_HEADERS
29482 #include <stdlib.h>
29483 #include <stddef.h>
29484 #endif
29485 #if HAVE_INTTYPES_H
29486 #include <inttypes.h>
29487 #endif
29488 #if HAVE_SYS_BITYPES_H
29489 #include <sys/bitypes.h>
29490 #endif
29491 #if HAVE_SYS_SELECT_H
29492 #include <sys/select.h>
29493 #endif
29494
29495
29496
29497 int
29498 main ()
29499 {
29500 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
29501 test_array [0] = 0
29502
29503 ;
29504 return 0;
29505 }
29506 _ACEOF
29507 rm -f conftest.$ac_objext
29508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29509 (eval $ac_compile) 2>conftest.er1
29510 ac_status=$?
29511 grep -v '^ *+' conftest.er1 >conftest.err
29512 rm -f conftest.er1
29513 cat conftest.err >&5
29514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515 (exit $ac_status); } &&
29516 { ac_try='test -z "$ac_c_werror_flag"
29517 || test ! -s conftest.err'
29518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29519 (eval $ac_try) 2>&5
29520 ac_status=$?
29521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522 (exit $ac_status); }; } &&
29523 { ac_try='test -s conftest.$ac_objext'
29524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29525 (eval $ac_try) 2>&5
29526 ac_status=$?
29527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528 (exit $ac_status); }; }; then
29529 ac_hi=-1 ac_mid=-1
29530 while :; do
29531 cat >conftest.$ac_ext <<_ACEOF
29532 /* confdefs.h. */
29533 _ACEOF
29534 cat confdefs.h >>conftest.$ac_ext
29535 cat >>conftest.$ac_ext <<_ACEOF
29536 /* end confdefs.h. */
29537
29538 #include <stdio.h>
29539
29540 /* What a mess.. many systems have added the (now standard) bit types
29541 * in their own ways, so we need to scan a wide variety of headers to
29542 * find them..
29543 * IMPORTANT: Keep include/squid_types.h syncronised with this list
29544 */
29545 #if HAVE_SYS_TYPES_H
29546 #include <sys/types.h>
29547 #endif
29548 #if STDC_HEADERS
29549 #include <stdlib.h>
29550 #include <stddef.h>
29551 #endif
29552 #if HAVE_INTTYPES_H
29553 #include <inttypes.h>
29554 #endif
29555 #if HAVE_SYS_BITYPES_H
29556 #include <sys/bitypes.h>
29557 #endif
29558 #if HAVE_SYS_SELECT_H
29559 #include <sys/select.h>
29560 #endif
29561
29562
29563
29564 int
29565 main ()
29566 {
29567 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
29568 test_array [0] = 0
29569
29570 ;
29571 return 0;
29572 }
29573 _ACEOF
29574 rm -f conftest.$ac_objext
29575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29576 (eval $ac_compile) 2>conftest.er1
29577 ac_status=$?
29578 grep -v '^ *+' conftest.er1 >conftest.err
29579 rm -f conftest.er1
29580 cat conftest.err >&5
29581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29582 (exit $ac_status); } &&
29583 { ac_try='test -z "$ac_c_werror_flag"
29584 || test ! -s conftest.err'
29585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29586 (eval $ac_try) 2>&5
29587 ac_status=$?
29588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589 (exit $ac_status); }; } &&
29590 { ac_try='test -s conftest.$ac_objext'
29591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29592 (eval $ac_try) 2>&5
29593 ac_status=$?
29594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595 (exit $ac_status); }; }; then
29596 ac_lo=$ac_mid; break
29597 else
29598 echo "$as_me: failed program was:" >&5
29599 sed 's/^/| /' conftest.$ac_ext >&5
29600
29601 ac_hi=`expr '(' $ac_mid ')' - 1`
29602 if test $ac_mid -le $ac_hi; then
29603 ac_lo= ac_hi=
29604 break
29605 fi
29606 ac_mid=`expr 2 '*' $ac_mid`
29607 fi
29608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29609 done
29610 else
29611 echo "$as_me: failed program was:" >&5
29612 sed 's/^/| /' conftest.$ac_ext >&5
29613
29614 ac_lo= ac_hi=
29615 fi
29616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29617 fi
29618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29619 # Binary search between lo and hi bounds.
29620 while test "x$ac_lo" != "x$ac_hi"; do
29621 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29622 cat >conftest.$ac_ext <<_ACEOF
29623 /* confdefs.h. */
29624 _ACEOF
29625 cat confdefs.h >>conftest.$ac_ext
29626 cat >>conftest.$ac_ext <<_ACEOF
29627 /* end confdefs.h. */
29628
29629 #include <stdio.h>
29630
29631 /* What a mess.. many systems have added the (now standard) bit types
29632 * in their own ways, so we need to scan a wide variety of headers to
29633 * find them..
29634 * IMPORTANT: Keep include/squid_types.h syncronised with this list
29635 */
29636 #if HAVE_SYS_TYPES_H
29637 #include <sys/types.h>
29638 #endif
29639 #if STDC_HEADERS
29640 #include <stdlib.h>
29641 #include <stddef.h>
29642 #endif
29643 #if HAVE_INTTYPES_H
29644 #include <inttypes.h>
29645 #endif
29646 #if HAVE_SYS_BITYPES_H
29647 #include <sys/bitypes.h>
29648 #endif
29649 #if HAVE_SYS_SELECT_H
29650 #include <sys/select.h>
29651 #endif
29652
29653
29654
29655 int
29656 main ()
29657 {
29658 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
29659 test_array [0] = 0
29660
29661 ;
29662 return 0;
29663 }
29664 _ACEOF
29665 rm -f conftest.$ac_objext
29666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29667 (eval $ac_compile) 2>conftest.er1
29668 ac_status=$?
29669 grep -v '^ *+' conftest.er1 >conftest.err
29670 rm -f conftest.er1
29671 cat conftest.err >&5
29672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673 (exit $ac_status); } &&
29674 { ac_try='test -z "$ac_c_werror_flag"
29675 || test ! -s conftest.err'
29676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29677 (eval $ac_try) 2>&5
29678 ac_status=$?
29679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680 (exit $ac_status); }; } &&
29681 { ac_try='test -s conftest.$ac_objext'
29682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29683 (eval $ac_try) 2>&5
29684 ac_status=$?
29685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686 (exit $ac_status); }; }; then
29687 ac_hi=$ac_mid
29688 else
29689 echo "$as_me: failed program was:" >&5
29690 sed 's/^/| /' conftest.$ac_ext >&5
29691
29692 ac_lo=`expr '(' $ac_mid ')' + 1`
29693 fi
29694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29695 done
29696 case $ac_lo in
29697 ?*) ac_cv_sizeof_short=$ac_lo;;
29698 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
29699 See \`config.log' for more details." >&5
29700 echo "$as_me: error: cannot compute sizeof (short), 77
29701 See \`config.log' for more details." >&2;}
29702 { (exit 1); exit 1; }; } ;;
29703 esac
29704 else
29705 if test "$cross_compiling" = yes; then
29706 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29707 See \`config.log' for more details." >&5
29708 echo "$as_me: error: cannot run test program while cross compiling
29709 See \`config.log' for more details." >&2;}
29710 { (exit 1); exit 1; }; }
29711 else
29712 cat >conftest.$ac_ext <<_ACEOF
29713 /* confdefs.h. */
29714 _ACEOF
29715 cat confdefs.h >>conftest.$ac_ext
29716 cat >>conftest.$ac_ext <<_ACEOF
29717 /* end confdefs.h. */
29718
29719 #include <stdio.h>
29720
29721 /* What a mess.. many systems have added the (now standard) bit types
29722 * in their own ways, so we need to scan a wide variety of headers to
29723 * find them..
29724 * IMPORTANT: Keep include/squid_types.h syncronised with this list
29725 */
29726 #if HAVE_SYS_TYPES_H
29727 #include <sys/types.h>
29728 #endif
29729 #if STDC_HEADERS
29730 #include <stdlib.h>
29731 #include <stddef.h>
29732 #endif
29733 #if HAVE_INTTYPES_H
29734 #include <inttypes.h>
29735 #endif
29736 #if HAVE_SYS_BITYPES_H
29737 #include <sys/bitypes.h>
29738 #endif
29739 #if HAVE_SYS_SELECT_H
29740 #include <sys/select.h>
29741 #endif
29742
29743
29744
29745 long longval () { return (long) (sizeof (short)); }
29746 unsigned long ulongval () { return (long) (sizeof (short)); }
29747 #include <stdio.h>
29748 #include <stdlib.h>
29749 int
29750 main ()
29751 {
29752
29753 FILE *f = fopen ("conftest.val", "w");
29754 if (! f)
29755 exit (1);
29756 if (((long) (sizeof (short))) < 0)
29757 {
29758 long i = longval ();
29759 if (i != ((long) (sizeof (short))))
29760 exit (1);
29761 fprintf (f, "%ld\n", i);
29762 }
29763 else
29764 {
29765 unsigned long i = ulongval ();
29766 if (i != ((long) (sizeof (short))))
29767 exit (1);
29768 fprintf (f, "%lu\n", i);
29769 }
29770 exit (ferror (f) || fclose (f) != 0);
29771
29772 ;
29773 return 0;
29774 }
29775 _ACEOF
29776 rm -f conftest$ac_exeext
29777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29778 (eval $ac_link) 2>&5
29779 ac_status=$?
29780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29783 (eval $ac_try) 2>&5
29784 ac_status=$?
29785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786 (exit $ac_status); }; }; then
29787 ac_cv_sizeof_short=`cat conftest.val`
29788 else
29789 echo "$as_me: program exited with status $ac_status" >&5
29790 echo "$as_me: failed program was:" >&5
29791 sed 's/^/| /' conftest.$ac_ext >&5
29792
29793 ( exit $ac_status )
29794 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
29795 See \`config.log' for more details." >&5
29796 echo "$as_me: error: cannot compute sizeof (short), 77
29797 See \`config.log' for more details." >&2;}
29798 { (exit 1); exit 1; }; }
29799 fi
29800 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29801 fi
29802 fi
29803 rm -f conftest.val
29804 else
29805 ac_cv_sizeof_short=0
29806 fi
29807 fi
29808 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
29809 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
29810 cat >>confdefs.h <<_ACEOF
29811 #define SIZEOF_SHORT $ac_cv_sizeof_short
29812 _ACEOF
29813
29814
29815
29816 cat >>confdefs.h <<\_ACEOF
29817 #define HAVE_SHORT 1
29818 _ACEOF
29819
29820
29821 fi
29822
29823
29824 echo "$as_me:$LINENO: checking for int" >&5
29825 echo $ECHO_N "checking for int... $ECHO_C" >&6
29826 if test "${ac_cv_type_int+set}" = set; then
29827 echo $ECHO_N "(cached) $ECHO_C" >&6
29828 else
29829 cat >conftest.$ac_ext <<_ACEOF
29830 /* confdefs.h. */
29831 _ACEOF
29832 cat confdefs.h >>conftest.$ac_ext
29833 cat >>conftest.$ac_ext <<_ACEOF
29834 /* end confdefs.h. */
29835
29836 /* What a mess.. many systems have added the (now standard) bit types
29837 * in their own ways, so we need to scan a wide variety of headers to
29838 * find them..
29839 * IMPORTANT: Keep include/squid_types.h syncronised with this list
29840 */
29841 #if HAVE_SYS_TYPES_H
29842 #include <sys/types.h>
29843 #endif
29844 #if STDC_HEADERS
29845 #include <stdlib.h>
29846 #include <stddef.h>
29847 #endif
29848 #if HAVE_INTTYPES_H
29849 #include <inttypes.h>
29850 #endif
29851 #if HAVE_SYS_BITYPES_H
29852 #include <sys/bitypes.h>
29853 #endif
29854 #if HAVE_SYS_SELECT_H
29855 #include <sys/select.h>
29856 #endif
29857
29858
29859 int
29860 main ()
29861 {
29862 if ((int *) 0)
29863 return 0;
29864 if (sizeof (int))
29865 return 0;
29866 ;
29867 return 0;
29868 }
29869 _ACEOF
29870 rm -f conftest.$ac_objext
29871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29872 (eval $ac_compile) 2>conftest.er1
29873 ac_status=$?
29874 grep -v '^ *+' conftest.er1 >conftest.err
29875 rm -f conftest.er1
29876 cat conftest.err >&5
29877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878 (exit $ac_status); } &&
29879 { ac_try='test -z "$ac_c_werror_flag"
29880 || test ! -s conftest.err'
29881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29882 (eval $ac_try) 2>&5
29883 ac_status=$?
29884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885 (exit $ac_status); }; } &&
29886 { ac_try='test -s conftest.$ac_objext'
29887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29888 (eval $ac_try) 2>&5
29889 ac_status=$?
29890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29891 (exit $ac_status); }; }; then
29892 ac_cv_type_int=yes
29893 else
29894 echo "$as_me: failed program was:" >&5
29895 sed 's/^/| /' conftest.$ac_ext >&5
29896
29897 ac_cv_type_int=no
29898 fi
29899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29900 fi
29901 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
29902 echo "${ECHO_T}$ac_cv_type_int" >&6
29903 if test $ac_cv_type_int = yes; then
29904
29905 echo "$as_me:$LINENO: checking for int" >&5
29906 echo $ECHO_N "checking for int... $ECHO_C" >&6
29907 if test "${ac_cv_type_int+set}" = set; then
29908 echo $ECHO_N "(cached) $ECHO_C" >&6
29909 else
29910 cat >conftest.$ac_ext <<_ACEOF
29911 /* confdefs.h. */
29912 _ACEOF
29913 cat confdefs.h >>conftest.$ac_ext
29914 cat >>conftest.$ac_ext <<_ACEOF
29915 /* end confdefs.h. */
29916
29917 #include <stdio.h>
29918
29919 /* What a mess.. many systems have added the (now standard) bit types
29920 * in their own ways, so we need to scan a wide variety of headers to
29921 * find them..
29922 * IMPORTANT: Keep include/squid_types.h syncronised with this list
29923 */
29924 #if HAVE_SYS_TYPES_H
29925 #include <sys/types.h>
29926 #endif
29927 #if STDC_HEADERS
29928 #include <stdlib.h>
29929 #include <stddef.h>
29930 #endif
29931 #if HAVE_INTTYPES_H
29932 #include <inttypes.h>
29933 #endif
29934 #if HAVE_SYS_BITYPES_H
29935 #include <sys/bitypes.h>
29936 #endif
29937 #if HAVE_SYS_SELECT_H
29938 #include <sys/select.h>
29939 #endif
29940
29941
29942
29943 int
29944 main ()
29945 {
29946 if ((int *) 0)
29947 return 0;
29948 if (sizeof (int))
29949 return 0;
29950 ;
29951 return 0;
29952 }
29953 _ACEOF
29954 rm -f conftest.$ac_objext
29955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29956 (eval $ac_compile) 2>conftest.er1
29957 ac_status=$?
29958 grep -v '^ *+' conftest.er1 >conftest.err
29959 rm -f conftest.er1
29960 cat conftest.err >&5
29961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962 (exit $ac_status); } &&
29963 { ac_try='test -z "$ac_c_werror_flag"
29964 || test ! -s conftest.err'
29965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29966 (eval $ac_try) 2>&5
29967 ac_status=$?
29968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29969 (exit $ac_status); }; } &&
29970 { ac_try='test -s conftest.$ac_objext'
29971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29972 (eval $ac_try) 2>&5
29973 ac_status=$?
29974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975 (exit $ac_status); }; }; then
29976 ac_cv_type_int=yes
29977 else
29978 echo "$as_me: failed program was:" >&5
29979 sed 's/^/| /' conftest.$ac_ext >&5
29980
29981 ac_cv_type_int=no
29982 fi
29983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29984 fi
29985 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
29986 echo "${ECHO_T}$ac_cv_type_int" >&6
29987
29988 echo "$as_me:$LINENO: checking size of int" >&5
29989 echo $ECHO_N "checking size of int... $ECHO_C" >&6
29990 if test "${ac_cv_sizeof_int+set}" = set; then
29991 echo $ECHO_N "(cached) $ECHO_C" >&6
29992 else
29993 if test "$ac_cv_type_int" = yes; then
29994 # The cast to unsigned long works around a bug in the HP C Compiler
29995 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29996 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29997 # This bug is HP SR number 8606223364.
29998 if test "$cross_compiling" = yes; then
29999 # Depending upon the size, compute the lo and hi bounds.
30000 cat >conftest.$ac_ext <<_ACEOF
30001 /* confdefs.h. */
30002 _ACEOF
30003 cat confdefs.h >>conftest.$ac_ext
30004 cat >>conftest.$ac_ext <<_ACEOF
30005 /* end confdefs.h. */
30006
30007 #include <stdio.h>
30008
30009 /* What a mess.. many systems have added the (now standard) bit types
30010 * in their own ways, so we need to scan a wide variety of headers to
30011 * find them..
30012 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30013 */
30014 #if HAVE_SYS_TYPES_H
30015 #include <sys/types.h>
30016 #endif
30017 #if STDC_HEADERS
30018 #include <stdlib.h>
30019 #include <stddef.h>
30020 #endif
30021 #if HAVE_INTTYPES_H
30022 #include <inttypes.h>
30023 #endif
30024 #if HAVE_SYS_BITYPES_H
30025 #include <sys/bitypes.h>
30026 #endif
30027 #if HAVE_SYS_SELECT_H
30028 #include <sys/select.h>
30029 #endif
30030
30031
30032
30033 int
30034 main ()
30035 {
30036 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
30037 test_array [0] = 0
30038
30039 ;
30040 return 0;
30041 }
30042 _ACEOF
30043 rm -f conftest.$ac_objext
30044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30045 (eval $ac_compile) 2>conftest.er1
30046 ac_status=$?
30047 grep -v '^ *+' conftest.er1 >conftest.err
30048 rm -f conftest.er1
30049 cat conftest.err >&5
30050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30051 (exit $ac_status); } &&
30052 { ac_try='test -z "$ac_c_werror_flag"
30053 || test ! -s conftest.err'
30054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30055 (eval $ac_try) 2>&5
30056 ac_status=$?
30057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058 (exit $ac_status); }; } &&
30059 { ac_try='test -s conftest.$ac_objext'
30060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30061 (eval $ac_try) 2>&5
30062 ac_status=$?
30063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30064 (exit $ac_status); }; }; then
30065 ac_lo=0 ac_mid=0
30066 while :; do
30067 cat >conftest.$ac_ext <<_ACEOF
30068 /* confdefs.h. */
30069 _ACEOF
30070 cat confdefs.h >>conftest.$ac_ext
30071 cat >>conftest.$ac_ext <<_ACEOF
30072 /* end confdefs.h. */
30073
30074 #include <stdio.h>
30075
30076 /* What a mess.. many systems have added the (now standard) bit types
30077 * in their own ways, so we need to scan a wide variety of headers to
30078 * find them..
30079 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30080 */
30081 #if HAVE_SYS_TYPES_H
30082 #include <sys/types.h>
30083 #endif
30084 #if STDC_HEADERS
30085 #include <stdlib.h>
30086 #include <stddef.h>
30087 #endif
30088 #if HAVE_INTTYPES_H
30089 #include <inttypes.h>
30090 #endif
30091 #if HAVE_SYS_BITYPES_H
30092 #include <sys/bitypes.h>
30093 #endif
30094 #if HAVE_SYS_SELECT_H
30095 #include <sys/select.h>
30096 #endif
30097
30098
30099
30100 int
30101 main ()
30102 {
30103 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
30104 test_array [0] = 0
30105
30106 ;
30107 return 0;
30108 }
30109 _ACEOF
30110 rm -f conftest.$ac_objext
30111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30112 (eval $ac_compile) 2>conftest.er1
30113 ac_status=$?
30114 grep -v '^ *+' conftest.er1 >conftest.err
30115 rm -f conftest.er1
30116 cat conftest.err >&5
30117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118 (exit $ac_status); } &&
30119 { ac_try='test -z "$ac_c_werror_flag"
30120 || test ! -s conftest.err'
30121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30122 (eval $ac_try) 2>&5
30123 ac_status=$?
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); }; } &&
30126 { ac_try='test -s conftest.$ac_objext'
30127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30128 (eval $ac_try) 2>&5
30129 ac_status=$?
30130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131 (exit $ac_status); }; }; then
30132 ac_hi=$ac_mid; break
30133 else
30134 echo "$as_me: failed program was:" >&5
30135 sed 's/^/| /' conftest.$ac_ext >&5
30136
30137 ac_lo=`expr $ac_mid + 1`
30138 if test $ac_lo -le $ac_mid; then
30139 ac_lo= ac_hi=
30140 break
30141 fi
30142 ac_mid=`expr 2 '*' $ac_mid + 1`
30143 fi
30144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30145 done
30146 else
30147 echo "$as_me: failed program was:" >&5
30148 sed 's/^/| /' conftest.$ac_ext >&5
30149
30150 cat >conftest.$ac_ext <<_ACEOF
30151 /* confdefs.h. */
30152 _ACEOF
30153 cat confdefs.h >>conftest.$ac_ext
30154 cat >>conftest.$ac_ext <<_ACEOF
30155 /* end confdefs.h. */
30156
30157 #include <stdio.h>
30158
30159 /* What a mess.. many systems have added the (now standard) bit types
30160 * in their own ways, so we need to scan a wide variety of headers to
30161 * find them..
30162 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30163 */
30164 #if HAVE_SYS_TYPES_H
30165 #include <sys/types.h>
30166 #endif
30167 #if STDC_HEADERS
30168 #include <stdlib.h>
30169 #include <stddef.h>
30170 #endif
30171 #if HAVE_INTTYPES_H
30172 #include <inttypes.h>
30173 #endif
30174 #if HAVE_SYS_BITYPES_H
30175 #include <sys/bitypes.h>
30176 #endif
30177 #if HAVE_SYS_SELECT_H
30178 #include <sys/select.h>
30179 #endif
30180
30181
30182
30183 int
30184 main ()
30185 {
30186 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
30187 test_array [0] = 0
30188
30189 ;
30190 return 0;
30191 }
30192 _ACEOF
30193 rm -f conftest.$ac_objext
30194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30195 (eval $ac_compile) 2>conftest.er1
30196 ac_status=$?
30197 grep -v '^ *+' conftest.er1 >conftest.err
30198 rm -f conftest.er1
30199 cat conftest.err >&5
30200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30201 (exit $ac_status); } &&
30202 { ac_try='test -z "$ac_c_werror_flag"
30203 || test ! -s conftest.err'
30204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30205 (eval $ac_try) 2>&5
30206 ac_status=$?
30207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30208 (exit $ac_status); }; } &&
30209 { ac_try='test -s conftest.$ac_objext'
30210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30211 (eval $ac_try) 2>&5
30212 ac_status=$?
30213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30214 (exit $ac_status); }; }; then
30215 ac_hi=-1 ac_mid=-1
30216 while :; do
30217 cat >conftest.$ac_ext <<_ACEOF
30218 /* confdefs.h. */
30219 _ACEOF
30220 cat confdefs.h >>conftest.$ac_ext
30221 cat >>conftest.$ac_ext <<_ACEOF
30222 /* end confdefs.h. */
30223
30224 #include <stdio.h>
30225
30226 /* What a mess.. many systems have added the (now standard) bit types
30227 * in their own ways, so we need to scan a wide variety of headers to
30228 * find them..
30229 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30230 */
30231 #if HAVE_SYS_TYPES_H
30232 #include <sys/types.h>
30233 #endif
30234 #if STDC_HEADERS
30235 #include <stdlib.h>
30236 #include <stddef.h>
30237 #endif
30238 #if HAVE_INTTYPES_H
30239 #include <inttypes.h>
30240 #endif
30241 #if HAVE_SYS_BITYPES_H
30242 #include <sys/bitypes.h>
30243 #endif
30244 #if HAVE_SYS_SELECT_H
30245 #include <sys/select.h>
30246 #endif
30247
30248
30249
30250 int
30251 main ()
30252 {
30253 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
30254 test_array [0] = 0
30255
30256 ;
30257 return 0;
30258 }
30259 _ACEOF
30260 rm -f conftest.$ac_objext
30261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30262 (eval $ac_compile) 2>conftest.er1
30263 ac_status=$?
30264 grep -v '^ *+' conftest.er1 >conftest.err
30265 rm -f conftest.er1
30266 cat conftest.err >&5
30267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268 (exit $ac_status); } &&
30269 { ac_try='test -z "$ac_c_werror_flag"
30270 || test ! -s conftest.err'
30271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30272 (eval $ac_try) 2>&5
30273 ac_status=$?
30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30275 (exit $ac_status); }; } &&
30276 { ac_try='test -s conftest.$ac_objext'
30277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30278 (eval $ac_try) 2>&5
30279 ac_status=$?
30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30281 (exit $ac_status); }; }; then
30282 ac_lo=$ac_mid; break
30283 else
30284 echo "$as_me: failed program was:" >&5
30285 sed 's/^/| /' conftest.$ac_ext >&5
30286
30287 ac_hi=`expr '(' $ac_mid ')' - 1`
30288 if test $ac_mid -le $ac_hi; then
30289 ac_lo= ac_hi=
30290 break
30291 fi
30292 ac_mid=`expr 2 '*' $ac_mid`
30293 fi
30294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30295 done
30296 else
30297 echo "$as_me: failed program was:" >&5
30298 sed 's/^/| /' conftest.$ac_ext >&5
30299
30300 ac_lo= ac_hi=
30301 fi
30302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30303 fi
30304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30305 # Binary search between lo and hi bounds.
30306 while test "x$ac_lo" != "x$ac_hi"; do
30307 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30308 cat >conftest.$ac_ext <<_ACEOF
30309 /* confdefs.h. */
30310 _ACEOF
30311 cat confdefs.h >>conftest.$ac_ext
30312 cat >>conftest.$ac_ext <<_ACEOF
30313 /* end confdefs.h. */
30314
30315 #include <stdio.h>
30316
30317 /* What a mess.. many systems have added the (now standard) bit types
30318 * in their own ways, so we need to scan a wide variety of headers to
30319 * find them..
30320 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30321 */
30322 #if HAVE_SYS_TYPES_H
30323 #include <sys/types.h>
30324 #endif
30325 #if STDC_HEADERS
30326 #include <stdlib.h>
30327 #include <stddef.h>
30328 #endif
30329 #if HAVE_INTTYPES_H
30330 #include <inttypes.h>
30331 #endif
30332 #if HAVE_SYS_BITYPES_H
30333 #include <sys/bitypes.h>
30334 #endif
30335 #if HAVE_SYS_SELECT_H
30336 #include <sys/select.h>
30337 #endif
30338
30339
30340
30341 int
30342 main ()
30343 {
30344 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
30345 test_array [0] = 0
30346
30347 ;
30348 return 0;
30349 }
30350 _ACEOF
30351 rm -f conftest.$ac_objext
30352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30353 (eval $ac_compile) 2>conftest.er1
30354 ac_status=$?
30355 grep -v '^ *+' conftest.er1 >conftest.err
30356 rm -f conftest.er1
30357 cat conftest.err >&5
30358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30359 (exit $ac_status); } &&
30360 { ac_try='test -z "$ac_c_werror_flag"
30361 || test ! -s conftest.err'
30362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30363 (eval $ac_try) 2>&5
30364 ac_status=$?
30365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366 (exit $ac_status); }; } &&
30367 { ac_try='test -s conftest.$ac_objext'
30368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30369 (eval $ac_try) 2>&5
30370 ac_status=$?
30371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30372 (exit $ac_status); }; }; then
30373 ac_hi=$ac_mid
30374 else
30375 echo "$as_me: failed program was:" >&5
30376 sed 's/^/| /' conftest.$ac_ext >&5
30377
30378 ac_lo=`expr '(' $ac_mid ')' + 1`
30379 fi
30380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30381 done
30382 case $ac_lo in
30383 ?*) ac_cv_sizeof_int=$ac_lo;;
30384 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
30385 See \`config.log' for more details." >&5
30386 echo "$as_me: error: cannot compute sizeof (int), 77
30387 See \`config.log' for more details." >&2;}
30388 { (exit 1); exit 1; }; } ;;
30389 esac
30390 else
30391 if test "$cross_compiling" = yes; then
30392 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
30393 See \`config.log' for more details." >&5
30394 echo "$as_me: error: cannot run test program while cross compiling
30395 See \`config.log' for more details." >&2;}
30396 { (exit 1); exit 1; }; }
30397 else
30398 cat >conftest.$ac_ext <<_ACEOF
30399 /* confdefs.h. */
30400 _ACEOF
30401 cat confdefs.h >>conftest.$ac_ext
30402 cat >>conftest.$ac_ext <<_ACEOF
30403 /* end confdefs.h. */
30404
30405 #include <stdio.h>
30406
30407 /* What a mess.. many systems have added the (now standard) bit types
30408 * in their own ways, so we need to scan a wide variety of headers to
30409 * find them..
30410 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30411 */
30412 #if HAVE_SYS_TYPES_H
30413 #include <sys/types.h>
30414 #endif
30415 #if STDC_HEADERS
30416 #include <stdlib.h>
30417 #include <stddef.h>
30418 #endif
30419 #if HAVE_INTTYPES_H
30420 #include <inttypes.h>
30421 #endif
30422 #if HAVE_SYS_BITYPES_H
30423 #include <sys/bitypes.h>
30424 #endif
30425 #if HAVE_SYS_SELECT_H
30426 #include <sys/select.h>
30427 #endif
30428
30429
30430
30431 long longval () { return (long) (sizeof (int)); }
30432 unsigned long ulongval () { return (long) (sizeof (int)); }
30433 #include <stdio.h>
30434 #include <stdlib.h>
30435 int
30436 main ()
30437 {
30438
30439 FILE *f = fopen ("conftest.val", "w");
30440 if (! f)
30441 exit (1);
30442 if (((long) (sizeof (int))) < 0)
30443 {
30444 long i = longval ();
30445 if (i != ((long) (sizeof (int))))
30446 exit (1);
30447 fprintf (f, "%ld\n", i);
30448 }
30449 else
30450 {
30451 unsigned long i = ulongval ();
30452 if (i != ((long) (sizeof (int))))
30453 exit (1);
30454 fprintf (f, "%lu\n", i);
30455 }
30456 exit (ferror (f) || fclose (f) != 0);
30457
30458 ;
30459 return 0;
30460 }
30461 _ACEOF
30462 rm -f conftest$ac_exeext
30463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30464 (eval $ac_link) 2>&5
30465 ac_status=$?
30466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30469 (eval $ac_try) 2>&5
30470 ac_status=$?
30471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30472 (exit $ac_status); }; }; then
30473 ac_cv_sizeof_int=`cat conftest.val`
30474 else
30475 echo "$as_me: program exited with status $ac_status" >&5
30476 echo "$as_me: failed program was:" >&5
30477 sed 's/^/| /' conftest.$ac_ext >&5
30478
30479 ( exit $ac_status )
30480 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
30481 See \`config.log' for more details." >&5
30482 echo "$as_me: error: cannot compute sizeof (int), 77
30483 See \`config.log' for more details." >&2;}
30484 { (exit 1); exit 1; }; }
30485 fi
30486 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30487 fi
30488 fi
30489 rm -f conftest.val
30490 else
30491 ac_cv_sizeof_int=0
30492 fi
30493 fi
30494 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
30495 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
30496 cat >>confdefs.h <<_ACEOF
30497 #define SIZEOF_INT $ac_cv_sizeof_int
30498 _ACEOF
30499
30500
30501
30502 cat >>confdefs.h <<\_ACEOF
30503 #define HAVE_INT 1
30504 _ACEOF
30505
30506
30507 fi
30508
30509
30510 echo "$as_me:$LINENO: checking for u_int16_t" >&5
30511 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
30512 if test "${ac_cv_type_u_int16_t+set}" = set; then
30513 echo $ECHO_N "(cached) $ECHO_C" >&6
30514 else
30515 cat >conftest.$ac_ext <<_ACEOF
30516 /* confdefs.h. */
30517 _ACEOF
30518 cat confdefs.h >>conftest.$ac_ext
30519 cat >>conftest.$ac_ext <<_ACEOF
30520 /* end confdefs.h. */
30521
30522 /* What a mess.. many systems have added the (now standard) bit types
30523 * in their own ways, so we need to scan a wide variety of headers to
30524 * find them..
30525 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30526 */
30527 #if HAVE_SYS_TYPES_H
30528 #include <sys/types.h>
30529 #endif
30530 #if STDC_HEADERS
30531 #include <stdlib.h>
30532 #include <stddef.h>
30533 #endif
30534 #if HAVE_INTTYPES_H
30535 #include <inttypes.h>
30536 #endif
30537 #if HAVE_SYS_BITYPES_H
30538 #include <sys/bitypes.h>
30539 #endif
30540 #if HAVE_SYS_SELECT_H
30541 #include <sys/select.h>
30542 #endif
30543
30544
30545 int
30546 main ()
30547 {
30548 if ((u_int16_t *) 0)
30549 return 0;
30550 if (sizeof (u_int16_t))
30551 return 0;
30552 ;
30553 return 0;
30554 }
30555 _ACEOF
30556 rm -f conftest.$ac_objext
30557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30558 (eval $ac_compile) 2>conftest.er1
30559 ac_status=$?
30560 grep -v '^ *+' conftest.er1 >conftest.err
30561 rm -f conftest.er1
30562 cat conftest.err >&5
30563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30564 (exit $ac_status); } &&
30565 { ac_try='test -z "$ac_c_werror_flag"
30566 || test ! -s conftest.err'
30567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30568 (eval $ac_try) 2>&5
30569 ac_status=$?
30570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30571 (exit $ac_status); }; } &&
30572 { ac_try='test -s conftest.$ac_objext'
30573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30574 (eval $ac_try) 2>&5
30575 ac_status=$?
30576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30577 (exit $ac_status); }; }; then
30578 ac_cv_type_u_int16_t=yes
30579 else
30580 echo "$as_me: failed program was:" >&5
30581 sed 's/^/| /' conftest.$ac_ext >&5
30582
30583 ac_cv_type_u_int16_t=no
30584 fi
30585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30586 fi
30587 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
30588 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
30589 if test $ac_cv_type_u_int16_t = yes; then
30590
30591 echo "$as_me:$LINENO: checking for u_int16_t" >&5
30592 echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
30593 if test "${ac_cv_type_u_int16_t+set}" = set; then
30594 echo $ECHO_N "(cached) $ECHO_C" >&6
30595 else
30596 cat >conftest.$ac_ext <<_ACEOF
30597 /* confdefs.h. */
30598 _ACEOF
30599 cat confdefs.h >>conftest.$ac_ext
30600 cat >>conftest.$ac_ext <<_ACEOF
30601 /* end confdefs.h. */
30602
30603 #include <stdio.h>
30604
30605 /* What a mess.. many systems have added the (now standard) bit types
30606 * in their own ways, so we need to scan a wide variety of headers to
30607 * find them..
30608 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30609 */
30610 #if HAVE_SYS_TYPES_H
30611 #include <sys/types.h>
30612 #endif
30613 #if STDC_HEADERS
30614 #include <stdlib.h>
30615 #include <stddef.h>
30616 #endif
30617 #if HAVE_INTTYPES_H
30618 #include <inttypes.h>
30619 #endif
30620 #if HAVE_SYS_BITYPES_H
30621 #include <sys/bitypes.h>
30622 #endif
30623 #if HAVE_SYS_SELECT_H
30624 #include <sys/select.h>
30625 #endif
30626
30627
30628
30629 int
30630 main ()
30631 {
30632 if ((u_int16_t *) 0)
30633 return 0;
30634 if (sizeof (u_int16_t))
30635 return 0;
30636 ;
30637 return 0;
30638 }
30639 _ACEOF
30640 rm -f conftest.$ac_objext
30641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30642 (eval $ac_compile) 2>conftest.er1
30643 ac_status=$?
30644 grep -v '^ *+' conftest.er1 >conftest.err
30645 rm -f conftest.er1
30646 cat conftest.err >&5
30647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30648 (exit $ac_status); } &&
30649 { ac_try='test -z "$ac_c_werror_flag"
30650 || test ! -s conftest.err'
30651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30652 (eval $ac_try) 2>&5
30653 ac_status=$?
30654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655 (exit $ac_status); }; } &&
30656 { ac_try='test -s conftest.$ac_objext'
30657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30658 (eval $ac_try) 2>&5
30659 ac_status=$?
30660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30661 (exit $ac_status); }; }; then
30662 ac_cv_type_u_int16_t=yes
30663 else
30664 echo "$as_me: failed program was:" >&5
30665 sed 's/^/| /' conftest.$ac_ext >&5
30666
30667 ac_cv_type_u_int16_t=no
30668 fi
30669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30670 fi
30671 echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
30672 echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
30673
30674 echo "$as_me:$LINENO: checking size of u_int16_t" >&5
30675 echo $ECHO_N "checking size of u_int16_t... $ECHO_C" >&6
30676 if test "${ac_cv_sizeof_u_int16_t+set}" = set; then
30677 echo $ECHO_N "(cached) $ECHO_C" >&6
30678 else
30679 if test "$ac_cv_type_u_int16_t" = yes; then
30680 # The cast to unsigned long works around a bug in the HP C Compiler
30681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30683 # This bug is HP SR number 8606223364.
30684 if test "$cross_compiling" = yes; then
30685 # Depending upon the size, compute the lo and hi bounds.
30686 cat >conftest.$ac_ext <<_ACEOF
30687 /* confdefs.h. */
30688 _ACEOF
30689 cat confdefs.h >>conftest.$ac_ext
30690 cat >>conftest.$ac_ext <<_ACEOF
30691 /* end confdefs.h. */
30692
30693 #include <stdio.h>
30694
30695 /* What a mess.. many systems have added the (now standard) bit types
30696 * in their own ways, so we need to scan a wide variety of headers to
30697 * find them..
30698 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30699 */
30700 #if HAVE_SYS_TYPES_H
30701 #include <sys/types.h>
30702 #endif
30703 #if STDC_HEADERS
30704 #include <stdlib.h>
30705 #include <stddef.h>
30706 #endif
30707 #if HAVE_INTTYPES_H
30708 #include <inttypes.h>
30709 #endif
30710 #if HAVE_SYS_BITYPES_H
30711 #include <sys/bitypes.h>
30712 #endif
30713 #if HAVE_SYS_SELECT_H
30714 #include <sys/select.h>
30715 #endif
30716
30717
30718
30719 int
30720 main ()
30721 {
30722 static int test_array [1 - 2 * !(((long) (sizeof (u_int16_t))) >= 0)];
30723 test_array [0] = 0
30724
30725 ;
30726 return 0;
30727 }
30728 _ACEOF
30729 rm -f conftest.$ac_objext
30730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30731 (eval $ac_compile) 2>conftest.er1
30732 ac_status=$?
30733 grep -v '^ *+' conftest.er1 >conftest.err
30734 rm -f conftest.er1
30735 cat conftest.err >&5
30736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30737 (exit $ac_status); } &&
30738 { ac_try='test -z "$ac_c_werror_flag"
30739 || test ! -s conftest.err'
30740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30741 (eval $ac_try) 2>&5
30742 ac_status=$?
30743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30744 (exit $ac_status); }; } &&
30745 { ac_try='test -s conftest.$ac_objext'
30746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30747 (eval $ac_try) 2>&5
30748 ac_status=$?
30749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750 (exit $ac_status); }; }; then
30751 ac_lo=0 ac_mid=0
30752 while :; do
30753 cat >conftest.$ac_ext <<_ACEOF
30754 /* confdefs.h. */
30755 _ACEOF
30756 cat confdefs.h >>conftest.$ac_ext
30757 cat >>conftest.$ac_ext <<_ACEOF
30758 /* end confdefs.h. */
30759
30760 #include <stdio.h>
30761
30762 /* What a mess.. many systems have added the (now standard) bit types
30763 * in their own ways, so we need to scan a wide variety of headers to
30764 * find them..
30765 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30766 */
30767 #if HAVE_SYS_TYPES_H
30768 #include <sys/types.h>
30769 #endif
30770 #if STDC_HEADERS
30771 #include <stdlib.h>
30772 #include <stddef.h>
30773 #endif
30774 #if HAVE_INTTYPES_H
30775 #include <inttypes.h>
30776 #endif
30777 #if HAVE_SYS_BITYPES_H
30778 #include <sys/bitypes.h>
30779 #endif
30780 #if HAVE_SYS_SELECT_H
30781 #include <sys/select.h>
30782 #endif
30783
30784
30785
30786 int
30787 main ()
30788 {
30789 static int test_array [1 - 2 * !(((long) (sizeof (u_int16_t))) <= $ac_mid)];
30790 test_array [0] = 0
30791
30792 ;
30793 return 0;
30794 }
30795 _ACEOF
30796 rm -f conftest.$ac_objext
30797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30798 (eval $ac_compile) 2>conftest.er1
30799 ac_status=$?
30800 grep -v '^ *+' conftest.er1 >conftest.err
30801 rm -f conftest.er1
30802 cat conftest.err >&5
30803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30804 (exit $ac_status); } &&
30805 { ac_try='test -z "$ac_c_werror_flag"
30806 || test ! -s conftest.err'
30807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30808 (eval $ac_try) 2>&5
30809 ac_status=$?
30810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811 (exit $ac_status); }; } &&
30812 { ac_try='test -s conftest.$ac_objext'
30813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30814 (eval $ac_try) 2>&5
30815 ac_status=$?
30816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817 (exit $ac_status); }; }; then
30818 ac_hi=$ac_mid; break
30819 else
30820 echo "$as_me: failed program was:" >&5
30821 sed 's/^/| /' conftest.$ac_ext >&5
30822
30823 ac_lo=`expr $ac_mid + 1`
30824 if test $ac_lo -le $ac_mid; then
30825 ac_lo= ac_hi=
30826 break
30827 fi
30828 ac_mid=`expr 2 '*' $ac_mid + 1`
30829 fi
30830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30831 done
30832 else
30833 echo "$as_me: failed program was:" >&5
30834 sed 's/^/| /' conftest.$ac_ext >&5
30835
30836 cat >conftest.$ac_ext <<_ACEOF
30837 /* confdefs.h. */
30838 _ACEOF
30839 cat confdefs.h >>conftest.$ac_ext
30840 cat >>conftest.$ac_ext <<_ACEOF
30841 /* end confdefs.h. */
30842
30843 #include <stdio.h>
30844
30845 /* What a mess.. many systems have added the (now standard) bit types
30846 * in their own ways, so we need to scan a wide variety of headers to
30847 * find them..
30848 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30849 */
30850 #if HAVE_SYS_TYPES_H
30851 #include <sys/types.h>
30852 #endif
30853 #if STDC_HEADERS
30854 #include <stdlib.h>
30855 #include <stddef.h>
30856 #endif
30857 #if HAVE_INTTYPES_H
30858 #include <inttypes.h>
30859 #endif
30860 #if HAVE_SYS_BITYPES_H
30861 #include <sys/bitypes.h>
30862 #endif
30863 #if HAVE_SYS_SELECT_H
30864 #include <sys/select.h>
30865 #endif
30866
30867
30868
30869 int
30870 main ()
30871 {
30872 static int test_array [1 - 2 * !(((long) (sizeof (u_int16_t))) < 0)];
30873 test_array [0] = 0
30874
30875 ;
30876 return 0;
30877 }
30878 _ACEOF
30879 rm -f conftest.$ac_objext
30880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30881 (eval $ac_compile) 2>conftest.er1
30882 ac_status=$?
30883 grep -v '^ *+' conftest.er1 >conftest.err
30884 rm -f conftest.er1
30885 cat conftest.err >&5
30886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30887 (exit $ac_status); } &&
30888 { ac_try='test -z "$ac_c_werror_flag"
30889 || test ! -s conftest.err'
30890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30891 (eval $ac_try) 2>&5
30892 ac_status=$?
30893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30894 (exit $ac_status); }; } &&
30895 { ac_try='test -s conftest.$ac_objext'
30896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30897 (eval $ac_try) 2>&5
30898 ac_status=$?
30899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30900 (exit $ac_status); }; }; then
30901 ac_hi=-1 ac_mid=-1
30902 while :; do
30903 cat >conftest.$ac_ext <<_ACEOF
30904 /* confdefs.h. */
30905 _ACEOF
30906 cat confdefs.h >>conftest.$ac_ext
30907 cat >>conftest.$ac_ext <<_ACEOF
30908 /* end confdefs.h. */
30909
30910 #include <stdio.h>
30911
30912 /* What a mess.. many systems have added the (now standard) bit types
30913 * in their own ways, so we need to scan a wide variety of headers to
30914 * find them..
30915 * IMPORTANT: Keep include/squid_types.h syncronised with this list
30916 */
30917 #if HAVE_SYS_TYPES_H
30918 #include <sys/types.h>
30919 #endif
30920 #if STDC_HEADERS
30921 #include <stdlib.h>
30922 #include <stddef.h>
30923 #endif
30924 #if HAVE_INTTYPES_H
30925 #include <inttypes.h>
30926 #endif
30927 #if HAVE_SYS_BITYPES_H
30928 #include <sys/bitypes.h>
30929 #endif
30930 #if HAVE_SYS_SELECT_H
30931 #include <sys/select.h>
30932 #endif
30933
30934
30935
30936 int
30937 main ()
30938 {
30939 static int test_array [1 - 2 * !(((long) (sizeof (u_int16_t))) >= $ac_mid)];
30940 test_array [0] = 0
30941
30942 ;
30943 return 0;
30944 }
30945 _ACEOF
30946 rm -f conftest.$ac_objext
30947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30948 (eval $ac_compile) 2>conftest.er1
30949 ac_status=$?
30950 grep -v '^ *+' conftest.er1 >conftest.err
30951 rm -f conftest.er1
30952 cat conftest.err >&5
30953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30954 (exit $ac_status); } &&
30955 { ac_try='test -z "$ac_c_werror_flag"
30956 || test ! -s conftest.err'
30957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30958 (eval $ac_try) 2>&5
30959 ac_status=$?
30960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961 (exit $ac_status); }; } &&
30962 { ac_try='test -s conftest.$ac_objext'
30963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30964 (eval $ac_try) 2>&5
30965 ac_status=$?
30966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967 (exit $ac_status); }; }; then
30968 ac_lo=$ac_mid; break
30969 else
30970 echo "$as_me: failed program was:" >&5
30971 sed 's/^/| /' conftest.$ac_ext >&5
30972
30973 ac_hi=`expr '(' $ac_mid ')' - 1`
30974 if test $ac_mid -le $ac_hi; then
30975 ac_lo= ac_hi=
30976 break
30977 fi
30978 ac_mid=`expr 2 '*' $ac_mid`
30979 fi
30980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30981 done
30982 else
30983 echo "$as_me: failed program was:" >&5
30984 sed 's/^/| /' conftest.$ac_ext >&5
30985
30986 ac_lo= ac_hi=
30987 fi
30988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30989 fi
30990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30991 # Binary search between lo and hi bounds.
30992 while test "x$ac_lo" != "x$ac_hi"; do
30993 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30994 cat >conftest.$ac_ext <<_ACEOF
30995 /* confdefs.h. */
30996 _ACEOF
30997 cat confdefs.h >>conftest.$ac_ext
30998 cat >>conftest.$ac_ext <<_ACEOF
30999 /* end confdefs.h. */
31000
31001 #include <stdio.h>
31002
31003 /* What a mess.. many systems have added the (now standard) bit types
31004 * in their own ways, so we need to scan a wide variety of headers to
31005 * find them..
31006 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31007 */
31008 #if HAVE_SYS_TYPES_H
31009 #include <sys/types.h>
31010 #endif
31011 #if STDC_HEADERS
31012 #include <stdlib.h>
31013 #include <stddef.h>
31014 #endif
31015 #if HAVE_INTTYPES_H
31016 #include <inttypes.h>
31017 #endif
31018 #if HAVE_SYS_BITYPES_H
31019 #include <sys/bitypes.h>
31020 #endif
31021 #if HAVE_SYS_SELECT_H
31022 #include <sys/select.h>
31023 #endif
31024
31025
31026
31027 int
31028 main ()
31029 {
31030 static int test_array [1 - 2 * !(((long) (sizeof (u_int16_t))) <= $ac_mid)];
31031 test_array [0] = 0
31032
31033 ;
31034 return 0;
31035 }
31036 _ACEOF
31037 rm -f conftest.$ac_objext
31038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31039 (eval $ac_compile) 2>conftest.er1
31040 ac_status=$?
31041 grep -v '^ *+' conftest.er1 >conftest.err
31042 rm -f conftest.er1
31043 cat conftest.err >&5
31044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31045 (exit $ac_status); } &&
31046 { ac_try='test -z "$ac_c_werror_flag"
31047 || test ! -s conftest.err'
31048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31049 (eval $ac_try) 2>&5
31050 ac_status=$?
31051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052 (exit $ac_status); }; } &&
31053 { ac_try='test -s conftest.$ac_objext'
31054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31055 (eval $ac_try) 2>&5
31056 ac_status=$?
31057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31058 (exit $ac_status); }; }; then
31059 ac_hi=$ac_mid
31060 else
31061 echo "$as_me: failed program was:" >&5
31062 sed 's/^/| /' conftest.$ac_ext >&5
31063
31064 ac_lo=`expr '(' $ac_mid ')' + 1`
31065 fi
31066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31067 done
31068 case $ac_lo in
31069 ?*) ac_cv_sizeof_u_int16_t=$ac_lo;;
31070 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int16_t), 77
31071 See \`config.log' for more details." >&5
31072 echo "$as_me: error: cannot compute sizeof (u_int16_t), 77
31073 See \`config.log' for more details." >&2;}
31074 { (exit 1); exit 1; }; } ;;
31075 esac
31076 else
31077 if test "$cross_compiling" = yes; then
31078 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
31079 See \`config.log' for more details." >&5
31080 echo "$as_me: error: cannot run test program while cross compiling
31081 See \`config.log' for more details." >&2;}
31082 { (exit 1); exit 1; }; }
31083 else
31084 cat >conftest.$ac_ext <<_ACEOF
31085 /* confdefs.h. */
31086 _ACEOF
31087 cat confdefs.h >>conftest.$ac_ext
31088 cat >>conftest.$ac_ext <<_ACEOF
31089 /* end confdefs.h. */
31090
31091 #include <stdio.h>
31092
31093 /* What a mess.. many systems have added the (now standard) bit types
31094 * in their own ways, so we need to scan a wide variety of headers to
31095 * find them..
31096 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31097 */
31098 #if HAVE_SYS_TYPES_H
31099 #include <sys/types.h>
31100 #endif
31101 #if STDC_HEADERS
31102 #include <stdlib.h>
31103 #include <stddef.h>
31104 #endif
31105 #if HAVE_INTTYPES_H
31106 #include <inttypes.h>
31107 #endif
31108 #if HAVE_SYS_BITYPES_H
31109 #include <sys/bitypes.h>
31110 #endif
31111 #if HAVE_SYS_SELECT_H
31112 #include <sys/select.h>
31113 #endif
31114
31115
31116
31117 long longval () { return (long) (sizeof (u_int16_t)); }
31118 unsigned long ulongval () { return (long) (sizeof (u_int16_t)); }
31119 #include <stdio.h>
31120 #include <stdlib.h>
31121 int
31122 main ()
31123 {
31124
31125 FILE *f = fopen ("conftest.val", "w");
31126 if (! f)
31127 exit (1);
31128 if (((long) (sizeof (u_int16_t))) < 0)
31129 {
31130 long i = longval ();
31131 if (i != ((long) (sizeof (u_int16_t))))
31132 exit (1);
31133 fprintf (f, "%ld\n", i);
31134 }
31135 else
31136 {
31137 unsigned long i = ulongval ();
31138 if (i != ((long) (sizeof (u_int16_t))))
31139 exit (1);
31140 fprintf (f, "%lu\n", i);
31141 }
31142 exit (ferror (f) || fclose (f) != 0);
31143
31144 ;
31145 return 0;
31146 }
31147 _ACEOF
31148 rm -f conftest$ac_exeext
31149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31150 (eval $ac_link) 2>&5
31151 ac_status=$?
31152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31155 (eval $ac_try) 2>&5
31156 ac_status=$?
31157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158 (exit $ac_status); }; }; then
31159 ac_cv_sizeof_u_int16_t=`cat conftest.val`
31160 else
31161 echo "$as_me: program exited with status $ac_status" >&5
31162 echo "$as_me: failed program was:" >&5
31163 sed 's/^/| /' conftest.$ac_ext >&5
31164
31165 ( exit $ac_status )
31166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int16_t), 77
31167 See \`config.log' for more details." >&5
31168 echo "$as_me: error: cannot compute sizeof (u_int16_t), 77
31169 See \`config.log' for more details." >&2;}
31170 { (exit 1); exit 1; }; }
31171 fi
31172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31173 fi
31174 fi
31175 rm -f conftest.val
31176 else
31177 ac_cv_sizeof_u_int16_t=0
31178 fi
31179 fi
31180 echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int16_t" >&5
31181 echo "${ECHO_T}$ac_cv_sizeof_u_int16_t" >&6
31182 cat >>confdefs.h <<_ACEOF
31183 #define SIZEOF_U_INT16_T $ac_cv_sizeof_u_int16_t
31184 _ACEOF
31185
31186
31187
31188 cat >>confdefs.h <<\_ACEOF
31189 #define HAVE_U_INT16_T 1
31190 _ACEOF
31191
31192
31193 fi
31194
31195
31196 echo "$as_me:$LINENO: checking for uint16_t" >&5
31197 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
31198 if test "${ac_cv_type_uint16_t+set}" = set; then
31199 echo $ECHO_N "(cached) $ECHO_C" >&6
31200 else
31201 cat >conftest.$ac_ext <<_ACEOF
31202 /* confdefs.h. */
31203 _ACEOF
31204 cat confdefs.h >>conftest.$ac_ext
31205 cat >>conftest.$ac_ext <<_ACEOF
31206 /* end confdefs.h. */
31207
31208 /* What a mess.. many systems have added the (now standard) bit types
31209 * in their own ways, so we need to scan a wide variety of headers to
31210 * find them..
31211 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31212 */
31213 #if HAVE_SYS_TYPES_H
31214 #include <sys/types.h>
31215 #endif
31216 #if STDC_HEADERS
31217 #include <stdlib.h>
31218 #include <stddef.h>
31219 #endif
31220 #if HAVE_INTTYPES_H
31221 #include <inttypes.h>
31222 #endif
31223 #if HAVE_SYS_BITYPES_H
31224 #include <sys/bitypes.h>
31225 #endif
31226 #if HAVE_SYS_SELECT_H
31227 #include <sys/select.h>
31228 #endif
31229
31230
31231 int
31232 main ()
31233 {
31234 if ((uint16_t *) 0)
31235 return 0;
31236 if (sizeof (uint16_t))
31237 return 0;
31238 ;
31239 return 0;
31240 }
31241 _ACEOF
31242 rm -f conftest.$ac_objext
31243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31244 (eval $ac_compile) 2>conftest.er1
31245 ac_status=$?
31246 grep -v '^ *+' conftest.er1 >conftest.err
31247 rm -f conftest.er1
31248 cat conftest.err >&5
31249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31250 (exit $ac_status); } &&
31251 { ac_try='test -z "$ac_c_werror_flag"
31252 || test ! -s conftest.err'
31253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31254 (eval $ac_try) 2>&5
31255 ac_status=$?
31256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31257 (exit $ac_status); }; } &&
31258 { ac_try='test -s conftest.$ac_objext'
31259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31260 (eval $ac_try) 2>&5
31261 ac_status=$?
31262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31263 (exit $ac_status); }; }; then
31264 ac_cv_type_uint16_t=yes
31265 else
31266 echo "$as_me: failed program was:" >&5
31267 sed 's/^/| /' conftest.$ac_ext >&5
31268
31269 ac_cv_type_uint16_t=no
31270 fi
31271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31272 fi
31273 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
31274 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
31275 if test $ac_cv_type_uint16_t = yes; then
31276
31277 echo "$as_me:$LINENO: checking for uint16_t" >&5
31278 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
31279 if test "${ac_cv_type_uint16_t+set}" = set; then
31280 echo $ECHO_N "(cached) $ECHO_C" >&6
31281 else
31282 cat >conftest.$ac_ext <<_ACEOF
31283 /* confdefs.h. */
31284 _ACEOF
31285 cat confdefs.h >>conftest.$ac_ext
31286 cat >>conftest.$ac_ext <<_ACEOF
31287 /* end confdefs.h. */
31288
31289 #include <stdio.h>
31290
31291 /* What a mess.. many systems have added the (now standard) bit types
31292 * in their own ways, so we need to scan a wide variety of headers to
31293 * find them..
31294 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31295 */
31296 #if HAVE_SYS_TYPES_H
31297 #include <sys/types.h>
31298 #endif
31299 #if STDC_HEADERS
31300 #include <stdlib.h>
31301 #include <stddef.h>
31302 #endif
31303 #if HAVE_INTTYPES_H
31304 #include <inttypes.h>
31305 #endif
31306 #if HAVE_SYS_BITYPES_H
31307 #include <sys/bitypes.h>
31308 #endif
31309 #if HAVE_SYS_SELECT_H
31310 #include <sys/select.h>
31311 #endif
31312
31313
31314
31315 int
31316 main ()
31317 {
31318 if ((uint16_t *) 0)
31319 return 0;
31320 if (sizeof (uint16_t))
31321 return 0;
31322 ;
31323 return 0;
31324 }
31325 _ACEOF
31326 rm -f conftest.$ac_objext
31327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31328 (eval $ac_compile) 2>conftest.er1
31329 ac_status=$?
31330 grep -v '^ *+' conftest.er1 >conftest.err
31331 rm -f conftest.er1
31332 cat conftest.err >&5
31333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31334 (exit $ac_status); } &&
31335 { ac_try='test -z "$ac_c_werror_flag"
31336 || test ! -s conftest.err'
31337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31338 (eval $ac_try) 2>&5
31339 ac_status=$?
31340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31341 (exit $ac_status); }; } &&
31342 { ac_try='test -s conftest.$ac_objext'
31343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31344 (eval $ac_try) 2>&5
31345 ac_status=$?
31346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347 (exit $ac_status); }; }; then
31348 ac_cv_type_uint16_t=yes
31349 else
31350 echo "$as_me: failed program was:" >&5
31351 sed 's/^/| /' conftest.$ac_ext >&5
31352
31353 ac_cv_type_uint16_t=no
31354 fi
31355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31356 fi
31357 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
31358 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
31359
31360 echo "$as_me:$LINENO: checking size of uint16_t" >&5
31361 echo $ECHO_N "checking size of uint16_t... $ECHO_C" >&6
31362 if test "${ac_cv_sizeof_uint16_t+set}" = set; then
31363 echo $ECHO_N "(cached) $ECHO_C" >&6
31364 else
31365 if test "$ac_cv_type_uint16_t" = yes; then
31366 # The cast to unsigned long works around a bug in the HP C Compiler
31367 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31368 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31369 # This bug is HP SR number 8606223364.
31370 if test "$cross_compiling" = yes; then
31371 # Depending upon the size, compute the lo and hi bounds.
31372 cat >conftest.$ac_ext <<_ACEOF
31373 /* confdefs.h. */
31374 _ACEOF
31375 cat confdefs.h >>conftest.$ac_ext
31376 cat >>conftest.$ac_ext <<_ACEOF
31377 /* end confdefs.h. */
31378
31379 #include <stdio.h>
31380
31381 /* What a mess.. many systems have added the (now standard) bit types
31382 * in their own ways, so we need to scan a wide variety of headers to
31383 * find them..
31384 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31385 */
31386 #if HAVE_SYS_TYPES_H
31387 #include <sys/types.h>
31388 #endif
31389 #if STDC_HEADERS
31390 #include <stdlib.h>
31391 #include <stddef.h>
31392 #endif
31393 #if HAVE_INTTYPES_H
31394 #include <inttypes.h>
31395 #endif
31396 #if HAVE_SYS_BITYPES_H
31397 #include <sys/bitypes.h>
31398 #endif
31399 #if HAVE_SYS_SELECT_H
31400 #include <sys/select.h>
31401 #endif
31402
31403
31404
31405 int
31406 main ()
31407 {
31408 static int test_array [1 - 2 * !(((long) (sizeof (uint16_t))) >= 0)];
31409 test_array [0] = 0
31410
31411 ;
31412 return 0;
31413 }
31414 _ACEOF
31415 rm -f conftest.$ac_objext
31416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31417 (eval $ac_compile) 2>conftest.er1
31418 ac_status=$?
31419 grep -v '^ *+' conftest.er1 >conftest.err
31420 rm -f conftest.er1
31421 cat conftest.err >&5
31422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31423 (exit $ac_status); } &&
31424 { ac_try='test -z "$ac_c_werror_flag"
31425 || test ! -s conftest.err'
31426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31427 (eval $ac_try) 2>&5
31428 ac_status=$?
31429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31430 (exit $ac_status); }; } &&
31431 { ac_try='test -s conftest.$ac_objext'
31432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31433 (eval $ac_try) 2>&5
31434 ac_status=$?
31435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31436 (exit $ac_status); }; }; then
31437 ac_lo=0 ac_mid=0
31438 while :; do
31439 cat >conftest.$ac_ext <<_ACEOF
31440 /* confdefs.h. */
31441 _ACEOF
31442 cat confdefs.h >>conftest.$ac_ext
31443 cat >>conftest.$ac_ext <<_ACEOF
31444 /* end confdefs.h. */
31445
31446 #include <stdio.h>
31447
31448 /* What a mess.. many systems have added the (now standard) bit types
31449 * in their own ways, so we need to scan a wide variety of headers to
31450 * find them..
31451 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31452 */
31453 #if HAVE_SYS_TYPES_H
31454 #include <sys/types.h>
31455 #endif
31456 #if STDC_HEADERS
31457 #include <stdlib.h>
31458 #include <stddef.h>
31459 #endif
31460 #if HAVE_INTTYPES_H
31461 #include <inttypes.h>
31462 #endif
31463 #if HAVE_SYS_BITYPES_H
31464 #include <sys/bitypes.h>
31465 #endif
31466 #if HAVE_SYS_SELECT_H
31467 #include <sys/select.h>
31468 #endif
31469
31470
31471
31472 int
31473 main ()
31474 {
31475 static int test_array [1 - 2 * !(((long) (sizeof (uint16_t))) <= $ac_mid)];
31476 test_array [0] = 0
31477
31478 ;
31479 return 0;
31480 }
31481 _ACEOF
31482 rm -f conftest.$ac_objext
31483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31484 (eval $ac_compile) 2>conftest.er1
31485 ac_status=$?
31486 grep -v '^ *+' conftest.er1 >conftest.err
31487 rm -f conftest.er1
31488 cat conftest.err >&5
31489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490 (exit $ac_status); } &&
31491 { ac_try='test -z "$ac_c_werror_flag"
31492 || test ! -s conftest.err'
31493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31494 (eval $ac_try) 2>&5
31495 ac_status=$?
31496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31497 (exit $ac_status); }; } &&
31498 { ac_try='test -s conftest.$ac_objext'
31499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31500 (eval $ac_try) 2>&5
31501 ac_status=$?
31502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31503 (exit $ac_status); }; }; then
31504 ac_hi=$ac_mid; break
31505 else
31506 echo "$as_me: failed program was:" >&5
31507 sed 's/^/| /' conftest.$ac_ext >&5
31508
31509 ac_lo=`expr $ac_mid + 1`
31510 if test $ac_lo -le $ac_mid; then
31511 ac_lo= ac_hi=
31512 break
31513 fi
31514 ac_mid=`expr 2 '*' $ac_mid + 1`
31515 fi
31516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31517 done
31518 else
31519 echo "$as_me: failed program was:" >&5
31520 sed 's/^/| /' conftest.$ac_ext >&5
31521
31522 cat >conftest.$ac_ext <<_ACEOF
31523 /* confdefs.h. */
31524 _ACEOF
31525 cat confdefs.h >>conftest.$ac_ext
31526 cat >>conftest.$ac_ext <<_ACEOF
31527 /* end confdefs.h. */
31528
31529 #include <stdio.h>
31530
31531 /* What a mess.. many systems have added the (now standard) bit types
31532 * in their own ways, so we need to scan a wide variety of headers to
31533 * find them..
31534 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31535 */
31536 #if HAVE_SYS_TYPES_H
31537 #include <sys/types.h>
31538 #endif
31539 #if STDC_HEADERS
31540 #include <stdlib.h>
31541 #include <stddef.h>
31542 #endif
31543 #if HAVE_INTTYPES_H
31544 #include <inttypes.h>
31545 #endif
31546 #if HAVE_SYS_BITYPES_H
31547 #include <sys/bitypes.h>
31548 #endif
31549 #if HAVE_SYS_SELECT_H
31550 #include <sys/select.h>
31551 #endif
31552
31553
31554
31555 int
31556 main ()
31557 {
31558 static int test_array [1 - 2 * !(((long) (sizeof (uint16_t))) < 0)];
31559 test_array [0] = 0
31560
31561 ;
31562 return 0;
31563 }
31564 _ACEOF
31565 rm -f conftest.$ac_objext
31566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31567 (eval $ac_compile) 2>conftest.er1
31568 ac_status=$?
31569 grep -v '^ *+' conftest.er1 >conftest.err
31570 rm -f conftest.er1
31571 cat conftest.err >&5
31572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573 (exit $ac_status); } &&
31574 { ac_try='test -z "$ac_c_werror_flag"
31575 || test ! -s conftest.err'
31576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31577 (eval $ac_try) 2>&5
31578 ac_status=$?
31579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31580 (exit $ac_status); }; } &&
31581 { ac_try='test -s conftest.$ac_objext'
31582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31583 (eval $ac_try) 2>&5
31584 ac_status=$?
31585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31586 (exit $ac_status); }; }; then
31587 ac_hi=-1 ac_mid=-1
31588 while :; do
31589 cat >conftest.$ac_ext <<_ACEOF
31590 /* confdefs.h. */
31591 _ACEOF
31592 cat confdefs.h >>conftest.$ac_ext
31593 cat >>conftest.$ac_ext <<_ACEOF
31594 /* end confdefs.h. */
31595
31596 #include <stdio.h>
31597
31598 /* What a mess.. many systems have added the (now standard) bit types
31599 * in their own ways, so we need to scan a wide variety of headers to
31600 * find them..
31601 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31602 */
31603 #if HAVE_SYS_TYPES_H
31604 #include <sys/types.h>
31605 #endif
31606 #if STDC_HEADERS
31607 #include <stdlib.h>
31608 #include <stddef.h>
31609 #endif
31610 #if HAVE_INTTYPES_H
31611 #include <inttypes.h>
31612 #endif
31613 #if HAVE_SYS_BITYPES_H
31614 #include <sys/bitypes.h>
31615 #endif
31616 #if HAVE_SYS_SELECT_H
31617 #include <sys/select.h>
31618 #endif
31619
31620
31621
31622 int
31623 main ()
31624 {
31625 static int test_array [1 - 2 * !(((long) (sizeof (uint16_t))) >= $ac_mid)];
31626 test_array [0] = 0
31627
31628 ;
31629 return 0;
31630 }
31631 _ACEOF
31632 rm -f conftest.$ac_objext
31633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31634 (eval $ac_compile) 2>conftest.er1
31635 ac_status=$?
31636 grep -v '^ *+' conftest.er1 >conftest.err
31637 rm -f conftest.er1
31638 cat conftest.err >&5
31639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640 (exit $ac_status); } &&
31641 { ac_try='test -z "$ac_c_werror_flag"
31642 || test ! -s conftest.err'
31643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31644 (eval $ac_try) 2>&5
31645 ac_status=$?
31646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31647 (exit $ac_status); }; } &&
31648 { ac_try='test -s conftest.$ac_objext'
31649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31650 (eval $ac_try) 2>&5
31651 ac_status=$?
31652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653 (exit $ac_status); }; }; then
31654 ac_lo=$ac_mid; break
31655 else
31656 echo "$as_me: failed program was:" >&5
31657 sed 's/^/| /' conftest.$ac_ext >&5
31658
31659 ac_hi=`expr '(' $ac_mid ')' - 1`
31660 if test $ac_mid -le $ac_hi; then
31661 ac_lo= ac_hi=
31662 break
31663 fi
31664 ac_mid=`expr 2 '*' $ac_mid`
31665 fi
31666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31667 done
31668 else
31669 echo "$as_me: failed program was:" >&5
31670 sed 's/^/| /' conftest.$ac_ext >&5
31671
31672 ac_lo= ac_hi=
31673 fi
31674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31675 fi
31676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31677 # Binary search between lo and hi bounds.
31678 while test "x$ac_lo" != "x$ac_hi"; do
31679 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31680 cat >conftest.$ac_ext <<_ACEOF
31681 /* confdefs.h. */
31682 _ACEOF
31683 cat confdefs.h >>conftest.$ac_ext
31684 cat >>conftest.$ac_ext <<_ACEOF
31685 /* end confdefs.h. */
31686
31687 #include <stdio.h>
31688
31689 /* What a mess.. many systems have added the (now standard) bit types
31690 * in their own ways, so we need to scan a wide variety of headers to
31691 * find them..
31692 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31693 */
31694 #if HAVE_SYS_TYPES_H
31695 #include <sys/types.h>
31696 #endif
31697 #if STDC_HEADERS
31698 #include <stdlib.h>
31699 #include <stddef.h>
31700 #endif
31701 #if HAVE_INTTYPES_H
31702 #include <inttypes.h>
31703 #endif
31704 #if HAVE_SYS_BITYPES_H
31705 #include <sys/bitypes.h>
31706 #endif
31707 #if HAVE_SYS_SELECT_H
31708 #include <sys/select.h>
31709 #endif
31710
31711
31712
31713 int
31714 main ()
31715 {
31716 static int test_array [1 - 2 * !(((long) (sizeof (uint16_t))) <= $ac_mid)];
31717 test_array [0] = 0
31718
31719 ;
31720 return 0;
31721 }
31722 _ACEOF
31723 rm -f conftest.$ac_objext
31724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31725 (eval $ac_compile) 2>conftest.er1
31726 ac_status=$?
31727 grep -v '^ *+' conftest.er1 >conftest.err
31728 rm -f conftest.er1
31729 cat conftest.err >&5
31730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31731 (exit $ac_status); } &&
31732 { ac_try='test -z "$ac_c_werror_flag"
31733 || test ! -s conftest.err'
31734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31735 (eval $ac_try) 2>&5
31736 ac_status=$?
31737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31738 (exit $ac_status); }; } &&
31739 { ac_try='test -s conftest.$ac_objext'
31740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31741 (eval $ac_try) 2>&5
31742 ac_status=$?
31743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31744 (exit $ac_status); }; }; then
31745 ac_hi=$ac_mid
31746 else
31747 echo "$as_me: failed program was:" >&5
31748 sed 's/^/| /' conftest.$ac_ext >&5
31749
31750 ac_lo=`expr '(' $ac_mid ')' + 1`
31751 fi
31752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31753 done
31754 case $ac_lo in
31755 ?*) ac_cv_sizeof_uint16_t=$ac_lo;;
31756 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint16_t), 77
31757 See \`config.log' for more details." >&5
31758 echo "$as_me: error: cannot compute sizeof (uint16_t), 77
31759 See \`config.log' for more details." >&2;}
31760 { (exit 1); exit 1; }; } ;;
31761 esac
31762 else
31763 if test "$cross_compiling" = yes; then
31764 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
31765 See \`config.log' for more details." >&5
31766 echo "$as_me: error: cannot run test program while cross compiling
31767 See \`config.log' for more details." >&2;}
31768 { (exit 1); exit 1; }; }
31769 else
31770 cat >conftest.$ac_ext <<_ACEOF
31771 /* confdefs.h. */
31772 _ACEOF
31773 cat confdefs.h >>conftest.$ac_ext
31774 cat >>conftest.$ac_ext <<_ACEOF
31775 /* end confdefs.h. */
31776
31777 #include <stdio.h>
31778
31779 /* What a mess.. many systems have added the (now standard) bit types
31780 * in their own ways, so we need to scan a wide variety of headers to
31781 * find them..
31782 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31783 */
31784 #if HAVE_SYS_TYPES_H
31785 #include <sys/types.h>
31786 #endif
31787 #if STDC_HEADERS
31788 #include <stdlib.h>
31789 #include <stddef.h>
31790 #endif
31791 #if HAVE_INTTYPES_H
31792 #include <inttypes.h>
31793 #endif
31794 #if HAVE_SYS_BITYPES_H
31795 #include <sys/bitypes.h>
31796 #endif
31797 #if HAVE_SYS_SELECT_H
31798 #include <sys/select.h>
31799 #endif
31800
31801
31802
31803 long longval () { return (long) (sizeof (uint16_t)); }
31804 unsigned long ulongval () { return (long) (sizeof (uint16_t)); }
31805 #include <stdio.h>
31806 #include <stdlib.h>
31807 int
31808 main ()
31809 {
31810
31811 FILE *f = fopen ("conftest.val", "w");
31812 if (! f)
31813 exit (1);
31814 if (((long) (sizeof (uint16_t))) < 0)
31815 {
31816 long i = longval ();
31817 if (i != ((long) (sizeof (uint16_t))))
31818 exit (1);
31819 fprintf (f, "%ld\n", i);
31820 }
31821 else
31822 {
31823 unsigned long i = ulongval ();
31824 if (i != ((long) (sizeof (uint16_t))))
31825 exit (1);
31826 fprintf (f, "%lu\n", i);
31827 }
31828 exit (ferror (f) || fclose (f) != 0);
31829
31830 ;
31831 return 0;
31832 }
31833 _ACEOF
31834 rm -f conftest$ac_exeext
31835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31836 (eval $ac_link) 2>&5
31837 ac_status=$?
31838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31841 (eval $ac_try) 2>&5
31842 ac_status=$?
31843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31844 (exit $ac_status); }; }; then
31845 ac_cv_sizeof_uint16_t=`cat conftest.val`
31846 else
31847 echo "$as_me: program exited with status $ac_status" >&5
31848 echo "$as_me: failed program was:" >&5
31849 sed 's/^/| /' conftest.$ac_ext >&5
31850
31851 ( exit $ac_status )
31852 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint16_t), 77
31853 See \`config.log' for more details." >&5
31854 echo "$as_me: error: cannot compute sizeof (uint16_t), 77
31855 See \`config.log' for more details." >&2;}
31856 { (exit 1); exit 1; }; }
31857 fi
31858 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31859 fi
31860 fi
31861 rm -f conftest.val
31862 else
31863 ac_cv_sizeof_uint16_t=0
31864 fi
31865 fi
31866 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint16_t" >&5
31867 echo "${ECHO_T}$ac_cv_sizeof_uint16_t" >&6
31868 cat >>confdefs.h <<_ACEOF
31869 #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
31870 _ACEOF
31871
31872
31873
31874 cat >>confdefs.h <<\_ACEOF
31875 #define HAVE_UINT16_T 1
31876 _ACEOF
31877
31878
31879 fi
31880
31881
31882 echo "$as_me:$LINENO: checking for int32_t" >&5
31883 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
31884 if test "${ac_cv_type_int32_t+set}" = set; then
31885 echo $ECHO_N "(cached) $ECHO_C" >&6
31886 else
31887 cat >conftest.$ac_ext <<_ACEOF
31888 /* confdefs.h. */
31889 _ACEOF
31890 cat confdefs.h >>conftest.$ac_ext
31891 cat >>conftest.$ac_ext <<_ACEOF
31892 /* end confdefs.h. */
31893
31894 /* What a mess.. many systems have added the (now standard) bit types
31895 * in their own ways, so we need to scan a wide variety of headers to
31896 * find them..
31897 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31898 */
31899 #if HAVE_SYS_TYPES_H
31900 #include <sys/types.h>
31901 #endif
31902 #if STDC_HEADERS
31903 #include <stdlib.h>
31904 #include <stddef.h>
31905 #endif
31906 #if HAVE_INTTYPES_H
31907 #include <inttypes.h>
31908 #endif
31909 #if HAVE_SYS_BITYPES_H
31910 #include <sys/bitypes.h>
31911 #endif
31912 #if HAVE_SYS_SELECT_H
31913 #include <sys/select.h>
31914 #endif
31915
31916
31917 int
31918 main ()
31919 {
31920 if ((int32_t *) 0)
31921 return 0;
31922 if (sizeof (int32_t))
31923 return 0;
31924 ;
31925 return 0;
31926 }
31927 _ACEOF
31928 rm -f conftest.$ac_objext
31929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31930 (eval $ac_compile) 2>conftest.er1
31931 ac_status=$?
31932 grep -v '^ *+' conftest.er1 >conftest.err
31933 rm -f conftest.er1
31934 cat conftest.err >&5
31935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936 (exit $ac_status); } &&
31937 { ac_try='test -z "$ac_c_werror_flag"
31938 || test ! -s conftest.err'
31939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31940 (eval $ac_try) 2>&5
31941 ac_status=$?
31942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943 (exit $ac_status); }; } &&
31944 { ac_try='test -s conftest.$ac_objext'
31945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31946 (eval $ac_try) 2>&5
31947 ac_status=$?
31948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949 (exit $ac_status); }; }; then
31950 ac_cv_type_int32_t=yes
31951 else
31952 echo "$as_me: failed program was:" >&5
31953 sed 's/^/| /' conftest.$ac_ext >&5
31954
31955 ac_cv_type_int32_t=no
31956 fi
31957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31958 fi
31959 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
31960 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
31961 if test $ac_cv_type_int32_t = yes; then
31962
31963 echo "$as_me:$LINENO: checking for int32_t" >&5
31964 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
31965 if test "${ac_cv_type_int32_t+set}" = set; then
31966 echo $ECHO_N "(cached) $ECHO_C" >&6
31967 else
31968 cat >conftest.$ac_ext <<_ACEOF
31969 /* confdefs.h. */
31970 _ACEOF
31971 cat confdefs.h >>conftest.$ac_ext
31972 cat >>conftest.$ac_ext <<_ACEOF
31973 /* end confdefs.h. */
31974
31975 #include <stdio.h>
31976
31977 /* What a mess.. many systems have added the (now standard) bit types
31978 * in their own ways, so we need to scan a wide variety of headers to
31979 * find them..
31980 * IMPORTANT: Keep include/squid_types.h syncronised with this list
31981 */
31982 #if HAVE_SYS_TYPES_H
31983 #include <sys/types.h>
31984 #endif
31985 #if STDC_HEADERS
31986 #include <stdlib.h>
31987 #include <stddef.h>
31988 #endif
31989 #if HAVE_INTTYPES_H
31990 #include <inttypes.h>
31991 #endif
31992 #if HAVE_SYS_BITYPES_H
31993 #include <sys/bitypes.h>
31994 #endif
31995 #if HAVE_SYS_SELECT_H
31996 #include <sys/select.h>
31997 #endif
31998
31999
32000
32001 int
32002 main ()
32003 {
32004 if ((int32_t *) 0)
32005 return 0;
32006 if (sizeof (int32_t))
32007 return 0;
32008 ;
32009 return 0;
32010 }
32011 _ACEOF
32012 rm -f conftest.$ac_objext
32013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32014 (eval $ac_compile) 2>conftest.er1
32015 ac_status=$?
32016 grep -v '^ *+' conftest.er1 >conftest.err
32017 rm -f conftest.er1
32018 cat conftest.err >&5
32019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32020 (exit $ac_status); } &&
32021 { ac_try='test -z "$ac_c_werror_flag"
32022 || test ! -s conftest.err'
32023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32024 (eval $ac_try) 2>&5
32025 ac_status=$?
32026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32027 (exit $ac_status); }; } &&
32028 { ac_try='test -s conftest.$ac_objext'
32029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32030 (eval $ac_try) 2>&5
32031 ac_status=$?
32032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033 (exit $ac_status); }; }; then
32034 ac_cv_type_int32_t=yes
32035 else
32036 echo "$as_me: failed program was:" >&5
32037 sed 's/^/| /' conftest.$ac_ext >&5
32038
32039 ac_cv_type_int32_t=no
32040 fi
32041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32042 fi
32043 echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
32044 echo "${ECHO_T}$ac_cv_type_int32_t" >&6
32045
32046 echo "$as_me:$LINENO: checking size of int32_t" >&5
32047 echo $ECHO_N "checking size of int32_t... $ECHO_C" >&6
32048 if test "${ac_cv_sizeof_int32_t+set}" = set; then
32049 echo $ECHO_N "(cached) $ECHO_C" >&6
32050 else
32051 if test "$ac_cv_type_int32_t" = yes; then
32052 # The cast to unsigned long works around a bug in the HP C Compiler
32053 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32054 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32055 # This bug is HP SR number 8606223364.
32056 if test "$cross_compiling" = yes; then
32057 # Depending upon the size, compute the lo and hi bounds.
32058 cat >conftest.$ac_ext <<_ACEOF
32059 /* confdefs.h. */
32060 _ACEOF
32061 cat confdefs.h >>conftest.$ac_ext
32062 cat >>conftest.$ac_ext <<_ACEOF
32063 /* end confdefs.h. */
32064
32065 #include <stdio.h>
32066
32067 /* What a mess.. many systems have added the (now standard) bit types
32068 * in their own ways, so we need to scan a wide variety of headers to
32069 * find them..
32070 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32071 */
32072 #if HAVE_SYS_TYPES_H
32073 #include <sys/types.h>
32074 #endif
32075 #if STDC_HEADERS
32076 #include <stdlib.h>
32077 #include <stddef.h>
32078 #endif
32079 #if HAVE_INTTYPES_H
32080 #include <inttypes.h>
32081 #endif
32082 #if HAVE_SYS_BITYPES_H
32083 #include <sys/bitypes.h>
32084 #endif
32085 #if HAVE_SYS_SELECT_H
32086 #include <sys/select.h>
32087 #endif
32088
32089
32090
32091 int
32092 main ()
32093 {
32094 static int test_array [1 - 2 * !(((long) (sizeof (int32_t))) >= 0)];
32095 test_array [0] = 0
32096
32097 ;
32098 return 0;
32099 }
32100 _ACEOF
32101 rm -f conftest.$ac_objext
32102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32103 (eval $ac_compile) 2>conftest.er1
32104 ac_status=$?
32105 grep -v '^ *+' conftest.er1 >conftest.err
32106 rm -f conftest.er1
32107 cat conftest.err >&5
32108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109 (exit $ac_status); } &&
32110 { ac_try='test -z "$ac_c_werror_flag"
32111 || test ! -s conftest.err'
32112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32113 (eval $ac_try) 2>&5
32114 ac_status=$?
32115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32116 (exit $ac_status); }; } &&
32117 { ac_try='test -s conftest.$ac_objext'
32118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32119 (eval $ac_try) 2>&5
32120 ac_status=$?
32121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32122 (exit $ac_status); }; }; then
32123 ac_lo=0 ac_mid=0
32124 while :; do
32125 cat >conftest.$ac_ext <<_ACEOF
32126 /* confdefs.h. */
32127 _ACEOF
32128 cat confdefs.h >>conftest.$ac_ext
32129 cat >>conftest.$ac_ext <<_ACEOF
32130 /* end confdefs.h. */
32131
32132 #include <stdio.h>
32133
32134 /* What a mess.. many systems have added the (now standard) bit types
32135 * in their own ways, so we need to scan a wide variety of headers to
32136 * find them..
32137 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32138 */
32139 #if HAVE_SYS_TYPES_H
32140 #include <sys/types.h>
32141 #endif
32142 #if STDC_HEADERS
32143 #include <stdlib.h>
32144 #include <stddef.h>
32145 #endif
32146 #if HAVE_INTTYPES_H
32147 #include <inttypes.h>
32148 #endif
32149 #if HAVE_SYS_BITYPES_H
32150 #include <sys/bitypes.h>
32151 #endif
32152 #if HAVE_SYS_SELECT_H
32153 #include <sys/select.h>
32154 #endif
32155
32156
32157
32158 int
32159 main ()
32160 {
32161 static int test_array [1 - 2 * !(((long) (sizeof (int32_t))) <= $ac_mid)];
32162 test_array [0] = 0
32163
32164 ;
32165 return 0;
32166 }
32167 _ACEOF
32168 rm -f conftest.$ac_objext
32169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32170 (eval $ac_compile) 2>conftest.er1
32171 ac_status=$?
32172 grep -v '^ *+' conftest.er1 >conftest.err
32173 rm -f conftest.er1
32174 cat conftest.err >&5
32175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32176 (exit $ac_status); } &&
32177 { ac_try='test -z "$ac_c_werror_flag"
32178 || test ! -s conftest.err'
32179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32180 (eval $ac_try) 2>&5
32181 ac_status=$?
32182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183 (exit $ac_status); }; } &&
32184 { ac_try='test -s conftest.$ac_objext'
32185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32186 (eval $ac_try) 2>&5
32187 ac_status=$?
32188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32189 (exit $ac_status); }; }; then
32190 ac_hi=$ac_mid; break
32191 else
32192 echo "$as_me: failed program was:" >&5
32193 sed 's/^/| /' conftest.$ac_ext >&5
32194
32195 ac_lo=`expr $ac_mid + 1`
32196 if test $ac_lo -le $ac_mid; then
32197 ac_lo= ac_hi=
32198 break
32199 fi
32200 ac_mid=`expr 2 '*' $ac_mid + 1`
32201 fi
32202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32203 done
32204 else
32205 echo "$as_me: failed program was:" >&5
32206 sed 's/^/| /' conftest.$ac_ext >&5
32207
32208 cat >conftest.$ac_ext <<_ACEOF
32209 /* confdefs.h. */
32210 _ACEOF
32211 cat confdefs.h >>conftest.$ac_ext
32212 cat >>conftest.$ac_ext <<_ACEOF
32213 /* end confdefs.h. */
32214
32215 #include <stdio.h>
32216
32217 /* What a mess.. many systems have added the (now standard) bit types
32218 * in their own ways, so we need to scan a wide variety of headers to
32219 * find them..
32220 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32221 */
32222 #if HAVE_SYS_TYPES_H
32223 #include <sys/types.h>
32224 #endif
32225 #if STDC_HEADERS
32226 #include <stdlib.h>
32227 #include <stddef.h>
32228 #endif
32229 #if HAVE_INTTYPES_H
32230 #include <inttypes.h>
32231 #endif
32232 #if HAVE_SYS_BITYPES_H
32233 #include <sys/bitypes.h>
32234 #endif
32235 #if HAVE_SYS_SELECT_H
32236 #include <sys/select.h>
32237 #endif
32238
32239
32240
32241 int
32242 main ()
32243 {
32244 static int test_array [1 - 2 * !(((long) (sizeof (int32_t))) < 0)];
32245 test_array [0] = 0
32246
32247 ;
32248 return 0;
32249 }
32250 _ACEOF
32251 rm -f conftest.$ac_objext
32252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32253 (eval $ac_compile) 2>conftest.er1
32254 ac_status=$?
32255 grep -v '^ *+' conftest.er1 >conftest.err
32256 rm -f conftest.er1
32257 cat conftest.err >&5
32258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32259 (exit $ac_status); } &&
32260 { ac_try='test -z "$ac_c_werror_flag"
32261 || test ! -s conftest.err'
32262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32263 (eval $ac_try) 2>&5
32264 ac_status=$?
32265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32266 (exit $ac_status); }; } &&
32267 { ac_try='test -s conftest.$ac_objext'
32268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32269 (eval $ac_try) 2>&5
32270 ac_status=$?
32271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32272 (exit $ac_status); }; }; then
32273 ac_hi=-1 ac_mid=-1
32274 while :; do
32275 cat >conftest.$ac_ext <<_ACEOF
32276 /* confdefs.h. */
32277 _ACEOF
32278 cat confdefs.h >>conftest.$ac_ext
32279 cat >>conftest.$ac_ext <<_ACEOF
32280 /* end confdefs.h. */
32281
32282 #include <stdio.h>
32283
32284 /* What a mess.. many systems have added the (now standard) bit types
32285 * in their own ways, so we need to scan a wide variety of headers to
32286 * find them..
32287 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32288 */
32289 #if HAVE_SYS_TYPES_H
32290 #include <sys/types.h>
32291 #endif
32292 #if STDC_HEADERS
32293 #include <stdlib.h>
32294 #include <stddef.h>
32295 #endif
32296 #if HAVE_INTTYPES_H
32297 #include <inttypes.h>
32298 #endif
32299 #if HAVE_SYS_BITYPES_H
32300 #include <sys/bitypes.h>
32301 #endif
32302 #if HAVE_SYS_SELECT_H
32303 #include <sys/select.h>
32304 #endif
32305
32306
32307
32308 int
32309 main ()
32310 {
32311 static int test_array [1 - 2 * !(((long) (sizeof (int32_t))) >= $ac_mid)];
32312 test_array [0] = 0
32313
32314 ;
32315 return 0;
32316 }
32317 _ACEOF
32318 rm -f conftest.$ac_objext
32319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32320 (eval $ac_compile) 2>conftest.er1
32321 ac_status=$?
32322 grep -v '^ *+' conftest.er1 >conftest.err
32323 rm -f conftest.er1
32324 cat conftest.err >&5
32325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32326 (exit $ac_status); } &&
32327 { ac_try='test -z "$ac_c_werror_flag"
32328 || test ! -s conftest.err'
32329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32330 (eval $ac_try) 2>&5
32331 ac_status=$?
32332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32333 (exit $ac_status); }; } &&
32334 { ac_try='test -s conftest.$ac_objext'
32335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32336 (eval $ac_try) 2>&5
32337 ac_status=$?
32338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32339 (exit $ac_status); }; }; then
32340 ac_lo=$ac_mid; break
32341 else
32342 echo "$as_me: failed program was:" >&5
32343 sed 's/^/| /' conftest.$ac_ext >&5
32344
32345 ac_hi=`expr '(' $ac_mid ')' - 1`
32346 if test $ac_mid -le $ac_hi; then
32347 ac_lo= ac_hi=
32348 break
32349 fi
32350 ac_mid=`expr 2 '*' $ac_mid`
32351 fi
32352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32353 done
32354 else
32355 echo "$as_me: failed program was:" >&5
32356 sed 's/^/| /' conftest.$ac_ext >&5
32357
32358 ac_lo= ac_hi=
32359 fi
32360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32361 fi
32362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32363 # Binary search between lo and hi bounds.
32364 while test "x$ac_lo" != "x$ac_hi"; do
32365 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32366 cat >conftest.$ac_ext <<_ACEOF
32367 /* confdefs.h. */
32368 _ACEOF
32369 cat confdefs.h >>conftest.$ac_ext
32370 cat >>conftest.$ac_ext <<_ACEOF
32371 /* end confdefs.h. */
32372
32373 #include <stdio.h>
32374
32375 /* What a mess.. many systems have added the (now standard) bit types
32376 * in their own ways, so we need to scan a wide variety of headers to
32377 * find them..
32378 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32379 */
32380 #if HAVE_SYS_TYPES_H
32381 #include <sys/types.h>
32382 #endif
32383 #if STDC_HEADERS
32384 #include <stdlib.h>
32385 #include <stddef.h>
32386 #endif
32387 #if HAVE_INTTYPES_H
32388 #include <inttypes.h>
32389 #endif
32390 #if HAVE_SYS_BITYPES_H
32391 #include <sys/bitypes.h>
32392 #endif
32393 #if HAVE_SYS_SELECT_H
32394 #include <sys/select.h>
32395 #endif
32396
32397
32398
32399 int
32400 main ()
32401 {
32402 static int test_array [1 - 2 * !(((long) (sizeof (int32_t))) <= $ac_mid)];
32403 test_array [0] = 0
32404
32405 ;
32406 return 0;
32407 }
32408 _ACEOF
32409 rm -f conftest.$ac_objext
32410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32411 (eval $ac_compile) 2>conftest.er1
32412 ac_status=$?
32413 grep -v '^ *+' conftest.er1 >conftest.err
32414 rm -f conftest.er1
32415 cat conftest.err >&5
32416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417 (exit $ac_status); } &&
32418 { ac_try='test -z "$ac_c_werror_flag"
32419 || test ! -s conftest.err'
32420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32421 (eval $ac_try) 2>&5
32422 ac_status=$?
32423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32424 (exit $ac_status); }; } &&
32425 { ac_try='test -s conftest.$ac_objext'
32426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32427 (eval $ac_try) 2>&5
32428 ac_status=$?
32429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32430 (exit $ac_status); }; }; then
32431 ac_hi=$ac_mid
32432 else
32433 echo "$as_me: failed program was:" >&5
32434 sed 's/^/| /' conftest.$ac_ext >&5
32435
32436 ac_lo=`expr '(' $ac_mid ')' + 1`
32437 fi
32438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32439 done
32440 case $ac_lo in
32441 ?*) ac_cv_sizeof_int32_t=$ac_lo;;
32442 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int32_t), 77
32443 See \`config.log' for more details." >&5
32444 echo "$as_me: error: cannot compute sizeof (int32_t), 77
32445 See \`config.log' for more details." >&2;}
32446 { (exit 1); exit 1; }; } ;;
32447 esac
32448 else
32449 if test "$cross_compiling" = yes; then
32450 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
32451 See \`config.log' for more details." >&5
32452 echo "$as_me: error: cannot run test program while cross compiling
32453 See \`config.log' for more details." >&2;}
32454 { (exit 1); exit 1; }; }
32455 else
32456 cat >conftest.$ac_ext <<_ACEOF
32457 /* confdefs.h. */
32458 _ACEOF
32459 cat confdefs.h >>conftest.$ac_ext
32460 cat >>conftest.$ac_ext <<_ACEOF
32461 /* end confdefs.h. */
32462
32463 #include <stdio.h>
32464
32465 /* What a mess.. many systems have added the (now standard) bit types
32466 * in their own ways, so we need to scan a wide variety of headers to
32467 * find them..
32468 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32469 */
32470 #if HAVE_SYS_TYPES_H
32471 #include <sys/types.h>
32472 #endif
32473 #if STDC_HEADERS
32474 #include <stdlib.h>
32475 #include <stddef.h>
32476 #endif
32477 #if HAVE_INTTYPES_H
32478 #include <inttypes.h>
32479 #endif
32480 #if HAVE_SYS_BITYPES_H
32481 #include <sys/bitypes.h>
32482 #endif
32483 #if HAVE_SYS_SELECT_H
32484 #include <sys/select.h>
32485 #endif
32486
32487
32488
32489 long longval () { return (long) (sizeof (int32_t)); }
32490 unsigned long ulongval () { return (long) (sizeof (int32_t)); }
32491 #include <stdio.h>
32492 #include <stdlib.h>
32493 int
32494 main ()
32495 {
32496
32497 FILE *f = fopen ("conftest.val", "w");
32498 if (! f)
32499 exit (1);
32500 if (((long) (sizeof (int32_t))) < 0)
32501 {
32502 long i = longval ();
32503 if (i != ((long) (sizeof (int32_t))))
32504 exit (1);
32505 fprintf (f, "%ld\n", i);
32506 }
32507 else
32508 {
32509 unsigned long i = ulongval ();
32510 if (i != ((long) (sizeof (int32_t))))
32511 exit (1);
32512 fprintf (f, "%lu\n", i);
32513 }
32514 exit (ferror (f) || fclose (f) != 0);
32515
32516 ;
32517 return 0;
32518 }
32519 _ACEOF
32520 rm -f conftest$ac_exeext
32521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32522 (eval $ac_link) 2>&5
32523 ac_status=$?
32524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32527 (eval $ac_try) 2>&5
32528 ac_status=$?
32529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32530 (exit $ac_status); }; }; then
32531 ac_cv_sizeof_int32_t=`cat conftest.val`
32532 else
32533 echo "$as_me: program exited with status $ac_status" >&5
32534 echo "$as_me: failed program was:" >&5
32535 sed 's/^/| /' conftest.$ac_ext >&5
32536
32537 ( exit $ac_status )
32538 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int32_t), 77
32539 See \`config.log' for more details." >&5
32540 echo "$as_me: error: cannot compute sizeof (int32_t), 77
32541 See \`config.log' for more details." >&2;}
32542 { (exit 1); exit 1; }; }
32543 fi
32544 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32545 fi
32546 fi
32547 rm -f conftest.val
32548 else
32549 ac_cv_sizeof_int32_t=0
32550 fi
32551 fi
32552 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int32_t" >&5
32553 echo "${ECHO_T}$ac_cv_sizeof_int32_t" >&6
32554 cat >>confdefs.h <<_ACEOF
32555 #define SIZEOF_INT32_T $ac_cv_sizeof_int32_t
32556 _ACEOF
32557
32558
32559
32560 cat >>confdefs.h <<\_ACEOF
32561 #define HAVE_INT32_T 1
32562 _ACEOF
32563
32564
32565 fi
32566
32567
32568 echo "$as_me:$LINENO: checking for long" >&5
32569 echo $ECHO_N "checking for long... $ECHO_C" >&6
32570 if test "${ac_cv_type_long+set}" = set; then
32571 echo $ECHO_N "(cached) $ECHO_C" >&6
32572 else
32573 cat >conftest.$ac_ext <<_ACEOF
32574 /* confdefs.h. */
32575 _ACEOF
32576 cat confdefs.h >>conftest.$ac_ext
32577 cat >>conftest.$ac_ext <<_ACEOF
32578 /* end confdefs.h. */
32579
32580 /* What a mess.. many systems have added the (now standard) bit types
32581 * in their own ways, so we need to scan a wide variety of headers to
32582 * find them..
32583 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32584 */
32585 #if HAVE_SYS_TYPES_H
32586 #include <sys/types.h>
32587 #endif
32588 #if STDC_HEADERS
32589 #include <stdlib.h>
32590 #include <stddef.h>
32591 #endif
32592 #if HAVE_INTTYPES_H
32593 #include <inttypes.h>
32594 #endif
32595 #if HAVE_SYS_BITYPES_H
32596 #include <sys/bitypes.h>
32597 #endif
32598 #if HAVE_SYS_SELECT_H
32599 #include <sys/select.h>
32600 #endif
32601
32602
32603 int
32604 main ()
32605 {
32606 if ((long *) 0)
32607 return 0;
32608 if (sizeof (long))
32609 return 0;
32610 ;
32611 return 0;
32612 }
32613 _ACEOF
32614 rm -f conftest.$ac_objext
32615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32616 (eval $ac_compile) 2>conftest.er1
32617 ac_status=$?
32618 grep -v '^ *+' conftest.er1 >conftest.err
32619 rm -f conftest.er1
32620 cat conftest.err >&5
32621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32622 (exit $ac_status); } &&
32623 { ac_try='test -z "$ac_c_werror_flag"
32624 || test ! -s conftest.err'
32625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32626 (eval $ac_try) 2>&5
32627 ac_status=$?
32628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32629 (exit $ac_status); }; } &&
32630 { ac_try='test -s conftest.$ac_objext'
32631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32632 (eval $ac_try) 2>&5
32633 ac_status=$?
32634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32635 (exit $ac_status); }; }; then
32636 ac_cv_type_long=yes
32637 else
32638 echo "$as_me: failed program was:" >&5
32639 sed 's/^/| /' conftest.$ac_ext >&5
32640
32641 ac_cv_type_long=no
32642 fi
32643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32644 fi
32645 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
32646 echo "${ECHO_T}$ac_cv_type_long" >&6
32647 if test $ac_cv_type_long = yes; then
32648
32649 echo "$as_me:$LINENO: checking for long" >&5
32650 echo $ECHO_N "checking for long... $ECHO_C" >&6
32651 if test "${ac_cv_type_long+set}" = set; then
32652 echo $ECHO_N "(cached) $ECHO_C" >&6
32653 else
32654 cat >conftest.$ac_ext <<_ACEOF
32655 /* confdefs.h. */
32656 _ACEOF
32657 cat confdefs.h >>conftest.$ac_ext
32658 cat >>conftest.$ac_ext <<_ACEOF
32659 /* end confdefs.h. */
32660
32661 #include <stdio.h>
32662
32663 /* What a mess.. many systems have added the (now standard) bit types
32664 * in their own ways, so we need to scan a wide variety of headers to
32665 * find them..
32666 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32667 */
32668 #if HAVE_SYS_TYPES_H
32669 #include <sys/types.h>
32670 #endif
32671 #if STDC_HEADERS
32672 #include <stdlib.h>
32673 #include <stddef.h>
32674 #endif
32675 #if HAVE_INTTYPES_H
32676 #include <inttypes.h>
32677 #endif
32678 #if HAVE_SYS_BITYPES_H
32679 #include <sys/bitypes.h>
32680 #endif
32681 #if HAVE_SYS_SELECT_H
32682 #include <sys/select.h>
32683 #endif
32684
32685
32686
32687 int
32688 main ()
32689 {
32690 if ((long *) 0)
32691 return 0;
32692 if (sizeof (long))
32693 return 0;
32694 ;
32695 return 0;
32696 }
32697 _ACEOF
32698 rm -f conftest.$ac_objext
32699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32700 (eval $ac_compile) 2>conftest.er1
32701 ac_status=$?
32702 grep -v '^ *+' conftest.er1 >conftest.err
32703 rm -f conftest.er1
32704 cat conftest.err >&5
32705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706 (exit $ac_status); } &&
32707 { ac_try='test -z "$ac_c_werror_flag"
32708 || test ! -s conftest.err'
32709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32710 (eval $ac_try) 2>&5
32711 ac_status=$?
32712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32713 (exit $ac_status); }; } &&
32714 { ac_try='test -s conftest.$ac_objext'
32715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32716 (eval $ac_try) 2>&5
32717 ac_status=$?
32718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32719 (exit $ac_status); }; }; then
32720 ac_cv_type_long=yes
32721 else
32722 echo "$as_me: failed program was:" >&5
32723 sed 's/^/| /' conftest.$ac_ext >&5
32724
32725 ac_cv_type_long=no
32726 fi
32727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32728 fi
32729 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
32730 echo "${ECHO_T}$ac_cv_type_long" >&6
32731
32732 echo "$as_me:$LINENO: checking size of long" >&5
32733 echo $ECHO_N "checking size of long... $ECHO_C" >&6
32734 if test "${ac_cv_sizeof_long+set}" = set; then
32735 echo $ECHO_N "(cached) $ECHO_C" >&6
32736 else
32737 if test "$ac_cv_type_long" = yes; then
32738 # The cast to unsigned long works around a bug in the HP C Compiler
32739 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
32740 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
32741 # This bug is HP SR number 8606223364.
32742 if test "$cross_compiling" = yes; then
32743 # Depending upon the size, compute the lo and hi bounds.
32744 cat >conftest.$ac_ext <<_ACEOF
32745 /* confdefs.h. */
32746 _ACEOF
32747 cat confdefs.h >>conftest.$ac_ext
32748 cat >>conftest.$ac_ext <<_ACEOF
32749 /* end confdefs.h. */
32750
32751 #include <stdio.h>
32752
32753 /* What a mess.. many systems have added the (now standard) bit types
32754 * in their own ways, so we need to scan a wide variety of headers to
32755 * find them..
32756 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32757 */
32758 #if HAVE_SYS_TYPES_H
32759 #include <sys/types.h>
32760 #endif
32761 #if STDC_HEADERS
32762 #include <stdlib.h>
32763 #include <stddef.h>
32764 #endif
32765 #if HAVE_INTTYPES_H
32766 #include <inttypes.h>
32767 #endif
32768 #if HAVE_SYS_BITYPES_H
32769 #include <sys/bitypes.h>
32770 #endif
32771 #if HAVE_SYS_SELECT_H
32772 #include <sys/select.h>
32773 #endif
32774
32775
32776
32777 int
32778 main ()
32779 {
32780 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
32781 test_array [0] = 0
32782
32783 ;
32784 return 0;
32785 }
32786 _ACEOF
32787 rm -f conftest.$ac_objext
32788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32789 (eval $ac_compile) 2>conftest.er1
32790 ac_status=$?
32791 grep -v '^ *+' conftest.er1 >conftest.err
32792 rm -f conftest.er1
32793 cat conftest.err >&5
32794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32795 (exit $ac_status); } &&
32796 { ac_try='test -z "$ac_c_werror_flag"
32797 || test ! -s conftest.err'
32798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32799 (eval $ac_try) 2>&5
32800 ac_status=$?
32801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802 (exit $ac_status); }; } &&
32803 { ac_try='test -s conftest.$ac_objext'
32804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32805 (eval $ac_try) 2>&5
32806 ac_status=$?
32807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32808 (exit $ac_status); }; }; then
32809 ac_lo=0 ac_mid=0
32810 while :; do
32811 cat >conftest.$ac_ext <<_ACEOF
32812 /* confdefs.h. */
32813 _ACEOF
32814 cat confdefs.h >>conftest.$ac_ext
32815 cat >>conftest.$ac_ext <<_ACEOF
32816 /* end confdefs.h. */
32817
32818 #include <stdio.h>
32819
32820 /* What a mess.. many systems have added the (now standard) bit types
32821 * in their own ways, so we need to scan a wide variety of headers to
32822 * find them..
32823 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32824 */
32825 #if HAVE_SYS_TYPES_H
32826 #include <sys/types.h>
32827 #endif
32828 #if STDC_HEADERS
32829 #include <stdlib.h>
32830 #include <stddef.h>
32831 #endif
32832 #if HAVE_INTTYPES_H
32833 #include <inttypes.h>
32834 #endif
32835 #if HAVE_SYS_BITYPES_H
32836 #include <sys/bitypes.h>
32837 #endif
32838 #if HAVE_SYS_SELECT_H
32839 #include <sys/select.h>
32840 #endif
32841
32842
32843
32844 int
32845 main ()
32846 {
32847 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
32848 test_array [0] = 0
32849
32850 ;
32851 return 0;
32852 }
32853 _ACEOF
32854 rm -f conftest.$ac_objext
32855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32856 (eval $ac_compile) 2>conftest.er1
32857 ac_status=$?
32858 grep -v '^ *+' conftest.er1 >conftest.err
32859 rm -f conftest.er1
32860 cat conftest.err >&5
32861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32862 (exit $ac_status); } &&
32863 { ac_try='test -z "$ac_c_werror_flag"
32864 || test ! -s conftest.err'
32865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32866 (eval $ac_try) 2>&5
32867 ac_status=$?
32868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32869 (exit $ac_status); }; } &&
32870 { ac_try='test -s conftest.$ac_objext'
32871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32872 (eval $ac_try) 2>&5
32873 ac_status=$?
32874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32875 (exit $ac_status); }; }; then
32876 ac_hi=$ac_mid; break
32877 else
32878 echo "$as_me: failed program was:" >&5
32879 sed 's/^/| /' conftest.$ac_ext >&5
32880
32881 ac_lo=`expr $ac_mid + 1`
32882 if test $ac_lo -le $ac_mid; then
32883 ac_lo= ac_hi=
32884 break
32885 fi
32886 ac_mid=`expr 2 '*' $ac_mid + 1`
32887 fi
32888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32889 done
32890 else
32891 echo "$as_me: failed program was:" >&5
32892 sed 's/^/| /' conftest.$ac_ext >&5
32893
32894 cat >conftest.$ac_ext <<_ACEOF
32895 /* confdefs.h. */
32896 _ACEOF
32897 cat confdefs.h >>conftest.$ac_ext
32898 cat >>conftest.$ac_ext <<_ACEOF
32899 /* end confdefs.h. */
32900
32901 #include <stdio.h>
32902
32903 /* What a mess.. many systems have added the (now standard) bit types
32904 * in their own ways, so we need to scan a wide variety of headers to
32905 * find them..
32906 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32907 */
32908 #if HAVE_SYS_TYPES_H
32909 #include <sys/types.h>
32910 #endif
32911 #if STDC_HEADERS
32912 #include <stdlib.h>
32913 #include <stddef.h>
32914 #endif
32915 #if HAVE_INTTYPES_H
32916 #include <inttypes.h>
32917 #endif
32918 #if HAVE_SYS_BITYPES_H
32919 #include <sys/bitypes.h>
32920 #endif
32921 #if HAVE_SYS_SELECT_H
32922 #include <sys/select.h>
32923 #endif
32924
32925
32926
32927 int
32928 main ()
32929 {
32930 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
32931 test_array [0] = 0
32932
32933 ;
32934 return 0;
32935 }
32936 _ACEOF
32937 rm -f conftest.$ac_objext
32938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32939 (eval $ac_compile) 2>conftest.er1
32940 ac_status=$?
32941 grep -v '^ *+' conftest.er1 >conftest.err
32942 rm -f conftest.er1
32943 cat conftest.err >&5
32944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945 (exit $ac_status); } &&
32946 { ac_try='test -z "$ac_c_werror_flag"
32947 || test ! -s conftest.err'
32948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32949 (eval $ac_try) 2>&5
32950 ac_status=$?
32951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32952 (exit $ac_status); }; } &&
32953 { ac_try='test -s conftest.$ac_objext'
32954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32955 (eval $ac_try) 2>&5
32956 ac_status=$?
32957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32958 (exit $ac_status); }; }; then
32959 ac_hi=-1 ac_mid=-1
32960 while :; do
32961 cat >conftest.$ac_ext <<_ACEOF
32962 /* confdefs.h. */
32963 _ACEOF
32964 cat confdefs.h >>conftest.$ac_ext
32965 cat >>conftest.$ac_ext <<_ACEOF
32966 /* end confdefs.h. */
32967
32968 #include <stdio.h>
32969
32970 /* What a mess.. many systems have added the (now standard) bit types
32971 * in their own ways, so we need to scan a wide variety of headers to
32972 * find them..
32973 * IMPORTANT: Keep include/squid_types.h syncronised with this list
32974 */
32975 #if HAVE_SYS_TYPES_H
32976 #include <sys/types.h>
32977 #endif
32978 #if STDC_HEADERS
32979 #include <stdlib.h>
32980 #include <stddef.h>
32981 #endif
32982 #if HAVE_INTTYPES_H
32983 #include <inttypes.h>
32984 #endif
32985 #if HAVE_SYS_BITYPES_H
32986 #include <sys/bitypes.h>
32987 #endif
32988 #if HAVE_SYS_SELECT_H
32989 #include <sys/select.h>
32990 #endif
32991
32992
32993
32994 int
32995 main ()
32996 {
32997 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
32998 test_array [0] = 0
32999
33000 ;
33001 return 0;
33002 }
33003 _ACEOF
33004 rm -f conftest.$ac_objext
33005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33006 (eval $ac_compile) 2>conftest.er1
33007 ac_status=$?
33008 grep -v '^ *+' conftest.er1 >conftest.err
33009 rm -f conftest.er1
33010 cat conftest.err >&5
33011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33012 (exit $ac_status); } &&
33013 { ac_try='test -z "$ac_c_werror_flag"
33014 || test ! -s conftest.err'
33015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33016 (eval $ac_try) 2>&5
33017 ac_status=$?
33018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33019 (exit $ac_status); }; } &&
33020 { ac_try='test -s conftest.$ac_objext'
33021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33022 (eval $ac_try) 2>&5
33023 ac_status=$?
33024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33025 (exit $ac_status); }; }; then
33026 ac_lo=$ac_mid; break
33027 else
33028 echo "$as_me: failed program was:" >&5
33029 sed 's/^/| /' conftest.$ac_ext >&5
33030
33031 ac_hi=`expr '(' $ac_mid ')' - 1`
33032 if test $ac_mid -le $ac_hi; then
33033 ac_lo= ac_hi=
33034 break
33035 fi
33036 ac_mid=`expr 2 '*' $ac_mid`
33037 fi
33038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33039 done
33040 else
33041 echo "$as_me: failed program was:" >&5
33042 sed 's/^/| /' conftest.$ac_ext >&5
33043
33044 ac_lo= ac_hi=
33045 fi
33046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33047 fi
33048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33049 # Binary search between lo and hi bounds.
33050 while test "x$ac_lo" != "x$ac_hi"; do
33051 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33052 cat >conftest.$ac_ext <<_ACEOF
33053 /* confdefs.h. */
33054 _ACEOF
33055 cat confdefs.h >>conftest.$ac_ext
33056 cat >>conftest.$ac_ext <<_ACEOF
33057 /* end confdefs.h. */
33058
33059 #include <stdio.h>
33060
33061 /* What a mess.. many systems have added the (now standard) bit types
33062 * in their own ways, so we need to scan a wide variety of headers to
33063 * find them..
33064 * IMPORTANT: Keep include/squid_types.h syncronised with this list
33065 */
33066 #if HAVE_SYS_TYPES_H
33067 #include <sys/types.h>
33068 #endif
33069 #if STDC_HEADERS
33070 #include <stdlib.h>
33071 #include <stddef.h>
33072 #endif
33073 #if HAVE_INTTYPES_H
33074 #include <inttypes.h>
33075 #endif
33076 #if HAVE_SYS_BITYPES_H
33077 #include <sys/bitypes.h>
33078 #endif
33079 #if HAVE_SYS_SELECT_H
33080 #include <sys/select.h>
33081 #endif
33082
33083
33084
33085 int
33086 main ()
33087 {
33088 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
33089 test_array [0] = 0
33090
33091 ;
33092 return 0;
33093 }
33094 _ACEOF
33095 rm -f conftest.$ac_objext
33096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33097 (eval $ac_compile) 2>conftest.er1
33098 ac_status=$?
33099 grep -v '^ *+' conftest.er1 >conftest.err
33100 rm -f conftest.er1
33101 cat conftest.err >&5
33102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33103 (exit $ac_status); } &&
33104 { ac_try='test -z "$ac_c_werror_flag"
33105 || test ! -s conftest.err'
33106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33107 (eval $ac_try) 2>&5
33108 ac_status=$?
33109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33110 (exit $ac_status); }; } &&
33111 { ac_try='test -s conftest.$ac_objext'
33112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33113 (eval $ac_try) 2>&5
33114 ac_status=$?
33115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33116 (exit $ac_status); }; }; then
33117 ac_hi=$ac_mid
33118 else
33119 echo "$as_me: failed program was:" >&5
33120 sed 's/^/| /' conftest.$ac_ext >&5
33121
33122 ac_lo=`expr '(' $ac_mid ')' + 1`
33123 fi
33124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33125 done
33126 case $ac_lo in
33127 ?*) ac_cv_sizeof_long=$ac_lo;;
33128 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
33129 See \`config.log' for more details." >&5
33130 echo "$as_me: error: cannot compute sizeof (long), 77
33131 See \`config.log' for more details." >&2;}
33132 { (exit 1); exit 1; }; } ;;
33133 esac
33134 else
33135 if test "$cross_compiling" = yes; then
33136 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33137 See \`config.log' for more details." >&5
33138 echo "$as_me: error: cannot run test program while cross compiling
33139 See \`config.log' for more details." >&2;}
33140 { (exit 1); exit 1; }; }
33141 else
33142 cat >conftest.$ac_ext <<_ACEOF
33143 /* confdefs.h. */
33144 _ACEOF
33145 cat confdefs.h >>conftest.$ac_ext
33146 cat >>conftest.$ac_ext <<_ACEOF
33147 /* end confdefs.h. */
33148
33149 #include <stdio.h>
33150
33151 /* What a mess.. many systems have added the (now standard) bit types
33152 * in their own ways, so we need to scan a wide variety of headers to
33153 * find them..
33154 * IMPORTANT: Keep include/squid_types.h syncronised with this list
33155 */
33156 #if HAVE_SYS_TYPES_H
33157 #include <sys/types.h>
33158 #endif
33159 #if STDC_HEADERS
33160 #include <stdlib.h>
33161 #include <stddef.h>
33162 #endif
33163 #if HAVE_INTTYPES_H
33164 #include <inttypes.h>
33165 #endif
33166 #if HAVE_SYS_BITYPES_H
33167 #include <sys/bitypes.h>
33168 #endif
33169 #if HAVE_SYS_SELECT_H
33170 #include <sys/select.h>
33171 #endif
33172
33173
33174
33175 long longval () { return (long) (sizeof (long)); }
33176 unsigned long ulongval () { return (long) (sizeof (long)); }
33177 #include <stdio.h>
33178 #include <stdlib.h>
33179 int
33180 main ()
33181 {
33182
33183 FILE *f = fopen ("conftest.val", "w");
33184 if (! f)
33185 exit (1);
33186 if (((long) (sizeof (long))) < 0)
33187 {
33188 long i = longval ();
33189 if (i != ((long) (sizeof (long))))
33190 exit (1);
33191 fprintf (f, "%ld\n", i);
33192 }
33193 else
33194 {
33195 unsigned long i = ulongval ();
33196 if (i != ((long) (sizeof (long))))
33197 exit (1);
33198 fprintf (f, "%lu\n", i);
33199 }
33200 exit (ferror (f) || fclose (f) != 0);
33201
33202 ;
33203 return 0;
33204 }
33205 _ACEOF
33206 rm -f conftest$ac_exeext
33207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33208 (eval $ac_link) 2>&5
33209 ac_status=$?
33210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33213 (eval $ac_try) 2>&5
33214 ac_status=$?
33215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216 (exit $ac_status); }; }; then
33217 ac_cv_sizeof_long=`cat conftest.val`
33218 else
33219 echo "$as_me: program exited with status $ac_status" >&5
33220 echo "$as_me: failed program was:" >&5
33221 sed 's/^/| /' conftest.$ac_ext >&5
33222
33223 ( exit $ac_status )
33224 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
33225 See \`config.log' for more details." >&5
33226 echo "$as_me: error: cannot compute sizeof (long), 77
33227 See \`config.log' for more details." >&2;}
33228 { (exit 1); exit 1; }; }
33229 fi
33230 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33231 fi
33232 fi
33233 rm -f conftest.val
33234 else
33235 ac_cv_sizeof_long=0
33236 fi
33237 fi
33238 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
33239 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
33240 cat >>confdefs.h <<_ACEOF
33241 #define SIZEOF_LONG $ac_cv_sizeof_long
33242 _ACEOF
33243
33244
33245
33246 cat >>confdefs.h <<\_ACEOF
33247 #define HAVE_LONG 1
33248 _ACEOF
33249
33250
33251 fi
33252
33253
33254 echo "$as_me:$LINENO: checking for u_int32_t" >&5
33255 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
33256 if test "${ac_cv_type_u_int32_t+set}" = set; then
33257 echo $ECHO_N "(cached) $ECHO_C" >&6
33258 else
33259 cat >conftest.$ac_ext <<_ACEOF
33260 /* confdefs.h. */
33261 _ACEOF
33262 cat confdefs.h >>conftest.$ac_ext
33263 cat >>conftest.$ac_ext <<_ACEOF
33264 /* end confdefs.h. */
33265
33266 /* What a mess.. many systems have added the (now standard) bit types
33267 * in their own ways, so we need to scan a wide variety of headers to
33268 * find them..
33269 * IMPORTANT: Keep include/squid_types.h syncronised with this list
33270 */
33271 #if HAVE_SYS_TYPES_H
33272 #include <sys/types.h>
33273 #endif
33274 #if STDC_HEADERS
33275 #include <stdlib.h>
33276 #include <stddef.h>
33277 #endif
33278 #if HAVE_INTTYPES_H
33279 #include <inttypes.h>
33280 #endif
33281 #if HAVE_SYS_BITYPES_H
33282 #include <sys/bitypes.h>
33283 #endif
33284 #if HAVE_SYS_SELECT_H
33285 #include <sys/select.h>
33286 #endif
33287
33288
33289 int
33290 main ()
33291 {
33292 if ((u_int32_t *) 0)
33293 return 0;
33294 if (sizeof (u_int32_t))
33295 return 0;
33296 ;
33297 return 0;
33298 }
33299 _ACEOF
33300 rm -f conftest.$ac_objext
33301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33302 (eval $ac_compile) 2>conftest.er1
33303 ac_status=$?
33304 grep -v '^ *+' conftest.er1 >conftest.err
33305 rm -f conftest.er1
33306 cat conftest.err >&5
33307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33308 (exit $ac_status); } &&
33309 { ac_try='test -z "$ac_c_werror_flag"
33310 || test ! -s conftest.err'
33311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33312 (eval $ac_try) 2>&5
33313 ac_status=$?
33314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33315 (exit $ac_status); }; } &&
33316 { ac_try='test -s conftest.$ac_objext'
33317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33318 (eval $ac_try) 2>&5
33319 ac_status=$?
33320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321 (exit $ac_status); }; }; then
33322 ac_cv_type_u_int32_t=yes
33323 else
33324 echo "$as_me: failed program was:" >&5
33325 sed 's/^/| /' conftest.$ac_ext >&5
33326
33327 ac_cv_type_u_int32_t=no
33328 fi
33329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33330 fi
33331 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
33332 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
33333 if test $ac_cv_type_u_int32_t = yes; then
33334
33335 echo "$as_me:$LINENO: checking for u_int32_t" >&5
33336 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
33337 if test "${ac_cv_type_u_int32_t+set}" = set; then
33338 echo $ECHO_N "(cached) $ECHO_C" >&6
33339 else
33340 cat >conftest.$ac_ext <<_ACEOF
33341 /* confdefs.h. */
33342 _ACEOF
33343 cat confdefs.h >>conftest.$ac_ext
33344 cat >>conftest.$ac_ext <<_ACEOF
33345 /* end confdefs.h. */
33346
33347 #include <stdio.h>
33348
33349 /* What a mess.. many systems have added the (now standard) bit types
33350 * in their own ways, so we need to scan a wide variety of headers to
33351 * find them..
33352 * IMPORTANT: Keep include/squid_types.h syncronised with this list
33353 */
33354 #if HAVE_SYS_TYPES_H
33355 #include <sys/types.h>
33356 #endif
33357 #if STDC_HEADERS
33358 #include <stdlib.h>
33359 #include <stddef.h>
33360 #endif
33361 #if HAVE_INTTYPES_H
33362 #include <inttypes.h>
33363 #endif
33364 #if HAVE_SYS_BITYPES_H
33365 #include <sys/bitypes.h>
33366 #endif
33367 #if HAVE_SYS_SELECT_H
33368 #include <sys/select.h>
33369 #endif
33370
33371
33372
33373 int
33374 main ()
33375 {
33376 if ((u_int32_t *) 0)
33377 return 0;
33378 if (sizeof (u_int32_t))
33379 return 0;
33380 ;
33381 return 0;
33382 }
33383 _ACEOF
33384 rm -f conftest.$ac_objext
33385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33386 (eval $ac_compile) 2>conftest.er1
33387 ac_status=$?
33388 grep -v '^ *+' conftest.er1 >conftest.err
33389 rm -f conftest.er1
33390 cat conftest.err >&5
33391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33392 (exit $ac_status); } &&
33393 { ac_try='test -z "$ac_c_werror_flag"
33394 || test ! -s conftest.err'
33395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33396 (eval $ac_try) 2>&5
33397 ac_status=$?
33398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399 (exit $ac_status); }; } &&
33400 { ac_try='test -s conftest.$ac_objext'
33401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33402 (eval $ac_try) 2>&5
33403 ac_status=$?
33404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33405 (exit $ac_status); }; }; then
33406 ac_cv_type_u_int32_t=yes
33407 else
33408 echo "$as_me: failed program was:" >&5
33409 sed 's/^/| /' conftest.$ac_ext >&5
33410
33411 ac_cv_type_u_int32_t=no
33412 fi
33413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33414 fi
33415 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
33416 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
33417
33418 echo "$as_me:$LINENO: checking size of u_int32_t" >&5
33419 echo $ECHO_N "checking size of u_int32_t... $ECHO_C" >&6
33420 if test "${ac_cv_sizeof_u_int32_t+set}" = set; then
33421 echo $ECHO_N "(cached) $ECHO_C" >&6
33422 else
33423 if test "$ac_cv_type_u_int32_t" = yes; then
33424 # The cast to unsigned long works around a bug in the HP C Compiler
33425 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33426 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33427 # This bug is HP SR number 8606223364.
33428 if test "$cross_compiling" = yes; then
33429 # Depending upon the size, compute the lo and hi bounds.
33430 cat >conftest.$ac_ext <<_ACEOF
33431 /* confdefs.h. */
33432 _ACEOF
33433 cat confdefs.h >>conftest.$ac_ext
33434 cat >>conftest.$ac_ext <<_ACEOF
33435 /* end confdefs.h. */
33436
33437 #include <stdio.h>
33438
33439 /* What a mess.. many systems have added the (now standard) bit types
33440 * in their own ways, so we need to scan a wide variety of headers to
33441 * find them..
33442 * IMPORTANT: Keep include/squid_types.h syncronised with this list
33443 */
33444 #if HAVE_SYS_TYPES_H
33445 #include <sys/types.h>
33446 #endif
33447 #if STDC_HEADERS
33448 #include <stdlib.h>
33449 #include <stddef.h>
33450 #endif
33451 #if HAVE_INTTYPES_H
33452 #include <inttypes.h>
33453 #endif
33454 #if HAVE_SYS_BITYPES_H
33455 #include <sys/bitypes.h>
33456 #endif
33457 #if HAVE_SYS_SELECT_H
33458 #include <sys/select.h>
33459 #endif
33460
33461
33462
33463 int
33464 main ()
33465 {
33466 static int test_array [1 - 2 * !(((long) (sizeof (u_int32_t))) >= 0)];
33467 test_array [0] = 0
33468
33469 ;
33470 return 0;
33471 }
33472 _ACEOF
33473 rm -f conftest.$ac_objext
33474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33475 (eval $ac_compile) 2>conftest.er1
33476 ac_status=$?
33477 grep -v '^ *+' conftest.er1 >conftest.err
33478 rm -f conftest.er1
33479 cat conftest.err >&5
33480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33481 (exit $ac_status); } &&
33482 { ac_try='test -z "$ac_c_werror_flag"
33483 || test ! -s conftest.err'
33484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33485 (eval $ac_try) 2>&5
33486 ac_status=$?
33487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33488 (exit $ac_status); }; } &&
33489 { ac_try='test -s conftest.$ac_objext'
33490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33491 (eval $ac_try) 2>&5
33492 ac_status=$?
33493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33494 (exit $ac_status); }; }; then
33495 ac_lo=0 ac_mid=0
33496 while :; do
33497 cat >conftest.$ac_ext <<_ACEOF
33498 /* confdefs.h. */
33499 _ACEOF
33500 cat confdefs.h >>conftest.$ac_ext
33501 cat >>conftest.$ac_ext <<_ACEOF
33502 /* end confdefs.h. */
33503
33504 #include <stdio.h>
33505
33506 /* What a mess.. many systems have added the (now standard) bit types
33507 * in their own ways, so we need to scan a wide variety of headers to
33508 * find them..
33509 * IMPORTANT: Keep include/squid_types.h syncronised with this list
33510 */
33511 #if HAVE_SYS_TYPES_H
33512 #include <sys/types.h>
33513 #endif
33514 #if STDC_HEADERS
33515 #include <stdlib.h>
33516 #include <stddef.h>
33517 #endif
33518 #if HAVE_INTTYPES_H
33519 #include <inttypes.h>
33520 #endif
33521 #if HAVE_SYS_BITYPES_H
33522 #include <sys/bitypes.h>
33523 #endif
33524 #if HAVE_SYS_SELECT_H
33525 #include <sys/select.h>
33526 #endif
33527
33528
33529
33530 int
33531 main ()
33532 {
33533 static int test_array [1 - 2 * !(((long) (sizeof (u_int32_t))) <= $ac_mid)];
33534 test_array [0] = 0
33535
33536 ;
33537 return 0;
33538 }
33539 _ACEOF
33540 rm -f conftest.$ac_objext
33541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33542 (eval $ac_compile) 2>conftest.er1
33543 ac_status=$?
33544 grep -v '^ *+' conftest.er1 >conftest.err
33545 rm -f conftest.er1
33546 cat conftest.err >&5
33547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33548 (exit $ac_status); } &&
33549 { ac_try='test -z "$ac_c_werror_flag"
33550 || test ! -s conftest.err'
33551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33552 (eval $ac_try) 2>&5
33553 ac_status=$?
33554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33555 (exit $ac_status); }; } &&
33556 { ac_try='test -s conftest.$ac_objext'
33557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33558 (eval $ac_try) 2>&5
33559 ac_status=$?
33560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561 (exit $ac_status); }; }; then
33562 ac_hi=$ac_mid; break
33563 else
33564 echo "$as_me: failed program was:" >&5
33565 sed 's/^/| /' conftest.$ac_ext >&5
33566
33567 ac_lo=`expr $ac_mid + 1`
33568 if test $ac_lo -le $ac_mid; then
33569 ac_lo= ac_hi=
33570 break
33571 fi
33572 ac_mid=`expr 2 '*' $ac_mid + 1`
33573 fi
33574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33575 done
33576 else
33577 echo "$as_me: failed program was:" >&5
33578 sed 's/^/| /' conftest.$ac_ext >&5
33579
33580 cat >conftest.$ac_ext <<_ACEOF
33581 /* confdefs.h. */
33582 _ACEOF
33583 cat confdefs.h >>conftest.$ac_ext
33584 cat >>conftest.$ac_ext <<_ACEOF
33585 /* end confdefs.h. */
33586
33587 #include <stdio.h>
33588
33589 /* What a mess.. many systems have added the (now standard) bit types
33590 * in their own ways, so we need to scan a wide variety of headers to
33591 * find them..
33592 * IMPORTANT: Keep include/squid_types.h syncronised with this list
33593 */
33594 #if HAVE_SYS_TYPES_H
33595 #include <sys/types.h>
33596 #endif
33597 #if STDC_HEADERS
33598 #include <stdlib.h>
33599 #include <stddef.h>
33600 #endif
33601 #if HAVE_INTTYPES_H
33602 #include <inttypes.h>
33603 #endif
33604 #if HAVE_SYS_BITYPES_H
33605 #include <sys/bitypes.h>
33606 #endif
33607 #if HAVE_SYS_SELECT_H
33608 #include <sys/select.h>
33609 #endif
33610
33611
33612
33613 int
33614 main ()
33615 {
33616 static int test_array [1 - 2 * !(((long) (sizeof (u_int32_t))) < 0)];
33617 test_array [0] = 0
33618
33619 ;
33620 return 0;
33621 }
33622 _ACEOF
33623 rm -f conftest.$ac_objext
33624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33625 (eval $ac_compile) 2>conftest.er1
33626 ac_status=$?
33627 grep -v '^ *+' conftest.er1 >conftest.err
33628 rm -f conftest.er1
33629 cat conftest.err >&5
33630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631 (exit $ac_status); } &&
33632 { ac_try='test -z "$ac_c_werror_flag"
33633 || test ! -s conftest.err'
33634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33635 (eval $ac_try) 2>&5
33636 ac_status=$?
33637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33638 (exit $ac_status); }; } &&
33639 { ac_try='test -s conftest.$ac_objext'
33640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33641 (eval $ac_try) 2>&5
33642 ac_status=$?
33643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33644 (exit $ac_status); }; }; then
33645 ac_hi=-1 ac_mid=-1
33646 while :; do
33647 cat >conftest.$ac_ext <<_ACEOF
33648 /* confdefs.h. */
33649 _ACEOF
33650 cat confdefs.h >>conftest.$ac_ext
33651 cat >>conftest.$ac_ext <<_ACEOF
33652 /* end confdefs.h. */
33653
33654 #include <stdio.h>
33655
33656 /* What a mess.. many systems have added the (now standard) bit types
33657 * in their own ways, so we need to scan a wide variety of headers to
33658 * find them..
33659 * IMPORTANT: Keep include/squid_types.h syncronised with this list
33660 */
33661 #if HAVE_SYS_TYPES_H
33662 #include <sys/types.h>
33663 #endif
33664 #if STDC_HEADERS
33665 #include <stdlib.h>
33666 #include <stddef.h>
33667 #endif
33668 #if HAVE_INTTYPES_H
33669 #include <inttypes.h>
33670 #endif
33671 #if HAVE_SYS_BITYPES_H
33672 #include <sys/bitypes.h>
33673 #endif
33674 #if HAVE_SYS_SELECT_H
33675 #include <sys/select.h>
33676 #endif
33677
33678
33679
33680 int
33681 main ()
33682 {
33683 static int test_array [1 - 2 * !(((long) (sizeof (u_int32_t))) >= $ac_mid)];
33684 test_array [0] = 0
33685
33686 ;
33687 return 0;
33688 }
33689 _ACEOF
33690 rm -f conftest.$ac_objext
33691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33692 (eval $ac_compile) 2>conftest.er1
33693 ac_status=$?
33694 grep -v '^ *+' conftest.er1 >conftest.err
33695 rm -f conftest.er1
33696 cat conftest.err >&5
33697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33698 (exit $ac_status); } &&
33699 { ac_try='test -z "$ac_c_werror_flag"
33700 || test ! -s conftest.err'
33701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33702 (eval $ac_try) 2>&5
33703 ac_status=$?
33704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33705 (exit $ac_status); }; } &&
33706 { ac_try='test -s conftest.$ac_objext'
33707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33708 (eval $ac_try) 2>&5
33709 ac_status=$?
33710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33711 (exit $ac_status); }; }; then
33712 ac_lo=$ac_mid; break
33713 else
33714 echo "$as_me: failed program was:" >&5
33715 sed 's/^/| /' conftest.$ac_ext >&5
33716
33717 ac_hi=`expr '(' $ac_mid ')' - 1`
33718 if test $ac_mid -le $ac_hi; then
33719 ac_lo= ac_hi=
33720 break
33721 fi
33722 ac_mid=`expr 2 '*' $ac_mid`
33723 fi
33724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33725 done
33726 else
33727 echo "$as_me: failed program was:" >&5
33728 sed 's/^/| /' conftest.$ac_ext >&5
33729
33730 ac_lo= ac_hi=
33731 fi
33732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33733 fi
33734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33735 # Binary search between lo and hi bounds.
33736 while test "x$ac_lo" != "x$ac_hi"; do
33737 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33738 cat >conftest.$ac_ext <<_ACEOF
33739 /* confdefs.h. */
33740 _ACEOF
33741 cat confdefs.h >>conftest.$ac_ext
33742 cat >>conftest.$ac_ext <<_ACEOF
33743 /* end confdefs.h. */
33744
33745 #include <stdio.h>
33746
33747 /* What a mess.. many systems have added the (now standard) bit types
33748 * in their own ways, so we need to scan a wide variety of headers to
33749 * find them..
33750 * IMPORTANT: Keep include/squid_types.h syncronised with this list
33751 */
33752 #if HAVE_SYS_TYPES_H
33753 #include <sys/types.h>
33754 #endif
33755 #if STDC_HEADERS
33756 #include <stdlib.h>
33757 #include <stddef.h>
33758 #endif
33759 #if HAVE_INTTYPES_H
33760 #include <inttypes.h>
33761 #endif
33762 #if HAVE_SYS_BITYPES_H
33763 #include <sys/bitypes.h>
33764 #endif
33765 #if HAVE_SYS_SELECT_H
33766 #include <sys/select.h>
33767 #endif
33768
33769
33770
33771 int
33772 main ()
33773 {
33774 static int test_array [1 - 2 * !(((long) (sizeof (u_int32_t))) <= $ac_mid)];
33775 test_array [0] = 0
33776
33777 ;
33778 return 0;
33779 }
33780 _ACEOF
33781 rm -f conftest.$ac_objext
33782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33783 (eval $ac_compile) 2>conftest.er1
33784 ac_status=$?
33785 grep -v '^ *+' conftest.er1 >conftest.err
33786 rm -f conftest.er1
33787 cat conftest.err >&5
33788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33789 (exit $ac_status); } &&
33790 { ac_try='test -z "$ac_c_werror_flag"
33791 || test ! -s conftest.err'
33792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33793 (eval $ac_try) 2>&5
33794 ac_status=$?
33795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33796 (exit $ac_status); }; } &&
33797 { ac_try='test -s conftest.$ac_objext'
33798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33799 (eval $ac_try) 2>&5
33800 ac_status=$?
33801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33802 (exit $ac_status); }; }; then
33803 ac_hi=$ac_mid
33804 else
33805 echo "$as_me: failed program was:" >&5
33806 sed 's/^/| /' conftest.$ac_ext >&5
33807
33808 ac_lo=`expr '(' $ac_mid ')' + 1`
33809 fi
33810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33811 done
33812 case $ac_lo in
33813 ?*) ac_cv_sizeof_u_int32_t=$ac_lo;;
33814 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int32_t), 77
33815 See \`config.log' for more details." >&5
33816 echo "$as_me: error: cannot compute sizeof (u_int32_t), 77
33817 See \`config.log' for more details." >&2;}
33818 { (exit 1); exit 1; }; } ;;
33819 esac
33820 else
33821 if test "$cross_compiling" = yes; then
33822 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
33823 See \`config.log' for more details." >&5
33824 echo "$as_me: error: cannot run test program while cross compiling
33825 See \`config.log' for more details." >&2;}
33826 { (exit 1); exit 1; }; }
33827 else
33828 cat >conftest.$ac_ext <<_ACEOF
33829 /* confdefs.h. */
33830 _ACEOF
33831 cat confdefs.h >>conftest.$ac_ext
33832 cat >>conftest.$ac_ext <<_ACEOF
33833 /* end confdefs.h. */
33834
33835 #include <stdio.h>
33836
33837 /* What a mess.. many systems have added the (now standard) bit types
33838 * in their own ways, so we need to scan a wide variety of headers to
33839 * find them..
33840 * IMPORTANT: Keep include/squid_types.h syncronised with this list
33841 */
33842 #if HAVE_SYS_TYPES_H
33843 #include <sys/types.h>
33844 #endif
33845 #if STDC_HEADERS
33846 #include <stdlib.h>
33847 #include <stddef.h>
33848 #endif
33849 #if HAVE_INTTYPES_H
33850 #include <inttypes.h>
33851 #endif
33852 #if HAVE_SYS_BITYPES_H
33853 #include <sys/bitypes.h>
33854 #endif
33855 #if HAVE_SYS_SELECT_H
33856 #include <sys/select.h>
33857 #endif
33858
33859
33860
33861 long longval () { return (long) (sizeof (u_int32_t)); }
33862 unsigned long ulongval () { return (long) (sizeof (u_int32_t)); }
33863 #include <stdio.h>
33864 #include <stdlib.h>
33865 int
33866 main ()
33867 {
33868
33869 FILE *f = fopen ("conftest.val", "w");
33870 if (! f)
33871 exit (1);
33872 if (((long) (sizeof (u_int32_t))) < 0)
33873 {
33874 long i = longval ();
33875 if (i != ((long) (sizeof (u_int32_t))))
33876 exit (1);
33877 fprintf (f, "%ld\n", i);
33878 }
33879 else
33880 {
33881 unsigned long i = ulongval ();
33882 if (i != ((long) (sizeof (u_int32_t))))
33883 exit (1);
33884 fprintf (f, "%lu\n", i);
33885 }
33886 exit (ferror (f) || fclose (f) != 0);
33887
33888 ;
33889 return 0;
33890 }
33891 _ACEOF
33892 rm -f conftest$ac_exeext
33893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33894 (eval $ac_link) 2>&5
33895 ac_status=$?
33896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33899 (eval $ac_try) 2>&5
33900 ac_status=$?
33901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33902 (exit $ac_status); }; }; then
33903 ac_cv_sizeof_u_int32_t=`cat conftest.val`
33904 else
33905 echo "$as_me: program exited with status $ac_status" >&5
33906 echo "$as_me: failed program was:" >&5
33907 sed 's/^/| /' conftest.$ac_ext >&5
33908
33909 ( exit $ac_status )
33910 { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int32_t), 77
33911 See \`config.log' for more details." >&5
33912 echo "$as_me: error: cannot compute sizeof (u_int32_t), 77
33913 See \`config.log' for more details." >&2;}
33914 { (exit 1); exit 1; }; }
33915 fi
33916 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33917 fi
33918 fi
33919 rm -f conftest.val
33920 else
33921 ac_cv_sizeof_u_int32_t=0
33922 fi
33923 fi
33924 echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int32_t" >&5
33925 echo "${ECHO_T}$ac_cv_sizeof_u_int32_t" >&6
33926 cat >>confdefs.h <<_ACEOF
33927 #define SIZEOF_U_INT32_T $ac_cv_sizeof_u_int32_t
33928 _ACEOF
33929
33930
33931
33932 cat >>confdefs.h <<\_ACEOF
33933 #define HAVE_U_INT32_T 1
33934 _ACEOF
33935
33936
33937 fi
33938
33939
33940 echo "$as_me:$LINENO: checking for uint32_t" >&5
33941 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
33942 if test "${ac_cv_type_uint32_t+set}" = set; then
33943 echo $ECHO_N "(cached) $ECHO_C" >&6
33944 else
33945 cat >conftest.$ac_ext <<_ACEOF
33946 /* confdefs.h. */
33947 _ACEOF
33948 cat confdefs.h >>conftest.$ac_ext
33949 cat >>conftest.$ac_ext <<_ACEOF
33950 /* end confdefs.h. */
33951
33952 /* What a mess.. many systems have added the (now standard) bit types
33953 * in their own ways, so we need to scan a wide variety of headers to
33954 * find them..
33955 * IMPORTANT: Keep include/squid_types.h syncronised with this list
33956 */
33957 #if HAVE_SYS_TYPES_H
33958 #include <sys/types.h>
33959 #endif
33960 #if STDC_HEADERS
33961 #include <stdlib.h>
33962 #include <stddef.h>
33963 #endif
33964 #if HAVE_INTTYPES_H
33965 #include <inttypes.h>
33966 #endif
33967 #if HAVE_SYS_BITYPES_H
33968 #include <sys/bitypes.h>
33969 #endif
33970 #if HAVE_SYS_SELECT_H
33971 #include <sys/select.h>
33972 #endif
33973
33974
33975 int
33976 main ()
33977 {
33978 if ((uint32_t *) 0)
33979 return 0;
33980 if (sizeof (uint32_t))
33981 return 0;
33982 ;
33983 return 0;
33984 }
33985 _ACEOF
33986 rm -f conftest.$ac_objext
33987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33988 (eval $ac_compile) 2>conftest.er1
33989 ac_status=$?
33990 grep -v '^ *+' conftest.er1 >conftest.err
33991 rm -f conftest.er1
33992 cat conftest.err >&5
33993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33994 (exit $ac_status); } &&
33995 { ac_try='test -z "$ac_c_werror_flag"
33996 || test ! -s conftest.err'
33997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33998 (eval $ac_try) 2>&5
33999 ac_status=$?
34000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34001 (exit $ac_status); }; } &&
34002 { ac_try='test -s conftest.$ac_objext'
34003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34004 (eval $ac_try) 2>&5
34005 ac_status=$?
34006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34007 (exit $ac_status); }; }; then
34008 ac_cv_type_uint32_t=yes
34009 else
34010 echo "$as_me: failed program was:" >&5
34011 sed 's/^/| /' conftest.$ac_ext >&5
34012
34013 ac_cv_type_uint32_t=no
34014 fi
34015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34016 fi
34017 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
34018 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
34019 if test $ac_cv_type_uint32_t = yes; then
34020
34021 echo "$as_me:$LINENO: checking for uint32_t" >&5
34022 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
34023 if test "${ac_cv_type_uint32_t+set}" = set; then
34024 echo $ECHO_N "(cached) $ECHO_C" >&6
34025 else
34026 cat >conftest.$ac_ext <<_ACEOF
34027 /* confdefs.h. */
34028 _ACEOF
34029 cat confdefs.h >>conftest.$ac_ext
34030 cat >>conftest.$ac_ext <<_ACEOF
34031 /* end confdefs.h. */
34032
34033 #include <stdio.h>
34034
34035 /* What a mess.. many systems have added the (now standard) bit types
34036 * in their own ways, so we need to scan a wide variety of headers to
34037 * find them..
34038 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34039 */
34040 #if HAVE_SYS_TYPES_H
34041 #include <sys/types.h>
34042 #endif
34043 #if STDC_HEADERS
34044 #include <stdlib.h>
34045 #include <stddef.h>
34046 #endif
34047 #if HAVE_INTTYPES_H
34048 #include <inttypes.h>
34049 #endif
34050 #if HAVE_SYS_BITYPES_H
34051 #include <sys/bitypes.h>
34052 #endif
34053 #if HAVE_SYS_SELECT_H
34054 #include <sys/select.h>
34055 #endif
34056
34057
34058
34059 int
34060 main ()
34061 {
34062 if ((uint32_t *) 0)
34063 return 0;
34064 if (sizeof (uint32_t))
34065 return 0;
34066 ;
34067 return 0;
34068 }
34069 _ACEOF
34070 rm -f conftest.$ac_objext
34071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34072 (eval $ac_compile) 2>conftest.er1
34073 ac_status=$?
34074 grep -v '^ *+' conftest.er1 >conftest.err
34075 rm -f conftest.er1
34076 cat conftest.err >&5
34077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34078 (exit $ac_status); } &&
34079 { ac_try='test -z "$ac_c_werror_flag"
34080 || test ! -s conftest.err'
34081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34082 (eval $ac_try) 2>&5
34083 ac_status=$?
34084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34085 (exit $ac_status); }; } &&
34086 { ac_try='test -s conftest.$ac_objext'
34087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34088 (eval $ac_try) 2>&5
34089 ac_status=$?
34090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34091 (exit $ac_status); }; }; then
34092 ac_cv_type_uint32_t=yes
34093 else
34094 echo "$as_me: failed program was:" >&5
34095 sed 's/^/| /' conftest.$ac_ext >&5
34096
34097 ac_cv_type_uint32_t=no
34098 fi
34099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34100 fi
34101 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
34102 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
34103
34104 echo "$as_me:$LINENO: checking size of uint32_t" >&5
34105 echo $ECHO_N "checking size of uint32_t... $ECHO_C" >&6
34106 if test "${ac_cv_sizeof_uint32_t+set}" = set; then
34107 echo $ECHO_N "(cached) $ECHO_C" >&6
34108 else
34109 if test "$ac_cv_type_uint32_t" = yes; then
34110 # The cast to unsigned long works around a bug in the HP C Compiler
34111 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34112 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34113 # This bug is HP SR number 8606223364.
34114 if test "$cross_compiling" = yes; then
34115 # Depending upon the size, compute the lo and hi bounds.
34116 cat >conftest.$ac_ext <<_ACEOF
34117 /* confdefs.h. */
34118 _ACEOF
34119 cat confdefs.h >>conftest.$ac_ext
34120 cat >>conftest.$ac_ext <<_ACEOF
34121 /* end confdefs.h. */
34122
34123 #include <stdio.h>
34124
34125 /* What a mess.. many systems have added the (now standard) bit types
34126 * in their own ways, so we need to scan a wide variety of headers to
34127 * find them..
34128 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34129 */
34130 #if HAVE_SYS_TYPES_H
34131 #include <sys/types.h>
34132 #endif
34133 #if STDC_HEADERS
34134 #include <stdlib.h>
34135 #include <stddef.h>
34136 #endif
34137 #if HAVE_INTTYPES_H
34138 #include <inttypes.h>
34139 #endif
34140 #if HAVE_SYS_BITYPES_H
34141 #include <sys/bitypes.h>
34142 #endif
34143 #if HAVE_SYS_SELECT_H
34144 #include <sys/select.h>
34145 #endif
34146
34147
34148
34149 int
34150 main ()
34151 {
34152 static int test_array [1 - 2 * !(((long) (sizeof (uint32_t))) >= 0)];
34153 test_array [0] = 0
34154
34155 ;
34156 return 0;
34157 }
34158 _ACEOF
34159 rm -f conftest.$ac_objext
34160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34161 (eval $ac_compile) 2>conftest.er1
34162 ac_status=$?
34163 grep -v '^ *+' conftest.er1 >conftest.err
34164 rm -f conftest.er1
34165 cat conftest.err >&5
34166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34167 (exit $ac_status); } &&
34168 { ac_try='test -z "$ac_c_werror_flag"
34169 || test ! -s conftest.err'
34170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34171 (eval $ac_try) 2>&5
34172 ac_status=$?
34173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34174 (exit $ac_status); }; } &&
34175 { ac_try='test -s conftest.$ac_objext'
34176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34177 (eval $ac_try) 2>&5
34178 ac_status=$?
34179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34180 (exit $ac_status); }; }; then
34181 ac_lo=0 ac_mid=0
34182 while :; do
34183 cat >conftest.$ac_ext <<_ACEOF
34184 /* confdefs.h. */
34185 _ACEOF
34186 cat confdefs.h >>conftest.$ac_ext
34187 cat >>conftest.$ac_ext <<_ACEOF
34188 /* end confdefs.h. */
34189
34190 #include <stdio.h>
34191
34192 /* What a mess.. many systems have added the (now standard) bit types
34193 * in their own ways, so we need to scan a wide variety of headers to
34194 * find them..
34195 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34196 */
34197 #if HAVE_SYS_TYPES_H
34198 #include <sys/types.h>
34199 #endif
34200 #if STDC_HEADERS
34201 #include <stdlib.h>
34202 #include <stddef.h>
34203 #endif
34204 #if HAVE_INTTYPES_H
34205 #include <inttypes.h>
34206 #endif
34207 #if HAVE_SYS_BITYPES_H
34208 #include <sys/bitypes.h>
34209 #endif
34210 #if HAVE_SYS_SELECT_H
34211 #include <sys/select.h>
34212 #endif
34213
34214
34215
34216 int
34217 main ()
34218 {
34219 static int test_array [1 - 2 * !(((long) (sizeof (uint32_t))) <= $ac_mid)];
34220 test_array [0] = 0
34221
34222 ;
34223 return 0;
34224 }
34225 _ACEOF
34226 rm -f conftest.$ac_objext
34227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34228 (eval $ac_compile) 2>conftest.er1
34229 ac_status=$?
34230 grep -v '^ *+' conftest.er1 >conftest.err
34231 rm -f conftest.er1
34232 cat conftest.err >&5
34233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34234 (exit $ac_status); } &&
34235 { ac_try='test -z "$ac_c_werror_flag"
34236 || test ! -s conftest.err'
34237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34238 (eval $ac_try) 2>&5
34239 ac_status=$?
34240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34241 (exit $ac_status); }; } &&
34242 { ac_try='test -s conftest.$ac_objext'
34243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34244 (eval $ac_try) 2>&5
34245 ac_status=$?
34246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34247 (exit $ac_status); }; }; then
34248 ac_hi=$ac_mid; break
34249 else
34250 echo "$as_me: failed program was:" >&5
34251 sed 's/^/| /' conftest.$ac_ext >&5
34252
34253 ac_lo=`expr $ac_mid + 1`
34254 if test $ac_lo -le $ac_mid; then
34255 ac_lo= ac_hi=
34256 break
34257 fi
34258 ac_mid=`expr 2 '*' $ac_mid + 1`
34259 fi
34260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34261 done
34262 else
34263 echo "$as_me: failed program was:" >&5
34264 sed 's/^/| /' conftest.$ac_ext >&5
34265
34266 cat >conftest.$ac_ext <<_ACEOF
34267 /* confdefs.h. */
34268 _ACEOF
34269 cat confdefs.h >>conftest.$ac_ext
34270 cat >>conftest.$ac_ext <<_ACEOF
34271 /* end confdefs.h. */
34272
34273 #include <stdio.h>
34274
34275 /* What a mess.. many systems have added the (now standard) bit types
34276 * in their own ways, so we need to scan a wide variety of headers to
34277 * find them..
34278 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34279 */
34280 #if HAVE_SYS_TYPES_H
34281 #include <sys/types.h>
34282 #endif
34283 #if STDC_HEADERS
34284 #include <stdlib.h>
34285 #include <stddef.h>
34286 #endif
34287 #if HAVE_INTTYPES_H
34288 #include <inttypes.h>
34289 #endif
34290 #if HAVE_SYS_BITYPES_H
34291 #include <sys/bitypes.h>
34292 #endif
34293 #if HAVE_SYS_SELECT_H
34294 #include <sys/select.h>
34295 #endif
34296
34297
34298
34299 int
34300 main ()
34301 {
34302 static int test_array [1 - 2 * !(((long) (sizeof (uint32_t))) < 0)];
34303 test_array [0] = 0
34304
34305 ;
34306 return 0;
34307 }
34308 _ACEOF
34309 rm -f conftest.$ac_objext
34310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34311 (eval $ac_compile) 2>conftest.er1
34312 ac_status=$?
34313 grep -v '^ *+' conftest.er1 >conftest.err
34314 rm -f conftest.er1
34315 cat conftest.err >&5
34316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34317 (exit $ac_status); } &&
34318 { ac_try='test -z "$ac_c_werror_flag"
34319 || test ! -s conftest.err'
34320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34321 (eval $ac_try) 2>&5
34322 ac_status=$?
34323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34324 (exit $ac_status); }; } &&
34325 { ac_try='test -s conftest.$ac_objext'
34326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34327 (eval $ac_try) 2>&5
34328 ac_status=$?
34329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34330 (exit $ac_status); }; }; then
34331 ac_hi=-1 ac_mid=-1
34332 while :; do
34333 cat >conftest.$ac_ext <<_ACEOF
34334 /* confdefs.h. */
34335 _ACEOF
34336 cat confdefs.h >>conftest.$ac_ext
34337 cat >>conftest.$ac_ext <<_ACEOF
34338 /* end confdefs.h. */
34339
34340 #include <stdio.h>
34341
34342 /* What a mess.. many systems have added the (now standard) bit types
34343 * in their own ways, so we need to scan a wide variety of headers to
34344 * find them..
34345 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34346 */
34347 #if HAVE_SYS_TYPES_H
34348 #include <sys/types.h>
34349 #endif
34350 #if STDC_HEADERS
34351 #include <stdlib.h>
34352 #include <stddef.h>
34353 #endif
34354 #if HAVE_INTTYPES_H
34355 #include <inttypes.h>
34356 #endif
34357 #if HAVE_SYS_BITYPES_H
34358 #include <sys/bitypes.h>
34359 #endif
34360 #if HAVE_SYS_SELECT_H
34361 #include <sys/select.h>
34362 #endif
34363
34364
34365
34366 int
34367 main ()
34368 {
34369 static int test_array [1 - 2 * !(((long) (sizeof (uint32_t))) >= $ac_mid)];
34370 test_array [0] = 0
34371
34372 ;
34373 return 0;
34374 }
34375 _ACEOF
34376 rm -f conftest.$ac_objext
34377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34378 (eval $ac_compile) 2>conftest.er1
34379 ac_status=$?
34380 grep -v '^ *+' conftest.er1 >conftest.err
34381 rm -f conftest.er1
34382 cat conftest.err >&5
34383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34384 (exit $ac_status); } &&
34385 { ac_try='test -z "$ac_c_werror_flag"
34386 || test ! -s conftest.err'
34387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34388 (eval $ac_try) 2>&5
34389 ac_status=$?
34390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34391 (exit $ac_status); }; } &&
34392 { ac_try='test -s conftest.$ac_objext'
34393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34394 (eval $ac_try) 2>&5
34395 ac_status=$?
34396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34397 (exit $ac_status); }; }; then
34398 ac_lo=$ac_mid; break
34399 else
34400 echo "$as_me: failed program was:" >&5
34401 sed 's/^/| /' conftest.$ac_ext >&5
34402
34403 ac_hi=`expr '(' $ac_mid ')' - 1`
34404 if test $ac_mid -le $ac_hi; then
34405 ac_lo= ac_hi=
34406 break
34407 fi
34408 ac_mid=`expr 2 '*' $ac_mid`
34409 fi
34410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34411 done
34412 else
34413 echo "$as_me: failed program was:" >&5
34414 sed 's/^/| /' conftest.$ac_ext >&5
34415
34416 ac_lo= ac_hi=
34417 fi
34418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34419 fi
34420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34421 # Binary search between lo and hi bounds.
34422 while test "x$ac_lo" != "x$ac_hi"; do
34423 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34424 cat >conftest.$ac_ext <<_ACEOF
34425 /* confdefs.h. */
34426 _ACEOF
34427 cat confdefs.h >>conftest.$ac_ext
34428 cat >>conftest.$ac_ext <<_ACEOF
34429 /* end confdefs.h. */
34430
34431 #include <stdio.h>
34432
34433 /* What a mess.. many systems have added the (now standard) bit types
34434 * in their own ways, so we need to scan a wide variety of headers to
34435 * find them..
34436 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34437 */
34438 #if HAVE_SYS_TYPES_H
34439 #include <sys/types.h>
34440 #endif
34441 #if STDC_HEADERS
34442 #include <stdlib.h>
34443 #include <stddef.h>
34444 #endif
34445 #if HAVE_INTTYPES_H
34446 #include <inttypes.h>
34447 #endif
34448 #if HAVE_SYS_BITYPES_H
34449 #include <sys/bitypes.h>
34450 #endif
34451 #if HAVE_SYS_SELECT_H
34452 #include <sys/select.h>
34453 #endif
34454
34455
34456
34457 int
34458 main ()
34459 {
34460 static int test_array [1 - 2 * !(((long) (sizeof (uint32_t))) <= $ac_mid)];
34461 test_array [0] = 0
34462
34463 ;
34464 return 0;
34465 }
34466 _ACEOF
34467 rm -f conftest.$ac_objext
34468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34469 (eval $ac_compile) 2>conftest.er1
34470 ac_status=$?
34471 grep -v '^ *+' conftest.er1 >conftest.err
34472 rm -f conftest.er1
34473 cat conftest.err >&5
34474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34475 (exit $ac_status); } &&
34476 { ac_try='test -z "$ac_c_werror_flag"
34477 || test ! -s conftest.err'
34478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34479 (eval $ac_try) 2>&5
34480 ac_status=$?
34481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34482 (exit $ac_status); }; } &&
34483 { ac_try='test -s conftest.$ac_objext'
34484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34485 (eval $ac_try) 2>&5
34486 ac_status=$?
34487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34488 (exit $ac_status); }; }; then
34489 ac_hi=$ac_mid
34490 else
34491 echo "$as_me: failed program was:" >&5
34492 sed 's/^/| /' conftest.$ac_ext >&5
34493
34494 ac_lo=`expr '(' $ac_mid ')' + 1`
34495 fi
34496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34497 done
34498 case $ac_lo in
34499 ?*) ac_cv_sizeof_uint32_t=$ac_lo;;
34500 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint32_t), 77
34501 See \`config.log' for more details." >&5
34502 echo "$as_me: error: cannot compute sizeof (uint32_t), 77
34503 See \`config.log' for more details." >&2;}
34504 { (exit 1); exit 1; }; } ;;
34505 esac
34506 else
34507 if test "$cross_compiling" = yes; then
34508 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34509 See \`config.log' for more details." >&5
34510 echo "$as_me: error: cannot run test program while cross compiling
34511 See \`config.log' for more details." >&2;}
34512 { (exit 1); exit 1; }; }
34513 else
34514 cat >conftest.$ac_ext <<_ACEOF
34515 /* confdefs.h. */
34516 _ACEOF
34517 cat confdefs.h >>conftest.$ac_ext
34518 cat >>conftest.$ac_ext <<_ACEOF
34519 /* end confdefs.h. */
34520
34521 #include <stdio.h>
34522
34523 /* What a mess.. many systems have added the (now standard) bit types
34524 * in their own ways, so we need to scan a wide variety of headers to
34525 * find them..
34526 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34527 */
34528 #if HAVE_SYS_TYPES_H
34529 #include <sys/types.h>
34530 #endif
34531 #if STDC_HEADERS
34532 #include <stdlib.h>
34533 #include <stddef.h>
34534 #endif
34535 #if HAVE_INTTYPES_H
34536 #include <inttypes.h>
34537 #endif
34538 #if HAVE_SYS_BITYPES_H
34539 #include <sys/bitypes.h>
34540 #endif
34541 #if HAVE_SYS_SELECT_H
34542 #include <sys/select.h>
34543 #endif
34544
34545
34546
34547 long longval () { return (long) (sizeof (uint32_t)); }
34548 unsigned long ulongval () { return (long) (sizeof (uint32_t)); }
34549 #include <stdio.h>
34550 #include <stdlib.h>
34551 int
34552 main ()
34553 {
34554
34555 FILE *f = fopen ("conftest.val", "w");
34556 if (! f)
34557 exit (1);
34558 if (((long) (sizeof (uint32_t))) < 0)
34559 {
34560 long i = longval ();
34561 if (i != ((long) (sizeof (uint32_t))))
34562 exit (1);
34563 fprintf (f, "%ld\n", i);
34564 }
34565 else
34566 {
34567 unsigned long i = ulongval ();
34568 if (i != ((long) (sizeof (uint32_t))))
34569 exit (1);
34570 fprintf (f, "%lu\n", i);
34571 }
34572 exit (ferror (f) || fclose (f) != 0);
34573
34574 ;
34575 return 0;
34576 }
34577 _ACEOF
34578 rm -f conftest$ac_exeext
34579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34580 (eval $ac_link) 2>&5
34581 ac_status=$?
34582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34585 (eval $ac_try) 2>&5
34586 ac_status=$?
34587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34588 (exit $ac_status); }; }; then
34589 ac_cv_sizeof_uint32_t=`cat conftest.val`
34590 else
34591 echo "$as_me: program exited with status $ac_status" >&5
34592 echo "$as_me: failed program was:" >&5
34593 sed 's/^/| /' conftest.$ac_ext >&5
34594
34595 ( exit $ac_status )
34596 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint32_t), 77
34597 See \`config.log' for more details." >&5
34598 echo "$as_me: error: cannot compute sizeof (uint32_t), 77
34599 See \`config.log' for more details." >&2;}
34600 { (exit 1); exit 1; }; }
34601 fi
34602 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34603 fi
34604 fi
34605 rm -f conftest.val
34606 else
34607 ac_cv_sizeof_uint32_t=0
34608 fi
34609 fi
34610 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint32_t" >&5
34611 echo "${ECHO_T}$ac_cv_sizeof_uint32_t" >&6
34612 cat >>confdefs.h <<_ACEOF
34613 #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
34614 _ACEOF
34615
34616
34617
34618 cat >>confdefs.h <<\_ACEOF
34619 #define HAVE_UINT32_T 1
34620 _ACEOF
34621
34622
34623 fi
34624
34625
34626 echo "$as_me:$LINENO: checking for int64_t" >&5
34627 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
34628 if test "${ac_cv_type_int64_t+set}" = set; then
34629 echo $ECHO_N "(cached) $ECHO_C" >&6
34630 else
34631 cat >conftest.$ac_ext <<_ACEOF
34632 /* confdefs.h. */
34633 _ACEOF
34634 cat confdefs.h >>conftest.$ac_ext
34635 cat >>conftest.$ac_ext <<_ACEOF
34636 /* end confdefs.h. */
34637
34638 /* What a mess.. many systems have added the (now standard) bit types
34639 * in their own ways, so we need to scan a wide variety of headers to
34640 * find them..
34641 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34642 */
34643 #if HAVE_SYS_TYPES_H
34644 #include <sys/types.h>
34645 #endif
34646 #if STDC_HEADERS
34647 #include <stdlib.h>
34648 #include <stddef.h>
34649 #endif
34650 #if HAVE_INTTYPES_H
34651 #include <inttypes.h>
34652 #endif
34653 #if HAVE_SYS_BITYPES_H
34654 #include <sys/bitypes.h>
34655 #endif
34656 #if HAVE_SYS_SELECT_H
34657 #include <sys/select.h>
34658 #endif
34659
34660
34661 int
34662 main ()
34663 {
34664 if ((int64_t *) 0)
34665 return 0;
34666 if (sizeof (int64_t))
34667 return 0;
34668 ;
34669 return 0;
34670 }
34671 _ACEOF
34672 rm -f conftest.$ac_objext
34673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34674 (eval $ac_compile) 2>conftest.er1
34675 ac_status=$?
34676 grep -v '^ *+' conftest.er1 >conftest.err
34677 rm -f conftest.er1
34678 cat conftest.err >&5
34679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34680 (exit $ac_status); } &&
34681 { ac_try='test -z "$ac_c_werror_flag"
34682 || test ! -s conftest.err'
34683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34684 (eval $ac_try) 2>&5
34685 ac_status=$?
34686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34687 (exit $ac_status); }; } &&
34688 { ac_try='test -s conftest.$ac_objext'
34689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34690 (eval $ac_try) 2>&5
34691 ac_status=$?
34692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34693 (exit $ac_status); }; }; then
34694 ac_cv_type_int64_t=yes
34695 else
34696 echo "$as_me: failed program was:" >&5
34697 sed 's/^/| /' conftest.$ac_ext >&5
34698
34699 ac_cv_type_int64_t=no
34700 fi
34701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34702 fi
34703 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
34704 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
34705 if test $ac_cv_type_int64_t = yes; then
34706
34707 echo "$as_me:$LINENO: checking for int64_t" >&5
34708 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
34709 if test "${ac_cv_type_int64_t+set}" = set; then
34710 echo $ECHO_N "(cached) $ECHO_C" >&6
34711 else
34712 cat >conftest.$ac_ext <<_ACEOF
34713 /* confdefs.h. */
34714 _ACEOF
34715 cat confdefs.h >>conftest.$ac_ext
34716 cat >>conftest.$ac_ext <<_ACEOF
34717 /* end confdefs.h. */
34718
34719 #include <stdio.h>
34720
34721 /* What a mess.. many systems have added the (now standard) bit types
34722 * in their own ways, so we need to scan a wide variety of headers to
34723 * find them..
34724 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34725 */
34726 #if HAVE_SYS_TYPES_H
34727 #include <sys/types.h>
34728 #endif
34729 #if STDC_HEADERS
34730 #include <stdlib.h>
34731 #include <stddef.h>
34732 #endif
34733 #if HAVE_INTTYPES_H
34734 #include <inttypes.h>
34735 #endif
34736 #if HAVE_SYS_BITYPES_H
34737 #include <sys/bitypes.h>
34738 #endif
34739 #if HAVE_SYS_SELECT_H
34740 #include <sys/select.h>
34741 #endif
34742
34743
34744
34745 int
34746 main ()
34747 {
34748 if ((int64_t *) 0)
34749 return 0;
34750 if (sizeof (int64_t))
34751 return 0;
34752 ;
34753 return 0;
34754 }
34755 _ACEOF
34756 rm -f conftest.$ac_objext
34757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34758 (eval $ac_compile) 2>conftest.er1
34759 ac_status=$?
34760 grep -v '^ *+' conftest.er1 >conftest.err
34761 rm -f conftest.er1
34762 cat conftest.err >&5
34763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34764 (exit $ac_status); } &&
34765 { ac_try='test -z "$ac_c_werror_flag"
34766 || test ! -s conftest.err'
34767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34768 (eval $ac_try) 2>&5
34769 ac_status=$?
34770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34771 (exit $ac_status); }; } &&
34772 { ac_try='test -s conftest.$ac_objext'
34773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34774 (eval $ac_try) 2>&5
34775 ac_status=$?
34776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34777 (exit $ac_status); }; }; then
34778 ac_cv_type_int64_t=yes
34779 else
34780 echo "$as_me: failed program was:" >&5
34781 sed 's/^/| /' conftest.$ac_ext >&5
34782
34783 ac_cv_type_int64_t=no
34784 fi
34785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34786 fi
34787 echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
34788 echo "${ECHO_T}$ac_cv_type_int64_t" >&6
34789
34790 echo "$as_me:$LINENO: checking size of int64_t" >&5
34791 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6
34792 if test "${ac_cv_sizeof_int64_t+set}" = set; then
34793 echo $ECHO_N "(cached) $ECHO_C" >&6
34794 else
34795 if test "$ac_cv_type_int64_t" = yes; then
34796 # The cast to unsigned long works around a bug in the HP C Compiler
34797 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34798 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34799 # This bug is HP SR number 8606223364.
34800 if test "$cross_compiling" = yes; then
34801 # Depending upon the size, compute the lo and hi bounds.
34802 cat >conftest.$ac_ext <<_ACEOF
34803 /* confdefs.h. */
34804 _ACEOF
34805 cat confdefs.h >>conftest.$ac_ext
34806 cat >>conftest.$ac_ext <<_ACEOF
34807 /* end confdefs.h. */
34808
34809 #include <stdio.h>
34810
34811 /* What a mess.. many systems have added the (now standard) bit types
34812 * in their own ways, so we need to scan a wide variety of headers to
34813 * find them..
34814 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34815 */
34816 #if HAVE_SYS_TYPES_H
34817 #include <sys/types.h>
34818 #endif
34819 #if STDC_HEADERS
34820 #include <stdlib.h>
34821 #include <stddef.h>
34822 #endif
34823 #if HAVE_INTTYPES_H
34824 #include <inttypes.h>
34825 #endif
34826 #if HAVE_SYS_BITYPES_H
34827 #include <sys/bitypes.h>
34828 #endif
34829 #if HAVE_SYS_SELECT_H
34830 #include <sys/select.h>
34831 #endif
34832
34833
34834
34835 int
34836 main ()
34837 {
34838 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= 0)];
34839 test_array [0] = 0
34840
34841 ;
34842 return 0;
34843 }
34844 _ACEOF
34845 rm -f conftest.$ac_objext
34846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34847 (eval $ac_compile) 2>conftest.er1
34848 ac_status=$?
34849 grep -v '^ *+' conftest.er1 >conftest.err
34850 rm -f conftest.er1
34851 cat conftest.err >&5
34852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34853 (exit $ac_status); } &&
34854 { ac_try='test -z "$ac_c_werror_flag"
34855 || test ! -s conftest.err'
34856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34857 (eval $ac_try) 2>&5
34858 ac_status=$?
34859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34860 (exit $ac_status); }; } &&
34861 { ac_try='test -s conftest.$ac_objext'
34862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34863 (eval $ac_try) 2>&5
34864 ac_status=$?
34865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34866 (exit $ac_status); }; }; then
34867 ac_lo=0 ac_mid=0
34868 while :; do
34869 cat >conftest.$ac_ext <<_ACEOF
34870 /* confdefs.h. */
34871 _ACEOF
34872 cat confdefs.h >>conftest.$ac_ext
34873 cat >>conftest.$ac_ext <<_ACEOF
34874 /* end confdefs.h. */
34875
34876 #include <stdio.h>
34877
34878 /* What a mess.. many systems have added the (now standard) bit types
34879 * in their own ways, so we need to scan a wide variety of headers to
34880 * find them..
34881 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34882 */
34883 #if HAVE_SYS_TYPES_H
34884 #include <sys/types.h>
34885 #endif
34886 #if STDC_HEADERS
34887 #include <stdlib.h>
34888 #include <stddef.h>
34889 #endif
34890 #if HAVE_INTTYPES_H
34891 #include <inttypes.h>
34892 #endif
34893 #if HAVE_SYS_BITYPES_H
34894 #include <sys/bitypes.h>
34895 #endif
34896 #if HAVE_SYS_SELECT_H
34897 #include <sys/select.h>
34898 #endif
34899
34900
34901
34902 int
34903 main ()
34904 {
34905 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
34906 test_array [0] = 0
34907
34908 ;
34909 return 0;
34910 }
34911 _ACEOF
34912 rm -f conftest.$ac_objext
34913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34914 (eval $ac_compile) 2>conftest.er1
34915 ac_status=$?
34916 grep -v '^ *+' conftest.er1 >conftest.err
34917 rm -f conftest.er1
34918 cat conftest.err >&5
34919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34920 (exit $ac_status); } &&
34921 { ac_try='test -z "$ac_c_werror_flag"
34922 || test ! -s conftest.err'
34923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34924 (eval $ac_try) 2>&5
34925 ac_status=$?
34926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34927 (exit $ac_status); }; } &&
34928 { ac_try='test -s conftest.$ac_objext'
34929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34930 (eval $ac_try) 2>&5
34931 ac_status=$?
34932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34933 (exit $ac_status); }; }; then
34934 ac_hi=$ac_mid; break
34935 else
34936 echo "$as_me: failed program was:" >&5
34937 sed 's/^/| /' conftest.$ac_ext >&5
34938
34939 ac_lo=`expr $ac_mid + 1`
34940 if test $ac_lo -le $ac_mid; then
34941 ac_lo= ac_hi=
34942 break
34943 fi
34944 ac_mid=`expr 2 '*' $ac_mid + 1`
34945 fi
34946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34947 done
34948 else
34949 echo "$as_me: failed program was:" >&5
34950 sed 's/^/| /' conftest.$ac_ext >&5
34951
34952 cat >conftest.$ac_ext <<_ACEOF
34953 /* confdefs.h. */
34954 _ACEOF
34955 cat confdefs.h >>conftest.$ac_ext
34956 cat >>conftest.$ac_ext <<_ACEOF
34957 /* end confdefs.h. */
34958
34959 #include <stdio.h>
34960
34961 /* What a mess.. many systems have added the (now standard) bit types
34962 * in their own ways, so we need to scan a wide variety of headers to
34963 * find them..
34964 * IMPORTANT: Keep include/squid_types.h syncronised with this list
34965 */
34966 #if HAVE_SYS_TYPES_H
34967 #include <sys/types.h>
34968 #endif
34969 #if STDC_HEADERS
34970 #include <stdlib.h>
34971 #include <stddef.h>
34972 #endif
34973 #if HAVE_INTTYPES_H
34974 #include <inttypes.h>
34975 #endif
34976 #if HAVE_SYS_BITYPES_H
34977 #include <sys/bitypes.h>
34978 #endif
34979 #if HAVE_SYS_SELECT_H
34980 #include <sys/select.h>
34981 #endif
34982
34983
34984
34985 int
34986 main ()
34987 {
34988 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) < 0)];
34989 test_array [0] = 0
34990
34991 ;
34992 return 0;
34993 }
34994 _ACEOF
34995 rm -f conftest.$ac_objext
34996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34997 (eval $ac_compile) 2>conftest.er1
34998 ac_status=$?
34999 grep -v '^ *+' conftest.er1 >conftest.err
35000 rm -f conftest.er1
35001 cat conftest.err >&5
35002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35003 (exit $ac_status); } &&
35004 { ac_try='test -z "$ac_c_werror_flag"
35005 || test ! -s conftest.err'
35006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35007 (eval $ac_try) 2>&5
35008 ac_status=$?
35009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35010 (exit $ac_status); }; } &&
35011 { ac_try='test -s conftest.$ac_objext'
35012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35013 (eval $ac_try) 2>&5
35014 ac_status=$?
35015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35016 (exit $ac_status); }; }; then
35017 ac_hi=-1 ac_mid=-1
35018 while :; do
35019 cat >conftest.$ac_ext <<_ACEOF
35020 /* confdefs.h. */
35021 _ACEOF
35022 cat confdefs.h >>conftest.$ac_ext
35023 cat >>conftest.$ac_ext <<_ACEOF
35024 /* end confdefs.h. */
35025
35026 #include <stdio.h>
35027
35028 /* What a mess.. many systems have added the (now standard) bit types
35029 * in their own ways, so we need to scan a wide variety of headers to
35030 * find them..
35031 * IMPORTANT: Keep include/squid_types.h syncronised with this list
35032 */
35033 #if HAVE_SYS_TYPES_H
35034 #include <sys/types.h>
35035 #endif
35036 #if STDC_HEADERS
35037 #include <stdlib.h>
35038 #include <stddef.h>
35039 #endif
35040 #if HAVE_INTTYPES_H
35041 #include <inttypes.h>
35042 #endif
35043 #if HAVE_SYS_BITYPES_H
35044 #include <sys/bitypes.h>
35045 #endif
35046 #if HAVE_SYS_SELECT_H
35047 #include <sys/select.h>
35048 #endif
35049
35050
35051
35052 int
35053 main ()
35054 {
35055 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) >= $ac_mid)];
35056 test_array [0] = 0
35057
35058 ;
35059 return 0;
35060 }
35061 _ACEOF
35062 rm -f conftest.$ac_objext
35063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35064 (eval $ac_compile) 2>conftest.er1
35065 ac_status=$?
35066 grep -v '^ *+' conftest.er1 >conftest.err
35067 rm -f conftest.er1
35068 cat conftest.err >&5
35069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35070 (exit $ac_status); } &&
35071 { ac_try='test -z "$ac_c_werror_flag"
35072 || test ! -s conftest.err'
35073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35074 (eval $ac_try) 2>&5
35075 ac_status=$?
35076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35077 (exit $ac_status); }; } &&
35078 { ac_try='test -s conftest.$ac_objext'
35079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35080 (eval $ac_try) 2>&5
35081 ac_status=$?
35082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35083 (exit $ac_status); }; }; then
35084 ac_lo=$ac_mid; break
35085 else
35086 echo "$as_me: failed program was:" >&5
35087 sed 's/^/| /' conftest.$ac_ext >&5
35088
35089 ac_hi=`expr '(' $ac_mid ')' - 1`
35090 if test $ac_mid -le $ac_hi; then
35091 ac_lo= ac_hi=
35092 break
35093 fi
35094 ac_mid=`expr 2 '*' $ac_mid`
35095 fi
35096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35097 done
35098 else
35099 echo "$as_me: failed program was:" >&5
35100 sed 's/^/| /' conftest.$ac_ext >&5
35101
35102 ac_lo= ac_hi=
35103 fi
35104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35105 fi
35106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35107 # Binary search between lo and hi bounds.
35108 while test "x$ac_lo" != "x$ac_hi"; do
35109 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35110 cat >conftest.$ac_ext <<_ACEOF
35111 /* confdefs.h. */
35112 _ACEOF
35113 cat confdefs.h >>conftest.$ac_ext
35114 cat >>conftest.$ac_ext <<_ACEOF
35115 /* end confdefs.h. */
35116
35117 #include <stdio.h>
35118
35119 /* What a mess.. many systems have added the (now standard) bit types
35120 * in their own ways, so we need to scan a wide variety of headers to
35121 * find them..
35122 * IMPORTANT: Keep include/squid_types.h syncronised with this list
35123 */
35124 #if HAVE_SYS_TYPES_H
35125 #include <sys/types.h>
35126 #endif
35127 #if STDC_HEADERS
35128 #include <stdlib.h>
35129 #include <stddef.h>
35130 #endif
35131 #if HAVE_INTTYPES_H
35132 #include <inttypes.h>
35133 #endif
35134 #if HAVE_SYS_BITYPES_H
35135 #include <sys/bitypes.h>
35136 #endif
35137 #if HAVE_SYS_SELECT_H
35138 #include <sys/select.h>
35139 #endif
35140
35141
35142
35143 int
35144 main ()
35145 {
35146 static int test_array [1 - 2 * !(((long) (sizeof (int64_t))) <= $ac_mid)];
35147 test_array [0] = 0
35148
35149 ;
35150 return 0;
35151 }
35152 _ACEOF
35153 rm -f conftest.$ac_objext
35154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35155 (eval $ac_compile) 2>conftest.er1
35156 ac_status=$?
35157 grep -v '^ *+' conftest.er1 >conftest.err
35158 rm -f conftest.er1
35159 cat conftest.err >&5
35160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35161 (exit $ac_status); } &&
35162 { ac_try='test -z "$ac_c_werror_flag"
35163 || test ! -s conftest.err'
35164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35165 (eval $ac_try) 2>&5
35166 ac_status=$?
35167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35168 (exit $ac_status); }; } &&
35169 { ac_try='test -s conftest.$ac_objext'
35170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35171 (eval $ac_try) 2>&5
35172 ac_status=$?
35173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35174 (exit $ac_status); }; }; then
35175 ac_hi=$ac_mid
35176 else
35177 echo "$as_me: failed program was:" >&5
35178 sed 's/^/| /' conftest.$ac_ext >&5
35179
35180 ac_lo=`expr '(' $ac_mid ')' + 1`
35181 fi
35182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35183 done
35184 case $ac_lo in
35185 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
35186 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
35187 See \`config.log' for more details." >&5
35188 echo "$as_me: error: cannot compute sizeof (int64_t), 77
35189 See \`config.log' for more details." >&2;}
35190 { (exit 1); exit 1; }; } ;;
35191 esac
35192 else
35193 if test "$cross_compiling" = yes; then
35194 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35195 See \`config.log' for more details." >&5
35196 echo "$as_me: error: cannot run test program while cross compiling
35197 See \`config.log' for more details." >&2;}
35198 { (exit 1); exit 1; }; }
35199 else
35200 cat >conftest.$ac_ext <<_ACEOF
35201 /* confdefs.h. */
35202 _ACEOF
35203 cat confdefs.h >>conftest.$ac_ext
35204 cat >>conftest.$ac_ext <<_ACEOF
35205 /* end confdefs.h. */
35206
35207 #include <stdio.h>
35208
35209 /* What a mess.. many systems have added the (now standard) bit types
35210 * in their own ways, so we need to scan a wide variety of headers to
35211 * find them..
35212 * IMPORTANT: Keep include/squid_types.h syncronised with this list
35213 */
35214 #if HAVE_SYS_TYPES_H
35215 #include <sys/types.h>
35216 #endif
35217 #if STDC_HEADERS
35218 #include <stdlib.h>
35219 #include <stddef.h>
35220 #endif
35221 #if HAVE_INTTYPES_H
35222 #include <inttypes.h>
35223 #endif
35224 #if HAVE_SYS_BITYPES_H
35225 #include <sys/bitypes.h>
35226 #endif
35227 #if HAVE_SYS_SELECT_H
35228 #include <sys/select.h>
35229 #endif
35230
35231
35232
35233 long longval () { return (long) (sizeof (int64_t)); }
35234 unsigned long ulongval () { return (long) (sizeof (int64_t)); }
35235 #include <stdio.h>
35236 #include <stdlib.h>
35237 int
35238 main ()
35239 {
35240
35241 FILE *f = fopen ("conftest.val", "w");
35242 if (! f)
35243 exit (1);
35244 if (((long) (sizeof (int64_t))) < 0)
35245 {
35246 long i = longval ();
35247 if (i != ((long) (sizeof (int64_t))))
35248 exit (1);
35249 fprintf (f, "%ld\n", i);
35250 }
35251 else
35252 {
35253 unsigned long i = ulongval ();
35254 if (i != ((long) (sizeof (int64_t))))
35255 exit (1);
35256 fprintf (f, "%lu\n", i);
35257 }
35258 exit (ferror (f) || fclose (f) != 0);
35259
35260 ;
35261 return 0;
35262 }
35263 _ACEOF
35264 rm -f conftest$ac_exeext
35265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35266 (eval $ac_link) 2>&5
35267 ac_status=$?
35268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35269 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35271 (eval $ac_try) 2>&5
35272 ac_status=$?
35273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35274 (exit $ac_status); }; }; then
35275 ac_cv_sizeof_int64_t=`cat conftest.val`
35276 else
35277 echo "$as_me: program exited with status $ac_status" >&5
35278 echo "$as_me: failed program was:" >&5
35279 sed 's/^/| /' conftest.$ac_ext >&5
35280
35281 ( exit $ac_status )
35282 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t), 77
35283 See \`config.log' for more details." >&5
35284 echo "$as_me: error: cannot compute sizeof (int64_t), 77
35285 See \`config.log' for more details." >&2;}
35286 { (exit 1); exit 1; }; }
35287 fi
35288 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35289 fi
35290 fi
35291 rm -f conftest.val
35292 else
35293 ac_cv_sizeof_int64_t=0
35294 fi
35295 fi
35296 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
35297 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6
35298 cat >>confdefs.h <<_ACEOF
35299 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
35300 _ACEOF
35301
35302
35303
35304 cat >>confdefs.h <<\_ACEOF
35305 #define HAVE_INT64_T 1
35306 _ACEOF
35307
35308
35309 fi
35310
35311
35312 echo "$as_me:$LINENO: checking for __int64" >&5
35313 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
35314 if test "${ac_cv_type___int64+set}" = set; then
35315 echo $ECHO_N "(cached) $ECHO_C" >&6
35316 else
35317 cat >conftest.$ac_ext <<_ACEOF
35318 /* confdefs.h. */
35319 _ACEOF
35320 cat confdefs.h >>conftest.$ac_ext
35321 cat >>conftest.$ac_ext <<_ACEOF
35322 /* end confdefs.h. */
35323
35324 /* What a mess.. many systems have added the (now standard) bit types
35325 * in their own ways, so we need to scan a wide variety of headers to
35326 * find them..
35327 * IMPORTANT: Keep include/squid_types.h syncronised with this list
35328 */
35329 #if HAVE_SYS_TYPES_H
35330 #include <sys/types.h>
35331 #endif
35332 #if STDC_HEADERS
35333 #include <stdlib.h>
35334 #include <stddef.h>
35335 #endif
35336 #if HAVE_INTTYPES_H
35337 #include <inttypes.h>
35338 #endif
35339 #if HAVE_SYS_BITYPES_H
35340 #include <sys/bitypes.h>
35341 #endif
35342 #if HAVE_SYS_SELECT_H
35343 #include <sys/select.h>
35344 #endif
35345
35346
35347 int
35348 main ()
35349 {
35350 if ((__int64 *) 0)
35351 return 0;
35352 if (sizeof (__int64))
35353 return 0;
35354 ;
35355 return 0;
35356 }
35357 _ACEOF
35358 rm -f conftest.$ac_objext
35359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35360 (eval $ac_compile) 2>conftest.er1
35361 ac_status=$?
35362 grep -v '^ *+' conftest.er1 >conftest.err
35363 rm -f conftest.er1
35364 cat conftest.err >&5
35365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35366 (exit $ac_status); } &&
35367 { ac_try='test -z "$ac_c_werror_flag"
35368 || test ! -s conftest.err'
35369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35370 (eval $ac_try) 2>&5
35371 ac_status=$?
35372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35373 (exit $ac_status); }; } &&
35374 { ac_try='test -s conftest.$ac_objext'
35375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35376 (eval $ac_try) 2>&5
35377 ac_status=$?
35378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35379 (exit $ac_status); }; }; then
35380 ac_cv_type___int64=yes
35381 else
35382 echo "$as_me: failed program was:" >&5
35383 sed 's/^/| /' conftest.$ac_ext >&5
35384
35385 ac_cv_type___int64=no
35386 fi
35387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35388 fi
35389 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
35390 echo "${ECHO_T}$ac_cv_type___int64" >&6
35391 if test $ac_cv_type___int64 = yes; then
35392
35393 echo "$as_me:$LINENO: checking for __int64" >&5
35394 echo $ECHO_N "checking for __int64... $ECHO_C" >&6
35395 if test "${ac_cv_type___int64+set}" = set; then
35396 echo $ECHO_N "(cached) $ECHO_C" >&6
35397 else
35398 cat >conftest.$ac_ext <<_ACEOF
35399 /* confdefs.h. */
35400 _ACEOF
35401 cat confdefs.h >>conftest.$ac_ext
35402 cat >>conftest.$ac_ext <<_ACEOF
35403 /* end confdefs.h. */
35404
35405 #include <stdio.h>
35406
35407 /* What a mess.. many systems have added the (now standard) bit types
35408 * in their own ways, so we need to scan a wide variety of headers to
35409 * find them..
35410 * IMPORTANT: Keep include/squid_types.h syncronised with this list
35411 */
35412 #if HAVE_SYS_TYPES_H
35413 #include <sys/types.h>
35414 #endif
35415 #if STDC_HEADERS
35416 #include <stdlib.h>
35417 #include <stddef.h>
35418 #endif
35419 #if HAVE_INTTYPES_H
35420 #include <inttypes.h>
35421 #endif
35422 #if HAVE_SYS_BITYPES_H
35423 #include <sys/bitypes.h>
35424 #endif
35425 #if HAVE_SYS_SELECT_H
35426 #include <sys/select.h>
35427 #endif
35428
35429
35430
35431 int
35432 main ()
35433 {
35434 if ((__int64 *) 0)
35435 return 0;
35436 if (sizeof (__int64))
35437 return 0;
35438 ;
35439 return 0;
35440 }
35441 _ACEOF
35442 rm -f conftest.$ac_objext
35443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35444 (eval $ac_compile) 2>conftest.er1
35445 ac_status=$?
35446 grep -v '^ *+' conftest.er1 >conftest.err
35447 rm -f conftest.er1
35448 cat conftest.err >&5
35449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35450 (exit $ac_status); } &&
35451 { ac_try='test -z "$ac_c_werror_flag"
35452 || test ! -s conftest.err'
35453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35454 (eval $ac_try) 2>&5
35455 ac_status=$?
35456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35457 (exit $ac_status); }; } &&
35458 { ac_try='test -s conftest.$ac_objext'
35459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35460 (eval $ac_try) 2>&5
35461 ac_status=$?
35462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35463 (exit $ac_status); }; }; then
35464 ac_cv_type___int64=yes
35465 else
35466 echo "$as_me: failed program was:" >&5
35467 sed 's/^/| /' conftest.$ac_ext >&5
35468
35469 ac_cv_type___int64=no
35470 fi
35471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35472 fi
35473 echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
35474 echo "${ECHO_T}$ac_cv_type___int64" >&6
35475
35476 echo "$as_me:$LINENO: checking size of __int64" >&5
35477 echo $ECHO_N "checking size of __int64... $ECHO_C" >&6
35478 if test "${ac_cv_sizeof___int64+set}" = set; then
35479 echo $ECHO_N "(cached) $ECHO_C" >&6
35480 else
35481 if test "$ac_cv_type___int64" = yes; then
35482 # The cast to unsigned long works around a bug in the HP C Compiler
35483 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35484 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35485 # This bug is HP SR number 8606223364.
35486 if test "$cross_compiling" = yes; then
35487 # Depending upon the size, compute the lo and hi bounds.
35488 cat >conftest.$ac_ext <<_ACEOF
35489 /* confdefs.h. */
35490 _ACEOF
35491 cat confdefs.h >>conftest.$ac_ext
35492 cat >>conftest.$ac_ext <<_ACEOF
35493 /* end confdefs.h. */
35494
35495 #include <stdio.h>
35496
35497 /* What a mess.. many systems have added the (now standard) bit types
35498 * in their own ways, so we need to scan a wide variety of headers to
35499 * find them..
35500 * IMPORTANT: Keep include/squid_types.h syncronised with this list
35501 */
35502 #if HAVE_SYS_TYPES_H
35503 #include <sys/types.h>
35504 #endif
35505 #if STDC_HEADERS
35506 #include <stdlib.h>
35507 #include <stddef.h>
35508 #endif
35509 #if HAVE_INTTYPES_H
35510 #include <inttypes.h>
35511 #endif
35512 #if HAVE_SYS_BITYPES_H
35513 #include <sys/bitypes.h>
35514 #endif
35515 #if HAVE_SYS_SELECT_H
35516 #include <sys/select.h>
35517 #endif
35518
35519
35520
35521 int
35522 main ()
35523 {
35524 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= 0)];
35525 test_array [0] = 0
35526
35527 ;
35528 return 0;
35529 }
35530 _ACEOF
35531 rm -f conftest.$ac_objext
35532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35533 (eval $ac_compile) 2>conftest.er1
35534 ac_status=$?
35535 grep -v '^ *+' conftest.er1 >conftest.err
35536 rm -f conftest.er1
35537 cat conftest.err >&5
35538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35539 (exit $ac_status); } &&
35540 { ac_try='test -z "$ac_c_werror_flag"
35541 || test ! -s conftest.err'
35542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35543 (eval $ac_try) 2>&5
35544 ac_status=$?
35545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35546 (exit $ac_status); }; } &&
35547 { ac_try='test -s conftest.$ac_objext'
35548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35549 (eval $ac_try) 2>&5
35550 ac_status=$?
35551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35552 (exit $ac_status); }; }; then
35553 ac_lo=0 ac_mid=0
35554 while :; do
35555 cat >conftest.$ac_ext <<_ACEOF
35556 /* confdefs.h. */
35557 _ACEOF
35558 cat confdefs.h >>conftest.$ac_ext
35559 cat >>conftest.$ac_ext <<_ACEOF
35560 /* end confdefs.h. */
35561
35562 #include <stdio.h>
35563
35564 /* What a mess.. many systems have added the (now standard) bit types
35565 * in their own ways, so we need to scan a wide variety of headers to
35566 * find them..
35567 * IMPORTANT: Keep include/squid_types.h syncronised with this list
35568 */
35569 #if HAVE_SYS_TYPES_H
35570 #include <sys/types.h>
35571 #endif
35572 #if STDC_HEADERS
35573 #include <stdlib.h>
35574 #include <stddef.h>
35575 #endif
35576 #if HAVE_INTTYPES_H
35577 #include <inttypes.h>
35578 #endif
35579 #if HAVE_SYS_BITYPES_H
35580 #include <sys/bitypes.h>
35581 #endif
35582 #if HAVE_SYS_SELECT_H
35583 #include <sys/select.h>
35584 #endif
35585
35586
35587
35588 int
35589 main ()
35590 {
35591 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
35592 test_array [0] = 0
35593
35594 ;
35595 return 0;
35596 }
35597 _ACEOF
35598 rm -f conftest.$ac_objext
35599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35600 (eval $ac_compile) 2>conftest.er1
35601 ac_status=$?
35602 grep -v '^ *+' conftest.er1 >conftest.err
35603 rm -f conftest.er1
35604 cat conftest.err >&5
35605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35606 (exit $ac_status); } &&
35607 { ac_try='test -z "$ac_c_werror_flag"
35608 || test ! -s conftest.err'
35609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35610 (eval $ac_try) 2>&5
35611 ac_status=$?
35612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35613 (exit $ac_status); }; } &&
35614 { ac_try='test -s conftest.$ac_objext'
35615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35616 (eval $ac_try) 2>&5
35617 ac_status=$?
35618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35619 (exit $ac_status); }; }; then
35620 ac_hi=$ac_mid; break
35621 else
35622 echo "$as_me: failed program was:" >&5
35623 sed 's/^/| /' conftest.$ac_ext >&5
35624
35625 ac_lo=`expr $ac_mid + 1`
35626 if test $ac_lo -le $ac_mid; then
35627 ac_lo= ac_hi=
35628 break
35629 fi
35630 ac_mid=`expr 2 '*' $ac_mid + 1`
35631 fi
35632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35633 done
35634 else
35635 echo "$as_me: failed program was:" >&5
35636 sed 's/^/| /' conftest.$ac_ext >&5
35637
35638 cat >conftest.$ac_ext <<_ACEOF
35639 /* confdefs.h. */
35640 _ACEOF
35641 cat confdefs.h >>conftest.$ac_ext
35642 cat >>conftest.$ac_ext <<_ACEOF
35643 /* end confdefs.h. */
35644
35645 #include <stdio.h>
35646
35647 /* What a mess.. many systems have added the (now standard) bit types
35648 * in their own ways, so we need to scan a wide variety of headers to
35649 * find them..
35650 * IMPORTANT: Keep include/squid_types.h syncronised with this list
35651 */
35652 #if HAVE_SYS_TYPES_H
35653 #include <sys/types.h>
35654 #endif
35655 #if STDC_HEADERS
35656 #include <stdlib.h>
35657 #include <stddef.h>
35658 #endif
35659 #if HAVE_INTTYPES_H
35660 #include <inttypes.h>
35661 #endif
35662 #if HAVE_SYS_BITYPES_H
35663 #include <sys/bitypes.h>
35664 #endif
35665 #if HAVE_SYS_SELECT_H
35666 #include <sys/select.h>
35667 #endif
35668
35669
35670
35671 int
35672 main ()
35673 {
35674 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) < 0)];
35675 test_array [0] = 0
35676
35677 ;
35678 return 0;
35679 }
35680 _ACEOF
35681 rm -f conftest.$ac_objext
35682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35683 (eval $ac_compile) 2>conftest.er1
35684 ac_status=$?
35685 grep -v '^ *+' conftest.er1 >conftest.err
35686 rm -f conftest.er1
35687 cat conftest.err >&5
35688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35689 (exit $ac_status); } &&
35690 { ac_try='test -z "$ac_c_werror_flag"
35691 || test ! -s conftest.err'
35692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35693 (eval $ac_try) 2>&5
35694 ac_status=$?
35695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696 (exit $ac_status); }; } &&
35697 { ac_try='test -s conftest.$ac_objext'
35698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35699 (eval $ac_try) 2>&5
35700 ac_status=$?
35701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35702 (exit $ac_status); }; }; then
35703 ac_hi=-1 ac_mid=-1
35704 while :; do
35705 cat >conftest.$ac_ext <<_ACEOF
35706 /* confdefs.h. */
35707 _ACEOF
35708 cat confdefs.h >>conftest.$ac_ext
35709 cat >>conftest.$ac_ext <<_ACEOF
35710 /* end confdefs.h. */
35711
35712 #include <stdio.h>
35713
35714 /* What a mess.. many systems have added the (now standard) bit types
35715 * in their own ways, so we need to scan a wide variety of headers to
35716 * find them..
35717 * IMPORTANT: Keep include/squid_types.h syncronised with this list
35718 */
35719 #if HAVE_SYS_TYPES_H
35720 #include <sys/types.h>
35721 #endif
35722 #if STDC_HEADERS
35723 #include <stdlib.h>
35724 #include <stddef.h>
35725 #endif
35726 #if HAVE_INTTYPES_H
35727 #include <inttypes.h>
35728 #endif
35729 #if HAVE_SYS_BITYPES_H
35730 #include <sys/bitypes.h>
35731 #endif
35732 #if HAVE_SYS_SELECT_H
35733 #include <sys/select.h>
35734 #endif
35735
35736
35737
35738 int
35739 main ()
35740 {
35741 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) >= $ac_mid)];
35742 test_array [0] = 0
35743
35744 ;
35745 return 0;
35746 }
35747 _ACEOF
35748 rm -f conftest.$ac_objext
35749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35750 (eval $ac_compile) 2>conftest.er1
35751 ac_status=$?
35752 grep -v '^ *+' conftest.er1 >conftest.err
35753 rm -f conftest.er1
35754 cat conftest.err >&5
35755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35756 (exit $ac_status); } &&
35757 { ac_try='test -z "$ac_c_werror_flag"
35758 || test ! -s conftest.err'
35759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35760 (eval $ac_try) 2>&5
35761 ac_status=$?
35762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35763 (exit $ac_status); }; } &&
35764 { ac_try='test -s conftest.$ac_objext'
35765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35766 (eval $ac_try) 2>&5
35767 ac_status=$?
35768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35769 (exit $ac_status); }; }; then
35770 ac_lo=$ac_mid; break
35771 else
35772 echo "$as_me: failed program was:" >&5
35773 sed 's/^/| /' conftest.$ac_ext >&5
35774
35775 ac_hi=`expr '(' $ac_mid ')' - 1`
35776 if test $ac_mid -le $ac_hi; then
35777 ac_lo= ac_hi=
35778 break
35779 fi
35780 ac_mid=`expr 2 '*' $ac_mid`
35781 fi
35782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35783 done
35784 else
35785 echo "$as_me: failed program was:" >&5
35786 sed 's/^/| /' conftest.$ac_ext >&5
35787
35788 ac_lo= ac_hi=
35789 fi
35790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35791 fi
35792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35793 # Binary search between lo and hi bounds.
35794 while test "x$ac_lo" != "x$ac_hi"; do
35795 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35796 cat >conftest.$ac_ext <<_ACEOF
35797 /* confdefs.h. */
35798 _ACEOF
35799 cat confdefs.h >>conftest.$ac_ext
35800 cat >>conftest.$ac_ext <<_ACEOF
35801 /* end confdefs.h. */
35802
35803 #include <stdio.h>
35804
35805 /* What a mess.. many systems have added the (now standard) bit types
35806 * in their own ways, so we need to scan a wide variety of headers to
35807 * find them..
35808 * IMPORTANT: Keep include/squid_types.h syncronised with this list
35809 */
35810 #if HAVE_SYS_TYPES_H
35811 #include <sys/types.h>
35812 #endif
35813 #if STDC_HEADERS
35814 #include <stdlib.h>
35815 #include <stddef.h>
35816 #endif
35817 #if HAVE_INTTYPES_H
35818 #include <inttypes.h>
35819 #endif
35820 #if HAVE_SYS_BITYPES_H
35821 #include <sys/bitypes.h>
35822 #endif
35823 #if HAVE_SYS_SELECT_H
35824 #include <sys/select.h>
35825 #endif
35826
35827
35828
35829 int
35830 main ()
35831 {
35832 static int test_array [1 - 2 * !(((long) (sizeof (__int64))) <= $ac_mid)];
35833 test_array [0] = 0
35834
35835 ;
35836 return 0;
35837 }
35838 _ACEOF
35839 rm -f conftest.$ac_objext
35840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35841 (eval $ac_compile) 2>conftest.er1
35842 ac_status=$?
35843 grep -v '^ *+' conftest.er1 >conftest.err
35844 rm -f conftest.er1
35845 cat conftest.err >&5
35846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35847 (exit $ac_status); } &&
35848 { ac_try='test -z "$ac_c_werror_flag"
35849 || test ! -s conftest.err'
35850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35851 (eval $ac_try) 2>&5
35852 ac_status=$?
35853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35854 (exit $ac_status); }; } &&
35855 { ac_try='test -s conftest.$ac_objext'
35856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35857 (eval $ac_try) 2>&5
35858 ac_status=$?
35859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35860 (exit $ac_status); }; }; then
35861 ac_hi=$ac_mid
35862 else
35863 echo "$as_me: failed program was:" >&5
35864 sed 's/^/| /' conftest.$ac_ext >&5
35865
35866 ac_lo=`expr '(' $ac_mid ')' + 1`
35867 fi
35868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35869 done
35870 case $ac_lo in
35871 ?*) ac_cv_sizeof___int64=$ac_lo;;
35872 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
35873 See \`config.log' for more details." >&5
35874 echo "$as_me: error: cannot compute sizeof (__int64), 77
35875 See \`config.log' for more details." >&2;}
35876 { (exit 1); exit 1; }; } ;;
35877 esac
35878 else
35879 if test "$cross_compiling" = yes; then
35880 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
35881 See \`config.log' for more details." >&5
35882 echo "$as_me: error: cannot run test program while cross compiling
35883 See \`config.log' for more details." >&2;}
35884 { (exit 1); exit 1; }; }
35885 else
35886 cat >conftest.$ac_ext <<_ACEOF
35887 /* confdefs.h. */
35888 _ACEOF
35889 cat confdefs.h >>conftest.$ac_ext
35890 cat >>conftest.$ac_ext <<_ACEOF
35891 /* end confdefs.h. */
35892
35893 #include <stdio.h>
35894
35895 /* What a mess.. many systems have added the (now standard) bit types
35896 * in their own ways, so we need to scan a wide variety of headers to
35897 * find them..
35898 * IMPORTANT: Keep include/squid_types.h syncronised with this list
35899 */
35900 #if HAVE_SYS_TYPES_H
35901 #include <sys/types.h>
35902 #endif
35903 #if STDC_HEADERS
35904 #include <stdlib.h>
35905 #include <stddef.h>
35906 #endif
35907 #if HAVE_INTTYPES_H
35908 #include <inttypes.h>
35909 #endif
35910 #if HAVE_SYS_BITYPES_H
35911 #include <sys/bitypes.h>
35912 #endif
35913 #if HAVE_SYS_SELECT_H
35914 #include <sys/select.h>
35915 #endif
35916
35917
35918
35919 long longval () { return (long) (sizeof (__int64)); }
35920 unsigned long ulongval () { return (long) (sizeof (__int64)); }
35921 #include <stdio.h>
35922 #include <stdlib.h>
35923 int
35924 main ()
35925 {
35926
35927 FILE *f = fopen ("conftest.val", "w");
35928 if (! f)
35929 exit (1);
35930 if (((long) (sizeof (__int64))) < 0)
35931 {
35932 long i = longval ();
35933 if (i != ((long) (sizeof (__int64))))
35934 exit (1);
35935 fprintf (f, "%ld\n", i);
35936 }
35937 else
35938 {
35939 unsigned long i = ulongval ();
35940 if (i != ((long) (sizeof (__int64))))
35941 exit (1);
35942 fprintf (f, "%lu\n", i);
35943 }
35944 exit (ferror (f) || fclose (f) != 0);
35945
35946 ;
35947 return 0;
35948 }
35949 _ACEOF
35950 rm -f conftest$ac_exeext
35951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35952 (eval $ac_link) 2>&5
35953 ac_status=$?
35954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35957 (eval $ac_try) 2>&5
35958 ac_status=$?
35959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35960 (exit $ac_status); }; }; then
35961 ac_cv_sizeof___int64=`cat conftest.val`
35962 else
35963 echo "$as_me: program exited with status $ac_status" >&5
35964 echo "$as_me: failed program was:" >&5
35965 sed 's/^/| /' conftest.$ac_ext >&5
35966
35967 ( exit $ac_status )
35968 { { echo "$as_me:$LINENO: error: cannot compute sizeof (__int64), 77
35969 See \`config.log' for more details." >&5
35970 echo "$as_me: error: cannot compute sizeof (__int64), 77
35971 See \`config.log' for more details." >&2;}
35972 { (exit 1); exit 1; }; }
35973 fi
35974 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35975 fi
35976 fi
35977 rm -f conftest.val
35978 else
35979 ac_cv_sizeof___int64=0
35980 fi
35981 fi
35982 echo "$as_me:$LINENO: result: $ac_cv_sizeof___int64" >&5
35983 echo "${ECHO_T}$ac_cv_sizeof___int64" >&6
35984 cat >>confdefs.h <<_ACEOF
35985 #define SIZEOF___INT64 $ac_cv_sizeof___int64
35986 _ACEOF
35987
35988
35989
35990 cat >>confdefs.h <<\_ACEOF
35991 #define HAVE___INT64 1
35992 _ACEOF
35993
35994
35995 fi
35996
35997
35998 echo "$as_me:$LINENO: checking for long long" >&5
35999 echo $ECHO_N "checking for long long... $ECHO_C" >&6
36000 if test "${ac_cv_type_long_long+set}" = set; then
36001 echo $ECHO_N "(cached) $ECHO_C" >&6
36002 else
36003 cat >conftest.$ac_ext <<_ACEOF
36004 /* confdefs.h. */
36005 _ACEOF
36006 cat confdefs.h >>conftest.$ac_ext
36007 cat >>conftest.$ac_ext <<_ACEOF
36008 /* end confdefs.h. */
36009
36010 /* What a mess.. many systems have added the (now standard) bit types
36011 * in their own ways, so we need to scan a wide variety of headers to
36012 * find them..
36013 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36014 */
36015 #if HAVE_SYS_TYPES_H
36016 #include <sys/types.h>
36017 #endif
36018 #if STDC_HEADERS
36019 #include <stdlib.h>
36020 #include <stddef.h>
36021 #endif
36022 #if HAVE_INTTYPES_H
36023 #include <inttypes.h>
36024 #endif
36025 #if HAVE_SYS_BITYPES_H
36026 #include <sys/bitypes.h>
36027 #endif
36028 #if HAVE_SYS_SELECT_H
36029 #include <sys/select.h>
36030 #endif
36031
36032
36033 int
36034 main ()
36035 {
36036 if ((long long *) 0)
36037 return 0;
36038 if (sizeof (long long))
36039 return 0;
36040 ;
36041 return 0;
36042 }
36043 _ACEOF
36044 rm -f conftest.$ac_objext
36045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36046 (eval $ac_compile) 2>conftest.er1
36047 ac_status=$?
36048 grep -v '^ *+' conftest.er1 >conftest.err
36049 rm -f conftest.er1
36050 cat conftest.err >&5
36051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36052 (exit $ac_status); } &&
36053 { ac_try='test -z "$ac_c_werror_flag"
36054 || test ! -s conftest.err'
36055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36056 (eval $ac_try) 2>&5
36057 ac_status=$?
36058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36059 (exit $ac_status); }; } &&
36060 { ac_try='test -s conftest.$ac_objext'
36061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36062 (eval $ac_try) 2>&5
36063 ac_status=$?
36064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36065 (exit $ac_status); }; }; then
36066 ac_cv_type_long_long=yes
36067 else
36068 echo "$as_me: failed program was:" >&5
36069 sed 's/^/| /' conftest.$ac_ext >&5
36070
36071 ac_cv_type_long_long=no
36072 fi
36073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36074 fi
36075 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
36076 echo "${ECHO_T}$ac_cv_type_long_long" >&6
36077 if test $ac_cv_type_long_long = yes; then
36078
36079 echo "$as_me:$LINENO: checking for long long" >&5
36080 echo $ECHO_N "checking for long long... $ECHO_C" >&6
36081 if test "${ac_cv_type_long_long+set}" = set; then
36082 echo $ECHO_N "(cached) $ECHO_C" >&6
36083 else
36084 cat >conftest.$ac_ext <<_ACEOF
36085 /* confdefs.h. */
36086 _ACEOF
36087 cat confdefs.h >>conftest.$ac_ext
36088 cat >>conftest.$ac_ext <<_ACEOF
36089 /* end confdefs.h. */
36090
36091 #include <stdio.h>
36092
36093 /* What a mess.. many systems have added the (now standard) bit types
36094 * in their own ways, so we need to scan a wide variety of headers to
36095 * find them..
36096 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36097 */
36098 #if HAVE_SYS_TYPES_H
36099 #include <sys/types.h>
36100 #endif
36101 #if STDC_HEADERS
36102 #include <stdlib.h>
36103 #include <stddef.h>
36104 #endif
36105 #if HAVE_INTTYPES_H
36106 #include <inttypes.h>
36107 #endif
36108 #if HAVE_SYS_BITYPES_H
36109 #include <sys/bitypes.h>
36110 #endif
36111 #if HAVE_SYS_SELECT_H
36112 #include <sys/select.h>
36113 #endif
36114
36115
36116
36117 int
36118 main ()
36119 {
36120 if ((long long *) 0)
36121 return 0;
36122 if (sizeof (long long))
36123 return 0;
36124 ;
36125 return 0;
36126 }
36127 _ACEOF
36128 rm -f conftest.$ac_objext
36129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36130 (eval $ac_compile) 2>conftest.er1
36131 ac_status=$?
36132 grep -v '^ *+' conftest.er1 >conftest.err
36133 rm -f conftest.er1
36134 cat conftest.err >&5
36135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36136 (exit $ac_status); } &&
36137 { ac_try='test -z "$ac_c_werror_flag"
36138 || test ! -s conftest.err'
36139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36140 (eval $ac_try) 2>&5
36141 ac_status=$?
36142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36143 (exit $ac_status); }; } &&
36144 { ac_try='test -s conftest.$ac_objext'
36145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36146 (eval $ac_try) 2>&5
36147 ac_status=$?
36148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36149 (exit $ac_status); }; }; then
36150 ac_cv_type_long_long=yes
36151 else
36152 echo "$as_me: failed program was:" >&5
36153 sed 's/^/| /' conftest.$ac_ext >&5
36154
36155 ac_cv_type_long_long=no
36156 fi
36157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36158 fi
36159 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
36160 echo "${ECHO_T}$ac_cv_type_long_long" >&6
36161
36162 echo "$as_me:$LINENO: checking size of long long" >&5
36163 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
36164 if test "${ac_cv_sizeof_long_long+set}" = set; then
36165 echo $ECHO_N "(cached) $ECHO_C" >&6
36166 else
36167 if test "$ac_cv_type_long_long" = yes; then
36168 # The cast to unsigned long works around a bug in the HP C Compiler
36169 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36170 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36171 # This bug is HP SR number 8606223364.
36172 if test "$cross_compiling" = yes; then
36173 # Depending upon the size, compute the lo and hi bounds.
36174 cat >conftest.$ac_ext <<_ACEOF
36175 /* confdefs.h. */
36176 _ACEOF
36177 cat confdefs.h >>conftest.$ac_ext
36178 cat >>conftest.$ac_ext <<_ACEOF
36179 /* end confdefs.h. */
36180
36181 #include <stdio.h>
36182
36183 /* What a mess.. many systems have added the (now standard) bit types
36184 * in their own ways, so we need to scan a wide variety of headers to
36185 * find them..
36186 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36187 */
36188 #if HAVE_SYS_TYPES_H
36189 #include <sys/types.h>
36190 #endif
36191 #if STDC_HEADERS
36192 #include <stdlib.h>
36193 #include <stddef.h>
36194 #endif
36195 #if HAVE_INTTYPES_H
36196 #include <inttypes.h>
36197 #endif
36198 #if HAVE_SYS_BITYPES_H
36199 #include <sys/bitypes.h>
36200 #endif
36201 #if HAVE_SYS_SELECT_H
36202 #include <sys/select.h>
36203 #endif
36204
36205
36206
36207 int
36208 main ()
36209 {
36210 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
36211 test_array [0] = 0
36212
36213 ;
36214 return 0;
36215 }
36216 _ACEOF
36217 rm -f conftest.$ac_objext
36218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36219 (eval $ac_compile) 2>conftest.er1
36220 ac_status=$?
36221 grep -v '^ *+' conftest.er1 >conftest.err
36222 rm -f conftest.er1
36223 cat conftest.err >&5
36224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36225 (exit $ac_status); } &&
36226 { ac_try='test -z "$ac_c_werror_flag"
36227 || test ! -s conftest.err'
36228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36229 (eval $ac_try) 2>&5
36230 ac_status=$?
36231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36232 (exit $ac_status); }; } &&
36233 { ac_try='test -s conftest.$ac_objext'
36234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36235 (eval $ac_try) 2>&5
36236 ac_status=$?
36237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36238 (exit $ac_status); }; }; then
36239 ac_lo=0 ac_mid=0
36240 while :; do
36241 cat >conftest.$ac_ext <<_ACEOF
36242 /* confdefs.h. */
36243 _ACEOF
36244 cat confdefs.h >>conftest.$ac_ext
36245 cat >>conftest.$ac_ext <<_ACEOF
36246 /* end confdefs.h. */
36247
36248 #include <stdio.h>
36249
36250 /* What a mess.. many systems have added the (now standard) bit types
36251 * in their own ways, so we need to scan a wide variety of headers to
36252 * find them..
36253 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36254 */
36255 #if HAVE_SYS_TYPES_H
36256 #include <sys/types.h>
36257 #endif
36258 #if STDC_HEADERS
36259 #include <stdlib.h>
36260 #include <stddef.h>
36261 #endif
36262 #if HAVE_INTTYPES_H
36263 #include <inttypes.h>
36264 #endif
36265 #if HAVE_SYS_BITYPES_H
36266 #include <sys/bitypes.h>
36267 #endif
36268 #if HAVE_SYS_SELECT_H
36269 #include <sys/select.h>
36270 #endif
36271
36272
36273
36274 int
36275 main ()
36276 {
36277 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36278 test_array [0] = 0
36279
36280 ;
36281 return 0;
36282 }
36283 _ACEOF
36284 rm -f conftest.$ac_objext
36285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36286 (eval $ac_compile) 2>conftest.er1
36287 ac_status=$?
36288 grep -v '^ *+' conftest.er1 >conftest.err
36289 rm -f conftest.er1
36290 cat conftest.err >&5
36291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36292 (exit $ac_status); } &&
36293 { ac_try='test -z "$ac_c_werror_flag"
36294 || test ! -s conftest.err'
36295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36296 (eval $ac_try) 2>&5
36297 ac_status=$?
36298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36299 (exit $ac_status); }; } &&
36300 { ac_try='test -s conftest.$ac_objext'
36301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36302 (eval $ac_try) 2>&5
36303 ac_status=$?
36304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36305 (exit $ac_status); }; }; then
36306 ac_hi=$ac_mid; break
36307 else
36308 echo "$as_me: failed program was:" >&5
36309 sed 's/^/| /' conftest.$ac_ext >&5
36310
36311 ac_lo=`expr $ac_mid + 1`
36312 if test $ac_lo -le $ac_mid; then
36313 ac_lo= ac_hi=
36314 break
36315 fi
36316 ac_mid=`expr 2 '*' $ac_mid + 1`
36317 fi
36318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36319 done
36320 else
36321 echo "$as_me: failed program was:" >&5
36322 sed 's/^/| /' conftest.$ac_ext >&5
36323
36324 cat >conftest.$ac_ext <<_ACEOF
36325 /* confdefs.h. */
36326 _ACEOF
36327 cat confdefs.h >>conftest.$ac_ext
36328 cat >>conftest.$ac_ext <<_ACEOF
36329 /* end confdefs.h. */
36330
36331 #include <stdio.h>
36332
36333 /* What a mess.. many systems have added the (now standard) bit types
36334 * in their own ways, so we need to scan a wide variety of headers to
36335 * find them..
36336 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36337 */
36338 #if HAVE_SYS_TYPES_H
36339 #include <sys/types.h>
36340 #endif
36341 #if STDC_HEADERS
36342 #include <stdlib.h>
36343 #include <stddef.h>
36344 #endif
36345 #if HAVE_INTTYPES_H
36346 #include <inttypes.h>
36347 #endif
36348 #if HAVE_SYS_BITYPES_H
36349 #include <sys/bitypes.h>
36350 #endif
36351 #if HAVE_SYS_SELECT_H
36352 #include <sys/select.h>
36353 #endif
36354
36355
36356
36357 int
36358 main ()
36359 {
36360 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
36361 test_array [0] = 0
36362
36363 ;
36364 return 0;
36365 }
36366 _ACEOF
36367 rm -f conftest.$ac_objext
36368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36369 (eval $ac_compile) 2>conftest.er1
36370 ac_status=$?
36371 grep -v '^ *+' conftest.er1 >conftest.err
36372 rm -f conftest.er1
36373 cat conftest.err >&5
36374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36375 (exit $ac_status); } &&
36376 { ac_try='test -z "$ac_c_werror_flag"
36377 || test ! -s conftest.err'
36378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36379 (eval $ac_try) 2>&5
36380 ac_status=$?
36381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36382 (exit $ac_status); }; } &&
36383 { ac_try='test -s conftest.$ac_objext'
36384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36385 (eval $ac_try) 2>&5
36386 ac_status=$?
36387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36388 (exit $ac_status); }; }; then
36389 ac_hi=-1 ac_mid=-1
36390 while :; do
36391 cat >conftest.$ac_ext <<_ACEOF
36392 /* confdefs.h. */
36393 _ACEOF
36394 cat confdefs.h >>conftest.$ac_ext
36395 cat >>conftest.$ac_ext <<_ACEOF
36396 /* end confdefs.h. */
36397
36398 #include <stdio.h>
36399
36400 /* What a mess.. many systems have added the (now standard) bit types
36401 * in their own ways, so we need to scan a wide variety of headers to
36402 * find them..
36403 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36404 */
36405 #if HAVE_SYS_TYPES_H
36406 #include <sys/types.h>
36407 #endif
36408 #if STDC_HEADERS
36409 #include <stdlib.h>
36410 #include <stddef.h>
36411 #endif
36412 #if HAVE_INTTYPES_H
36413 #include <inttypes.h>
36414 #endif
36415 #if HAVE_SYS_BITYPES_H
36416 #include <sys/bitypes.h>
36417 #endif
36418 #if HAVE_SYS_SELECT_H
36419 #include <sys/select.h>
36420 #endif
36421
36422
36423
36424 int
36425 main ()
36426 {
36427 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
36428 test_array [0] = 0
36429
36430 ;
36431 return 0;
36432 }
36433 _ACEOF
36434 rm -f conftest.$ac_objext
36435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36436 (eval $ac_compile) 2>conftest.er1
36437 ac_status=$?
36438 grep -v '^ *+' conftest.er1 >conftest.err
36439 rm -f conftest.er1
36440 cat conftest.err >&5
36441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36442 (exit $ac_status); } &&
36443 { ac_try='test -z "$ac_c_werror_flag"
36444 || test ! -s conftest.err'
36445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36446 (eval $ac_try) 2>&5
36447 ac_status=$?
36448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36449 (exit $ac_status); }; } &&
36450 { ac_try='test -s conftest.$ac_objext'
36451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36452 (eval $ac_try) 2>&5
36453 ac_status=$?
36454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36455 (exit $ac_status); }; }; then
36456 ac_lo=$ac_mid; break
36457 else
36458 echo "$as_me: failed program was:" >&5
36459 sed 's/^/| /' conftest.$ac_ext >&5
36460
36461 ac_hi=`expr '(' $ac_mid ')' - 1`
36462 if test $ac_mid -le $ac_hi; then
36463 ac_lo= ac_hi=
36464 break
36465 fi
36466 ac_mid=`expr 2 '*' $ac_mid`
36467 fi
36468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36469 done
36470 else
36471 echo "$as_me: failed program was:" >&5
36472 sed 's/^/| /' conftest.$ac_ext >&5
36473
36474 ac_lo= ac_hi=
36475 fi
36476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36477 fi
36478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36479 # Binary search between lo and hi bounds.
36480 while test "x$ac_lo" != "x$ac_hi"; do
36481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36482 cat >conftest.$ac_ext <<_ACEOF
36483 /* confdefs.h. */
36484 _ACEOF
36485 cat confdefs.h >>conftest.$ac_ext
36486 cat >>conftest.$ac_ext <<_ACEOF
36487 /* end confdefs.h. */
36488
36489 #include <stdio.h>
36490
36491 /* What a mess.. many systems have added the (now standard) bit types
36492 * in their own ways, so we need to scan a wide variety of headers to
36493 * find them..
36494 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36495 */
36496 #if HAVE_SYS_TYPES_H
36497 #include <sys/types.h>
36498 #endif
36499 #if STDC_HEADERS
36500 #include <stdlib.h>
36501 #include <stddef.h>
36502 #endif
36503 #if HAVE_INTTYPES_H
36504 #include <inttypes.h>
36505 #endif
36506 #if HAVE_SYS_BITYPES_H
36507 #include <sys/bitypes.h>
36508 #endif
36509 #if HAVE_SYS_SELECT_H
36510 #include <sys/select.h>
36511 #endif
36512
36513
36514
36515 int
36516 main ()
36517 {
36518 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
36519 test_array [0] = 0
36520
36521 ;
36522 return 0;
36523 }
36524 _ACEOF
36525 rm -f conftest.$ac_objext
36526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36527 (eval $ac_compile) 2>conftest.er1
36528 ac_status=$?
36529 grep -v '^ *+' conftest.er1 >conftest.err
36530 rm -f conftest.er1
36531 cat conftest.err >&5
36532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36533 (exit $ac_status); } &&
36534 { ac_try='test -z "$ac_c_werror_flag"
36535 || test ! -s conftest.err'
36536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36537 (eval $ac_try) 2>&5
36538 ac_status=$?
36539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36540 (exit $ac_status); }; } &&
36541 { ac_try='test -s conftest.$ac_objext'
36542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36543 (eval $ac_try) 2>&5
36544 ac_status=$?
36545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36546 (exit $ac_status); }; }; then
36547 ac_hi=$ac_mid
36548 else
36549 echo "$as_me: failed program was:" >&5
36550 sed 's/^/| /' conftest.$ac_ext >&5
36551
36552 ac_lo=`expr '(' $ac_mid ')' + 1`
36553 fi
36554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36555 done
36556 case $ac_lo in
36557 ?*) ac_cv_sizeof_long_long=$ac_lo;;
36558 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36559 See \`config.log' for more details." >&5
36560 echo "$as_me: error: cannot compute sizeof (long long), 77
36561 See \`config.log' for more details." >&2;}
36562 { (exit 1); exit 1; }; } ;;
36563 esac
36564 else
36565 if test "$cross_compiling" = yes; then
36566 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
36567 See \`config.log' for more details." >&5
36568 echo "$as_me: error: cannot run test program while cross compiling
36569 See \`config.log' for more details." >&2;}
36570 { (exit 1); exit 1; }; }
36571 else
36572 cat >conftest.$ac_ext <<_ACEOF
36573 /* confdefs.h. */
36574 _ACEOF
36575 cat confdefs.h >>conftest.$ac_ext
36576 cat >>conftest.$ac_ext <<_ACEOF
36577 /* end confdefs.h. */
36578
36579 #include <stdio.h>
36580
36581 /* What a mess.. many systems have added the (now standard) bit types
36582 * in their own ways, so we need to scan a wide variety of headers to
36583 * find them..
36584 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36585 */
36586 #if HAVE_SYS_TYPES_H
36587 #include <sys/types.h>
36588 #endif
36589 #if STDC_HEADERS
36590 #include <stdlib.h>
36591 #include <stddef.h>
36592 #endif
36593 #if HAVE_INTTYPES_H
36594 #include <inttypes.h>
36595 #endif
36596 #if HAVE_SYS_BITYPES_H
36597 #include <sys/bitypes.h>
36598 #endif
36599 #if HAVE_SYS_SELECT_H
36600 #include <sys/select.h>
36601 #endif
36602
36603
36604
36605 long longval () { return (long) (sizeof (long long)); }
36606 unsigned long ulongval () { return (long) (sizeof (long long)); }
36607 #include <stdio.h>
36608 #include <stdlib.h>
36609 int
36610 main ()
36611 {
36612
36613 FILE *f = fopen ("conftest.val", "w");
36614 if (! f)
36615 exit (1);
36616 if (((long) (sizeof (long long))) < 0)
36617 {
36618 long i = longval ();
36619 if (i != ((long) (sizeof (long long))))
36620 exit (1);
36621 fprintf (f, "%ld\n", i);
36622 }
36623 else
36624 {
36625 unsigned long i = ulongval ();
36626 if (i != ((long) (sizeof (long long))))
36627 exit (1);
36628 fprintf (f, "%lu\n", i);
36629 }
36630 exit (ferror (f) || fclose (f) != 0);
36631
36632 ;
36633 return 0;
36634 }
36635 _ACEOF
36636 rm -f conftest$ac_exeext
36637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36638 (eval $ac_link) 2>&5
36639 ac_status=$?
36640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36643 (eval $ac_try) 2>&5
36644 ac_status=$?
36645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36646 (exit $ac_status); }; }; then
36647 ac_cv_sizeof_long_long=`cat conftest.val`
36648 else
36649 echo "$as_me: program exited with status $ac_status" >&5
36650 echo "$as_me: failed program was:" >&5
36651 sed 's/^/| /' conftest.$ac_ext >&5
36652
36653 ( exit $ac_status )
36654 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
36655 See \`config.log' for more details." >&5
36656 echo "$as_me: error: cannot compute sizeof (long long), 77
36657 See \`config.log' for more details." >&2;}
36658 { (exit 1); exit 1; }; }
36659 fi
36660 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36661 fi
36662 fi
36663 rm -f conftest.val
36664 else
36665 ac_cv_sizeof_long_long=0
36666 fi
36667 fi
36668 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
36669 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
36670 cat >>confdefs.h <<_ACEOF
36671 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
36672 _ACEOF
36673
36674
36675
36676 cat >>confdefs.h <<\_ACEOF
36677 #define HAVE_LONG_LONG 1
36678 _ACEOF
36679
36680
36681 fi
36682
36683
36684 echo "$as_me:$LINENO: checking for u_int64_t" >&5
36685 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
36686 if test "${ac_cv_type_u_int64_t+set}" = set; then
36687 echo $ECHO_N "(cached) $ECHO_C" >&6
36688 else
36689 cat >conftest.$ac_ext <<_ACEOF
36690 /* confdefs.h. */
36691 _ACEOF
36692 cat confdefs.h >>conftest.$ac_ext
36693 cat >>conftest.$ac_ext <<_ACEOF
36694 /* end confdefs.h. */
36695
36696 /* What a mess.. many systems have added the (now standard) bit types
36697 * in their own ways, so we need to scan a wide variety of headers to
36698 * find them..
36699 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36700 */
36701 #if HAVE_SYS_TYPES_H
36702 #include <sys/types.h>
36703 #endif
36704 #if STDC_HEADERS
36705 #include <stdlib.h>
36706 #include <stddef.h>
36707 #endif
36708 #if HAVE_INTTYPES_H
36709 #include <inttypes.h>
36710 #endif
36711 #if HAVE_SYS_BITYPES_H
36712 #include <sys/bitypes.h>
36713 #endif
36714 #if HAVE_SYS_SELECT_H
36715 #include <sys/select.h>
36716 #endif
36717
36718
36719 int
36720 main ()
36721 {
36722 if ((u_int64_t *) 0)
36723 return 0;
36724 if (sizeof (u_int64_t))
36725 return 0;
36726 ;
36727 return 0;
36728 }
36729 _ACEOF
36730 rm -f conftest.$ac_objext
36731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36732 (eval $ac_compile) 2>conftest.er1
36733 ac_status=$?
36734 grep -v '^ *+' conftest.er1 >conftest.err
36735 rm -f conftest.er1
36736 cat conftest.err >&5
36737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36738 (exit $ac_status); } &&
36739 { ac_try='test -z "$ac_c_werror_flag"
36740 || test ! -s conftest.err'
36741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36742 (eval $ac_try) 2>&5
36743 ac_status=$?
36744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36745 (exit $ac_status); }; } &&
36746 { ac_try='test -s conftest.$ac_objext'
36747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36748 (eval $ac_try) 2>&5
36749 ac_status=$?
36750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36751 (exit $ac_status); }; }; then
36752 ac_cv_type_u_int64_t=yes
36753 else
36754 echo "$as_me: failed program was:" >&5
36755 sed 's/^/| /' conftest.$ac_ext >&5
36756
36757 ac_cv_type_u_int64_t=no
36758 fi
36759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36760 fi
36761 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
36762 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
36763 if test $ac_cv_type_u_int64_t = yes; then
36764
36765 echo "$as_me:$LINENO: checking for u_int64_t" >&5
36766 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
36767 if test "${ac_cv_type_u_int64_t+set}" = set; then
36768 echo $ECHO_N "(cached) $ECHO_C" >&6
36769 else
36770 cat >conftest.$ac_ext <<_ACEOF
36771 /* confdefs.h. */
36772 _ACEOF
36773 cat confdefs.h >>conftest.$ac_ext
36774 cat >>conftest.$ac_ext <<_ACEOF
36775 /* end confdefs.h. */
36776
36777 #include <stdio.h>
36778
36779 /* What a mess.. many systems have added the (now standard) bit types
36780 * in their own ways, so we need to scan a wide variety of headers to
36781 * find them..
36782 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36783 */
36784 #if HAVE_SYS_TYPES_H
36785 #include <sys/types.h>
36786 #endif
36787 #if STDC_HEADERS
36788 #include <stdlib.h>
36789 #include <stddef.h>
36790 #endif
36791 #if HAVE_INTTYPES_H
36792 #include <inttypes.h>
36793 #endif
36794 #if HAVE_SYS_BITYPES_H
36795 #include <sys/bitypes.h>
36796 #endif
36797 #if HAVE_SYS_SELECT_H
36798 #include <sys/select.h>
36799 #endif
36800
36801
36802
36803 int
36804 main ()
36805 {
36806 if ((u_int64_t *) 0)
36807 return 0;
36808 if (sizeof (u_int64_t))
36809 return 0;
36810 ;
36811 return 0;
36812 }
36813 _ACEOF
36814 rm -f conftest.$ac_objext
36815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36816 (eval $ac_compile) 2>conftest.er1
36817 ac_status=$?
36818 grep -v '^ *+' conftest.er1 >conftest.err
36819 rm -f conftest.er1
36820 cat conftest.err >&5
36821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36822 (exit $ac_status); } &&
36823 { ac_try='test -z "$ac_c_werror_flag"
36824 || test ! -s conftest.err'
36825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36826 (eval $ac_try) 2>&5
36827 ac_status=$?
36828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36829 (exit $ac_status); }; } &&
36830 { ac_try='test -s conftest.$ac_objext'
36831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36832 (eval $ac_try) 2>&5
36833 ac_status=$?
36834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36835 (exit $ac_status); }; }; then
36836 ac_cv_type_u_int64_t=yes
36837 else
36838 echo "$as_me: failed program was:" >&5
36839 sed 's/^/| /' conftest.$ac_ext >&5
36840
36841 ac_cv_type_u_int64_t=no
36842 fi
36843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36844 fi
36845 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
36846 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
36847
36848 echo "$as_me:$LINENO: checking size of u_int64_t" >&5
36849 echo $ECHO_N "checking size of u_int64_t... $ECHO_C" >&6
36850 if test "${ac_cv_sizeof_u_int64_t+set}" = set; then
36851 echo $ECHO_N "(cached) $ECHO_C" >&6
36852 else
36853 if test "$ac_cv_type_u_int64_t" = yes; then
36854 # The cast to unsigned long works around a bug in the HP C Compiler
36855 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36856 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36857 # This bug is HP SR number 8606223364.
36858 if test "$cross_compiling" = yes; then
36859 # Depending upon the size, compute the lo and hi bounds.
36860 cat >conftest.$ac_ext <<_ACEOF
36861 /* confdefs.h. */
36862 _ACEOF
36863 cat confdefs.h >>conftest.$ac_ext
36864 cat >>conftest.$ac_ext <<_ACEOF
36865 /* end confdefs.h. */
36866
36867 #include <stdio.h>
36868
36869 /* What a mess.. many systems have added the (now standard) bit types
36870 * in their own ways, so we need to scan a wide variety of headers to
36871 * find them..
36872 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36873 */
36874 #if HAVE_SYS_TYPES_H
36875 #include <sys/types.h>
36876 #endif
36877 #if STDC_HEADERS
36878 #include <stdlib.h>
36879 #include <stddef.h>
36880 #endif
36881 #if HAVE_INTTYPES_H
36882 #include <inttypes.h>
36883 #endif
36884 #if HAVE_SYS_BITYPES_H
36885 #include <sys/bitypes.h>
36886 #endif
36887 #if HAVE_SYS_SELECT_H
36888 #include <sys/select.h>
36889 #endif
36890
36891
36892
36893 int
36894 main ()
36895 {
36896 static int test_array [1 - 2 * !(((long) (sizeof (u_int64_t))) >= 0)];
36897 test_array [0] = 0
36898
36899 ;
36900 return 0;
36901 }
36902 _ACEOF
36903 rm -f conftest.$ac_objext
36904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36905 (eval $ac_compile) 2>conftest.er1
36906 ac_status=$?
36907 grep -v '^ *+' conftest.er1 >conftest.err
36908 rm -f conftest.er1
36909 cat conftest.err >&5
36910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36911 (exit $ac_status); } &&
36912 { ac_try='test -z "$ac_c_werror_flag"
36913 || test ! -s conftest.err'
36914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36915 (eval $ac_try) 2>&5
36916 ac_status=$?
36917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36918 (exit $ac_status); }; } &&
36919 { ac_try='test -s conftest.$ac_objext'
36920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36921 (eval $ac_try) 2>&5
36922 ac_status=$?
36923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36924 (exit $ac_status); }; }; then
36925 ac_lo=0 ac_mid=0
36926 while :; do
36927 cat >conftest.$ac_ext <<_ACEOF
36928 /* confdefs.h. */
36929 _ACEOF
36930 cat confdefs.h >>conftest.$ac_ext
36931 cat >>conftest.$ac_ext <<_ACEOF
36932 /* end confdefs.h. */
36933
36934 #include <stdio.h>
36935
36936 /* What a mess.. many systems have added the (now standard) bit types
36937 * in their own ways, so we need to scan a wide variety of headers to
36938 * find them..
36939 * IMPORTANT: Keep include/squid_types.h syncronised with this list
36940 */
36941 #if HAVE_SYS_TYPES_H
36942 #include <sys/types.h>
36943 #endif
36944 #if STDC_HEADERS
36945 #include <stdlib.h>
36946 #include <stddef.h>
36947 #endif
36948 #if HAVE_INTTYPES_H
36949 #include <inttypes.h>
36950 #endif
36951 #if HAVE_SYS_BITYPES_H
36952 #include <sys/bitypes.h>
36953 #endif
36954 #if HAVE_SYS_SELECT_H
36955 #include <sys/select.h>
36956 #endif
36957
36958
36959
36960 int
36961 main ()
36962 {
36963 static int test_array [1 - 2 * !(((long) (sizeof (u_int64_t))) <= $ac_mid)];
36964 test_array [0] = 0
36965
36966 ;
36967 return 0;
36968 }
36969 _ACEOF
36970 rm -f conftest.$ac_objext
36971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36972 (eval $ac_compile) 2>conftest.er1
36973 ac_status=$?
36974 grep -v '^ *+' conftest.er1 >conftest.err
36975 rm -f conftest.er1
36976 cat conftest.err >&5
36977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36978 (exit $ac_status); } &&
36979 { ac_try='test -z "$ac_c_werror_flag"
36980 || test ! -s conftest.err'
36981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36982 (eval $ac_try) 2>&5
36983 ac_status=$?
36984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36985 (exit $ac_status); }; } &&
36986 { ac_try='test -s conftest.$ac_objext'
36987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36988 (eval $ac_try) 2>&5
36989 ac_status=$?
36990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36991 (exit $ac_status); }; }; then
36992 ac_hi=$ac_mid; break
36993 else
36994 echo "$as_me: failed program was:" >&5
36995 sed 's/^/| /' conftest.$ac_ext >&5
36996
36997 ac_lo=`expr $ac_mid + 1`
36998 if test $ac_lo -le $ac_mid; then
36999 ac_lo= ac_hi=
37000 break
37001 fi
37002 ac_mid=`expr 2 '*' $ac_mid + 1`
37003 fi
37004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37005 done
37006 else
37007 echo "$as_me: failed program was:" >&5
37008 sed 's/^/| /' conftest.$ac_ext >&5
37009
37010 cat >conftest.$ac_ext <<_ACEOF
37011 /* confdefs.h. */
37012 _ACEOF
37013 cat confdefs.h >>conftest.$ac_ext
37014 cat >>conftest.$ac_ext <<_ACEOF
37015 /* end confdefs.h. */
37016
37017 #include <stdio.h>
37018
37019 /* What a mess.. many systems have added the (now standard) bit types
37020 * in their own ways, so we need to scan a wide variety of headers to
37021 * find them..
37022 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37023 */
37024 #if HAVE_SYS_TYPES_H
37025 #include <sys/types.h>
37026 #endif
37027 #if STDC_HEADERS
37028 #include <stdlib.h>
37029 #include <stddef.h>
37030 #endif
37031 #if HAVE_INTTYPES_H
37032 #include <inttypes.h>
37033 #endif
37034 #if HAVE_SYS_BITYPES_H
37035 #include <sys/bitypes.h>
37036 #endif
37037 #if HAVE_SYS_SELECT_H
37038 #include <sys/select.h>
37039 #endif
37040
37041
37042
37043 int
37044 main ()
37045 {
37046 static int test_array [1 - 2 * !(((long) (sizeof (u_int64_t))) < 0)];
37047 test_array [0] = 0
37048
37049 ;
37050 return 0;
37051 }
37052 _ACEOF
37053 rm -f conftest.$ac_objext
37054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37055 (eval $ac_compile) 2>conftest.er1
37056 ac_status=$?
37057 grep -v '^ *+' conftest.er1 >conftest.err
37058 rm -f conftest.er1
37059 cat conftest.err >&5
37060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37061 (exit $ac_status); } &&
37062 { ac_try='test -z "$ac_c_werror_flag"
37063 || test ! -s conftest.err'
37064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37065 (eval $ac_try) 2>&5
37066 ac_status=$?
37067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37068 (exit $ac_status); }; } &&
37069 { ac_try='test -s conftest.$ac_objext'
37070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37071 (eval $ac_try) 2>&5
37072 ac_status=$?
37073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37074 (exit $ac_status); }; }; then
37075 ac_hi=-1 ac_mid=-1
37076 while :; do
37077 cat >conftest.$ac_ext <<_ACEOF
37078 /* confdefs.h. */
37079 _ACEOF
37080 cat confdefs.h >>conftest.$ac_ext
37081 cat >>conftest.$ac_ext <<_ACEOF
37082 /* end confdefs.h. */
37083
37084 #include <stdio.h>
37085
37086 /* What a mess.. many systems have added the (now standard) bit types
37087 * in their own ways, so we need to scan a wide variety of headers to
37088 * find them..
37089 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37090 */
37091 #if HAVE_SYS_TYPES_H
37092 #include <sys/types.h>
37093 #endif
37094 #if STDC_HEADERS
37095 #include <stdlib.h>
37096 #include <stddef.h>
37097 #endif
37098 #if HAVE_INTTYPES_H
37099 #include <inttypes.h>
37100 #endif
37101 #if HAVE_SYS_BITYPES_H
37102 #include <sys/bitypes.h>
37103 #endif
37104 #if HAVE_SYS_SELECT_H
37105 #include <sys/select.h>
37106 #endif
37107
37108
37109
37110 int
37111 main ()
37112 {
37113 static int test_array [1 - 2 * !(((long) (sizeof (u_int64_t))) >= $ac_mid)];
37114 test_array [0] = 0
37115
37116 ;
37117 return 0;
37118 }
37119 _ACEOF
37120 rm -f conftest.$ac_objext
37121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37122 (eval $ac_compile) 2>conftest.er1
37123 ac_status=$?
37124 grep -v '^ *+' conftest.er1 >conftest.err
37125 rm -f conftest.er1
37126 cat conftest.err >&5
37127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37128 (exit $ac_status); } &&
37129 { ac_try='test -z "$ac_c_werror_flag"
37130 || test ! -s conftest.err'
37131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37132 (eval $ac_try) 2>&5
37133 ac_status=$?
37134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37135 (exit $ac_status); }; } &&
37136 { ac_try='test -s conftest.$ac_objext'
37137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37138 (eval $ac_try) 2>&5
37139 ac_status=$?
37140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37141 (exit $ac_status); }; }; then
37142 ac_lo=$ac_mid; break
37143 else
37144 echo "$as_me: failed program was:" >&5
37145 sed 's/^/| /' conftest.$ac_ext >&5
37146
37147 ac_hi=`expr '(' $ac_mid ')' - 1`
37148 if test $ac_mid -le $ac_hi; then
37149 ac_lo= ac_hi=
37150 break
37151 fi
37152 ac_mid=`expr 2 '*' $ac_mid`
37153 fi
37154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37155 done
37156 else
37157 echo "$as_me: failed program was:" >&5
37158 sed 's/^/| /' conftest.$ac_ext >&5
37159
37160 ac_lo= ac_hi=
37161 fi
37162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37163 fi
37164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37165 # Binary search between lo and hi bounds.
37166 while test "x$ac_lo" != "x$ac_hi"; do
37167 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37168 cat >conftest.$ac_ext <<_ACEOF
37169 /* confdefs.h. */
37170 _ACEOF
37171 cat confdefs.h >>conftest.$ac_ext
37172 cat >>conftest.$ac_ext <<_ACEOF
37173 /* end confdefs.h. */
37174
37175 #include <stdio.h>
37176
37177 /* What a mess.. many systems have added the (now standard) bit types
37178 * in their own ways, so we need to scan a wide variety of headers to
37179 * find them..
37180 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37181 */
37182 #if HAVE_SYS_TYPES_H
37183 #include <sys/types.h>
37184 #endif
37185 #if STDC_HEADERS
37186 #include <stdlib.h>
37187 #include <stddef.h>
37188 #endif
37189 #if HAVE_INTTYPES_H
37190 #include <inttypes.h>
37191 #endif
37192 #if HAVE_SYS_BITYPES_H
37193 #include <sys/bitypes.h>
37194 #endif
37195 #if HAVE_SYS_SELECT_H
37196 #include <sys/select.h>
37197 #endif
37198
37199
37200
37201 int
37202 main ()
37203 {
37204 static int test_array [1 - 2 * !(((long) (sizeof (u_int64_t))) <= $ac_mid)];
37205 test_array [0] = 0
37206
37207 ;
37208 return 0;
37209 }
37210 _ACEOF
37211 rm -f conftest.$ac_objext
37212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37213 (eval $ac_compile) 2>conftest.er1
37214 ac_status=$?
37215 grep -v '^ *+' conftest.er1 >conftest.err
37216 rm -f conftest.er1
37217 cat conftest.err >&5
37218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37219 (exit $ac_status); } &&
37220 { ac_try='test -z "$ac_c_werror_flag"
37221 || test ! -s conftest.err'
37222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37223 (eval $ac_try) 2>&5
37224 ac_status=$?
37225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37226 (exit $ac_status); }; } &&
37227 { ac_try='test -s conftest.$ac_objext'
37228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37229 (eval $ac_try) 2>&5
37230 ac_status=$?
37231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37232 (exit $ac_status); }; }; then
37233 ac_hi=$ac_mid
37234 else
37235 echo "$as_me: failed program was:" >&5
37236 sed 's/^/| /' conftest.$ac_ext >&5
37237
37238 ac_lo=`expr '(' $ac_mid ')' + 1`
37239 fi
37240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37241 done
37242 case $ac_lo in
37243 ?*) ac_cv_sizeof_u_int64_t=$ac_lo;;
37244 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int64_t), 77
37245 See \`config.log' for more details." >&5
37246 echo "$as_me: error: cannot compute sizeof (u_int64_t), 77
37247 See \`config.log' for more details." >&2;}
37248 { (exit 1); exit 1; }; } ;;
37249 esac
37250 else
37251 if test "$cross_compiling" = yes; then
37252 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37253 See \`config.log' for more details." >&5
37254 echo "$as_me: error: cannot run test program while cross compiling
37255 See \`config.log' for more details." >&2;}
37256 { (exit 1); exit 1; }; }
37257 else
37258 cat >conftest.$ac_ext <<_ACEOF
37259 /* confdefs.h. */
37260 _ACEOF
37261 cat confdefs.h >>conftest.$ac_ext
37262 cat >>conftest.$ac_ext <<_ACEOF
37263 /* end confdefs.h. */
37264
37265 #include <stdio.h>
37266
37267 /* What a mess.. many systems have added the (now standard) bit types
37268 * in their own ways, so we need to scan a wide variety of headers to
37269 * find them..
37270 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37271 */
37272 #if HAVE_SYS_TYPES_H
37273 #include <sys/types.h>
37274 #endif
37275 #if STDC_HEADERS
37276 #include <stdlib.h>
37277 #include <stddef.h>
37278 #endif
37279 #if HAVE_INTTYPES_H
37280 #include <inttypes.h>
37281 #endif
37282 #if HAVE_SYS_BITYPES_H
37283 #include <sys/bitypes.h>
37284 #endif
37285 #if HAVE_SYS_SELECT_H
37286 #include <sys/select.h>
37287 #endif
37288
37289
37290
37291 long longval () { return (long) (sizeof (u_int64_t)); }
37292 unsigned long ulongval () { return (long) (sizeof (u_int64_t)); }
37293 #include <stdio.h>
37294 #include <stdlib.h>
37295 int
37296 main ()
37297 {
37298
37299 FILE *f = fopen ("conftest.val", "w");
37300 if (! f)
37301 exit (1);
37302 if (((long) (sizeof (u_int64_t))) < 0)
37303 {
37304 long i = longval ();
37305 if (i != ((long) (sizeof (u_int64_t))))
37306 exit (1);
37307 fprintf (f, "%ld\n", i);
37308 }
37309 else
37310 {
37311 unsigned long i = ulongval ();
37312 if (i != ((long) (sizeof (u_int64_t))))
37313 exit (1);
37314 fprintf (f, "%lu\n", i);
37315 }
37316 exit (ferror (f) || fclose (f) != 0);
37317
37318 ;
37319 return 0;
37320 }
37321 _ACEOF
37322 rm -f conftest$ac_exeext
37323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37324 (eval $ac_link) 2>&5
37325 ac_status=$?
37326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37329 (eval $ac_try) 2>&5
37330 ac_status=$?
37331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37332 (exit $ac_status); }; }; then
37333 ac_cv_sizeof_u_int64_t=`cat conftest.val`
37334 else
37335 echo "$as_me: program exited with status $ac_status" >&5
37336 echo "$as_me: failed program was:" >&5
37337 sed 's/^/| /' conftest.$ac_ext >&5
37338
37339 ( exit $ac_status )
37340 { { echo "$as_me:$LINENO: error: cannot compute sizeof (u_int64_t), 77
37341 See \`config.log' for more details." >&5
37342 echo "$as_me: error: cannot compute sizeof (u_int64_t), 77
37343 See \`config.log' for more details." >&2;}
37344 { (exit 1); exit 1; }; }
37345 fi
37346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37347 fi
37348 fi
37349 rm -f conftest.val
37350 else
37351 ac_cv_sizeof_u_int64_t=0
37352 fi
37353 fi
37354 echo "$as_me:$LINENO: result: $ac_cv_sizeof_u_int64_t" >&5
37355 echo "${ECHO_T}$ac_cv_sizeof_u_int64_t" >&6
37356 cat >>confdefs.h <<_ACEOF
37357 #define SIZEOF_U_INT64_T $ac_cv_sizeof_u_int64_t
37358 _ACEOF
37359
37360
37361
37362 cat >>confdefs.h <<\_ACEOF
37363 #define HAVE_U_INT64_T 1
37364 _ACEOF
37365
37366
37367 fi
37368
37369
37370 echo "$as_me:$LINENO: checking for uint64_t" >&5
37371 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
37372 if test "${ac_cv_type_uint64_t+set}" = set; then
37373 echo $ECHO_N "(cached) $ECHO_C" >&6
37374 else
37375 cat >conftest.$ac_ext <<_ACEOF
37376 /* confdefs.h. */
37377 _ACEOF
37378 cat confdefs.h >>conftest.$ac_ext
37379 cat >>conftest.$ac_ext <<_ACEOF
37380 /* end confdefs.h. */
37381
37382 /* What a mess.. many systems have added the (now standard) bit types
37383 * in their own ways, so we need to scan a wide variety of headers to
37384 * find them..
37385 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37386 */
37387 #if HAVE_SYS_TYPES_H
37388 #include <sys/types.h>
37389 #endif
37390 #if STDC_HEADERS
37391 #include <stdlib.h>
37392 #include <stddef.h>
37393 #endif
37394 #if HAVE_INTTYPES_H
37395 #include <inttypes.h>
37396 #endif
37397 #if HAVE_SYS_BITYPES_H
37398 #include <sys/bitypes.h>
37399 #endif
37400 #if HAVE_SYS_SELECT_H
37401 #include <sys/select.h>
37402 #endif
37403
37404
37405 int
37406 main ()
37407 {
37408 if ((uint64_t *) 0)
37409 return 0;
37410 if (sizeof (uint64_t))
37411 return 0;
37412 ;
37413 return 0;
37414 }
37415 _ACEOF
37416 rm -f conftest.$ac_objext
37417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37418 (eval $ac_compile) 2>conftest.er1
37419 ac_status=$?
37420 grep -v '^ *+' conftest.er1 >conftest.err
37421 rm -f conftest.er1
37422 cat conftest.err >&5
37423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37424 (exit $ac_status); } &&
37425 { ac_try='test -z "$ac_c_werror_flag"
37426 || test ! -s conftest.err'
37427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37428 (eval $ac_try) 2>&5
37429 ac_status=$?
37430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37431 (exit $ac_status); }; } &&
37432 { ac_try='test -s conftest.$ac_objext'
37433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37434 (eval $ac_try) 2>&5
37435 ac_status=$?
37436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37437 (exit $ac_status); }; }; then
37438 ac_cv_type_uint64_t=yes
37439 else
37440 echo "$as_me: failed program was:" >&5
37441 sed 's/^/| /' conftest.$ac_ext >&5
37442
37443 ac_cv_type_uint64_t=no
37444 fi
37445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37446 fi
37447 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
37448 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
37449 if test $ac_cv_type_uint64_t = yes; then
37450
37451 echo "$as_me:$LINENO: checking for uint64_t" >&5
37452 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
37453 if test "${ac_cv_type_uint64_t+set}" = set; then
37454 echo $ECHO_N "(cached) $ECHO_C" >&6
37455 else
37456 cat >conftest.$ac_ext <<_ACEOF
37457 /* confdefs.h. */
37458 _ACEOF
37459 cat confdefs.h >>conftest.$ac_ext
37460 cat >>conftest.$ac_ext <<_ACEOF
37461 /* end confdefs.h. */
37462
37463 #include <stdio.h>
37464
37465 /* What a mess.. many systems have added the (now standard) bit types
37466 * in their own ways, so we need to scan a wide variety of headers to
37467 * find them..
37468 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37469 */
37470 #if HAVE_SYS_TYPES_H
37471 #include <sys/types.h>
37472 #endif
37473 #if STDC_HEADERS
37474 #include <stdlib.h>
37475 #include <stddef.h>
37476 #endif
37477 #if HAVE_INTTYPES_H
37478 #include <inttypes.h>
37479 #endif
37480 #if HAVE_SYS_BITYPES_H
37481 #include <sys/bitypes.h>
37482 #endif
37483 #if HAVE_SYS_SELECT_H
37484 #include <sys/select.h>
37485 #endif
37486
37487
37488
37489 int
37490 main ()
37491 {
37492 if ((uint64_t *) 0)
37493 return 0;
37494 if (sizeof (uint64_t))
37495 return 0;
37496 ;
37497 return 0;
37498 }
37499 _ACEOF
37500 rm -f conftest.$ac_objext
37501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37502 (eval $ac_compile) 2>conftest.er1
37503 ac_status=$?
37504 grep -v '^ *+' conftest.er1 >conftest.err
37505 rm -f conftest.er1
37506 cat conftest.err >&5
37507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37508 (exit $ac_status); } &&
37509 { ac_try='test -z "$ac_c_werror_flag"
37510 || test ! -s conftest.err'
37511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37512 (eval $ac_try) 2>&5
37513 ac_status=$?
37514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37515 (exit $ac_status); }; } &&
37516 { ac_try='test -s conftest.$ac_objext'
37517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37518 (eval $ac_try) 2>&5
37519 ac_status=$?
37520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37521 (exit $ac_status); }; }; then
37522 ac_cv_type_uint64_t=yes
37523 else
37524 echo "$as_me: failed program was:" >&5
37525 sed 's/^/| /' conftest.$ac_ext >&5
37526
37527 ac_cv_type_uint64_t=no
37528 fi
37529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37530 fi
37531 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
37532 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
37533
37534 echo "$as_me:$LINENO: checking size of uint64_t" >&5
37535 echo $ECHO_N "checking size of uint64_t... $ECHO_C" >&6
37536 if test "${ac_cv_sizeof_uint64_t+set}" = set; then
37537 echo $ECHO_N "(cached) $ECHO_C" >&6
37538 else
37539 if test "$ac_cv_type_uint64_t" = yes; then
37540 # The cast to unsigned long works around a bug in the HP C Compiler
37541 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37542 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37543 # This bug is HP SR number 8606223364.
37544 if test "$cross_compiling" = yes; then
37545 # Depending upon the size, compute the lo and hi bounds.
37546 cat >conftest.$ac_ext <<_ACEOF
37547 /* confdefs.h. */
37548 _ACEOF
37549 cat confdefs.h >>conftest.$ac_ext
37550 cat >>conftest.$ac_ext <<_ACEOF
37551 /* end confdefs.h. */
37552
37553 #include <stdio.h>
37554
37555 /* What a mess.. many systems have added the (now standard) bit types
37556 * in their own ways, so we need to scan a wide variety of headers to
37557 * find them..
37558 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37559 */
37560 #if HAVE_SYS_TYPES_H
37561 #include <sys/types.h>
37562 #endif
37563 #if STDC_HEADERS
37564 #include <stdlib.h>
37565 #include <stddef.h>
37566 #endif
37567 #if HAVE_INTTYPES_H
37568 #include <inttypes.h>
37569 #endif
37570 #if HAVE_SYS_BITYPES_H
37571 #include <sys/bitypes.h>
37572 #endif
37573 #if HAVE_SYS_SELECT_H
37574 #include <sys/select.h>
37575 #endif
37576
37577
37578
37579 int
37580 main ()
37581 {
37582 static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) >= 0)];
37583 test_array [0] = 0
37584
37585 ;
37586 return 0;
37587 }
37588 _ACEOF
37589 rm -f conftest.$ac_objext
37590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37591 (eval $ac_compile) 2>conftest.er1
37592 ac_status=$?
37593 grep -v '^ *+' conftest.er1 >conftest.err
37594 rm -f conftest.er1
37595 cat conftest.err >&5
37596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37597 (exit $ac_status); } &&
37598 { ac_try='test -z "$ac_c_werror_flag"
37599 || test ! -s conftest.err'
37600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37601 (eval $ac_try) 2>&5
37602 ac_status=$?
37603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37604 (exit $ac_status); }; } &&
37605 { ac_try='test -s conftest.$ac_objext'
37606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37607 (eval $ac_try) 2>&5
37608 ac_status=$?
37609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37610 (exit $ac_status); }; }; then
37611 ac_lo=0 ac_mid=0
37612 while :; do
37613 cat >conftest.$ac_ext <<_ACEOF
37614 /* confdefs.h. */
37615 _ACEOF
37616 cat confdefs.h >>conftest.$ac_ext
37617 cat >>conftest.$ac_ext <<_ACEOF
37618 /* end confdefs.h. */
37619
37620 #include <stdio.h>
37621
37622 /* What a mess.. many systems have added the (now standard) bit types
37623 * in their own ways, so we need to scan a wide variety of headers to
37624 * find them..
37625 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37626 */
37627 #if HAVE_SYS_TYPES_H
37628 #include <sys/types.h>
37629 #endif
37630 #if STDC_HEADERS
37631 #include <stdlib.h>
37632 #include <stddef.h>
37633 #endif
37634 #if HAVE_INTTYPES_H
37635 #include <inttypes.h>
37636 #endif
37637 #if HAVE_SYS_BITYPES_H
37638 #include <sys/bitypes.h>
37639 #endif
37640 #if HAVE_SYS_SELECT_H
37641 #include <sys/select.h>
37642 #endif
37643
37644
37645
37646 int
37647 main ()
37648 {
37649 static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) <= $ac_mid)];
37650 test_array [0] = 0
37651
37652 ;
37653 return 0;
37654 }
37655 _ACEOF
37656 rm -f conftest.$ac_objext
37657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37658 (eval $ac_compile) 2>conftest.er1
37659 ac_status=$?
37660 grep -v '^ *+' conftest.er1 >conftest.err
37661 rm -f conftest.er1
37662 cat conftest.err >&5
37663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37664 (exit $ac_status); } &&
37665 { ac_try='test -z "$ac_c_werror_flag"
37666 || test ! -s conftest.err'
37667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37668 (eval $ac_try) 2>&5
37669 ac_status=$?
37670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37671 (exit $ac_status); }; } &&
37672 { ac_try='test -s conftest.$ac_objext'
37673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37674 (eval $ac_try) 2>&5
37675 ac_status=$?
37676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37677 (exit $ac_status); }; }; then
37678 ac_hi=$ac_mid; break
37679 else
37680 echo "$as_me: failed program was:" >&5
37681 sed 's/^/| /' conftest.$ac_ext >&5
37682
37683 ac_lo=`expr $ac_mid + 1`
37684 if test $ac_lo -le $ac_mid; then
37685 ac_lo= ac_hi=
37686 break
37687 fi
37688 ac_mid=`expr 2 '*' $ac_mid + 1`
37689 fi
37690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37691 done
37692 else
37693 echo "$as_me: failed program was:" >&5
37694 sed 's/^/| /' conftest.$ac_ext >&5
37695
37696 cat >conftest.$ac_ext <<_ACEOF
37697 /* confdefs.h. */
37698 _ACEOF
37699 cat confdefs.h >>conftest.$ac_ext
37700 cat >>conftest.$ac_ext <<_ACEOF
37701 /* end confdefs.h. */
37702
37703 #include <stdio.h>
37704
37705 /* What a mess.. many systems have added the (now standard) bit types
37706 * in their own ways, so we need to scan a wide variety of headers to
37707 * find them..
37708 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37709 */
37710 #if HAVE_SYS_TYPES_H
37711 #include <sys/types.h>
37712 #endif
37713 #if STDC_HEADERS
37714 #include <stdlib.h>
37715 #include <stddef.h>
37716 #endif
37717 #if HAVE_INTTYPES_H
37718 #include <inttypes.h>
37719 #endif
37720 #if HAVE_SYS_BITYPES_H
37721 #include <sys/bitypes.h>
37722 #endif
37723 #if HAVE_SYS_SELECT_H
37724 #include <sys/select.h>
37725 #endif
37726
37727
37728
37729 int
37730 main ()
37731 {
37732 static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) < 0)];
37733 test_array [0] = 0
37734
37735 ;
37736 return 0;
37737 }
37738 _ACEOF
37739 rm -f conftest.$ac_objext
37740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37741 (eval $ac_compile) 2>conftest.er1
37742 ac_status=$?
37743 grep -v '^ *+' conftest.er1 >conftest.err
37744 rm -f conftest.er1
37745 cat conftest.err >&5
37746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37747 (exit $ac_status); } &&
37748 { ac_try='test -z "$ac_c_werror_flag"
37749 || test ! -s conftest.err'
37750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37751 (eval $ac_try) 2>&5
37752 ac_status=$?
37753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37754 (exit $ac_status); }; } &&
37755 { ac_try='test -s conftest.$ac_objext'
37756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37757 (eval $ac_try) 2>&5
37758 ac_status=$?
37759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37760 (exit $ac_status); }; }; then
37761 ac_hi=-1 ac_mid=-1
37762 while :; do
37763 cat >conftest.$ac_ext <<_ACEOF
37764 /* confdefs.h. */
37765 _ACEOF
37766 cat confdefs.h >>conftest.$ac_ext
37767 cat >>conftest.$ac_ext <<_ACEOF
37768 /* end confdefs.h. */
37769
37770 #include <stdio.h>
37771
37772 /* What a mess.. many systems have added the (now standard) bit types
37773 * in their own ways, so we need to scan a wide variety of headers to
37774 * find them..
37775 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37776 */
37777 #if HAVE_SYS_TYPES_H
37778 #include <sys/types.h>
37779 #endif
37780 #if STDC_HEADERS
37781 #include <stdlib.h>
37782 #include <stddef.h>
37783 #endif
37784 #if HAVE_INTTYPES_H
37785 #include <inttypes.h>
37786 #endif
37787 #if HAVE_SYS_BITYPES_H
37788 #include <sys/bitypes.h>
37789 #endif
37790 #if HAVE_SYS_SELECT_H
37791 #include <sys/select.h>
37792 #endif
37793
37794
37795
37796 int
37797 main ()
37798 {
37799 static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) >= $ac_mid)];
37800 test_array [0] = 0
37801
37802 ;
37803 return 0;
37804 }
37805 _ACEOF
37806 rm -f conftest.$ac_objext
37807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37808 (eval $ac_compile) 2>conftest.er1
37809 ac_status=$?
37810 grep -v '^ *+' conftest.er1 >conftest.err
37811 rm -f conftest.er1
37812 cat conftest.err >&5
37813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37814 (exit $ac_status); } &&
37815 { ac_try='test -z "$ac_c_werror_flag"
37816 || test ! -s conftest.err'
37817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37818 (eval $ac_try) 2>&5
37819 ac_status=$?
37820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37821 (exit $ac_status); }; } &&
37822 { ac_try='test -s conftest.$ac_objext'
37823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37824 (eval $ac_try) 2>&5
37825 ac_status=$?
37826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37827 (exit $ac_status); }; }; then
37828 ac_lo=$ac_mid; break
37829 else
37830 echo "$as_me: failed program was:" >&5
37831 sed 's/^/| /' conftest.$ac_ext >&5
37832
37833 ac_hi=`expr '(' $ac_mid ')' - 1`
37834 if test $ac_mid -le $ac_hi; then
37835 ac_lo= ac_hi=
37836 break
37837 fi
37838 ac_mid=`expr 2 '*' $ac_mid`
37839 fi
37840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37841 done
37842 else
37843 echo "$as_me: failed program was:" >&5
37844 sed 's/^/| /' conftest.$ac_ext >&5
37845
37846 ac_lo= ac_hi=
37847 fi
37848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37849 fi
37850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37851 # Binary search between lo and hi bounds.
37852 while test "x$ac_lo" != "x$ac_hi"; do
37853 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37854 cat >conftest.$ac_ext <<_ACEOF
37855 /* confdefs.h. */
37856 _ACEOF
37857 cat confdefs.h >>conftest.$ac_ext
37858 cat >>conftest.$ac_ext <<_ACEOF
37859 /* end confdefs.h. */
37860
37861 #include <stdio.h>
37862
37863 /* What a mess.. many systems have added the (now standard) bit types
37864 * in their own ways, so we need to scan a wide variety of headers to
37865 * find them..
37866 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37867 */
37868 #if HAVE_SYS_TYPES_H
37869 #include <sys/types.h>
37870 #endif
37871 #if STDC_HEADERS
37872 #include <stdlib.h>
37873 #include <stddef.h>
37874 #endif
37875 #if HAVE_INTTYPES_H
37876 #include <inttypes.h>
37877 #endif
37878 #if HAVE_SYS_BITYPES_H
37879 #include <sys/bitypes.h>
37880 #endif
37881 #if HAVE_SYS_SELECT_H
37882 #include <sys/select.h>
37883 #endif
37884
37885
37886
37887 int
37888 main ()
37889 {
37890 static int test_array [1 - 2 * !(((long) (sizeof (uint64_t))) <= $ac_mid)];
37891 test_array [0] = 0
37892
37893 ;
37894 return 0;
37895 }
37896 _ACEOF
37897 rm -f conftest.$ac_objext
37898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37899 (eval $ac_compile) 2>conftest.er1
37900 ac_status=$?
37901 grep -v '^ *+' conftest.er1 >conftest.err
37902 rm -f conftest.er1
37903 cat conftest.err >&5
37904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37905 (exit $ac_status); } &&
37906 { ac_try='test -z "$ac_c_werror_flag"
37907 || test ! -s conftest.err'
37908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37909 (eval $ac_try) 2>&5
37910 ac_status=$?
37911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37912 (exit $ac_status); }; } &&
37913 { ac_try='test -s conftest.$ac_objext'
37914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37915 (eval $ac_try) 2>&5
37916 ac_status=$?
37917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37918 (exit $ac_status); }; }; then
37919 ac_hi=$ac_mid
37920 else
37921 echo "$as_me: failed program was:" >&5
37922 sed 's/^/| /' conftest.$ac_ext >&5
37923
37924 ac_lo=`expr '(' $ac_mid ')' + 1`
37925 fi
37926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37927 done
37928 case $ac_lo in
37929 ?*) ac_cv_sizeof_uint64_t=$ac_lo;;
37930 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint64_t), 77
37931 See \`config.log' for more details." >&5
37932 echo "$as_me: error: cannot compute sizeof (uint64_t), 77
37933 See \`config.log' for more details." >&2;}
37934 { (exit 1); exit 1; }; } ;;
37935 esac
37936 else
37937 if test "$cross_compiling" = yes; then
37938 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
37939 See \`config.log' for more details." >&5
37940 echo "$as_me: error: cannot run test program while cross compiling
37941 See \`config.log' for more details." >&2;}
37942 { (exit 1); exit 1; }; }
37943 else
37944 cat >conftest.$ac_ext <<_ACEOF
37945 /* confdefs.h. */
37946 _ACEOF
37947 cat confdefs.h >>conftest.$ac_ext
37948 cat >>conftest.$ac_ext <<_ACEOF
37949 /* end confdefs.h. */
37950
37951 #include <stdio.h>
37952
37953 /* What a mess.. many systems have added the (now standard) bit types
37954 * in their own ways, so we need to scan a wide variety of headers to
37955 * find them..
37956 * IMPORTANT: Keep include/squid_types.h syncronised with this list
37957 */
37958 #if HAVE_SYS_TYPES_H
37959 #include <sys/types.h>
37960 #endif
37961 #if STDC_HEADERS
37962 #include <stdlib.h>
37963 #include <stddef.h>
37964 #endif
37965 #if HAVE_INTTYPES_H
37966 #include <inttypes.h>
37967 #endif
37968 #if HAVE_SYS_BITYPES_H
37969 #include <sys/bitypes.h>
37970 #endif
37971 #if HAVE_SYS_SELECT_H
37972 #include <sys/select.h>
37973 #endif
37974
37975
37976
37977 long longval () { return (long) (sizeof (uint64_t)); }
37978 unsigned long ulongval () { return (long) (sizeof (uint64_t)); }
37979 #include <stdio.h>
37980 #include <stdlib.h>
37981 int
37982 main ()
37983 {
37984
37985 FILE *f = fopen ("conftest.val", "w");
37986 if (! f)
37987 exit (1);
37988 if (((long) (sizeof (uint64_t))) < 0)
37989 {
37990 long i = longval ();
37991 if (i != ((long) (sizeof (uint64_t))))
37992 exit (1);
37993 fprintf (f, "%ld\n", i);
37994 }
37995 else
37996 {
37997 unsigned long i = ulongval ();
37998 if (i != ((long) (sizeof (uint64_t))))
37999 exit (1);
38000 fprintf (f, "%lu\n", i);
38001 }
38002 exit (ferror (f) || fclose (f) != 0);
38003
38004 ;
38005 return 0;
38006 }
38007 _ACEOF
38008 rm -f conftest$ac_exeext
38009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38010 (eval $ac_link) 2>&5
38011 ac_status=$?
38012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38015 (eval $ac_try) 2>&5
38016 ac_status=$?
38017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38018 (exit $ac_status); }; }; then
38019 ac_cv_sizeof_uint64_t=`cat conftest.val`
38020 else
38021 echo "$as_me: program exited with status $ac_status" >&5
38022 echo "$as_me: failed program was:" >&5
38023 sed 's/^/| /' conftest.$ac_ext >&5
38024
38025 ( exit $ac_status )
38026 { { echo "$as_me:$LINENO: error: cannot compute sizeof (uint64_t), 77
38027 See \`config.log' for more details." >&5
38028 echo "$as_me: error: cannot compute sizeof (uint64_t), 77
38029 See \`config.log' for more details." >&2;}
38030 { (exit 1); exit 1; }; }
38031 fi
38032 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38033 fi
38034 fi
38035 rm -f conftest.val
38036 else
38037 ac_cv_sizeof_uint64_t=0
38038 fi
38039 fi
38040 echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint64_t" >&5
38041 echo "${ECHO_T}$ac_cv_sizeof_uint64_t" >&6
38042 cat >>confdefs.h <<_ACEOF
38043 #define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
38044 _ACEOF
38045
38046
38047
38048 cat >>confdefs.h <<\_ACEOF
38049 #define HAVE_UINT64_T 1
38050 _ACEOF
38051
38052
38053 fi
38054
38055
38056 echo "$as_me:$LINENO: checking for pad128_t" >&5
38057 echo $ECHO_N "checking for pad128_t... $ECHO_C" >&6
38058 if test "${ac_cv_type_pad128_t+set}" = set; then
38059 echo $ECHO_N "(cached) $ECHO_C" >&6
38060 else
38061 cat >conftest.$ac_ext <<_ACEOF
38062 /* confdefs.h. */
38063 _ACEOF
38064 cat confdefs.h >>conftest.$ac_ext
38065 cat >>conftest.$ac_ext <<_ACEOF
38066 /* end confdefs.h. */
38067
38068 /* What a mess.. many systems have added the (now standard) bit types
38069 * in their own ways, so we need to scan a wide variety of headers to
38070 * find them..
38071 * IMPORTANT: Keep include/squid_types.h syncronised with this list
38072 */
38073 #if HAVE_SYS_TYPES_H
38074 #include <sys/types.h>
38075 #endif
38076 #if STDC_HEADERS
38077 #include <stdlib.h>
38078 #include <stddef.h>
38079 #endif
38080 #if HAVE_INTTYPES_H
38081 #include <inttypes.h>
38082 #endif
38083 #if HAVE_SYS_BITYPES_H
38084 #include <sys/bitypes.h>
38085 #endif
38086 #if HAVE_SYS_SELECT_H
38087 #include <sys/select.h>
38088 #endif
38089
38090
38091 int
38092 main ()
38093 {
38094 if ((pad128_t *) 0)
38095 return 0;
38096 if (sizeof (pad128_t))
38097 return 0;
38098 ;
38099 return 0;
38100 }
38101 _ACEOF
38102 rm -f conftest.$ac_objext
38103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38104 (eval $ac_compile) 2>conftest.er1
38105 ac_status=$?
38106 grep -v '^ *+' conftest.er1 >conftest.err
38107 rm -f conftest.er1
38108 cat conftest.err >&5
38109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38110 (exit $ac_status); } &&
38111 { ac_try='test -z "$ac_c_werror_flag"
38112 || test ! -s conftest.err'
38113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38114 (eval $ac_try) 2>&5
38115 ac_status=$?
38116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38117 (exit $ac_status); }; } &&
38118 { ac_try='test -s conftest.$ac_objext'
38119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38120 (eval $ac_try) 2>&5
38121 ac_status=$?
38122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38123 (exit $ac_status); }; }; then
38124 ac_cv_type_pad128_t=yes
38125 else
38126 echo "$as_me: failed program was:" >&5
38127 sed 's/^/| /' conftest.$ac_ext >&5
38128
38129 ac_cv_type_pad128_t=no
38130 fi
38131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38132 fi
38133 echo "$as_me:$LINENO: result: $ac_cv_type_pad128_t" >&5
38134 echo "${ECHO_T}$ac_cv_type_pad128_t" >&6
38135 if test $ac_cv_type_pad128_t = yes; then
38136
38137 cat >>confdefs.h <<\_ACEOF
38138 #define HAVE_PAD128_T 1
38139 _ACEOF
38140
38141 fi
38142
38143
38144 echo "$as_me:$LINENO: checking for upad128_t" >&5
38145 echo $ECHO_N "checking for upad128_t... $ECHO_C" >&6
38146 if test "${ac_cv_type_upad128_t+set}" = set; then
38147 echo $ECHO_N "(cached) $ECHO_C" >&6
38148 else
38149 cat >conftest.$ac_ext <<_ACEOF
38150 /* confdefs.h. */
38151 _ACEOF
38152 cat confdefs.h >>conftest.$ac_ext
38153 cat >>conftest.$ac_ext <<_ACEOF
38154 /* end confdefs.h. */
38155
38156 /* What a mess.. many systems have added the (now standard) bit types
38157 * in their own ways, so we need to scan a wide variety of headers to
38158 * find them..
38159 * IMPORTANT: Keep include/squid_types.h syncronised with this list
38160 */
38161 #if HAVE_SYS_TYPES_H
38162 #include <sys/types.h>
38163 #endif
38164 #if STDC_HEADERS
38165 #include <stdlib.h>
38166 #include <stddef.h>
38167 #endif
38168 #if HAVE_INTTYPES_H
38169 #include <inttypes.h>
38170 #endif
38171 #if HAVE_SYS_BITYPES_H
38172 #include <sys/bitypes.h>
38173 #endif
38174 #if HAVE_SYS_SELECT_H
38175 #include <sys/select.h>
38176 #endif
38177
38178
38179 int
38180 main ()
38181 {
38182 if ((upad128_t *) 0)
38183 return 0;
38184 if (sizeof (upad128_t))
38185 return 0;
38186 ;
38187 return 0;
38188 }
38189 _ACEOF
38190 rm -f conftest.$ac_objext
38191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38192 (eval $ac_compile) 2>conftest.er1
38193 ac_status=$?
38194 grep -v '^ *+' conftest.er1 >conftest.err
38195 rm -f conftest.er1
38196 cat conftest.err >&5
38197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38198 (exit $ac_status); } &&
38199 { ac_try='test -z "$ac_c_werror_flag"
38200 || test ! -s conftest.err'
38201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38202 (eval $ac_try) 2>&5
38203 ac_status=$?
38204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38205 (exit $ac_status); }; } &&
38206 { ac_try='test -s conftest.$ac_objext'
38207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38208 (eval $ac_try) 2>&5
38209 ac_status=$?
38210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38211 (exit $ac_status); }; }; then
38212 ac_cv_type_upad128_t=yes
38213 else
38214 echo "$as_me: failed program was:" >&5
38215 sed 's/^/| /' conftest.$ac_ext >&5
38216
38217 ac_cv_type_upad128_t=no
38218 fi
38219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38220 fi
38221 echo "$as_me:$LINENO: result: $ac_cv_type_upad128_t" >&5
38222 echo "${ECHO_T}$ac_cv_type_upad128_t" >&6
38223 if test $ac_cv_type_upad128_t = yes; then
38224
38225 cat >>confdefs.h <<\_ACEOF
38226 #define HAVE_UPAD128_T 1
38227 _ACEOF
38228
38229 fi
38230
38231
38232 echo "$as_me:$LINENO: checking for pid_t" >&5
38233 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
38234 if test "${ac_cv_type_pid_t+set}" = set; then
38235 echo $ECHO_N "(cached) $ECHO_C" >&6
38236 else
38237 cat >conftest.$ac_ext <<_ACEOF
38238 /* confdefs.h. */
38239 _ACEOF
38240 cat confdefs.h >>conftest.$ac_ext
38241 cat >>conftest.$ac_ext <<_ACEOF
38242 /* end confdefs.h. */
38243
38244 /* What a mess.. many systems have added the (now standard) bit types
38245 * in their own ways, so we need to scan a wide variety of headers to
38246 * find them..
38247 * IMPORTANT: Keep include/squid_types.h syncronised with this list
38248 */
38249 #if HAVE_SYS_TYPES_H
38250 #include <sys/types.h>
38251 #endif
38252 #if STDC_HEADERS
38253 #include <stdlib.h>
38254 #include <stddef.h>
38255 #endif
38256 #if HAVE_INTTYPES_H
38257 #include <inttypes.h>
38258 #endif
38259 #if HAVE_SYS_BITYPES_H
38260 #include <sys/bitypes.h>
38261 #endif
38262 #if HAVE_SYS_SELECT_H
38263 #include <sys/select.h>
38264 #endif
38265
38266
38267 int
38268 main ()
38269 {
38270 if ((pid_t *) 0)
38271 return 0;
38272 if (sizeof (pid_t))
38273 return 0;
38274 ;
38275 return 0;
38276 }
38277 _ACEOF
38278 rm -f conftest.$ac_objext
38279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38280 (eval $ac_compile) 2>conftest.er1
38281 ac_status=$?
38282 grep -v '^ *+' conftest.er1 >conftest.err
38283 rm -f conftest.er1
38284 cat conftest.err >&5
38285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38286 (exit $ac_status); } &&
38287 { ac_try='test -z "$ac_c_werror_flag"
38288 || test ! -s conftest.err'
38289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38290 (eval $ac_try) 2>&5
38291 ac_status=$?
38292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38293 (exit $ac_status); }; } &&
38294 { ac_try='test -s conftest.$ac_objext'
38295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38296 (eval $ac_try) 2>&5
38297 ac_status=$?
38298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38299 (exit $ac_status); }; }; then
38300 ac_cv_type_pid_t=yes
38301 else
38302 echo "$as_me: failed program was:" >&5
38303 sed 's/^/| /' conftest.$ac_ext >&5
38304
38305 ac_cv_type_pid_t=no
38306 fi
38307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38308 fi
38309 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
38310 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
38311 if test $ac_cv_type_pid_t = yes; then
38312
38313 cat >>confdefs.h <<\_ACEOF
38314 #define HAVE_PID_T 1
38315 _ACEOF
38316
38317 fi
38318
38319 echo "$as_me:$LINENO: checking for size_t" >&5
38320 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
38321 if test "${ac_cv_type_size_t+set}" = set; then
38322 echo $ECHO_N "(cached) $ECHO_C" >&6
38323 else
38324 cat >conftest.$ac_ext <<_ACEOF
38325 /* confdefs.h. */
38326 _ACEOF
38327 cat confdefs.h >>conftest.$ac_ext
38328 cat >>conftest.$ac_ext <<_ACEOF
38329 /* end confdefs.h. */
38330
38331 /* What a mess.. many systems have added the (now standard) bit types
38332 * in their own ways, so we need to scan a wide variety of headers to
38333 * find them..
38334 * IMPORTANT: Keep include/squid_types.h syncronised with this list
38335 */
38336 #if HAVE_SYS_TYPES_H
38337 #include <sys/types.h>
38338 #endif
38339 #if STDC_HEADERS
38340 #include <stdlib.h>
38341 #include <stddef.h>
38342 #endif
38343 #if HAVE_INTTYPES_H
38344 #include <inttypes.h>
38345 #endif
38346 #if HAVE_SYS_BITYPES_H
38347 #include <sys/bitypes.h>
38348 #endif
38349 #if HAVE_SYS_SELECT_H
38350 #include <sys/select.h>
38351 #endif
38352
38353
38354 int
38355 main ()
38356 {
38357 if ((size_t *) 0)
38358 return 0;
38359 if (sizeof (size_t))
38360 return 0;
38361 ;
38362 return 0;
38363 }
38364 _ACEOF
38365 rm -f conftest.$ac_objext
38366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38367 (eval $ac_compile) 2>conftest.er1
38368 ac_status=$?
38369 grep -v '^ *+' conftest.er1 >conftest.err
38370 rm -f conftest.er1
38371 cat conftest.err >&5
38372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38373 (exit $ac_status); } &&
38374 { ac_try='test -z "$ac_c_werror_flag"
38375 || test ! -s conftest.err'
38376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38377 (eval $ac_try) 2>&5
38378 ac_status=$?
38379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38380 (exit $ac_status); }; } &&
38381 { ac_try='test -s conftest.$ac_objext'
38382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38383 (eval $ac_try) 2>&5
38384 ac_status=$?
38385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38386 (exit $ac_status); }; }; then
38387 ac_cv_type_size_t=yes
38388 else
38389 echo "$as_me: failed program was:" >&5
38390 sed 's/^/| /' conftest.$ac_ext >&5
38391
38392 ac_cv_type_size_t=no
38393 fi
38394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38395 fi
38396 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
38397 echo "${ECHO_T}$ac_cv_type_size_t" >&6
38398 if test $ac_cv_type_size_t = yes; then
38399 echo "$as_me:$LINENO: checking for size_t" >&5
38400 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
38401 if test "${ac_cv_type_size_t+set}" = set; then
38402 echo $ECHO_N "(cached) $ECHO_C" >&6
38403 else
38404 cat >conftest.$ac_ext <<_ACEOF
38405 /* confdefs.h. */
38406 _ACEOF
38407 cat confdefs.h >>conftest.$ac_ext
38408 cat >>conftest.$ac_ext <<_ACEOF
38409 /* end confdefs.h. */
38410
38411 #include <stdio.h>
38412
38413 /* What a mess.. many systems have added the (now standard) bit types
38414 * in their own ways, so we need to scan a wide variety of headers to
38415 * find them..
38416 * IMPORTANT: Keep include/squid_types.h syncronised with this list
38417 */
38418 #if HAVE_SYS_TYPES_H
38419 #include <sys/types.h>
38420 #endif
38421 #if STDC_HEADERS
38422 #include <stdlib.h>
38423 #include <stddef.h>
38424 #endif
38425 #if HAVE_INTTYPES_H
38426 #include <inttypes.h>
38427 #endif
38428 #if HAVE_SYS_BITYPES_H
38429 #include <sys/bitypes.h>
38430 #endif
38431 #if HAVE_SYS_SELECT_H
38432 #include <sys/select.h>
38433 #endif
38434
38435
38436
38437 int
38438 main ()
38439 {
38440 if ((size_t *) 0)
38441 return 0;
38442 if (sizeof (size_t))
38443 return 0;
38444 ;
38445 return 0;
38446 }
38447 _ACEOF
38448 rm -f conftest.$ac_objext
38449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38450 (eval $ac_compile) 2>conftest.er1
38451 ac_status=$?
38452 grep -v '^ *+' conftest.er1 >conftest.err
38453 rm -f conftest.er1
38454 cat conftest.err >&5
38455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38456 (exit $ac_status); } &&
38457 { ac_try='test -z "$ac_c_werror_flag"
38458 || test ! -s conftest.err'
38459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38460 (eval $ac_try) 2>&5
38461 ac_status=$?
38462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38463 (exit $ac_status); }; } &&
38464 { ac_try='test -s conftest.$ac_objext'
38465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38466 (eval $ac_try) 2>&5
38467 ac_status=$?
38468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38469 (exit $ac_status); }; }; then
38470 ac_cv_type_size_t=yes
38471 else
38472 echo "$as_me: failed program was:" >&5
38473 sed 's/^/| /' conftest.$ac_ext >&5
38474
38475 ac_cv_type_size_t=no
38476 fi
38477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38478 fi
38479 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
38480 echo "${ECHO_T}$ac_cv_type_size_t" >&6
38481
38482 echo "$as_me:$LINENO: checking size of size_t" >&5
38483 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
38484 if test "${ac_cv_sizeof_size_t+set}" = set; then
38485 echo $ECHO_N "(cached) $ECHO_C" >&6
38486 else
38487 if test "$ac_cv_type_size_t" = yes; then
38488 # The cast to unsigned long works around a bug in the HP C Compiler
38489 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
38490 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
38491 # This bug is HP SR number 8606223364.
38492 if test "$cross_compiling" = yes; then
38493 # Depending upon the size, compute the lo and hi bounds.
38494 cat >conftest.$ac_ext <<_ACEOF
38495 /* confdefs.h. */
38496 _ACEOF
38497 cat confdefs.h >>conftest.$ac_ext
38498 cat >>conftest.$ac_ext <<_ACEOF
38499 /* end confdefs.h. */
38500
38501 #include <stdio.h>
38502
38503 /* What a mess.. many systems have added the (now standard) bit types
38504 * in their own ways, so we need to scan a wide variety of headers to
38505 * find them..
38506 * IMPORTANT: Keep include/squid_types.h syncronised with this list
38507 */
38508 #if HAVE_SYS_TYPES_H
38509 #include <sys/types.h>
38510 #endif
38511 #if STDC_HEADERS
38512 #include <stdlib.h>
38513 #include <stddef.h>
38514 #endif
38515 #if HAVE_INTTYPES_H
38516 #include <inttypes.h>
38517 #endif
38518 #if HAVE_SYS_BITYPES_H
38519 #include <sys/bitypes.h>
38520 #endif
38521 #if HAVE_SYS_SELECT_H
38522 #include <sys/select.h>
38523 #endif
38524
38525
38526
38527 int
38528 main ()
38529 {
38530 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
38531 test_array [0] = 0
38532
38533 ;
38534 return 0;
38535 }
38536 _ACEOF
38537 rm -f conftest.$ac_objext
38538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38539 (eval $ac_compile) 2>conftest.er1
38540 ac_status=$?
38541 grep -v '^ *+' conftest.er1 >conftest.err
38542 rm -f conftest.er1
38543 cat conftest.err >&5
38544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38545 (exit $ac_status); } &&
38546 { ac_try='test -z "$ac_c_werror_flag"
38547 || test ! -s conftest.err'
38548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38549 (eval $ac_try) 2>&5
38550 ac_status=$?
38551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38552 (exit $ac_status); }; } &&
38553 { ac_try='test -s conftest.$ac_objext'
38554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38555 (eval $ac_try) 2>&5
38556 ac_status=$?
38557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38558 (exit $ac_status); }; }; then
38559 ac_lo=0 ac_mid=0
38560 while :; do
38561 cat >conftest.$ac_ext <<_ACEOF
38562 /* confdefs.h. */
38563 _ACEOF
38564 cat confdefs.h >>conftest.$ac_ext
38565 cat >>conftest.$ac_ext <<_ACEOF
38566 /* end confdefs.h. */
38567
38568 #include <stdio.h>
38569
38570 /* What a mess.. many systems have added the (now standard) bit types
38571 * in their own ways, so we need to scan a wide variety of headers to
38572 * find them..
38573 * IMPORTANT: Keep include/squid_types.h syncronised with this list
38574 */
38575 #if HAVE_SYS_TYPES_H
38576 #include <sys/types.h>
38577 #endif
38578 #if STDC_HEADERS
38579 #include <stdlib.h>
38580 #include <stddef.h>
38581 #endif
38582 #if HAVE_INTTYPES_H
38583 #include <inttypes.h>
38584 #endif
38585 #if HAVE_SYS_BITYPES_H
38586 #include <sys/bitypes.h>
38587 #endif
38588 #if HAVE_SYS_SELECT_H
38589 #include <sys/select.h>
38590 #endif
38591
38592
38593
38594 int
38595 main ()
38596 {
38597 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
38598 test_array [0] = 0
38599
38600 ;
38601 return 0;
38602 }
38603 _ACEOF
38604 rm -f conftest.$ac_objext
38605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38606 (eval $ac_compile) 2>conftest.er1
38607 ac_status=$?
38608 grep -v '^ *+' conftest.er1 >conftest.err
38609 rm -f conftest.er1
38610 cat conftest.err >&5
38611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38612 (exit $ac_status); } &&
38613 { ac_try='test -z "$ac_c_werror_flag"
38614 || test ! -s conftest.err'
38615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38616 (eval $ac_try) 2>&5
38617 ac_status=$?
38618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38619 (exit $ac_status); }; } &&
38620 { ac_try='test -s conftest.$ac_objext'
38621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38622 (eval $ac_try) 2>&5
38623 ac_status=$?
38624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38625 (exit $ac_status); }; }; then
38626 ac_hi=$ac_mid; break
38627 else
38628 echo "$as_me: failed program was:" >&5
38629 sed 's/^/| /' conftest.$ac_ext >&5
38630
38631 ac_lo=`expr $ac_mid + 1`
38632 if test $ac_lo -le $ac_mid; then
38633 ac_lo= ac_hi=
38634 break
38635 fi
38636 ac_mid=`expr 2 '*' $ac_mid + 1`
38637 fi
38638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38639 done
38640 else
38641 echo "$as_me: failed program was:" >&5
38642 sed 's/^/| /' conftest.$ac_ext >&5
38643
38644 cat >conftest.$ac_ext <<_ACEOF
38645 /* confdefs.h. */
38646 _ACEOF
38647 cat confdefs.h >>conftest.$ac_ext
38648 cat >>conftest.$ac_ext <<_ACEOF
38649 /* end confdefs.h. */
38650
38651 #include <stdio.h>
38652
38653 /* What a mess.. many systems have added the (now standard) bit types
38654 * in their own ways, so we need to scan a wide variety of headers to
38655 * find them..
38656 * IMPORTANT: Keep include/squid_types.h syncronised with this list
38657 */
38658 #if HAVE_SYS_TYPES_H
38659 #include <sys/types.h>
38660 #endif
38661 #if STDC_HEADERS
38662 #include <stdlib.h>
38663 #include <stddef.h>
38664 #endif
38665 #if HAVE_INTTYPES_H
38666 #include <inttypes.h>
38667 #endif
38668 #if HAVE_SYS_BITYPES_H
38669 #include <sys/bitypes.h>
38670 #endif
38671 #if HAVE_SYS_SELECT_H
38672 #include <sys/select.h>
38673 #endif
38674
38675
38676
38677 int
38678 main ()
38679 {
38680 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
38681 test_array [0] = 0
38682
38683 ;
38684 return 0;
38685 }
38686 _ACEOF
38687 rm -f conftest.$ac_objext
38688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38689 (eval $ac_compile) 2>conftest.er1
38690 ac_status=$?
38691 grep -v '^ *+' conftest.er1 >conftest.err
38692 rm -f conftest.er1
38693 cat conftest.err >&5
38694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38695 (exit $ac_status); } &&
38696 { ac_try='test -z "$ac_c_werror_flag"
38697 || test ! -s conftest.err'
38698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38699 (eval $ac_try) 2>&5
38700 ac_status=$?
38701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38702 (exit $ac_status); }; } &&
38703 { ac_try='test -s conftest.$ac_objext'
38704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38705 (eval $ac_try) 2>&5
38706 ac_status=$?
38707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38708 (exit $ac_status); }; }; then
38709 ac_hi=-1 ac_mid=-1
38710 while :; do
38711 cat >conftest.$ac_ext <<_ACEOF
38712 /* confdefs.h. */
38713 _ACEOF
38714 cat confdefs.h >>conftest.$ac_ext
38715 cat >>conftest.$ac_ext <<_ACEOF
38716 /* end confdefs.h. */
38717
38718 #include <stdio.h>
38719
38720 /* What a mess.. many systems have added the (now standard) bit types
38721 * in their own ways, so we need to scan a wide variety of headers to
38722 * find them..
38723 * IMPORTANT: Keep include/squid_types.h syncronised with this list
38724 */
38725 #if HAVE_SYS_TYPES_H
38726 #include <sys/types.h>
38727 #endif
38728 #if STDC_HEADERS
38729 #include <stdlib.h>
38730 #include <stddef.h>
38731 #endif
38732 #if HAVE_INTTYPES_H
38733 #include <inttypes.h>
38734 #endif
38735 #if HAVE_SYS_BITYPES_H
38736 #include <sys/bitypes.h>
38737 #endif
38738 #if HAVE_SYS_SELECT_H
38739 #include <sys/select.h>
38740 #endif
38741
38742
38743
38744 int
38745 main ()
38746 {
38747 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
38748 test_array [0] = 0
38749
38750 ;
38751 return 0;
38752 }
38753 _ACEOF
38754 rm -f conftest.$ac_objext
38755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38756 (eval $ac_compile) 2>conftest.er1
38757 ac_status=$?
38758 grep -v '^ *+' conftest.er1 >conftest.err
38759 rm -f conftest.er1
38760 cat conftest.err >&5
38761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38762 (exit $ac_status); } &&
38763 { ac_try='test -z "$ac_c_werror_flag"
38764 || test ! -s conftest.err'
38765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38766 (eval $ac_try) 2>&5
38767 ac_status=$?
38768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38769 (exit $ac_status); }; } &&
38770 { ac_try='test -s conftest.$ac_objext'
38771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38772 (eval $ac_try) 2>&5
38773 ac_status=$?
38774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38775 (exit $ac_status); }; }; then
38776 ac_lo=$ac_mid; break
38777 else
38778 echo "$as_me: failed program was:" >&5
38779 sed 's/^/| /' conftest.$ac_ext >&5
38780
38781 ac_hi=`expr '(' $ac_mid ')' - 1`
38782 if test $ac_mid -le $ac_hi; then
38783 ac_lo= ac_hi=
38784 break
38785 fi
38786 ac_mid=`expr 2 '*' $ac_mid`
38787 fi
38788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38789 done
38790 else
38791 echo "$as_me: failed program was:" >&5
38792 sed 's/^/| /' conftest.$ac_ext >&5
38793
38794 ac_lo= ac_hi=
38795 fi
38796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38797 fi
38798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38799 # Binary search between lo and hi bounds.
38800 while test "x$ac_lo" != "x$ac_hi"; do
38801 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
38802 cat >conftest.$ac_ext <<_ACEOF
38803 /* confdefs.h. */
38804 _ACEOF
38805 cat confdefs.h >>conftest.$ac_ext
38806 cat >>conftest.$ac_ext <<_ACEOF
38807 /* end confdefs.h. */
38808
38809 #include <stdio.h>
38810
38811 /* What a mess.. many systems have added the (now standard) bit types
38812 * in their own ways, so we need to scan a wide variety of headers to
38813 * find them..
38814 * IMPORTANT: Keep include/squid_types.h syncronised with this list
38815 */
38816 #if HAVE_SYS_TYPES_H
38817 #include <sys/types.h>
38818 #endif
38819 #if STDC_HEADERS
38820 #include <stdlib.h>
38821 #include <stddef.h>
38822 #endif
38823 #if HAVE_INTTYPES_H
38824 #include <inttypes.h>
38825 #endif
38826 #if HAVE_SYS_BITYPES_H
38827 #include <sys/bitypes.h>
38828 #endif
38829 #if HAVE_SYS_SELECT_H
38830 #include <sys/select.h>
38831 #endif
38832
38833
38834
38835 int
38836 main ()
38837 {
38838 static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
38839 test_array [0] = 0
38840
38841 ;
38842 return 0;
38843 }
38844 _ACEOF
38845 rm -f conftest.$ac_objext
38846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38847 (eval $ac_compile) 2>conftest.er1
38848 ac_status=$?
38849 grep -v '^ *+' conftest.er1 >conftest.err
38850 rm -f conftest.er1
38851 cat conftest.err >&5
38852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38853 (exit $ac_status); } &&
38854 { ac_try='test -z "$ac_c_werror_flag"
38855 || test ! -s conftest.err'
38856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38857 (eval $ac_try) 2>&5
38858 ac_status=$?
38859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38860 (exit $ac_status); }; } &&
38861 { ac_try='test -s conftest.$ac_objext'
38862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38863 (eval $ac_try) 2>&5
38864 ac_status=$?
38865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38866 (exit $ac_status); }; }; then
38867 ac_hi=$ac_mid
38868 else
38869 echo "$as_me: failed program was:" >&5
38870 sed 's/^/| /' conftest.$ac_ext >&5
38871
38872 ac_lo=`expr '(' $ac_mid ')' + 1`
38873 fi
38874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38875 done
38876 case $ac_lo in
38877 ?*) ac_cv_sizeof_size_t=$ac_lo;;
38878 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
38879 See \`config.log' for more details." >&5
38880 echo "$as_me: error: cannot compute sizeof (size_t), 77
38881 See \`config.log' for more details." >&2;}
38882 { (exit 1); exit 1; }; } ;;
38883 esac
38884 else
38885 if test "$cross_compiling" = yes; then
38886 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
38887 See \`config.log' for more details." >&5
38888 echo "$as_me: error: cannot run test program while cross compiling
38889 See \`config.log' for more details." >&2;}
38890 { (exit 1); exit 1; }; }
38891 else
38892 cat >conftest.$ac_ext <<_ACEOF
38893 /* confdefs.h. */
38894 _ACEOF
38895 cat confdefs.h >>conftest.$ac_ext
38896 cat >>conftest.$ac_ext <<_ACEOF
38897 /* end confdefs.h. */
38898
38899 #include <stdio.h>
38900
38901 /* What a mess.. many systems have added the (now standard) bit types
38902 * in their own ways, so we need to scan a wide variety of headers to
38903 * find them..
38904 * IMPORTANT: Keep include/squid_types.h syncronised with this list
38905 */
38906 #if HAVE_SYS_TYPES_H
38907 #include <sys/types.h>
38908 #endif
38909 #if STDC_HEADERS
38910 #include <stdlib.h>
38911 #include <stddef.h>
38912 #endif
38913 #if HAVE_INTTYPES_H
38914 #include <inttypes.h>
38915 #endif
38916 #if HAVE_SYS_BITYPES_H
38917 #include <sys/bitypes.h>
38918 #endif
38919 #if HAVE_SYS_SELECT_H
38920 #include <sys/select.h>
38921 #endif
38922
38923
38924
38925 long longval () { return (long) (sizeof (size_t)); }
38926 unsigned long ulongval () { return (long) (sizeof (size_t)); }
38927 #include <stdio.h>
38928 #include <stdlib.h>
38929 int
38930 main ()
38931 {
38932
38933 FILE *f = fopen ("conftest.val", "w");
38934 if (! f)
38935 exit (1);
38936 if (((long) (sizeof (size_t))) < 0)
38937 {
38938 long i = longval ();
38939 if (i != ((long) (sizeof (size_t))))
38940 exit (1);
38941 fprintf (f, "%ld\n", i);
38942 }
38943 else
38944 {
38945 unsigned long i = ulongval ();
38946 if (i != ((long) (sizeof (size_t))))
38947 exit (1);
38948 fprintf (f, "%lu\n", i);
38949 }
38950 exit (ferror (f) || fclose (f) != 0);
38951
38952 ;
38953 return 0;
38954 }
38955 _ACEOF
38956 rm -f conftest$ac_exeext
38957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38958 (eval $ac_link) 2>&5
38959 ac_status=$?
38960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38963 (eval $ac_try) 2>&5
38964 ac_status=$?
38965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38966 (exit $ac_status); }; }; then
38967 ac_cv_sizeof_size_t=`cat conftest.val`
38968 else
38969 echo "$as_me: program exited with status $ac_status" >&5
38970 echo "$as_me: failed program was:" >&5
38971 sed 's/^/| /' conftest.$ac_ext >&5
38972
38973 ( exit $ac_status )
38974 { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
38975 See \`config.log' for more details." >&5
38976 echo "$as_me: error: cannot compute sizeof (size_t), 77
38977 See \`config.log' for more details." >&2;}
38978 { (exit 1); exit 1; }; }
38979 fi
38980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38981 fi
38982 fi
38983 rm -f conftest.val
38984 else
38985 ac_cv_sizeof_size_t=0
38986 fi
38987 fi
38988 echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
38989 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
38990 cat >>confdefs.h <<_ACEOF
38991 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
38992 _ACEOF
38993
38994
38995
38996 cat >>confdefs.h <<\_ACEOF
38997 #define HAVE_SIZE_T 1
38998 _ACEOF
38999
39000 fi
39001
39002 echo "$as_me:$LINENO: checking for ssize_t" >&5
39003 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
39004 if test "${ac_cv_type_ssize_t+set}" = set; then
39005 echo $ECHO_N "(cached) $ECHO_C" >&6
39006 else
39007 cat >conftest.$ac_ext <<_ACEOF
39008 /* confdefs.h. */
39009 _ACEOF
39010 cat confdefs.h >>conftest.$ac_ext
39011 cat >>conftest.$ac_ext <<_ACEOF
39012 /* end confdefs.h. */
39013
39014 /* What a mess.. many systems have added the (now standard) bit types
39015 * in their own ways, so we need to scan a wide variety of headers to
39016 * find them..
39017 * IMPORTANT: Keep include/squid_types.h syncronised with this list
39018 */
39019 #if HAVE_SYS_TYPES_H
39020 #include <sys/types.h>
39021 #endif
39022 #if STDC_HEADERS
39023 #include <stdlib.h>
39024 #include <stddef.h>
39025 #endif
39026 #if HAVE_INTTYPES_H
39027 #include <inttypes.h>
39028 #endif
39029 #if HAVE_SYS_BITYPES_H
39030 #include <sys/bitypes.h>
39031 #endif
39032 #if HAVE_SYS_SELECT_H
39033 #include <sys/select.h>
39034 #endif
39035
39036
39037 int
39038 main ()
39039 {
39040 if ((ssize_t *) 0)
39041 return 0;
39042 if (sizeof (ssize_t))
39043 return 0;
39044 ;
39045 return 0;
39046 }
39047 _ACEOF
39048 rm -f conftest.$ac_objext
39049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39050 (eval $ac_compile) 2>conftest.er1
39051 ac_status=$?
39052 grep -v '^ *+' conftest.er1 >conftest.err
39053 rm -f conftest.er1
39054 cat conftest.err >&5
39055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39056 (exit $ac_status); } &&
39057 { ac_try='test -z "$ac_c_werror_flag"
39058 || test ! -s conftest.err'
39059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39060 (eval $ac_try) 2>&5
39061 ac_status=$?
39062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39063 (exit $ac_status); }; } &&
39064 { ac_try='test -s conftest.$ac_objext'
39065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39066 (eval $ac_try) 2>&5
39067 ac_status=$?
39068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39069 (exit $ac_status); }; }; then
39070 ac_cv_type_ssize_t=yes
39071 else
39072 echo "$as_me: failed program was:" >&5
39073 sed 's/^/| /' conftest.$ac_ext >&5
39074
39075 ac_cv_type_ssize_t=no
39076 fi
39077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39078 fi
39079 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
39080 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
39081 if test $ac_cv_type_ssize_t = yes; then
39082
39083 cat >>confdefs.h <<\_ACEOF
39084 #define HAVE_SSIZE_T 1
39085 _ACEOF
39086
39087 fi
39088
39089 echo "$as_me:$LINENO: checking for off_t" >&5
39090 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
39091 if test "${ac_cv_type_off_t+set}" = set; then
39092 echo $ECHO_N "(cached) $ECHO_C" >&6
39093 else
39094 cat >conftest.$ac_ext <<_ACEOF
39095 /* confdefs.h. */
39096 _ACEOF
39097 cat confdefs.h >>conftest.$ac_ext
39098 cat >>conftest.$ac_ext <<_ACEOF
39099 /* end confdefs.h. */
39100
39101 /* What a mess.. many systems have added the (now standard) bit types
39102 * in their own ways, so we need to scan a wide variety of headers to
39103 * find them..
39104 * IMPORTANT: Keep include/squid_types.h syncronised with this list
39105 */
39106 #if HAVE_SYS_TYPES_H
39107 #include <sys/types.h>
39108 #endif
39109 #if STDC_HEADERS
39110 #include <stdlib.h>
39111 #include <stddef.h>
39112 #endif
39113 #if HAVE_INTTYPES_H
39114 #include <inttypes.h>
39115 #endif
39116 #if HAVE_SYS_BITYPES_H
39117 #include <sys/bitypes.h>
39118 #endif
39119 #if HAVE_SYS_SELECT_H
39120 #include <sys/select.h>
39121 #endif
39122
39123
39124 int
39125 main ()
39126 {
39127 if ((off_t *) 0)
39128 return 0;
39129 if (sizeof (off_t))
39130 return 0;
39131 ;
39132 return 0;
39133 }
39134 _ACEOF
39135 rm -f conftest.$ac_objext
39136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39137 (eval $ac_compile) 2>conftest.er1
39138 ac_status=$?
39139 grep -v '^ *+' conftest.er1 >conftest.err
39140 rm -f conftest.er1
39141 cat conftest.err >&5
39142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39143 (exit $ac_status); } &&
39144 { ac_try='test -z "$ac_c_werror_flag"
39145 || test ! -s conftest.err'
39146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39147 (eval $ac_try) 2>&5
39148 ac_status=$?
39149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39150 (exit $ac_status); }; } &&
39151 { ac_try='test -s conftest.$ac_objext'
39152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39153 (eval $ac_try) 2>&5
39154 ac_status=$?
39155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39156 (exit $ac_status); }; }; then
39157 ac_cv_type_off_t=yes
39158 else
39159 echo "$as_me: failed program was:" >&5
39160 sed 's/^/| /' conftest.$ac_ext >&5
39161
39162 ac_cv_type_off_t=no
39163 fi
39164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39165 fi
39166 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
39167 echo "${ECHO_T}$ac_cv_type_off_t" >&6
39168 if test $ac_cv_type_off_t = yes; then
39169 echo "$as_me:$LINENO: checking for off_t" >&5
39170 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
39171 if test "${ac_cv_type_off_t+set}" = set; then
39172 echo $ECHO_N "(cached) $ECHO_C" >&6
39173 else
39174 cat >conftest.$ac_ext <<_ACEOF
39175 /* confdefs.h. */
39176 _ACEOF
39177 cat confdefs.h >>conftest.$ac_ext
39178 cat >>conftest.$ac_ext <<_ACEOF
39179 /* end confdefs.h. */
39180
39181 #include <stdio.h>
39182
39183 /* What a mess.. many systems have added the (now standard) bit types
39184 * in their own ways, so we need to scan a wide variety of headers to
39185 * find them..
39186 * IMPORTANT: Keep include/squid_types.h syncronised with this list
39187 */
39188 #if HAVE_SYS_TYPES_H
39189 #include <sys/types.h>
39190 #endif
39191 #if STDC_HEADERS
39192 #include <stdlib.h>
39193 #include <stddef.h>
39194 #endif
39195 #if HAVE_INTTYPES_H
39196 #include <inttypes.h>
39197 #endif
39198 #if HAVE_SYS_BITYPES_H
39199 #include <sys/bitypes.h>
39200 #endif
39201 #if HAVE_SYS_SELECT_H
39202 #include <sys/select.h>
39203 #endif
39204
39205
39206
39207 int
39208 main ()
39209 {
39210 if ((off_t *) 0)
39211 return 0;
39212 if (sizeof (off_t))
39213 return 0;
39214 ;
39215 return 0;
39216 }
39217 _ACEOF
39218 rm -f conftest.$ac_objext
39219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39220 (eval $ac_compile) 2>conftest.er1
39221 ac_status=$?
39222 grep -v '^ *+' conftest.er1 >conftest.err
39223 rm -f conftest.er1
39224 cat conftest.err >&5
39225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39226 (exit $ac_status); } &&
39227 { ac_try='test -z "$ac_c_werror_flag"
39228 || test ! -s conftest.err'
39229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39230 (eval $ac_try) 2>&5
39231 ac_status=$?
39232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39233 (exit $ac_status); }; } &&
39234 { ac_try='test -s conftest.$ac_objext'
39235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39236 (eval $ac_try) 2>&5
39237 ac_status=$?
39238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39239 (exit $ac_status); }; }; then
39240 ac_cv_type_off_t=yes
39241 else
39242 echo "$as_me: failed program was:" >&5
39243 sed 's/^/| /' conftest.$ac_ext >&5
39244
39245 ac_cv_type_off_t=no
39246 fi
39247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39248 fi
39249 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
39250 echo "${ECHO_T}$ac_cv_type_off_t" >&6
39251
39252 echo "$as_me:$LINENO: checking size of off_t" >&5
39253 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
39254 if test "${ac_cv_sizeof_off_t+set}" = set; then
39255 echo $ECHO_N "(cached) $ECHO_C" >&6
39256 else
39257 if test "$ac_cv_type_off_t" = yes; then
39258 # The cast to unsigned long works around a bug in the HP C Compiler
39259 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
39260 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
39261 # This bug is HP SR number 8606223364.
39262 if test "$cross_compiling" = yes; then
39263 # Depending upon the size, compute the lo and hi bounds.
39264 cat >conftest.$ac_ext <<_ACEOF
39265 /* confdefs.h. */
39266 _ACEOF
39267 cat confdefs.h >>conftest.$ac_ext
39268 cat >>conftest.$ac_ext <<_ACEOF
39269 /* end confdefs.h. */
39270
39271 #include <stdio.h>
39272
39273 /* What a mess.. many systems have added the (now standard) bit types
39274 * in their own ways, so we need to scan a wide variety of headers to
39275 * find them..
39276 * IMPORTANT: Keep include/squid_types.h syncronised with this list
39277 */
39278 #if HAVE_SYS_TYPES_H
39279 #include <sys/types.h>
39280 #endif
39281 #if STDC_HEADERS
39282 #include <stdlib.h>
39283 #include <stddef.h>
39284 #endif
39285 #if HAVE_INTTYPES_H
39286 #include <inttypes.h>
39287 #endif
39288 #if HAVE_SYS_BITYPES_H
39289 #include <sys/bitypes.h>
39290 #endif
39291 #if HAVE_SYS_SELECT_H
39292 #include <sys/select.h>
39293 #endif
39294
39295
39296
39297 int
39298 main ()
39299 {
39300 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)];
39301 test_array [0] = 0
39302
39303 ;
39304 return 0;
39305 }
39306 _ACEOF
39307 rm -f conftest.$ac_objext
39308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39309 (eval $ac_compile) 2>conftest.er1
39310 ac_status=$?
39311 grep -v '^ *+' conftest.er1 >conftest.err
39312 rm -f conftest.er1
39313 cat conftest.err >&5
39314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39315 (exit $ac_status); } &&
39316 { ac_try='test -z "$ac_c_werror_flag"
39317 || test ! -s conftest.err'
39318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39319 (eval $ac_try) 2>&5
39320 ac_status=$?
39321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39322 (exit $ac_status); }; } &&
39323 { ac_try='test -s conftest.$ac_objext'
39324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39325 (eval $ac_try) 2>&5
39326 ac_status=$?
39327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39328 (exit $ac_status); }; }; then
39329 ac_lo=0 ac_mid=0
39330 while :; do
39331 cat >conftest.$ac_ext <<_ACEOF
39332 /* confdefs.h. */
39333 _ACEOF
39334 cat confdefs.h >>conftest.$ac_ext
39335 cat >>conftest.$ac_ext <<_ACEOF
39336 /* end confdefs.h. */
39337
39338 #include <stdio.h>
39339
39340 /* What a mess.. many systems have added the (now standard) bit types
39341 * in their own ways, so we need to scan a wide variety of headers to
39342 * find them..
39343 * IMPORTANT: Keep include/squid_types.h syncronised with this list
39344 */
39345 #if HAVE_SYS_TYPES_H
39346 #include <sys/types.h>
39347 #endif
39348 #if STDC_HEADERS
39349 #include <stdlib.h>
39350 #include <stddef.h>
39351 #endif
39352 #if HAVE_INTTYPES_H
39353 #include <inttypes.h>
39354 #endif
39355 #if HAVE_SYS_BITYPES_H
39356 #include <sys/bitypes.h>
39357 #endif
39358 #if HAVE_SYS_SELECT_H
39359 #include <sys/select.h>
39360 #endif
39361
39362
39363
39364 int
39365 main ()
39366 {
39367 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
39368 test_array [0] = 0
39369
39370 ;
39371 return 0;
39372 }
39373 _ACEOF
39374 rm -f conftest.$ac_objext
39375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39376 (eval $ac_compile) 2>conftest.er1
39377 ac_status=$?
39378 grep -v '^ *+' conftest.er1 >conftest.err
39379 rm -f conftest.er1
39380 cat conftest.err >&5
39381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39382 (exit $ac_status); } &&
39383 { ac_try='test -z "$ac_c_werror_flag"
39384 || test ! -s conftest.err'
39385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39386 (eval $ac_try) 2>&5
39387 ac_status=$?
39388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39389 (exit $ac_status); }; } &&
39390 { ac_try='test -s conftest.$ac_objext'
39391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39392 (eval $ac_try) 2>&5
39393 ac_status=$?
39394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39395 (exit $ac_status); }; }; then
39396 ac_hi=$ac_mid; break
39397 else
39398 echo "$as_me: failed program was:" >&5
39399 sed 's/^/| /' conftest.$ac_ext >&5
39400
39401 ac_lo=`expr $ac_mid + 1`
39402 if test $ac_lo -le $ac_mid; then
39403 ac_lo= ac_hi=
39404 break
39405 fi
39406 ac_mid=`expr 2 '*' $ac_mid + 1`
39407 fi
39408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39409 done
39410 else
39411 echo "$as_me: failed program was:" >&5
39412 sed 's/^/| /' conftest.$ac_ext >&5
39413
39414 cat >conftest.$ac_ext <<_ACEOF
39415 /* confdefs.h. */
39416 _ACEOF
39417 cat confdefs.h >>conftest.$ac_ext
39418 cat >>conftest.$ac_ext <<_ACEOF
39419 /* end confdefs.h. */
39420
39421 #include <stdio.h>
39422
39423 /* What a mess.. many systems have added the (now standard) bit types
39424 * in their own ways, so we need to scan a wide variety of headers to
39425 * find them..
39426 * IMPORTANT: Keep include/squid_types.h syncronised with this list
39427 */
39428 #if HAVE_SYS_TYPES_H
39429 #include <sys/types.h>
39430 #endif
39431 #if STDC_HEADERS
39432 #include <stdlib.h>
39433 #include <stddef.h>
39434 #endif
39435 #if HAVE_INTTYPES_H
39436 #include <inttypes.h>
39437 #endif
39438 #if HAVE_SYS_BITYPES_H
39439 #include <sys/bitypes.h>
39440 #endif
39441 #if HAVE_SYS_SELECT_H
39442 #include <sys/select.h>
39443 #endif
39444
39445
39446
39447 int
39448 main ()
39449 {
39450 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)];
39451 test_array [0] = 0
39452
39453 ;
39454 return 0;
39455 }
39456 _ACEOF
39457 rm -f conftest.$ac_objext
39458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39459 (eval $ac_compile) 2>conftest.er1
39460 ac_status=$?
39461 grep -v '^ *+' conftest.er1 >conftest.err
39462 rm -f conftest.er1
39463 cat conftest.err >&5
39464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39465 (exit $ac_status); } &&
39466 { ac_try='test -z "$ac_c_werror_flag"
39467 || test ! -s conftest.err'
39468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39469 (eval $ac_try) 2>&5
39470 ac_status=$?
39471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39472 (exit $ac_status); }; } &&
39473 { ac_try='test -s conftest.$ac_objext'
39474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39475 (eval $ac_try) 2>&5
39476 ac_status=$?
39477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39478 (exit $ac_status); }; }; then
39479 ac_hi=-1 ac_mid=-1
39480 while :; do
39481 cat >conftest.$ac_ext <<_ACEOF
39482 /* confdefs.h. */
39483 _ACEOF
39484 cat confdefs.h >>conftest.$ac_ext
39485 cat >>conftest.$ac_ext <<_ACEOF
39486 /* end confdefs.h. */
39487
39488 #include <stdio.h>
39489
39490 /* What a mess.. many systems have added the (now standard) bit types
39491 * in their own ways, so we need to scan a wide variety of headers to
39492 * find them..
39493 * IMPORTANT: Keep include/squid_types.h syncronised with this list
39494 */
39495 #if HAVE_SYS_TYPES_H
39496 #include <sys/types.h>
39497 #endif
39498 #if STDC_HEADERS
39499 #include <stdlib.h>
39500 #include <stddef.h>
39501 #endif
39502 #if HAVE_INTTYPES_H
39503 #include <inttypes.h>
39504 #endif
39505 #if HAVE_SYS_BITYPES_H
39506 #include <sys/bitypes.h>
39507 #endif
39508 #if HAVE_SYS_SELECT_H
39509 #include <sys/select.h>
39510 #endif
39511
39512
39513
39514 int
39515 main ()
39516 {
39517 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)];
39518 test_array [0] = 0
39519
39520 ;
39521 return 0;
39522 }
39523 _ACEOF
39524 rm -f conftest.$ac_objext
39525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39526 (eval $ac_compile) 2>conftest.er1
39527 ac_status=$?
39528 grep -v '^ *+' conftest.er1 >conftest.err
39529 rm -f conftest.er1
39530 cat conftest.err >&5
39531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39532 (exit $ac_status); } &&
39533 { ac_try='test -z "$ac_c_werror_flag"
39534 || test ! -s conftest.err'
39535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39536 (eval $ac_try) 2>&5
39537 ac_status=$?
39538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39539 (exit $ac_status); }; } &&
39540 { ac_try='test -s conftest.$ac_objext'
39541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39542 (eval $ac_try) 2>&5
39543 ac_status=$?
39544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39545 (exit $ac_status); }; }; then
39546 ac_lo=$ac_mid; break
39547 else
39548 echo "$as_me: failed program was:" >&5
39549 sed 's/^/| /' conftest.$ac_ext >&5
39550
39551 ac_hi=`expr '(' $ac_mid ')' - 1`
39552 if test $ac_mid -le $ac_hi; then
39553 ac_lo= ac_hi=
39554 break
39555 fi
39556 ac_mid=`expr 2 '*' $ac_mid`
39557 fi
39558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39559 done
39560 else
39561 echo "$as_me: failed program was:" >&5
39562 sed 's/^/| /' conftest.$ac_ext >&5
39563
39564 ac_lo= ac_hi=
39565 fi
39566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39567 fi
39568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39569 # Binary search between lo and hi bounds.
39570 while test "x$ac_lo" != "x$ac_hi"; do
39571 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39572 cat >conftest.$ac_ext <<_ACEOF
39573 /* confdefs.h. */
39574 _ACEOF
39575 cat confdefs.h >>conftest.$ac_ext
39576 cat >>conftest.$ac_ext <<_ACEOF
39577 /* end confdefs.h. */
39578
39579 #include <stdio.h>
39580
39581 /* What a mess.. many systems have added the (now standard) bit types
39582 * in their own ways, so we need to scan a wide variety of headers to
39583 * find them..
39584 * IMPORTANT: Keep include/squid_types.h syncronised with this list
39585 */
39586 #if HAVE_SYS_TYPES_H
39587 #include <sys/types.h>
39588 #endif
39589 #if STDC_HEADERS
39590 #include <stdlib.h>
39591 #include <stddef.h>
39592 #endif
39593 #if HAVE_INTTYPES_H
39594 #include <inttypes.h>
39595 #endif
39596 #if HAVE_SYS_BITYPES_H
39597 #include <sys/bitypes.h>
39598 #endif
39599 #if HAVE_SYS_SELECT_H
39600 #include <sys/select.h>
39601 #endif
39602
39603
39604
39605 int
39606 main ()
39607 {
39608 static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)];
39609 test_array [0] = 0
39610
39611 ;
39612 return 0;
39613 }
39614 _ACEOF
39615 rm -f conftest.$ac_objext
39616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39617 (eval $ac_compile) 2>conftest.er1
39618 ac_status=$?
39619 grep -v '^ *+' conftest.er1 >conftest.err
39620 rm -f conftest.er1
39621 cat conftest.err >&5
39622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39623 (exit $ac_status); } &&
39624 { ac_try='test -z "$ac_c_werror_flag"
39625 || test ! -s conftest.err'
39626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39627 (eval $ac_try) 2>&5
39628 ac_status=$?
39629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39630 (exit $ac_status); }; } &&
39631 { ac_try='test -s conftest.$ac_objext'
39632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39633 (eval $ac_try) 2>&5
39634 ac_status=$?
39635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39636 (exit $ac_status); }; }; then
39637 ac_hi=$ac_mid
39638 else
39639 echo "$as_me: failed program was:" >&5
39640 sed 's/^/| /' conftest.$ac_ext >&5
39641
39642 ac_lo=`expr '(' $ac_mid ')' + 1`
39643 fi
39644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39645 done
39646 case $ac_lo in
39647 ?*) ac_cv_sizeof_off_t=$ac_lo;;
39648 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
39649 See \`config.log' for more details." >&5
39650 echo "$as_me: error: cannot compute sizeof (off_t), 77
39651 See \`config.log' for more details." >&2;}
39652 { (exit 1); exit 1; }; } ;;
39653 esac
39654 else
39655 if test "$cross_compiling" = yes; then
39656 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
39657 See \`config.log' for more details." >&5
39658 echo "$as_me: error: cannot run test program while cross compiling
39659 See \`config.log' for more details." >&2;}
39660 { (exit 1); exit 1; }; }
39661 else
39662 cat >conftest.$ac_ext <<_ACEOF
39663 /* confdefs.h. */
39664 _ACEOF
39665 cat confdefs.h >>conftest.$ac_ext
39666 cat >>conftest.$ac_ext <<_ACEOF
39667 /* end confdefs.h. */
39668
39669 #include <stdio.h>
39670
39671 /* What a mess.. many systems have added the (now standard) bit types
39672 * in their own ways, so we need to scan a wide variety of headers to
39673 * find them..
39674 * IMPORTANT: Keep include/squid_types.h syncronised with this list
39675 */
39676 #if HAVE_SYS_TYPES_H
39677 #include <sys/types.h>
39678 #endif
39679 #if STDC_HEADERS
39680 #include <stdlib.h>
39681 #include <stddef.h>
39682 #endif
39683 #if HAVE_INTTYPES_H
39684 #include <inttypes.h>
39685 #endif
39686 #if HAVE_SYS_BITYPES_H
39687 #include <sys/bitypes.h>
39688 #endif
39689 #if HAVE_SYS_SELECT_H
39690 #include <sys/select.h>
39691 #endif
39692
39693
39694
39695 long longval () { return (long) (sizeof (off_t)); }
39696 unsigned long ulongval () { return (long) (sizeof (off_t)); }
39697 #include <stdio.h>
39698 #include <stdlib.h>
39699 int
39700 main ()
39701 {
39702
39703 FILE *f = fopen ("conftest.val", "w");
39704 if (! f)
39705 exit (1);
39706 if (((long) (sizeof (off_t))) < 0)
39707 {
39708 long i = longval ();
39709 if (i != ((long) (sizeof (off_t))))
39710 exit (1);
39711 fprintf (f, "%ld\n", i);
39712 }
39713 else
39714 {
39715 unsigned long i = ulongval ();
39716 if (i != ((long) (sizeof (off_t))))
39717 exit (1);
39718 fprintf (f, "%lu\n", i);
39719 }
39720 exit (ferror (f) || fclose (f) != 0);
39721
39722 ;
39723 return 0;
39724 }
39725 _ACEOF
39726 rm -f conftest$ac_exeext
39727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39728 (eval $ac_link) 2>&5
39729 ac_status=$?
39730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39733 (eval $ac_try) 2>&5
39734 ac_status=$?
39735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39736 (exit $ac_status); }; }; then
39737 ac_cv_sizeof_off_t=`cat conftest.val`
39738 else
39739 echo "$as_me: program exited with status $ac_status" >&5
39740 echo "$as_me: failed program was:" >&5
39741 sed 's/^/| /' conftest.$ac_ext >&5
39742
39743 ( exit $ac_status )
39744 { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77
39745 See \`config.log' for more details." >&5
39746 echo "$as_me: error: cannot compute sizeof (off_t), 77
39747 See \`config.log' for more details." >&2;}
39748 { (exit 1); exit 1; }; }
39749 fi
39750 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39751 fi
39752 fi
39753 rm -f conftest.val
39754 else
39755 ac_cv_sizeof_off_t=0
39756 fi
39757 fi
39758 echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
39759 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
39760 cat >>confdefs.h <<_ACEOF
39761 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
39762 _ACEOF
39763
39764
39765
39766 cat >>confdefs.h <<\_ACEOF
39767 #define HAVE_OFF_T 1
39768 _ACEOF
39769
39770 fi
39771
39772 echo "$as_me:$LINENO: checking for mode_t" >&5
39773 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
39774 if test "${ac_cv_type_mode_t+set}" = set; then
39775 echo $ECHO_N "(cached) $ECHO_C" >&6
39776 else
39777 cat >conftest.$ac_ext <<_ACEOF
39778 /* confdefs.h. */
39779 _ACEOF
39780 cat confdefs.h >>conftest.$ac_ext
39781 cat >>conftest.$ac_ext <<_ACEOF
39782 /* end confdefs.h. */
39783
39784 /* What a mess.. many systems have added the (now standard) bit types
39785 * in their own ways, so we need to scan a wide variety of headers to
39786 * find them..
39787 * IMPORTANT: Keep include/squid_types.h syncronised with this list
39788 */
39789 #if HAVE_SYS_TYPES_H
39790 #include <sys/types.h>
39791 #endif
39792 #if STDC_HEADERS
39793 #include <stdlib.h>
39794 #include <stddef.h>
39795 #endif
39796 #if HAVE_INTTYPES_H
39797 #include <inttypes.h>
39798 #endif
39799 #if HAVE_SYS_BITYPES_H
39800 #include <sys/bitypes.h>
39801 #endif
39802 #if HAVE_SYS_SELECT_H
39803 #include <sys/select.h>
39804 #endif
39805
39806
39807 int
39808 main ()
39809 {
39810 if ((mode_t *) 0)
39811 return 0;
39812 if (sizeof (mode_t))
39813 return 0;
39814 ;
39815 return 0;
39816 }
39817 _ACEOF
39818 rm -f conftest.$ac_objext
39819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39820 (eval $ac_compile) 2>conftest.er1
39821 ac_status=$?
39822 grep -v '^ *+' conftest.er1 >conftest.err
39823 rm -f conftest.er1
39824 cat conftest.err >&5
39825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39826 (exit $ac_status); } &&
39827 { ac_try='test -z "$ac_c_werror_flag"
39828 || test ! -s conftest.err'
39829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39830 (eval $ac_try) 2>&5
39831 ac_status=$?
39832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39833 (exit $ac_status); }; } &&
39834 { ac_try='test -s conftest.$ac_objext'
39835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39836 (eval $ac_try) 2>&5
39837 ac_status=$?
39838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39839 (exit $ac_status); }; }; then
39840 ac_cv_type_mode_t=yes
39841 else
39842 echo "$as_me: failed program was:" >&5
39843 sed 's/^/| /' conftest.$ac_ext >&5
39844
39845 ac_cv_type_mode_t=no
39846 fi
39847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39848 fi
39849 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
39850 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
39851 if test $ac_cv_type_mode_t = yes; then
39852
39853 cat >>confdefs.h <<\_ACEOF
39854 #define HAVE_MODE_T 1
39855 _ACEOF
39856
39857 fi
39858
39859 echo "$as_me:$LINENO: checking for fd_mask" >&5
39860 echo $ECHO_N "checking for fd_mask... $ECHO_C" >&6
39861 if test "${ac_cv_type_fd_mask+set}" = set; then
39862 echo $ECHO_N "(cached) $ECHO_C" >&6
39863 else
39864 cat >conftest.$ac_ext <<_ACEOF
39865 /* confdefs.h. */
39866 _ACEOF
39867 cat confdefs.h >>conftest.$ac_ext
39868 cat >>conftest.$ac_ext <<_ACEOF
39869 /* end confdefs.h. */
39870
39871 /* What a mess.. many systems have added the (now standard) bit types
39872 * in their own ways, so we need to scan a wide variety of headers to
39873 * find them..
39874 * IMPORTANT: Keep include/squid_types.h syncronised with this list
39875 */
39876 #if HAVE_SYS_TYPES_H
39877 #include <sys/types.h>
39878 #endif
39879 #if STDC_HEADERS
39880 #include <stdlib.h>
39881 #include <stddef.h>
39882 #endif
39883 #if HAVE_INTTYPES_H
39884 #include <inttypes.h>
39885 #endif
39886 #if HAVE_SYS_BITYPES_H
39887 #include <sys/bitypes.h>
39888 #endif
39889 #if HAVE_SYS_SELECT_H
39890 #include <sys/select.h>
39891 #endif
39892
39893
39894 int
39895 main ()
39896 {
39897 if ((fd_mask *) 0)
39898 return 0;
39899 if (sizeof (fd_mask))
39900 return 0;
39901 ;
39902 return 0;
39903 }
39904 _ACEOF
39905 rm -f conftest.$ac_objext
39906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39907 (eval $ac_compile) 2>conftest.er1
39908 ac_status=$?
39909 grep -v '^ *+' conftest.er1 >conftest.err
39910 rm -f conftest.er1
39911 cat conftest.err >&5
39912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39913 (exit $ac_status); } &&
39914 { ac_try='test -z "$ac_c_werror_flag"
39915 || test ! -s conftest.err'
39916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39917 (eval $ac_try) 2>&5
39918 ac_status=$?
39919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39920 (exit $ac_status); }; } &&
39921 { ac_try='test -s conftest.$ac_objext'
39922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39923 (eval $ac_try) 2>&5
39924 ac_status=$?
39925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39926 (exit $ac_status); }; }; then
39927 ac_cv_type_fd_mask=yes
39928 else
39929 echo "$as_me: failed program was:" >&5
39930 sed 's/^/| /' conftest.$ac_ext >&5
39931
39932 ac_cv_type_fd_mask=no
39933 fi
39934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39935 fi
39936 echo "$as_me:$LINENO: result: $ac_cv_type_fd_mask" >&5
39937 echo "${ECHO_T}$ac_cv_type_fd_mask" >&6
39938 if test $ac_cv_type_fd_mask = yes; then
39939
39940 cat >>confdefs.h <<\_ACEOF
39941 #define HAVE_FD_MASK 1
39942 _ACEOF
39943
39944 fi
39945
39946
39947 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39948 # for constant arguments. Useless!
39949 echo "$as_me:$LINENO: checking for working alloca.h" >&5
39950 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
39951 if test "${ac_cv_working_alloca_h+set}" = set; then
39952 echo $ECHO_N "(cached) $ECHO_C" >&6
39953 else
39954 cat >conftest.$ac_ext <<_ACEOF
39955 /* confdefs.h. */
39956 _ACEOF
39957 cat confdefs.h >>conftest.$ac_ext
39958 cat >>conftest.$ac_ext <<_ACEOF
39959 /* end confdefs.h. */
39960 #include <alloca.h>
39961 int
39962 main ()
39963 {
39964 char *p = (char *) alloca (2 * sizeof (int));
39965 ;
39966 return 0;
39967 }
39968 _ACEOF
39969 rm -f conftest.$ac_objext conftest$ac_exeext
39970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39971 (eval $ac_link) 2>conftest.er1
39972 ac_status=$?
39973 grep -v '^ *+' conftest.er1 >conftest.err
39974 rm -f conftest.er1
39975 cat conftest.err >&5
39976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39977 (exit $ac_status); } &&
39978 { ac_try='test -z "$ac_c_werror_flag"
39979 || test ! -s conftest.err'
39980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39981 (eval $ac_try) 2>&5
39982 ac_status=$?
39983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39984 (exit $ac_status); }; } &&
39985 { ac_try='test -s conftest$ac_exeext'
39986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39987 (eval $ac_try) 2>&5
39988 ac_status=$?
39989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39990 (exit $ac_status); }; }; then
39991 ac_cv_working_alloca_h=yes
39992 else
39993 echo "$as_me: failed program was:" >&5
39994 sed 's/^/| /' conftest.$ac_ext >&5
39995
39996 ac_cv_working_alloca_h=no
39997 fi
39998 rm -f conftest.err conftest.$ac_objext \
39999 conftest$ac_exeext conftest.$ac_ext
40000 fi
40001 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
40002 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
40003 if test $ac_cv_working_alloca_h = yes; then
40004
40005 cat >>confdefs.h <<\_ACEOF
40006 #define HAVE_ALLOCA_H 1
40007 _ACEOF
40008
40009 fi
40010
40011 echo "$as_me:$LINENO: checking for alloca" >&5
40012 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
40013 if test "${ac_cv_func_alloca_works+set}" = set; then
40014 echo $ECHO_N "(cached) $ECHO_C" >&6
40015 else
40016 cat >conftest.$ac_ext <<_ACEOF
40017 /* confdefs.h. */
40018 _ACEOF
40019 cat confdefs.h >>conftest.$ac_ext
40020 cat >>conftest.$ac_ext <<_ACEOF
40021 /* end confdefs.h. */
40022 #ifdef __GNUC__
40023 # define alloca __builtin_alloca
40024 #else
40025 # ifdef _MSC_VER
40026 # include <malloc.h>
40027 # define alloca _alloca
40028 # else
40029 # if HAVE_ALLOCA_H
40030 # include <alloca.h>
40031 # else
40032 # ifdef _AIX
40033 #pragma alloca
40034 # else
40035 # ifndef alloca /* predefined by HP cc +Olibcalls */
40036 char *alloca ();
40037 # endif
40038 # endif
40039 # endif
40040 # endif
40041 #endif
40042
40043 int
40044 main ()
40045 {
40046 char *p = (char *) alloca (1);
40047 ;
40048 return 0;
40049 }
40050 _ACEOF
40051 rm -f conftest.$ac_objext conftest$ac_exeext
40052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40053 (eval $ac_link) 2>conftest.er1
40054 ac_status=$?
40055 grep -v '^ *+' conftest.er1 >conftest.err
40056 rm -f conftest.er1
40057 cat conftest.err >&5
40058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40059 (exit $ac_status); } &&
40060 { ac_try='test -z "$ac_c_werror_flag"
40061 || test ! -s conftest.err'
40062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40063 (eval $ac_try) 2>&5
40064 ac_status=$?
40065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40066 (exit $ac_status); }; } &&
40067 { ac_try='test -s conftest$ac_exeext'
40068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40069 (eval $ac_try) 2>&5
40070 ac_status=$?
40071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40072 (exit $ac_status); }; }; then
40073 ac_cv_func_alloca_works=yes
40074 else
40075 echo "$as_me: failed program was:" >&5
40076 sed 's/^/| /' conftest.$ac_ext >&5
40077
40078 ac_cv_func_alloca_works=no
40079 fi
40080 rm -f conftest.err conftest.$ac_objext \
40081 conftest$ac_exeext conftest.$ac_ext
40082 fi
40083 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
40084 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
40085
40086 if test $ac_cv_func_alloca_works = yes; then
40087
40088 cat >>confdefs.h <<\_ACEOF
40089 #define HAVE_ALLOCA 1
40090 _ACEOF
40091
40092 else
40093 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
40094 # that cause trouble. Some versions do not even contain alloca or
40095 # contain a buggy version. If you still want to use their alloca,
40096 # use ar to extract alloca.o from them instead of compiling alloca.c.
40097
40098 ALLOCA=alloca.$ac_objext
40099
40100 cat >>confdefs.h <<\_ACEOF
40101 #define C_ALLOCA 1
40102 _ACEOF
40103
40104
40105 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
40106 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
40107 if test "${ac_cv_os_cray+set}" = set; then
40108 echo $ECHO_N "(cached) $ECHO_C" >&6
40109 else
40110 cat >conftest.$ac_ext <<_ACEOF
40111 /* confdefs.h. */
40112 _ACEOF
40113 cat confdefs.h >>conftest.$ac_ext
40114 cat >>conftest.$ac_ext <<_ACEOF
40115 /* end confdefs.h. */
40116 #if defined(CRAY) && ! defined(CRAY2)
40117 webecray
40118 #else
40119 wenotbecray
40120 #endif
40121
40122 _ACEOF
40123 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40124 $EGREP "webecray" >/dev/null 2>&1; then
40125 ac_cv_os_cray=yes
40126 else
40127 ac_cv_os_cray=no
40128 fi
40129 rm -f conftest*
40130
40131 fi
40132 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
40133 echo "${ECHO_T}$ac_cv_os_cray" >&6
40134 if test $ac_cv_os_cray = yes; then
40135 for ac_func in _getb67 GETB67 getb67; do
40136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40137 echo "$as_me:$LINENO: checking for $ac_func" >&5
40138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40139 if eval "test \"\${$as_ac_var+set}\" = set"; then
40140 echo $ECHO_N "(cached) $ECHO_C" >&6
40141 else
40142 cat >conftest.$ac_ext <<_ACEOF
40143 /* confdefs.h. */
40144 _ACEOF
40145 cat confdefs.h >>conftest.$ac_ext
40146 cat >>conftest.$ac_ext <<_ACEOF
40147 /* end confdefs.h. */
40148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40150 #define $ac_func innocuous_$ac_func
40151
40152 /* System header to define __stub macros and hopefully few prototypes,
40153 which can conflict with char $ac_func (); below.
40154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40155 <limits.h> exists even on freestanding compilers. */
40156
40157 #ifdef __STDC__
40158 # include <limits.h>
40159 #else
40160 # include <assert.h>
40161 #endif
40162
40163 #undef $ac_func
40164
40165 /* Override any gcc2 internal prototype to avoid an error. */
40166 #ifdef __cplusplus
40167 extern "C"
40168 {
40169 #endif
40170 /* We use char because int might match the return type of a gcc2
40171 builtin and then its argument prototype would still apply. */
40172 char $ac_func ();
40173 /* The GNU C library defines this for functions which it implements
40174 to always fail with ENOSYS. Some functions are actually named
40175 something starting with __ and the normal name is an alias. */
40176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40177 choke me
40178 #else
40179 char (*f) () = $ac_func;
40180 #endif
40181 #ifdef __cplusplus
40182 }
40183 #endif
40184
40185 int
40186 main ()
40187 {
40188 return f != $ac_func;
40189 ;
40190 return 0;
40191 }
40192 _ACEOF
40193 rm -f conftest.$ac_objext conftest$ac_exeext
40194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40195 (eval $ac_link) 2>conftest.er1
40196 ac_status=$?
40197 grep -v '^ *+' conftest.er1 >conftest.err
40198 rm -f conftest.er1
40199 cat conftest.err >&5
40200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40201 (exit $ac_status); } &&
40202 { ac_try='test -z "$ac_c_werror_flag"
40203 || test ! -s conftest.err'
40204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40205 (eval $ac_try) 2>&5
40206 ac_status=$?
40207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40208 (exit $ac_status); }; } &&
40209 { ac_try='test -s conftest$ac_exeext'
40210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40211 (eval $ac_try) 2>&5
40212 ac_status=$?
40213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40214 (exit $ac_status); }; }; then
40215 eval "$as_ac_var=yes"
40216 else
40217 echo "$as_me: failed program was:" >&5
40218 sed 's/^/| /' conftest.$ac_ext >&5
40219
40220 eval "$as_ac_var=no"
40221 fi
40222 rm -f conftest.err conftest.$ac_objext \
40223 conftest$ac_exeext conftest.$ac_ext
40224 fi
40225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40227 if test `eval echo '${'$as_ac_var'}'` = yes; then
40228
40229 cat >>confdefs.h <<_ACEOF
40230 #define CRAY_STACKSEG_END $ac_func
40231 _ACEOF
40232
40233 break
40234 fi
40235
40236 done
40237 fi
40238
40239 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40240 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
40241 if test "${ac_cv_c_stack_direction+set}" = set; then
40242 echo $ECHO_N "(cached) $ECHO_C" >&6
40243 else
40244 if test "$cross_compiling" = yes; then
40245 ac_cv_c_stack_direction=0
40246 else
40247 cat >conftest.$ac_ext <<_ACEOF
40248 /* confdefs.h. */
40249 _ACEOF
40250 cat confdefs.h >>conftest.$ac_ext
40251 cat >>conftest.$ac_ext <<_ACEOF
40252 /* end confdefs.h. */
40253 int
40254 find_stack_direction ()
40255 {
40256 static char *addr = 0;
40257 auto char dummy;
40258 if (addr == 0)
40259 {
40260 addr = &dummy;
40261 return find_stack_direction ();
40262 }
40263 else
40264 return (&dummy > addr) ? 1 : -1;
40265 }
40266
40267 int
40268 main ()
40269 {
40270 exit (find_stack_direction () < 0);
40271 }
40272 _ACEOF
40273 rm -f conftest$ac_exeext
40274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40275 (eval $ac_link) 2>&5
40276 ac_status=$?
40277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40278 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40280 (eval $ac_try) 2>&5
40281 ac_status=$?
40282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40283 (exit $ac_status); }; }; then
40284 ac_cv_c_stack_direction=1
40285 else
40286 echo "$as_me: program exited with status $ac_status" >&5
40287 echo "$as_me: failed program was:" >&5
40288 sed 's/^/| /' conftest.$ac_ext >&5
40289
40290 ( exit $ac_status )
40291 ac_cv_c_stack_direction=-1
40292 fi
40293 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40294 fi
40295 fi
40296 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40297 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
40298
40299 cat >>confdefs.h <<_ACEOF
40300 #define STACK_DIRECTION $ac_cv_c_stack_direction
40301 _ACEOF
40302
40303
40304 fi
40305
40306
40307 echo "$as_me:$LINENO: checking for socklen_t" >&5
40308 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
40309 if test "${ac_cv_type_socklen_t+set}" = set; then
40310 echo $ECHO_N "(cached) $ECHO_C" >&6
40311 else
40312 cat >conftest.$ac_ext <<_ACEOF
40313 /* confdefs.h. */
40314 _ACEOF
40315 cat confdefs.h >>conftest.$ac_ext
40316 cat >>conftest.$ac_ext <<_ACEOF
40317 /* end confdefs.h. */
40318
40319 #include <sys/types.h>
40320 #include <sys/socket.h>
40321 #if STDC_HEADERS
40322 #include <stdlib.h>
40323 #include <stddef.h>
40324 #endif
40325
40326 int
40327 main ()
40328 {
40329 if ((socklen_t *) 0)
40330 return 0;
40331 if (sizeof (socklen_t))
40332 return 0;
40333 ;
40334 return 0;
40335 }
40336 _ACEOF
40337 rm -f conftest.$ac_objext
40338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40339 (eval $ac_compile) 2>conftest.er1
40340 ac_status=$?
40341 grep -v '^ *+' conftest.er1 >conftest.err
40342 rm -f conftest.er1
40343 cat conftest.err >&5
40344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40345 (exit $ac_status); } &&
40346 { ac_try='test -z "$ac_c_werror_flag"
40347 || test ! -s conftest.err'
40348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40349 (eval $ac_try) 2>&5
40350 ac_status=$?
40351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40352 (exit $ac_status); }; } &&
40353 { ac_try='test -s conftest.$ac_objext'
40354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40355 (eval $ac_try) 2>&5
40356 ac_status=$?
40357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40358 (exit $ac_status); }; }; then
40359 ac_cv_type_socklen_t=yes
40360 else
40361 echo "$as_me: failed program was:" >&5
40362 sed 's/^/| /' conftest.$ac_ext >&5
40363
40364 ac_cv_type_socklen_t=no
40365 fi
40366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40367 fi
40368 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
40369 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
40370 if test $ac_cv_type_socklen_t = yes; then
40371
40372 cat >>confdefs.h <<\_ACEOF
40373 #define HAVE_SOCKLEN_T 1
40374 _ACEOF
40375
40376 fi
40377
40378
40379 echo "$as_me:$LINENO: checking for mtyp_t" >&5
40380 echo $ECHO_N "checking for mtyp_t... $ECHO_C" >&6
40381 if test "${ac_cv_type_mtyp_t+set}" = set; then
40382 echo $ECHO_N "(cached) $ECHO_C" >&6
40383 else
40384 cat >conftest.$ac_ext <<_ACEOF
40385 /* confdefs.h. */
40386 _ACEOF
40387 cat confdefs.h >>conftest.$ac_ext
40388 cat >>conftest.$ac_ext <<_ACEOF
40389 /* end confdefs.h. */
40390 #include <sys/types.h>
40391 #include <sys/ipc.h>
40392 #include <sys/msg.h>
40393
40394 int
40395 main ()
40396 {
40397 if ((mtyp_t *) 0)
40398 return 0;
40399 if (sizeof (mtyp_t))
40400 return 0;
40401 ;
40402 return 0;
40403 }
40404 _ACEOF
40405 rm -f conftest.$ac_objext
40406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40407 (eval $ac_compile) 2>conftest.er1
40408 ac_status=$?
40409 grep -v '^ *+' conftest.er1 >conftest.err
40410 rm -f conftest.er1
40411 cat conftest.err >&5
40412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40413 (exit $ac_status); } &&
40414 { ac_try='test -z "$ac_c_werror_flag"
40415 || test ! -s conftest.err'
40416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40417 (eval $ac_try) 2>&5
40418 ac_status=$?
40419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40420 (exit $ac_status); }; } &&
40421 { ac_try='test -s conftest.$ac_objext'
40422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40423 (eval $ac_try) 2>&5
40424 ac_status=$?
40425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40426 (exit $ac_status); }; }; then
40427 ac_cv_type_mtyp_t=yes
40428 else
40429 echo "$as_me: failed program was:" >&5
40430 sed 's/^/| /' conftest.$ac_ext >&5
40431
40432 ac_cv_type_mtyp_t=no
40433 fi
40434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40435 fi
40436 echo "$as_me:$LINENO: result: $ac_cv_type_mtyp_t" >&5
40437 echo "${ECHO_T}$ac_cv_type_mtyp_t" >&6
40438 if test $ac_cv_type_mtyp_t = yes; then
40439
40440 cat >>confdefs.h <<\_ACEOF
40441 #define HAVE_MTYP_T 1
40442 _ACEOF
40443
40444 fi
40445
40446
40447
40448 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
40449 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
40450 if test "${ac_cv_lib_nsl_main+set}" = set; then
40451 echo $ECHO_N "(cached) $ECHO_C" >&6
40452 else
40453 ac_check_lib_save_LIBS=$LIBS
40454 LIBS="-lnsl $LIBS"
40455 cat >conftest.$ac_ext <<_ACEOF
40456 /* confdefs.h. */
40457 _ACEOF
40458 cat confdefs.h >>conftest.$ac_ext
40459 cat >>conftest.$ac_ext <<_ACEOF
40460 /* end confdefs.h. */
40461
40462
40463 int
40464 main ()
40465 {
40466 main ();
40467 ;
40468 return 0;
40469 }
40470 _ACEOF
40471 rm -f conftest.$ac_objext conftest$ac_exeext
40472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40473 (eval $ac_link) 2>conftest.er1
40474 ac_status=$?
40475 grep -v '^ *+' conftest.er1 >conftest.err
40476 rm -f conftest.er1
40477 cat conftest.err >&5
40478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40479 (exit $ac_status); } &&
40480 { ac_try='test -z "$ac_c_werror_flag"
40481 || test ! -s conftest.err'
40482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40483 (eval $ac_try) 2>&5
40484 ac_status=$?
40485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40486 (exit $ac_status); }; } &&
40487 { ac_try='test -s conftest$ac_exeext'
40488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40489 (eval $ac_try) 2>&5
40490 ac_status=$?
40491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40492 (exit $ac_status); }; }; then
40493 ac_cv_lib_nsl_main=yes
40494 else
40495 echo "$as_me: failed program was:" >&5
40496 sed 's/^/| /' conftest.$ac_ext >&5
40497
40498 ac_cv_lib_nsl_main=no
40499 fi
40500 rm -f conftest.err conftest.$ac_objext \
40501 conftest$ac_exeext conftest.$ac_ext
40502 LIBS=$ac_check_lib_save_LIBS
40503 fi
40504 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
40505 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
40506 if test $ac_cv_lib_nsl_main = yes; then
40507 cat >>confdefs.h <<_ACEOF
40508 #define HAVE_LIBNSL 1
40509 _ACEOF
40510
40511 LIBS="-lnsl $LIBS"
40512
40513 fi
40514
40515
40516 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
40517 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
40518 if test "${ac_cv_lib_socket_main+set}" = set; then
40519 echo $ECHO_N "(cached) $ECHO_C" >&6
40520 else
40521 ac_check_lib_save_LIBS=$LIBS
40522 LIBS="-lsocket $LIBS"
40523 cat >conftest.$ac_ext <<_ACEOF
40524 /* confdefs.h. */
40525 _ACEOF
40526 cat confdefs.h >>conftest.$ac_ext
40527 cat >>conftest.$ac_ext <<_ACEOF
40528 /* end confdefs.h. */
40529
40530
40531 int
40532 main ()
40533 {
40534 main ();
40535 ;
40536 return 0;
40537 }
40538 _ACEOF
40539 rm -f conftest.$ac_objext conftest$ac_exeext
40540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40541 (eval $ac_link) 2>conftest.er1
40542 ac_status=$?
40543 grep -v '^ *+' conftest.er1 >conftest.err
40544 rm -f conftest.er1
40545 cat conftest.err >&5
40546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40547 (exit $ac_status); } &&
40548 { ac_try='test -z "$ac_c_werror_flag"
40549 || test ! -s conftest.err'
40550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40551 (eval $ac_try) 2>&5
40552 ac_status=$?
40553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40554 (exit $ac_status); }; } &&
40555 { ac_try='test -s conftest$ac_exeext'
40556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40557 (eval $ac_try) 2>&5
40558 ac_status=$?
40559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40560 (exit $ac_status); }; }; then
40561 ac_cv_lib_socket_main=yes
40562 else
40563 echo "$as_me: failed program was:" >&5
40564 sed 's/^/| /' conftest.$ac_ext >&5
40565
40566 ac_cv_lib_socket_main=no
40567 fi
40568 rm -f conftest.err conftest.$ac_objext \
40569 conftest$ac_exeext conftest.$ac_ext
40570 LIBS=$ac_check_lib_save_LIBS
40571 fi
40572 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
40573 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
40574 if test $ac_cv_lib_socket_main = yes; then
40575 cat >>confdefs.h <<_ACEOF
40576 #define HAVE_LIBSOCKET 1
40577 _ACEOF
40578
40579 LIBS="-lsocket $LIBS"
40580
40581 fi
40582
40583 case "$host_os" in
40584 mingw|mingw32)
40585 echo "$as_me:$LINENO: checking for winsock" >&5
40586 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
40587 save_LIBS="$LIBS"
40588 for curlib in ws2_32 wsock32; do
40589 LIBS="$LIBS -l$curlib"
40590 cat >conftest.$ac_ext <<_ACEOF
40591 /* confdefs.h. */
40592 _ACEOF
40593 cat confdefs.h >>conftest.$ac_ext
40594 cat >>conftest.$ac_ext <<_ACEOF
40595 /* end confdefs.h. */
40596
40597 char __attribute__((stdcall)) socket(int,int,int);
40598 char __attribute__((stdcall)) select(int,int,int,int,int);
40599 char __attribute__((stdcall)) closesocket(int);
40600 char __attribute__((stdcall)) gethostname(int,int);
40601
40602 int
40603 main ()
40604 {
40605
40606 socket(1,2,3);
40607 select(1,2,3,4,5);
40608 closesocket(1);
40609 gethostname(1,2);
40610
40611 ;
40612 return 0;
40613 }
40614 _ACEOF
40615 rm -f conftest.$ac_objext conftest$ac_exeext
40616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40617 (eval $ac_link) 2>conftest.er1
40618 ac_status=$?
40619 grep -v '^ *+' conftest.er1 >conftest.err
40620 rm -f conftest.er1
40621 cat conftest.err >&5
40622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40623 (exit $ac_status); } &&
40624 { ac_try='test -z "$ac_c_werror_flag"
40625 || test ! -s conftest.err'
40626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40627 (eval $ac_try) 2>&5
40628 ac_status=$?
40629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40630 (exit $ac_status); }; } &&
40631 { ac_try='test -s conftest$ac_exeext'
40632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40633 (eval $ac_try) 2>&5
40634 ac_status=$?
40635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40636 (exit $ac_status); }; }; then
40637 have_winsock=yes
40638 else
40639 echo "$as_me: failed program was:" >&5
40640 sed 's/^/| /' conftest.$ac_ext >&5
40641
40642 have_winsock=no
40643 fi
40644 rm -f conftest.err conftest.$ac_objext \
40645 conftest$ac_exeext conftest.$ac_ext
40646
40647 if test $have_winsock = yes; then
40648 ac_cv_func_select='yes'
40649 if test $curlib = ws2_32; then
40650 have_winsock=winsock2
40651 fi
40652 break
40653 fi
40654 LIBS="$save_LIBS"
40655 done
40656 echo "$as_me:$LINENO: result: $have_winsock" >&5
40657 echo "${ECHO_T}$have_winsock" >&6
40658 ;;
40659 esac
40660
40661 echo "$as_me:$LINENO: checking for unix domain sockets" >&5
40662 echo $ECHO_N "checking for unix domain sockets... $ECHO_C" >&6
40663 if test "${squid_cv_unixsocket+set}" = set; then
40664 echo $ECHO_N "(cached) $ECHO_C" >&6
40665 else
40666
40667 cat >conftest.$ac_ext <<_ACEOF
40668 /* confdefs.h. */
40669 _ACEOF
40670 cat confdefs.h >>conftest.$ac_ext
40671 cat >>conftest.$ac_ext <<_ACEOF
40672 /* end confdefs.h. */
40673
40674 #include <sys/types.h>
40675 #include <stdlib.h>
40676 #include <stddef.h>
40677 #include <sys/socket.h>
40678 #include <sys/un.h>
40679 int
40680 main ()
40681 {
40682
40683 struct sockaddr_un sunaddr;
40684 sunaddr.sun_family = AF_UNIX;
40685
40686 ;
40687 return 0;
40688 }
40689 _ACEOF
40690 rm -f conftest.$ac_objext
40691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40692 (eval $ac_compile) 2>conftest.er1
40693 ac_status=$?
40694 grep -v '^ *+' conftest.er1 >conftest.err
40695 rm -f conftest.er1
40696 cat conftest.err >&5
40697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40698 (exit $ac_status); } &&
40699 { ac_try='test -z "$ac_c_werror_flag"
40700 || test ! -s conftest.err'
40701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40702 (eval $ac_try) 2>&5
40703 ac_status=$?
40704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40705 (exit $ac_status); }; } &&
40706 { ac_try='test -s conftest.$ac_objext'
40707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40708 (eval $ac_try) 2>&5
40709 ac_status=$?
40710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40711 (exit $ac_status); }; }; then
40712 squid_cv_unixsocket=yes
40713 else
40714 echo "$as_me: failed program was:" >&5
40715 sed 's/^/| /' conftest.$ac_ext >&5
40716
40717 squid_cv_unixsocket=no
40718 fi
40719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40720 fi
40721 echo "$as_me:$LINENO: result: $squid_cv_unixsocket" >&5
40722 echo "${ECHO_T}$squid_cv_unixsocket" >&6
40723 if test x"$squid_cv_unixsocket" = x"yes"; then
40724
40725 cat >>confdefs.h <<\_ACEOF
40726 #define HAVE_UNIXSOCKET 1
40727 _ACEOF
40728
40729 fi
40730
40731 if test "x$ac_cv_enabled_dlmalloc" = "xyes" ; then
40732 echo "skipping libmalloc check (--enable-dlmalloc specified)"
40733 else
40734
40735 echo "$as_me:$LINENO: checking for main in -lgnumalloc" >&5
40736 echo $ECHO_N "checking for main in -lgnumalloc... $ECHO_C" >&6
40737 if test "${ac_cv_lib_gnumalloc_main+set}" = set; then
40738 echo $ECHO_N "(cached) $ECHO_C" >&6
40739 else
40740 ac_check_lib_save_LIBS=$LIBS
40741 LIBS="-lgnumalloc $LIBS"
40742 cat >conftest.$ac_ext <<_ACEOF
40743 /* confdefs.h. */
40744 _ACEOF
40745 cat confdefs.h >>conftest.$ac_ext
40746 cat >>conftest.$ac_ext <<_ACEOF
40747 /* end confdefs.h. */
40748
40749
40750 int
40751 main ()
40752 {
40753 main ();
40754 ;
40755 return 0;
40756 }
40757 _ACEOF
40758 rm -f conftest.$ac_objext conftest$ac_exeext
40759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40760 (eval $ac_link) 2>conftest.er1
40761 ac_status=$?
40762 grep -v '^ *+' conftest.er1 >conftest.err
40763 rm -f conftest.er1
40764 cat conftest.err >&5
40765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40766 (exit $ac_status); } &&
40767 { ac_try='test -z "$ac_c_werror_flag"
40768 || test ! -s conftest.err'
40769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40770 (eval $ac_try) 2>&5
40771 ac_status=$?
40772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40773 (exit $ac_status); }; } &&
40774 { ac_try='test -s conftest$ac_exeext'
40775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40776 (eval $ac_try) 2>&5
40777 ac_status=$?
40778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40779 (exit $ac_status); }; }; then
40780 ac_cv_lib_gnumalloc_main=yes
40781 else
40782 echo "$as_me: failed program was:" >&5
40783 sed 's/^/| /' conftest.$ac_ext >&5
40784
40785 ac_cv_lib_gnumalloc_main=no
40786 fi
40787 rm -f conftest.err conftest.$ac_objext \
40788 conftest$ac_exeext conftest.$ac_ext
40789 LIBS=$ac_check_lib_save_LIBS
40790 fi
40791 echo "$as_me:$LINENO: result: $ac_cv_lib_gnumalloc_main" >&5
40792 echo "${ECHO_T}$ac_cv_lib_gnumalloc_main" >&6
40793 if test $ac_cv_lib_gnumalloc_main = yes; then
40794 cat >>confdefs.h <<_ACEOF
40795 #define HAVE_LIBGNUMALLOC 1
40796 _ACEOF
40797
40798 LIBS="-lgnumalloc $LIBS"
40799
40800 fi
40801
40802 if test "$ac_cv_lib_gnumalloc_main" = "yes"; then
40803 echo "Disabling extended malloc functions when using gnumalloc"
40804 ac_cv_func_mallinfo=no
40805 ac_cv_func_mallocblksize=no
40806 ac_cv_func_mallopt=no
40807 else
40808 case "$host" in
40809 *-sun-solaris*)
40810 echo "skipping libmalloc check for $host"
40811 ;;
40812 i386-*-freebsd*)
40813 echo "skipping libmalloc check for $host"
40814 ;;
40815 *)
40816
40817
40818 echo "$as_me:$LINENO: checking for main in -lmalloc" >&5
40819 echo $ECHO_N "checking for main in -lmalloc... $ECHO_C" >&6
40820 if test "${ac_cv_lib_malloc_main+set}" = set; then
40821 echo $ECHO_N "(cached) $ECHO_C" >&6
40822 else
40823 ac_check_lib_save_LIBS=$LIBS
40824 LIBS="-lmalloc $LIBS"
40825 cat >conftest.$ac_ext <<_ACEOF
40826 /* confdefs.h. */
40827 _ACEOF
40828 cat confdefs.h >>conftest.$ac_ext
40829 cat >>conftest.$ac_ext <<_ACEOF
40830 /* end confdefs.h. */
40831
40832
40833 int
40834 main ()
40835 {
40836 main ();
40837 ;
40838 return 0;
40839 }
40840 _ACEOF
40841 rm -f conftest.$ac_objext conftest$ac_exeext
40842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40843 (eval $ac_link) 2>conftest.er1
40844 ac_status=$?
40845 grep -v '^ *+' conftest.er1 >conftest.err
40846 rm -f conftest.er1
40847 cat conftest.err >&5
40848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40849 (exit $ac_status); } &&
40850 { ac_try='test -z "$ac_c_werror_flag"
40851 || test ! -s conftest.err'
40852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40853 (eval $ac_try) 2>&5
40854 ac_status=$?
40855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40856 (exit $ac_status); }; } &&
40857 { ac_try='test -s conftest$ac_exeext'
40858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40859 (eval $ac_try) 2>&5
40860 ac_status=$?
40861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40862 (exit $ac_status); }; }; then
40863 ac_cv_lib_malloc_main=yes
40864 else
40865 echo "$as_me: failed program was:" >&5
40866 sed 's/^/| /' conftest.$ac_ext >&5
40867
40868 ac_cv_lib_malloc_main=no
40869 fi
40870 rm -f conftest.err conftest.$ac_objext \
40871 conftest$ac_exeext conftest.$ac_ext
40872 LIBS=$ac_check_lib_save_LIBS
40873 fi
40874 echo "$as_me:$LINENO: result: $ac_cv_lib_malloc_main" >&5
40875 echo "${ECHO_T}$ac_cv_lib_malloc_main" >&6
40876 if test $ac_cv_lib_malloc_main = yes; then
40877 cat >>confdefs.h <<_ACEOF
40878 #define HAVE_LIBMALLOC 1
40879 _ACEOF
40880
40881 LIBS="-lmalloc $LIBS"
40882
40883 fi
40884
40885 ;;
40886 esac
40887 fi
40888 fi
40889
40890
40891 echo "$as_me:$LINENO: checking for main in -lbsd" >&5
40892 echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6
40893 if test "${ac_cv_lib_bsd_main+set}" = set; then
40894 echo $ECHO_N "(cached) $ECHO_C" >&6
40895 else
40896 ac_check_lib_save_LIBS=$LIBS
40897 LIBS="-lbsd $LIBS"
40898 cat >conftest.$ac_ext <<_ACEOF
40899 /* confdefs.h. */
40900 _ACEOF
40901 cat confdefs.h >>conftest.$ac_ext
40902 cat >>conftest.$ac_ext <<_ACEOF
40903 /* end confdefs.h. */
40904
40905
40906 int
40907 main ()
40908 {
40909 main ();
40910 ;
40911 return 0;
40912 }
40913 _ACEOF
40914 rm -f conftest.$ac_objext conftest$ac_exeext
40915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40916 (eval $ac_link) 2>conftest.er1
40917 ac_status=$?
40918 grep -v '^ *+' conftest.er1 >conftest.err
40919 rm -f conftest.er1
40920 cat conftest.err >&5
40921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40922 (exit $ac_status); } &&
40923 { ac_try='test -z "$ac_c_werror_flag"
40924 || test ! -s conftest.err'
40925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40926 (eval $ac_try) 2>&5
40927 ac_status=$?
40928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40929 (exit $ac_status); }; } &&
40930 { ac_try='test -s conftest$ac_exeext'
40931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40932 (eval $ac_try) 2>&5
40933 ac_status=$?
40934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40935 (exit $ac_status); }; }; then
40936 ac_cv_lib_bsd_main=yes
40937 else
40938 echo "$as_me: failed program was:" >&5
40939 sed 's/^/| /' conftest.$ac_ext >&5
40940
40941 ac_cv_lib_bsd_main=no
40942 fi
40943 rm -f conftest.err conftest.$ac_objext \
40944 conftest$ac_exeext conftest.$ac_ext
40945 LIBS=$ac_check_lib_save_LIBS
40946 fi
40947 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5
40948 echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6
40949 if test $ac_cv_lib_bsd_main = yes; then
40950 cat >>confdefs.h <<_ACEOF
40951 #define HAVE_LIBBSD 1
40952 _ACEOF
40953
40954 LIBS="-lbsd $LIBS"
40955
40956 fi
40957
40958 echo "$as_me:$LINENO: checking for main in -lregex" >&5
40959 echo $ECHO_N "checking for main in -lregex... $ECHO_C" >&6
40960 if test "${ac_cv_lib_regex_main+set}" = set; then
40961 echo $ECHO_N "(cached) $ECHO_C" >&6
40962 else
40963 ac_check_lib_save_LIBS=$LIBS
40964 LIBS="-lregex $LIBS"
40965 cat >conftest.$ac_ext <<_ACEOF
40966 /* confdefs.h. */
40967 _ACEOF
40968 cat confdefs.h >>conftest.$ac_ext
40969 cat >>conftest.$ac_ext <<_ACEOF
40970 /* end confdefs.h. */
40971
40972
40973 int
40974 main ()
40975 {
40976 main ();
40977 ;
40978 return 0;
40979 }
40980 _ACEOF
40981 rm -f conftest.$ac_objext conftest$ac_exeext
40982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40983 (eval $ac_link) 2>conftest.er1
40984 ac_status=$?
40985 grep -v '^ *+' conftest.er1 >conftest.err
40986 rm -f conftest.er1
40987 cat conftest.err >&5
40988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40989 (exit $ac_status); } &&
40990 { ac_try='test -z "$ac_c_werror_flag"
40991 || test ! -s conftest.err'
40992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40993 (eval $ac_try) 2>&5
40994 ac_status=$?
40995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40996 (exit $ac_status); }; } &&
40997 { ac_try='test -s conftest$ac_exeext'
40998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40999 (eval $ac_try) 2>&5
41000 ac_status=$?
41001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41002 (exit $ac_status); }; }; then
41003 ac_cv_lib_regex_main=yes
41004 else
41005 echo "$as_me: failed program was:" >&5
41006 sed 's/^/| /' conftest.$ac_ext >&5
41007
41008 ac_cv_lib_regex_main=no
41009 fi
41010 rm -f conftest.err conftest.$ac_objext \
41011 conftest$ac_exeext conftest.$ac_ext
41012 LIBS=$ac_check_lib_save_LIBS
41013 fi
41014 echo "$as_me:$LINENO: result: $ac_cv_lib_regex_main" >&5
41015 echo "${ECHO_T}$ac_cv_lib_regex_main" >&6
41016 if test $ac_cv_lib_regex_main = yes; then
41017 REGEXLIB="-lregex"
41018 fi
41019
41020
41021 echo "$as_me:$LINENO: checking for gethostbyname in -lbind" >&5
41022 echo $ECHO_N "checking for gethostbyname in -lbind... $ECHO_C" >&6
41023 if test "${ac_cv_lib_bind_gethostbyname+set}" = set; then
41024 echo $ECHO_N "(cached) $ECHO_C" >&6
41025 else
41026 ac_check_lib_save_LIBS=$LIBS
41027 LIBS="-lbind $LIBS"
41028 cat >conftest.$ac_ext <<_ACEOF
41029 /* confdefs.h. */
41030 _ACEOF
41031 cat confdefs.h >>conftest.$ac_ext
41032 cat >>conftest.$ac_ext <<_ACEOF
41033 /* end confdefs.h. */
41034
41035 /* Override any gcc2 internal prototype to avoid an error. */
41036 #ifdef __cplusplus
41037 extern "C"
41038 #endif
41039 /* We use char because int might match the return type of a gcc2
41040 builtin and then its argument prototype would still apply. */
41041 char gethostbyname ();
41042 int
41043 main ()
41044 {
41045 gethostbyname ();
41046 ;
41047 return 0;
41048 }
41049 _ACEOF
41050 rm -f conftest.$ac_objext conftest$ac_exeext
41051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41052 (eval $ac_link) 2>conftest.er1
41053 ac_status=$?
41054 grep -v '^ *+' conftest.er1 >conftest.err
41055 rm -f conftest.er1
41056 cat conftest.err >&5
41057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41058 (exit $ac_status); } &&
41059 { ac_try='test -z "$ac_c_werror_flag"
41060 || test ! -s conftest.err'
41061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41062 (eval $ac_try) 2>&5
41063 ac_status=$?
41064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41065 (exit $ac_status); }; } &&
41066 { ac_try='test -s conftest$ac_exeext'
41067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41068 (eval $ac_try) 2>&5
41069 ac_status=$?
41070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41071 (exit $ac_status); }; }; then
41072 ac_cv_lib_bind_gethostbyname=yes
41073 else
41074 echo "$as_me: failed program was:" >&5
41075 sed 's/^/| /' conftest.$ac_ext >&5
41076
41077 ac_cv_lib_bind_gethostbyname=no
41078 fi
41079 rm -f conftest.err conftest.$ac_objext \
41080 conftest$ac_exeext conftest.$ac_ext
41081 LIBS=$ac_check_lib_save_LIBS
41082 fi
41083 echo "$as_me:$LINENO: result: $ac_cv_lib_bind_gethostbyname" >&5
41084 echo "${ECHO_T}$ac_cv_lib_bind_gethostbyname" >&6
41085 if test $ac_cv_lib_bind_gethostbyname = yes; then
41086 cat >>confdefs.h <<_ACEOF
41087 #define HAVE_LIBBIND 1
41088 _ACEOF
41089
41090 LIBS="-lbind $LIBS"
41091
41092 fi
41093
41094 if test $ac_cv_lib_bind_gethostbyname = "no" ; then
41095 case "$host" in
41096 i386-*-freebsd*)
41097 echo "skipping libresolv checks for $host"
41098 ;;
41099 *)
41100 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
41101 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
41102 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
41103 echo $ECHO_N "(cached) $ECHO_C" >&6
41104 else
41105 ac_check_lib_save_LIBS=$LIBS
41106 LIBS="-lresolv $LIBS"
41107 cat >conftest.$ac_ext <<_ACEOF
41108 /* confdefs.h. */
41109 _ACEOF
41110 cat confdefs.h >>conftest.$ac_ext
41111 cat >>conftest.$ac_ext <<_ACEOF
41112 /* end confdefs.h. */
41113
41114 /* Override any gcc2 internal prototype to avoid an error. */
41115 #ifdef __cplusplus
41116 extern "C"
41117 #endif
41118 /* We use char because int might match the return type of a gcc2
41119 builtin and then its argument prototype would still apply. */
41120 char inet_aton ();
41121 int
41122 main ()
41123 {
41124 inet_aton ();
41125 ;
41126 return 0;
41127 }
41128 _ACEOF
41129 rm -f conftest.$ac_objext conftest$ac_exeext
41130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41131 (eval $ac_link) 2>conftest.er1
41132 ac_status=$?
41133 grep -v '^ *+' conftest.er1 >conftest.err
41134 rm -f conftest.er1
41135 cat conftest.err >&5
41136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41137 (exit $ac_status); } &&
41138 { ac_try='test -z "$ac_c_werror_flag"
41139 || test ! -s conftest.err'
41140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41141 (eval $ac_try) 2>&5
41142 ac_status=$?
41143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41144 (exit $ac_status); }; } &&
41145 { ac_try='test -s conftest$ac_exeext'
41146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41147 (eval $ac_try) 2>&5
41148 ac_status=$?
41149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41150 (exit $ac_status); }; }; then
41151 ac_cv_lib_resolv_inet_aton=yes
41152 else
41153 echo "$as_me: failed program was:" >&5
41154 sed 's/^/| /' conftest.$ac_ext >&5
41155
41156 ac_cv_lib_resolv_inet_aton=no
41157 fi
41158 rm -f conftest.err conftest.$ac_objext \
41159 conftest$ac_exeext conftest.$ac_ext
41160 LIBS=$ac_check_lib_save_LIBS
41161 fi
41162 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
41163 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
41164 if test $ac_cv_lib_resolv_inet_aton = yes; then
41165
41166 echo "$as_me:$LINENO: checking for inet_aton in -l44bsd" >&5
41167 echo $ECHO_N "checking for inet_aton in -l44bsd... $ECHO_C" >&6
41168 if test "${ac_cv_lib_44bsd_inet_aton+set}" = set; then
41169 echo $ECHO_N "(cached) $ECHO_C" >&6
41170 else
41171 ac_check_lib_save_LIBS=$LIBS
41172 LIBS="-l44bsd $LIBS"
41173 cat >conftest.$ac_ext <<_ACEOF
41174 /* confdefs.h. */
41175 _ACEOF
41176 cat confdefs.h >>conftest.$ac_ext
41177 cat >>conftest.$ac_ext <<_ACEOF
41178 /* end confdefs.h. */
41179
41180 /* Override any gcc2 internal prototype to avoid an error. */
41181 #ifdef __cplusplus
41182 extern "C"
41183 #endif
41184 /* We use char because int might match the return type of a gcc2
41185 builtin and then its argument prototype would still apply. */
41186 char inet_aton ();
41187 int
41188 main ()
41189 {
41190 inet_aton ();
41191 ;
41192 return 0;
41193 }
41194 _ACEOF
41195 rm -f conftest.$ac_objext conftest$ac_exeext
41196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41197 (eval $ac_link) 2>conftest.er1
41198 ac_status=$?
41199 grep -v '^ *+' conftest.er1 >conftest.err
41200 rm -f conftest.er1
41201 cat conftest.err >&5
41202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41203 (exit $ac_status); } &&
41204 { ac_try='test -z "$ac_c_werror_flag"
41205 || test ! -s conftest.err'
41206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41207 (eval $ac_try) 2>&5
41208 ac_status=$?
41209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41210 (exit $ac_status); }; } &&
41211 { ac_try='test -s conftest$ac_exeext'
41212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41213 (eval $ac_try) 2>&5
41214 ac_status=$?
41215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41216 (exit $ac_status); }; }; then
41217 ac_cv_lib_44bsd_inet_aton=yes
41218 else
41219 echo "$as_me: failed program was:" >&5
41220 sed 's/^/| /' conftest.$ac_ext >&5
41221
41222 ac_cv_lib_44bsd_inet_aton=no
41223 fi
41224 rm -f conftest.err conftest.$ac_objext \
41225 conftest$ac_exeext conftest.$ac_ext
41226 LIBS=$ac_check_lib_save_LIBS
41227 fi
41228 echo "$as_me:$LINENO: result: $ac_cv_lib_44bsd_inet_aton" >&5
41229 echo "${ECHO_T}$ac_cv_lib_44bsd_inet_aton" >&6
41230 if test $ac_cv_lib_44bsd_inet_aton = yes; then
41231 cat >>confdefs.h <<_ACEOF
41232 #define HAVE_LIB44BSD 1
41233 _ACEOF
41234
41235 LIBS="-l44bsd $LIBS"
41236
41237 fi
41238
41239 fi
41240
41241
41242 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
41243 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
41244 if test "${ac_cv_lib_resolv_main+set}" = set; then
41245 echo $ECHO_N "(cached) $ECHO_C" >&6
41246 else
41247 ac_check_lib_save_LIBS=$LIBS
41248 LIBS="-lresolv $LIBS"
41249 cat >conftest.$ac_ext <<_ACEOF
41250 /* confdefs.h. */
41251 _ACEOF
41252 cat confdefs.h >>conftest.$ac_ext
41253 cat >>conftest.$ac_ext <<_ACEOF
41254 /* end confdefs.h. */
41255
41256
41257 int
41258 main ()
41259 {
41260 main ();
41261 ;
41262 return 0;
41263 }
41264 _ACEOF
41265 rm -f conftest.$ac_objext conftest$ac_exeext
41266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41267 (eval $ac_link) 2>conftest.er1
41268 ac_status=$?
41269 grep -v '^ *+' conftest.er1 >conftest.err
41270 rm -f conftest.er1
41271 cat conftest.err >&5
41272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41273 (exit $ac_status); } &&
41274 { ac_try='test -z "$ac_c_werror_flag"
41275 || test ! -s conftest.err'
41276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41277 (eval $ac_try) 2>&5
41278 ac_status=$?
41279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41280 (exit $ac_status); }; } &&
41281 { ac_try='test -s conftest$ac_exeext'
41282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41283 (eval $ac_try) 2>&5
41284 ac_status=$?
41285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41286 (exit $ac_status); }; }; then
41287 ac_cv_lib_resolv_main=yes
41288 else
41289 echo "$as_me: failed program was:" >&5
41290 sed 's/^/| /' conftest.$ac_ext >&5
41291
41292 ac_cv_lib_resolv_main=no
41293 fi
41294 rm -f conftest.err conftest.$ac_objext \
41295 conftest$ac_exeext conftest.$ac_ext
41296 LIBS=$ac_check_lib_save_LIBS
41297 fi
41298 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
41299 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
41300 if test $ac_cv_lib_resolv_main = yes; then
41301 cat >>confdefs.h <<_ACEOF
41302 #define HAVE_LIBRESOLV 1
41303 _ACEOF
41304
41305 LIBS="-lresolv $LIBS"
41306
41307 fi
41308
41309 ;;
41310 esac
41311 fi
41312 case "$host_os" in
41313 mingw|mingw32)
41314 echo "Use MSVCRT for math functions."
41315 ;;
41316 *)
41317
41318 echo "$as_me:$LINENO: checking for main in -lm" >&5
41319 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
41320 if test "${ac_cv_lib_m_main+set}" = set; then
41321 echo $ECHO_N "(cached) $ECHO_C" >&6
41322 else
41323 ac_check_lib_save_LIBS=$LIBS
41324 LIBS="-lm $LIBS"
41325 cat >conftest.$ac_ext <<_ACEOF
41326 /* confdefs.h. */
41327 _ACEOF
41328 cat confdefs.h >>conftest.$ac_ext
41329 cat >>conftest.$ac_ext <<_ACEOF
41330 /* end confdefs.h. */
41331
41332
41333 int
41334 main ()
41335 {
41336 main ();
41337 ;
41338 return 0;
41339 }
41340 _ACEOF
41341 rm -f conftest.$ac_objext conftest$ac_exeext
41342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41343 (eval $ac_link) 2>conftest.er1
41344 ac_status=$?
41345 grep -v '^ *+' conftest.er1 >conftest.err
41346 rm -f conftest.er1
41347 cat conftest.err >&5
41348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41349 (exit $ac_status); } &&
41350 { ac_try='test -z "$ac_c_werror_flag"
41351 || test ! -s conftest.err'
41352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41353 (eval $ac_try) 2>&5
41354 ac_status=$?
41355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41356 (exit $ac_status); }; } &&
41357 { ac_try='test -s conftest$ac_exeext'
41358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41359 (eval $ac_try) 2>&5
41360 ac_status=$?
41361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41362 (exit $ac_status); }; }; then
41363 ac_cv_lib_m_main=yes
41364 else
41365 echo "$as_me: failed program was:" >&5
41366 sed 's/^/| /' conftest.$ac_ext >&5
41367
41368 ac_cv_lib_m_main=no
41369 fi
41370 rm -f conftest.err conftest.$ac_objext \
41371 conftest$ac_exeext conftest.$ac_ext
41372 LIBS=$ac_check_lib_save_LIBS
41373 fi
41374 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
41375 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
41376 if test $ac_cv_lib_m_main = yes; then
41377 cat >>confdefs.h <<_ACEOF
41378 #define HAVE_LIBM 1
41379 _ACEOF
41380
41381 LIBS="-lm $LIBS"
41382
41383 fi
41384
41385 ;;
41386 esac
41387
41388 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
41389 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
41390 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
41391 echo $ECHO_N "(cached) $ECHO_C" >&6
41392 else
41393 ac_check_lib_save_LIBS=$LIBS
41394 LIBS="-lcrypt $LIBS"
41395 cat >conftest.$ac_ext <<_ACEOF
41396 /* confdefs.h. */
41397 _ACEOF
41398 cat confdefs.h >>conftest.$ac_ext
41399 cat >>conftest.$ac_ext <<_ACEOF
41400 /* end confdefs.h. */
41401
41402 /* Override any gcc2 internal prototype to avoid an error. */
41403 #ifdef __cplusplus
41404 extern "C"
41405 #endif
41406 /* We use char because int might match the return type of a gcc2
41407 builtin and then its argument prototype would still apply. */
41408 char crypt ();
41409 int
41410 main ()
41411 {
41412 crypt ();
41413 ;
41414 return 0;
41415 }
41416 _ACEOF
41417 rm -f conftest.$ac_objext conftest$ac_exeext
41418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41419 (eval $ac_link) 2>conftest.er1
41420 ac_status=$?
41421 grep -v '^ *+' conftest.er1 >conftest.err
41422 rm -f conftest.er1
41423 cat conftest.err >&5
41424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41425 (exit $ac_status); } &&
41426 { ac_try='test -z "$ac_c_werror_flag"
41427 || test ! -s conftest.err'
41428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41429 (eval $ac_try) 2>&5
41430 ac_status=$?
41431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41432 (exit $ac_status); }; } &&
41433 { ac_try='test -s conftest$ac_exeext'
41434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41435 (eval $ac_try) 2>&5
41436 ac_status=$?
41437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41438 (exit $ac_status); }; }; then
41439 ac_cv_lib_crypt_crypt=yes
41440 else
41441 echo "$as_me: failed program was:" >&5
41442 sed 's/^/| /' conftest.$ac_ext >&5
41443
41444 ac_cv_lib_crypt_crypt=no
41445 fi
41446 rm -f conftest.err conftest.$ac_objext \
41447 conftest$ac_exeext conftest.$ac_ext
41448 LIBS=$ac_check_lib_save_LIBS
41449 fi
41450 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
41451 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
41452 if test $ac_cv_lib_crypt_crypt = yes; then
41453 CRYPTLIB="-lcrypt"
41454 fi
41455
41456
41457
41458 if test "$with_dl" = "yes"; then
41459
41460 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41461 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
41462 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41463 echo $ECHO_N "(cached) $ECHO_C" >&6
41464 else
41465 ac_check_lib_save_LIBS=$LIBS
41466 LIBS="-ldl $LIBS"
41467 cat >conftest.$ac_ext <<_ACEOF
41468 /* confdefs.h. */
41469 _ACEOF
41470 cat confdefs.h >>conftest.$ac_ext
41471 cat >>conftest.$ac_ext <<_ACEOF
41472 /* end confdefs.h. */
41473
41474 /* Override any gcc2 internal prototype to avoid an error. */
41475 #ifdef __cplusplus
41476 extern "C"
41477 #endif
41478 /* We use char because int might match the return type of a gcc2
41479 builtin and then its argument prototype would still apply. */
41480 char dlopen ();
41481 int
41482 main ()
41483 {
41484 dlopen ();
41485 ;
41486 return 0;
41487 }
41488 _ACEOF
41489 rm -f conftest.$ac_objext conftest$ac_exeext
41490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41491 (eval $ac_link) 2>conftest.er1
41492 ac_status=$?
41493 grep -v '^ *+' conftest.er1 >conftest.err
41494 rm -f conftest.er1
41495 cat conftest.err >&5
41496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41497 (exit $ac_status); } &&
41498 { ac_try='test -z "$ac_c_werror_flag"
41499 || test ! -s conftest.err'
41500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41501 (eval $ac_try) 2>&5
41502 ac_status=$?
41503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41504 (exit $ac_status); }; } &&
41505 { ac_try='test -s conftest$ac_exeext'
41506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41507 (eval $ac_try) 2>&5
41508 ac_status=$?
41509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41510 (exit $ac_status); }; }; then
41511 ac_cv_lib_dl_dlopen=yes
41512 else
41513 echo "$as_me: failed program was:" >&5
41514 sed 's/^/| /' conftest.$ac_ext >&5
41515
41516 ac_cv_lib_dl_dlopen=no
41517 fi
41518 rm -f conftest.err conftest.$ac_objext \
41519 conftest$ac_exeext conftest.$ac_ext
41520 LIBS=$ac_check_lib_save_LIBS
41521 fi
41522 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41523 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
41524 if test $ac_cv_lib_dl_dlopen = yes; then
41525 cat >>confdefs.h <<_ACEOF
41526 #define HAVE_LIBDL 1
41527 _ACEOF
41528
41529 LIBS="-ldl $LIBS"
41530
41531 fi
41532
41533 fi
41534
41535 if test "$with_pthreads" = "yes"; then
41536 SQUID_CFLAGS="$SQUID_CFLAGS -D_REENTRANT"
41537 SQUID_CXXFLAGS="$SQUID_CXXFLAGS -D_REENTRANT"
41538 case "$host" in
41539 i386-unknown-freebsd*)
41540 if test "$GCC" = "yes" ; then
41541 if test -z "$PRESET_LDFLAGS"; then
41542 LDFLAGS="$LDFLAGS -pthread"
41543 fi
41544 fi
41545 ;;
41546 *-solaris2.*)
41547 if test "$GCC" = "yes" ; then
41548 SQUID_CFLAGS="$SQUID_CFLAGS -pthreads"
41549 SQUID_CXXFLAGS="$SQUID_CXXFLAGS -pthreads"
41550 else
41551 SQUID_CFLAGS="$SQUID_CFLAGS -mt"
41552 SQUID_CXXFLAGS="$SQUID_CXXFLAGS -mt"
41553 fi
41554 ;;
41555 esac
41556
41557 echo "$as_me:$LINENO: checking for main in -lpthread" >&5
41558 echo $ECHO_N "checking for main in -lpthread... $ECHO_C" >&6
41559 if test "${ac_cv_lib_pthread_main+set}" = set; then
41560 echo $ECHO_N "(cached) $ECHO_C" >&6
41561 else
41562 ac_check_lib_save_LIBS=$LIBS
41563 LIBS="-lpthread $LIBS"
41564 cat >conftest.$ac_ext <<_ACEOF
41565 /* confdefs.h. */
41566 _ACEOF
41567 cat confdefs.h >>conftest.$ac_ext
41568 cat >>conftest.$ac_ext <<_ACEOF
41569 /* end confdefs.h. */
41570
41571
41572 int
41573 main ()
41574 {
41575 main ();
41576 ;
41577 return 0;
41578 }
41579 _ACEOF
41580 rm -f conftest.$ac_objext conftest$ac_exeext
41581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41582 (eval $ac_link) 2>conftest.er1
41583 ac_status=$?
41584 grep -v '^ *+' conftest.er1 >conftest.err
41585 rm -f conftest.er1
41586 cat conftest.err >&5
41587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41588 (exit $ac_status); } &&
41589 { ac_try='test -z "$ac_c_werror_flag"
41590 || test ! -s conftest.err'
41591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41592 (eval $ac_try) 2>&5
41593 ac_status=$?
41594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41595 (exit $ac_status); }; } &&
41596 { ac_try='test -s conftest$ac_exeext'
41597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41598 (eval $ac_try) 2>&5
41599 ac_status=$?
41600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41601 (exit $ac_status); }; }; then
41602 ac_cv_lib_pthread_main=yes
41603 else
41604 echo "$as_me: failed program was:" >&5
41605 sed 's/^/| /' conftest.$ac_ext >&5
41606
41607 ac_cv_lib_pthread_main=no
41608 fi
41609 rm -f conftest.err conftest.$ac_objext \
41610 conftest$ac_exeext conftest.$ac_ext
41611 LIBS=$ac_check_lib_save_LIBS
41612 fi
41613 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_main" >&5
41614 echo "${ECHO_T}$ac_cv_lib_pthread_main" >&6
41615 if test $ac_cv_lib_pthread_main = yes; then
41616 cat >>confdefs.h <<_ACEOF
41617 #define HAVE_LIBPTHREAD 1
41618 _ACEOF
41619
41620 LIBS="-lpthread $LIBS"
41621
41622 fi
41623
41624 fi
41625
41626 if test "$with_aio" = "yes"; then
41627
41628 echo "$as_me:$LINENO: checking for aio_read in -lrt" >&5
41629 echo $ECHO_N "checking for aio_read in -lrt... $ECHO_C" >&6
41630 if test "${ac_cv_lib_rt_aio_read+set}" = set; then
41631 echo $ECHO_N "(cached) $ECHO_C" >&6
41632 else
41633 ac_check_lib_save_LIBS=$LIBS
41634 LIBS="-lrt $LIBS"
41635 cat >conftest.$ac_ext <<_ACEOF
41636 /* confdefs.h. */
41637 _ACEOF
41638 cat confdefs.h >>conftest.$ac_ext
41639 cat >>conftest.$ac_ext <<_ACEOF
41640 /* end confdefs.h. */
41641
41642 /* Override any gcc2 internal prototype to avoid an error. */
41643 #ifdef __cplusplus
41644 extern "C"
41645 #endif
41646 /* We use char because int might match the return type of a gcc2
41647 builtin and then its argument prototype would still apply. */
41648 char aio_read ();
41649 int
41650 main ()
41651 {
41652 aio_read ();
41653 ;
41654 return 0;
41655 }
41656 _ACEOF
41657 rm -f conftest.$ac_objext conftest$ac_exeext
41658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41659 (eval $ac_link) 2>conftest.er1
41660 ac_status=$?
41661 grep -v '^ *+' conftest.er1 >conftest.err
41662 rm -f conftest.er1
41663 cat conftest.err >&5
41664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41665 (exit $ac_status); } &&
41666 { ac_try='test -z "$ac_c_werror_flag"
41667 || test ! -s conftest.err'
41668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41669 (eval $ac_try) 2>&5
41670 ac_status=$?
41671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41672 (exit $ac_status); }; } &&
41673 { ac_try='test -s conftest$ac_exeext'
41674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41675 (eval $ac_try) 2>&5
41676 ac_status=$?
41677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41678 (exit $ac_status); }; }; then
41679 ac_cv_lib_rt_aio_read=yes
41680 else
41681 echo "$as_me: failed program was:" >&5
41682 sed 's/^/| /' conftest.$ac_ext >&5
41683
41684 ac_cv_lib_rt_aio_read=no
41685 fi
41686 rm -f conftest.err conftest.$ac_objext \
41687 conftest$ac_exeext conftest.$ac_ext
41688 LIBS=$ac_check_lib_save_LIBS
41689 fi
41690 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_aio_read" >&5
41691 echo "${ECHO_T}$ac_cv_lib_rt_aio_read" >&6
41692 if test $ac_cv_lib_rt_aio_read = yes; then
41693 cat >>confdefs.h <<_ACEOF
41694 #define HAVE_LIBRT 1
41695 _ACEOF
41696
41697 LIBS="-lrt $LIBS"
41698
41699 else
41700
41701 echo "$as_me:$LINENO: checking for aio_read in -laio" >&5
41702 echo $ECHO_N "checking for aio_read in -laio... $ECHO_C" >&6
41703 if test "${ac_cv_lib_aio_aio_read+set}" = set; then
41704 echo $ECHO_N "(cached) $ECHO_C" >&6
41705 else
41706 ac_check_lib_save_LIBS=$LIBS
41707 LIBS="-laio $LIBS"
41708 cat >conftest.$ac_ext <<_ACEOF
41709 /* confdefs.h. */
41710 _ACEOF
41711 cat confdefs.h >>conftest.$ac_ext
41712 cat >>conftest.$ac_ext <<_ACEOF
41713 /* end confdefs.h. */
41714
41715 /* Override any gcc2 internal prototype to avoid an error. */
41716 #ifdef __cplusplus
41717 extern "C"
41718 #endif
41719 /* We use char because int might match the return type of a gcc2
41720 builtin and then its argument prototype would still apply. */
41721 char aio_read ();
41722 int
41723 main ()
41724 {
41725 aio_read ();
41726 ;
41727 return 0;
41728 }
41729 _ACEOF
41730 rm -f conftest.$ac_objext conftest$ac_exeext
41731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41732 (eval $ac_link) 2>conftest.er1
41733 ac_status=$?
41734 grep -v '^ *+' conftest.er1 >conftest.err
41735 rm -f conftest.er1
41736 cat conftest.err >&5
41737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41738 (exit $ac_status); } &&
41739 { ac_try='test -z "$ac_c_werror_flag"
41740 || test ! -s conftest.err'
41741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41742 (eval $ac_try) 2>&5
41743 ac_status=$?
41744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41745 (exit $ac_status); }; } &&
41746 { ac_try='test -s conftest$ac_exeext'
41747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41748 (eval $ac_try) 2>&5
41749 ac_status=$?
41750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41751 (exit $ac_status); }; }; then
41752 ac_cv_lib_aio_aio_read=yes
41753 else
41754 echo "$as_me: failed program was:" >&5
41755 sed 's/^/| /' conftest.$ac_ext >&5
41756
41757 ac_cv_lib_aio_aio_read=no
41758 fi
41759 rm -f conftest.err conftest.$ac_objext \
41760 conftest$ac_exeext conftest.$ac_ext
41761 LIBS=$ac_check_lib_save_LIBS
41762 fi
41763 echo "$as_me:$LINENO: result: $ac_cv_lib_aio_aio_read" >&5
41764 echo "${ECHO_T}$ac_cv_lib_aio_aio_read" >&6
41765 if test $ac_cv_lib_aio_aio_read = yes; then
41766 cat >>confdefs.h <<_ACEOF
41767 #define HAVE_LIBAIO 1
41768 _ACEOF
41769
41770 LIBS="-laio $LIBS"
41771
41772 fi
41773
41774 fi
41775
41776 fi
41777
41778 case "$host" in
41779 *-pc-sco3.2*)
41780
41781 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
41782 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
41783 if test "${ac_cv_lib_intl_strftime+set}" = set; then
41784 echo $ECHO_N "(cached) $ECHO_C" >&6
41785 else
41786 ac_check_lib_save_LIBS=$LIBS
41787 LIBS="-lintl $LIBS"
41788 cat >conftest.$ac_ext <<_ACEOF
41789 /* confdefs.h. */
41790 _ACEOF
41791 cat confdefs.h >>conftest.$ac_ext
41792 cat >>conftest.$ac_ext <<_ACEOF
41793 /* end confdefs.h. */
41794
41795 /* Override any gcc2 internal prototype to avoid an error. */
41796 #ifdef __cplusplus
41797 extern "C"
41798 #endif
41799 /* We use char because int might match the return type of a gcc2
41800 builtin and then its argument prototype would still apply. */
41801 char strftime ();
41802 int
41803 main ()
41804 {
41805 strftime ();
41806 ;
41807 return 0;
41808 }
41809 _ACEOF
41810 rm -f conftest.$ac_objext conftest$ac_exeext
41811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41812 (eval $ac_link) 2>conftest.er1
41813 ac_status=$?
41814 grep -v '^ *+' conftest.er1 >conftest.err
41815 rm -f conftest.er1
41816 cat conftest.err >&5
41817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41818 (exit $ac_status); } &&
41819 { ac_try='test -z "$ac_c_werror_flag"
41820 || test ! -s conftest.err'
41821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41822 (eval $ac_try) 2>&5
41823 ac_status=$?
41824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41825 (exit $ac_status); }; } &&
41826 { ac_try='test -s conftest$ac_exeext'
41827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41828 (eval $ac_try) 2>&5
41829 ac_status=$?
41830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41831 (exit $ac_status); }; }; then
41832 ac_cv_lib_intl_strftime=yes
41833 else
41834 echo "$as_me: failed program was:" >&5
41835 sed 's/^/| /' conftest.$ac_ext >&5
41836
41837 ac_cv_lib_intl_strftime=no
41838 fi
41839 rm -f conftest.err conftest.$ac_objext \
41840 conftest$ac_exeext conftest.$ac_ext
41841 LIBS=$ac_check_lib_save_LIBS
41842 fi
41843 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
41844 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
41845 if test $ac_cv_lib_intl_strftime = yes; then
41846 cat >>confdefs.h <<_ACEOF
41847 #define HAVE_LIBINTL 1
41848 _ACEOF
41849
41850 LIBS="-lintl $LIBS"
41851
41852 fi
41853
41854 ;;
41855 esac
41856
41857 case "$host_os" in
41858 mingw|mingw32)
41859 LIB_LDAP="-lwldap32"
41860 LIB_LBER=""
41861 ;;
41862 *)
41863 LIB_LDAP="-lldap"
41864 echo "$as_me:$LINENO: checking for main in -llber" >&5
41865 echo $ECHO_N "checking for main in -llber... $ECHO_C" >&6
41866 if test "${ac_cv_lib_lber_main+set}" = set; then
41867 echo $ECHO_N "(cached) $ECHO_C" >&6
41868 else
41869 ac_check_lib_save_LIBS=$LIBS
41870 LIBS="-llber $LIBS"
41871 cat >conftest.$ac_ext <<_ACEOF
41872 /* confdefs.h. */
41873 _ACEOF
41874 cat confdefs.h >>conftest.$ac_ext
41875 cat >>conftest.$ac_ext <<_ACEOF
41876 /* end confdefs.h. */
41877
41878
41879 int
41880 main ()
41881 {
41882 main ();
41883 ;
41884 return 0;
41885 }
41886 _ACEOF
41887 rm -f conftest.$ac_objext conftest$ac_exeext
41888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41889 (eval $ac_link) 2>conftest.er1
41890 ac_status=$?
41891 grep -v '^ *+' conftest.er1 >conftest.err
41892 rm -f conftest.er1
41893 cat conftest.err >&5
41894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41895 (exit $ac_status); } &&
41896 { ac_try='test -z "$ac_c_werror_flag"
41897 || test ! -s conftest.err'
41898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41899 (eval $ac_try) 2>&5
41900 ac_status=$?
41901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41902 (exit $ac_status); }; } &&
41903 { ac_try='test -s conftest$ac_exeext'
41904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41905 (eval $ac_try) 2>&5
41906 ac_status=$?
41907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41908 (exit $ac_status); }; }; then
41909 ac_cv_lib_lber_main=yes
41910 else
41911 echo "$as_me: failed program was:" >&5
41912 sed 's/^/| /' conftest.$ac_ext >&5
41913
41914 ac_cv_lib_lber_main=no
41915 fi
41916 rm -f conftest.err conftest.$ac_objext \
41917 conftest$ac_exeext conftest.$ac_ext
41918 LIBS=$ac_check_lib_save_LIBS
41919 fi
41920 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_main" >&5
41921 echo "${ECHO_T}$ac_cv_lib_lber_main" >&6
41922 if test $ac_cv_lib_lber_main = yes; then
41923 LIB_LBER="-llber"
41924 fi
41925
41926 ;;
41927 esac
41928
41929
41930
41931 DBLIB=
41932 echo "$as_me:$LINENO: checking if dbopen needs -ldb" >&5
41933 echo $ECHO_N "checking if dbopen needs -ldb... $ECHO_C" >&6
41934 if test "${ac_cv_dbopen_libdb+set}" = set; then
41935 echo $ECHO_N "(cached) $ECHO_C" >&6
41936 else
41937
41938 SAVED_LIBS="$LIBS"; LIBS="$LIBS -ldb"
41939 cat >conftest.$ac_ext <<_ACEOF
41940 /* confdefs.h. */
41941 _ACEOF
41942 cat confdefs.h >>conftest.$ac_ext
41943 cat >>conftest.$ac_ext <<_ACEOF
41944 /* end confdefs.h. */
41945
41946 #if HAVE_SYS_TYPES_H
41947 #include <sys/types.h>
41948 #endif
41949 #if HAVE_LIMITS_H
41950 #include <limits.h>
41951 #endif
41952 #if HAVE_DB_185_H
41953 #include <db_185.h>
41954 #elif HAVE_DB_H
41955 #include <db.h>
41956 #endif
41957 int
41958 main ()
41959 {
41960 dbopen((void *)0L, 0, 0, DB_HASH, (void *)0L)
41961 ;
41962 return 0;
41963 }
41964 _ACEOF
41965 rm -f conftest.$ac_objext conftest$ac_exeext
41966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41967 (eval $ac_link) 2>conftest.er1
41968 ac_status=$?
41969 grep -v '^ *+' conftest.er1 >conftest.err
41970 rm -f conftest.er1
41971 cat conftest.err >&5
41972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41973 (exit $ac_status); } &&
41974 { ac_try='test -z "$ac_c_werror_flag"
41975 || test ! -s conftest.err'
41976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41977 (eval $ac_try) 2>&5
41978 ac_status=$?
41979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41980 (exit $ac_status); }; } &&
41981 { ac_try='test -s conftest$ac_exeext'
41982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41983 (eval $ac_try) 2>&5
41984 ac_status=$?
41985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41986 (exit $ac_status); }; }; then
41987 ac_cv_dbopen_libdb="yes"
41988 else
41989 echo "$as_me: failed program was:" >&5
41990 sed 's/^/| /' conftest.$ac_ext >&5
41991
41992 ac_cv_dbopen_libdb="no"
41993 fi
41994 rm -f conftest.err conftest.$ac_objext \
41995 conftest$ac_exeext conftest.$ac_ext
41996 LIBS="$SAVED_LIBS"
41997
41998 fi
41999 echo "$as_me:$LINENO: result: $ac_cv_dbopen_libdb" >&5
42000 echo "${ECHO_T}$ac_cv_dbopen_libdb" >&6
42001 if test $ac_cv_dbopen_libdb = yes; then
42002 LIB_DB="-ldb"
42003 fi
42004
42005
42006 case "$host" in
42007 i386-*-solaris2.*)
42008 if test "$GCC" = "yes"; then
42009 echo "Removing -O for gcc on $host"
42010 CFLAGS="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`"
42011 fi
42012 ;;
42013 *-sgi-irix*)
42014 echo "Removing -lsocket for IRIX..."
42015 LIBS=`echo $LIBS | sed -e s/-lsocket//`
42016 echo "Removing -lnsl for IRIX..."
42017 LIBS=`echo $LIBS | sed -e s/-lnsl//`
42018 ac_cv_lib_nsl_main=no
42019 echo "Removing -lbsd for IRIX..."
42020 LIBS=`echo $LIBS | sed -e s/-lbsd//`
42021 ;;
42022 *-ibm-aix*)
42023 echo "Removing -lbsd for AIX..."
42024 LIBS=`echo $LIBS | sed -e s/-lbsd//`
42025 case "$host" in
42026 *-ibm-aix4*)
42027 echo "disabling snprintf/vsnprintf for $host"
42028 ac_cv_func_snprintf=no
42029 ac_cv_func_vsnprintf=no
42030 ;;
42031 esac
42032 ;;
42033 *m88k*)
42034 SQUID_CFLAGS="$SQUID_CFLAGS -D_SQUID_MOTOROLA_"
42035 SQUID_CXXFLAGS="$SQUID_CXXFLAGS -D_SQUID_MOTOROLA_"
42036
42037 cat >>confdefs.h <<\_ACEOF
42038 #define GETTIMEOFDAY_NO_TZP 1
42039 _ACEOF
42040
42041 ;;
42042 *-*-solaris2.[0-4])
42043 cat >>confdefs.h <<\_ACEOF
42044 #define GETTIMEOFDAY_NO_TZP 1
42045 _ACEOF
42046
42047 ;;
42048 *-sony-newsos[56]*)
42049 cat >>confdefs.h <<\_ACEOF
42050 #define GETTIMEOFDAY_NO_TZP 1
42051 _ACEOF
42052
42053 ;;
42054 esac
42055
42056 # Remove optimization for GCC 2.95.[123]
42057 # gcc -O[2] on *BSD and Linux (x86) causes pointers to magically become NULL
42058 if test "$GCC" = "yes"; then
42059 GCCVER=`$CC -v 2>&1 | awk '$2 == "version" {print $3}'`
42060 case "$GCCVER" in
42061 2.95.[123])
42062 echo "Removing -O for gcc on $host with GCC $GCCVER"
42063 CFLAGS="`echo $CFLAGS | sed -e 's/-O[0-9]*//'`"
42064 ;;
42065 esac
42066 fi
42067
42068 # Recommended by Balint Nagy Endre <bne@CareNet.hu>
42069 case "$host" in
42070 *-univel-sysv4.2MP)
42071 if test `uname -v` = "2.03"; then
42072 echo "disabling mallinfo for $host"
42073 ac_cv_func_mallinfo=no
42074 fi
42075 ;;
42076 esac
42077
42078 # Disable poll() on certain platforms. Override by setting ac_cv_func_poll
42079 # when running configure.
42080 if test -z "$ac_cv_func_poll"; then
42081 case "$host" in
42082 alpha-dec-osf3.*)
42083 # John Kay (jkay@nlanr.net) 19970818
42084 echo "disabling poll for $host..."
42085 ac_cv_func_poll='no'
42086 ;;
42087 *-hp-hpux*.*)
42088 # Duane Wessels
42089 echo "disabling poll for $host..."
42090 ac_cv_func_poll='no'
42091 ;;
42092 *-linux-*)
42093 # Henrik Nordstrom (hno@squid-cache.org) 19980817
42094 # poll is problematic on Linux. We disable it
42095 # by default until Linux gets it right.
42096 rev=`uname -r | awk -F. '{printf "%03d%03d",$1,$2}'`
42097 if test $rev -lt 002002; then
42098 echo "disabling poll for $host < 2.2..."
42099 ac_cv_func_poll='no'
42100 fi
42101 ;;
42102 powerpc-ibm-aix4.1.*)
42103 # Mike Laster (mlaster@metavillage.com) 19981021
42104 echo "disabling poll for $host..."
42105 ac_cv_func_poll='no'
42106 ;;
42107 *-pc-sco3.2*)
42108 # Robert Side <rside@aiinc.bc.ca>
42109 # Mon, 18 Jan 1999 17:48:00 GMT
42110 echo "disabling poll for $host..."
42111 ac_cv_func_poll='no'
42112 ;;
42113 esac
42114 fi
42115
42116 case "$host_os" in
42117 mingw|mingw32)
42118 ac_cv_func_statfs='yes'
42119 ;;
42120 esac
42121
42122
42123
42124
42125
42126
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
42173
42174
42175
42176
42177
42178
42179
42180
42181 for ac_func in \
42182 backtrace_symbols_fd \
42183 bcopy \
42184 bswap_16 \
42185 bswap_32 \
42186 bswap16 \
42187 bswap32 \
42188 fchmod \
42189 getdtablesize \
42190 getpagesize \
42191 getpass \
42192 getrlimit \
42193 getrusage \
42194 getspnam \
42195 gettimeofday \
42196 htobe16 \
42197 htole16 \
42198 kqueue\
42199 lrand48 \
42200 mallinfo \
42201 mallocblksize \
42202 mallopt \
42203 memcpy \
42204 memmove \
42205 memset \
42206 mkstemp \
42207 mktime \
42208 mstats \
42209 poll \
42210 prctl \
42211 pthread_attr_setschedparam \
42212 pthread_attr_setscope \
42213 pthread_setschedparam \
42214 pthread_sigmask \
42215 putenv \
42216 random \
42217 regcomp \
42218 regexec \
42219 regfree \
42220 res_init \
42221 rint \
42222 sbrk \
42223 select \
42224 seteuid \
42225 setgroups \
42226 setpgrp \
42227 setrlimit \
42228 setsid \
42229 sigaction \
42230 snprintf \
42231 socketpair \
42232 srand48 \
42233 srandom \
42234 statfs \
42235 strsep \
42236 strtoll \
42237 sysconf \
42238 syslog \
42239 timegm \
42240 vsnprintf \
42241
42242 do
42243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42244 echo "$as_me:$LINENO: checking for $ac_func" >&5
42245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42246 if eval "test \"\${$as_ac_var+set}\" = set"; then
42247 echo $ECHO_N "(cached) $ECHO_C" >&6
42248 else
42249 cat >conftest.$ac_ext <<_ACEOF
42250 /* confdefs.h. */
42251 _ACEOF
42252 cat confdefs.h >>conftest.$ac_ext
42253 cat >>conftest.$ac_ext <<_ACEOF
42254 /* end confdefs.h. */
42255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42257 #define $ac_func innocuous_$ac_func
42258
42259 /* System header to define __stub macros and hopefully few prototypes,
42260 which can conflict with char $ac_func (); below.
42261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42262 <limits.h> exists even on freestanding compilers. */
42263
42264 #ifdef __STDC__
42265 # include <limits.h>
42266 #else
42267 # include <assert.h>
42268 #endif
42269
42270 #undef $ac_func
42271
42272 /* Override any gcc2 internal prototype to avoid an error. */
42273 #ifdef __cplusplus
42274 extern "C"
42275 {
42276 #endif
42277 /* We use char because int might match the return type of a gcc2
42278 builtin and then its argument prototype would still apply. */
42279 char $ac_func ();
42280 /* The GNU C library defines this for functions which it implements
42281 to always fail with ENOSYS. Some functions are actually named
42282 something starting with __ and the normal name is an alias. */
42283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42284 choke me
42285 #else
42286 char (*f) () = $ac_func;
42287 #endif
42288 #ifdef __cplusplus
42289 }
42290 #endif
42291
42292 int
42293 main ()
42294 {
42295 return f != $ac_func;
42296 ;
42297 return 0;
42298 }
42299 _ACEOF
42300 rm -f conftest.$ac_objext conftest$ac_exeext
42301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42302 (eval $ac_link) 2>conftest.er1
42303 ac_status=$?
42304 grep -v '^ *+' conftest.er1 >conftest.err
42305 rm -f conftest.er1
42306 cat conftest.err >&5
42307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42308 (exit $ac_status); } &&
42309 { ac_try='test -z "$ac_c_werror_flag"
42310 || test ! -s conftest.err'
42311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42312 (eval $ac_try) 2>&5
42313 ac_status=$?
42314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42315 (exit $ac_status); }; } &&
42316 { ac_try='test -s conftest$ac_exeext'
42317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42318 (eval $ac_try) 2>&5
42319 ac_status=$?
42320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42321 (exit $ac_status); }; }; then
42322 eval "$as_ac_var=yes"
42323 else
42324 echo "$as_me: failed program was:" >&5
42325 sed 's/^/| /' conftest.$ac_ext >&5
42326
42327 eval "$as_ac_var=no"
42328 fi
42329 rm -f conftest.err conftest.$ac_objext \
42330 conftest$ac_exeext conftest.$ac_ext
42331 fi
42332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42333 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42334 if test `eval echo '${'$as_ac_var'}'` = yes; then
42335 cat >>confdefs.h <<_ACEOF
42336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42337 _ACEOF
42338
42339 fi
42340 done
42341
42342
42343 # check for crypt, may require -lcrypt
42344 SAVED_LIBS="$LIBS"
42345 LIBS="$LIBS $CRYPTLIB"
42346
42347 for ac_func in crypt
42348 do
42349 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42350 echo "$as_me:$LINENO: checking for $ac_func" >&5
42351 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42352 if eval "test \"\${$as_ac_var+set}\" = set"; then
42353 echo $ECHO_N "(cached) $ECHO_C" >&6
42354 else
42355 cat >conftest.$ac_ext <<_ACEOF
42356 /* confdefs.h. */
42357 _ACEOF
42358 cat confdefs.h >>conftest.$ac_ext
42359 cat >>conftest.$ac_ext <<_ACEOF
42360 /* end confdefs.h. */
42361 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42363 #define $ac_func innocuous_$ac_func
42364
42365 /* System header to define __stub macros and hopefully few prototypes,
42366 which can conflict with char $ac_func (); below.
42367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42368 <limits.h> exists even on freestanding compilers. */
42369
42370 #ifdef __STDC__
42371 # include <limits.h>
42372 #else
42373 # include <assert.h>
42374 #endif
42375
42376 #undef $ac_func
42377
42378 /* Override any gcc2 internal prototype to avoid an error. */
42379 #ifdef __cplusplus
42380 extern "C"
42381 {
42382 #endif
42383 /* We use char because int might match the return type of a gcc2
42384 builtin and then its argument prototype would still apply. */
42385 char $ac_func ();
42386 /* The GNU C library defines this for functions which it implements
42387 to always fail with ENOSYS. Some functions are actually named
42388 something starting with __ and the normal name is an alias. */
42389 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42390 choke me
42391 #else
42392 char (*f) () = $ac_func;
42393 #endif
42394 #ifdef __cplusplus
42395 }
42396 #endif
42397
42398 int
42399 main ()
42400 {
42401 return f != $ac_func;
42402 ;
42403 return 0;
42404 }
42405 _ACEOF
42406 rm -f conftest.$ac_objext conftest$ac_exeext
42407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42408 (eval $ac_link) 2>conftest.er1
42409 ac_status=$?
42410 grep -v '^ *+' conftest.er1 >conftest.err
42411 rm -f conftest.er1
42412 cat conftest.err >&5
42413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42414 (exit $ac_status); } &&
42415 { ac_try='test -z "$ac_c_werror_flag"
42416 || test ! -s conftest.err'
42417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42418 (eval $ac_try) 2>&5
42419 ac_status=$?
42420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42421 (exit $ac_status); }; } &&
42422 { ac_try='test -s conftest$ac_exeext'
42423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42424 (eval $ac_try) 2>&5
42425 ac_status=$?
42426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42427 (exit $ac_status); }; }; then
42428 eval "$as_ac_var=yes"
42429 else
42430 echo "$as_me: failed program was:" >&5
42431 sed 's/^/| /' conftest.$ac_ext >&5
42432
42433 eval "$as_ac_var=no"
42434 fi
42435 rm -f conftest.err conftest.$ac_objext \
42436 conftest$ac_exeext conftest.$ac_ext
42437 fi
42438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42439 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42440 if test `eval echo '${'$as_ac_var'}'` = yes; then
42441 cat >>confdefs.h <<_ACEOF
42442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42443 _ACEOF
42444
42445 fi
42446 done
42447
42448 LIBS="$SAVED_LIBS"
42449
42450 # Check for libepoll
42451 EPOLL_LIB=
42452 echo "$as_me:$LINENO: checking for epoll_ctl in -lepoll" >&5
42453 echo $ECHO_N "checking for epoll_ctl in -lepoll... $ECHO_C" >&6
42454 if test "${ac_cv_lib_epoll_epoll_ctl+set}" = set; then
42455 echo $ECHO_N "(cached) $ECHO_C" >&6
42456 else
42457 ac_check_lib_save_LIBS=$LIBS
42458 LIBS="-lepoll $LIBS"
42459 cat >conftest.$ac_ext <<_ACEOF
42460 /* confdefs.h. */
42461 _ACEOF
42462 cat confdefs.h >>conftest.$ac_ext
42463 cat >>conftest.$ac_ext <<_ACEOF
42464 /* end confdefs.h. */
42465
42466 /* Override any gcc2 internal prototype to avoid an error. */
42467 #ifdef __cplusplus
42468 extern "C"
42469 #endif
42470 /* We use char because int might match the return type of a gcc2
42471 builtin and then its argument prototype would still apply. */
42472 char epoll_ctl ();
42473 int
42474 main ()
42475 {
42476 epoll_ctl ();
42477 ;
42478 return 0;
42479 }
42480 _ACEOF
42481 rm -f conftest.$ac_objext conftest$ac_exeext
42482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42483 (eval $ac_link) 2>conftest.er1
42484 ac_status=$?
42485 grep -v '^ *+' conftest.er1 >conftest.err
42486 rm -f conftest.er1
42487 cat conftest.err >&5
42488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42489 (exit $ac_status); } &&
42490 { ac_try='test -z "$ac_c_werror_flag"
42491 || test ! -s conftest.err'
42492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42493 (eval $ac_try) 2>&5
42494 ac_status=$?
42495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42496 (exit $ac_status); }; } &&
42497 { ac_try='test -s conftest$ac_exeext'
42498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42499 (eval $ac_try) 2>&5
42500 ac_status=$?
42501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42502 (exit $ac_status); }; }; then
42503 ac_cv_lib_epoll_epoll_ctl=yes
42504 else
42505 echo "$as_me: failed program was:" >&5
42506 sed 's/^/| /' conftest.$ac_ext >&5
42507
42508 ac_cv_lib_epoll_epoll_ctl=no
42509 fi
42510 rm -f conftest.err conftest.$ac_objext \
42511 conftest$ac_exeext conftest.$ac_ext
42512 LIBS=$ac_check_lib_save_LIBS
42513 fi
42514 echo "$as_me:$LINENO: result: $ac_cv_lib_epoll_epoll_ctl" >&5
42515 echo "${ECHO_T}$ac_cv_lib_epoll_epoll_ctl" >&6
42516 if test $ac_cv_lib_epoll_epoll_ctl = yes; then
42517 EPOLL_LIBS="-lepoll"
42518 fi
42519
42520
42521
42522 # Check for epoll_ctl, may need -lepoll
42523 SAVED_LIBS="$LIBS"
42524 LIBS="$LIBS $LIB_EPOLL"
42525
42526 for ac_func in epoll_ctl
42527 do
42528 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42529 echo "$as_me:$LINENO: checking for $ac_func" >&5
42530 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42531 if eval "test \"\${$as_ac_var+set}\" = set"; then
42532 echo $ECHO_N "(cached) $ECHO_C" >&6
42533 else
42534 cat >conftest.$ac_ext <<_ACEOF
42535 /* confdefs.h. */
42536 _ACEOF
42537 cat confdefs.h >>conftest.$ac_ext
42538 cat >>conftest.$ac_ext <<_ACEOF
42539 /* end confdefs.h. */
42540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42542 #define $ac_func innocuous_$ac_func
42543
42544 /* System header to define __stub macros and hopefully few prototypes,
42545 which can conflict with char $ac_func (); below.
42546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42547 <limits.h> exists even on freestanding compilers. */
42548
42549 #ifdef __STDC__
42550 # include <limits.h>
42551 #else
42552 # include <assert.h>
42553 #endif
42554
42555 #undef $ac_func
42556
42557 /* Override any gcc2 internal prototype to avoid an error. */
42558 #ifdef __cplusplus
42559 extern "C"
42560 {
42561 #endif
42562 /* We use char because int might match the return type of a gcc2
42563 builtin and then its argument prototype would still apply. */
42564 char $ac_func ();
42565 /* The GNU C library defines this for functions which it implements
42566 to always fail with ENOSYS. Some functions are actually named
42567 something starting with __ and the normal name is an alias. */
42568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42569 choke me
42570 #else
42571 char (*f) () = $ac_func;
42572 #endif
42573 #ifdef __cplusplus
42574 }
42575 #endif
42576
42577 int
42578 main ()
42579 {
42580 return f != $ac_func;
42581 ;
42582 return 0;
42583 }
42584 _ACEOF
42585 rm -f conftest.$ac_objext conftest$ac_exeext
42586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42587 (eval $ac_link) 2>conftest.er1
42588 ac_status=$?
42589 grep -v '^ *+' conftest.er1 >conftest.err
42590 rm -f conftest.er1
42591 cat conftest.err >&5
42592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42593 (exit $ac_status); } &&
42594 { ac_try='test -z "$ac_c_werror_flag"
42595 || test ! -s conftest.err'
42596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42597 (eval $ac_try) 2>&5
42598 ac_status=$?
42599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42600 (exit $ac_status); }; } &&
42601 { ac_try='test -s conftest$ac_exeext'
42602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42603 (eval $ac_try) 2>&5
42604 ac_status=$?
42605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42606 (exit $ac_status); }; }; then
42607 eval "$as_ac_var=yes"
42608 else
42609 echo "$as_me: failed program was:" >&5
42610 sed 's/^/| /' conftest.$ac_ext >&5
42611
42612 eval "$as_ac_var=no"
42613 fi
42614 rm -f conftest.err conftest.$ac_objext \
42615 conftest$ac_exeext conftest.$ac_ext
42616 fi
42617 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42618 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42619 if test `eval echo '${'$as_ac_var'}'` = yes; then
42620 cat >>confdefs.h <<_ACEOF
42621 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42622 _ACEOF
42623
42624 fi
42625 done
42626
42627 LIBS="$SAVED_LIBS"
42628
42629 if test $ac_cv_func_epoll_ctl = yes; then
42630 echo "$as_me:$LINENO: checking if epoll works" >&5
42631 echo $ECHO_N "checking if epoll works... $ECHO_C" >&6
42632 if test "${ac_cv_epoll_works+set}" = set; then
42633 echo $ECHO_N "(cached) $ECHO_C" >&6
42634 else
42635 if test "$cross_compiling" = yes; then
42636 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42637 See \`config.log' for more details." >&5
42638 echo "$as_me: error: cannot run test program while cross compiling
42639 See \`config.log' for more details." >&2;}
42640 { (exit 1); exit 1; }; }
42641 else
42642 cat >conftest.$ac_ext <<_ACEOF
42643 /* confdefs.h. */
42644 _ACEOF
42645 cat confdefs.h >>conftest.$ac_ext
42646 cat >>conftest.$ac_ext <<_ACEOF
42647 /* end confdefs.h. */
42648
42649 #include <sys/epoll.h>
42650 #include <stdlib.h>
42651 #include <stdio.h>
42652 int main(int argc, char **argv)
42653 {
42654 int fd = epoll_create(256);
42655 if (fd < 0) {
42656 perror("epoll_create:");
42657 exit(1);
42658 }
42659 exit(0);
42660 }
42661
42662 _ACEOF
42663 rm -f conftest$ac_exeext
42664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42665 (eval $ac_link) 2>&5
42666 ac_status=$?
42667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42670 (eval $ac_try) 2>&5
42671 ac_status=$?
42672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42673 (exit $ac_status); }; }; then
42674 ac_cv_epoll_works=yes
42675 else
42676 echo "$as_me: program exited with status $ac_status" >&5
42677 echo "$as_me: failed program was:" >&5
42678 sed 's/^/| /' conftest.$ac_ext >&5
42679
42680 ( exit $ac_status )
42681 ac_cv_epoll_works=no
42682 fi
42683 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42684 fi
42685 fi
42686 echo "$as_me:$LINENO: result: $ac_cv_epoll_works" >&5
42687 echo "${ECHO_T}$ac_cv_epoll_works" >&6
42688 if test ac_cv_epoll_works = no && test ac_force_epoll = yes; then
42689 echo "Error - no epoll found";
42690 echo "Try running 'sh ./scripts/get_epoll-lib.sh'";
42691 echo "then run configure again";
42692 exit -1
42693 fi
42694 fi
42695
42696
42697
42698 if test -n "$SELECT_TYPE"; then
42699 : # Already decided above. Nothing to do here
42700 elif test "$ac_cv_epoll_works" = "yes" ; then
42701 SELECT_TYPE="epoll"
42702 #comm_kqueue a bit broken. Don't enable automatically
42703 #elif test "$ac_cv_func_kqueue" = "yes" ; then
42704 # SELECT_TYPE="kqueue"
42705 elif test "$ac_cv_func_poll" = "yes" ; then
42706 SELECT_TYPE="poll"
42707 elif test "$ac_cv_func_select" = "yes" ; then
42708 case "$host_os" in
42709 mingw|mingw32)
42710 SELECT_TYPE="select_win32"
42711 ;;
42712 *)
42713 SELECT_TYPE="select"
42714 ;;
42715 esac
42716 else
42717 echo "Eep! Can't find poll, kqueue, epoll, or select!"
42718 echo "I'll try select and hope for the best."
42719 SELECT_TYPE="select"
42720 cat >>confdefs.h <<\_ACEOF
42721 #define USE_SELECT 1
42722 _ACEOF
42723
42724 fi
42725
42726 echo "Using ${SELECT_TYPE} for the IO loop."
42727
42728
42729
42730 if test $SELECT_TYPE = poll; then
42731 USE_POLL_TRUE=
42732 USE_POLL_FALSE='#'
42733 else
42734 USE_POLL_TRUE='#'
42735 USE_POLL_FALSE=
42736 fi
42737
42738
42739
42740 if test $SELECT_TYPE = epoll; then
42741 USE_EPOLL_TRUE=
42742 USE_EPOLL_FALSE='#'
42743 else
42744 USE_EPOLL_TRUE='#'
42745 USE_EPOLL_FALSE=
42746 fi
42747
42748
42749
42750 if test $SELECT_TYPE = select; then
42751 USE_SELECT_TRUE=
42752 USE_SELECT_FALSE='#'
42753 else
42754 USE_SELECT_TRUE='#'
42755 USE_SELECT_FALSE=
42756 fi
42757
42758
42759
42760 if test $SELECT_TYPE = select_simple; then
42761 USE_SELECT_SIMPLE_TRUE=
42762 USE_SELECT_SIMPLE_FALSE='#'
42763 else
42764 USE_SELECT_SIMPLE_TRUE='#'
42765 USE_SELECT_SIMPLE_FALSE=
42766 fi
42767
42768
42769
42770 if test $SELECT_TYPE = select_win32; then
42771 USE_SELECT_WIN32_TRUE=
42772 USE_SELECT_WIN32_FALSE='#'
42773 else
42774 USE_SELECT_WIN32_TRUE='#'
42775 USE_SELECT_WIN32_FALSE=
42776 fi
42777
42778
42779
42780 if test $SELECT_TYPE = kqueue; then
42781 USE_KQUEUE_TRUE=
42782 USE_KQUEUE_FALSE='#'
42783 else
42784 USE_KQUEUE_TRUE='#'
42785 USE_KQUEUE_FALSE=
42786 fi
42787
42788
42789
42790 if test $SELECT_TYPE = devpoll; then
42791 USE_DEVPOLL_TRUE=
42792 USE_DEVPOLL_FALSE='#'
42793 else
42794 USE_DEVPOLL_TRUE='#'
42795 USE_DEVPOLL_FALSE=
42796 fi
42797
42798
42799 case $SELECT_TYPE in
42800 epoll)
42801
42802 cat >>confdefs.h <<\_ACEOF
42803 #define USE_EPOLL 1
42804 _ACEOF
42805
42806 ;;
42807 poll)
42808
42809 cat >>confdefs.h <<\_ACEOF
42810 #define USE_POLL 1
42811 _ACEOF
42812
42813 ;;
42814 kqueue)
42815
42816 cat >>confdefs.h <<\_ACEOF
42817 #define USE_KQUEUE 1
42818 _ACEOF
42819
42820 ;;
42821 select_win32)
42822
42823 cat >>confdefs.h <<\_ACEOF
42824 #define USE_SELECT_WIN32 1
42825 _ACEOF
42826
42827 ;;
42828 select)
42829
42830 cat >>confdefs.h <<\_ACEOF
42831 #define USE_SELECT 1
42832 _ACEOF
42833
42834 ;;
42835 esac
42836
42837
42838
42839 echo "$as_me:$LINENO: checking if setresuid is implemented" >&5
42840 echo $ECHO_N "checking if setresuid is implemented... $ECHO_C" >&6
42841 if test "${ac_cv_func_setresuid+set}" = set; then
42842 echo $ECHO_N "(cached) $ECHO_C" >&6
42843 else
42844 if test "$cross_compiling" = yes; then
42845 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42846 See \`config.log' for more details." >&5
42847 echo "$as_me: error: cannot run test program while cross compiling
42848 See \`config.log' for more details." >&2;}
42849 { (exit 1); exit 1; }; }
42850 else
42851 cat >conftest.$ac_ext <<_ACEOF
42852 /* confdefs.h. */
42853 _ACEOF
42854 cat confdefs.h >>conftest.$ac_ext
42855 cat >>conftest.$ac_ext <<_ACEOF
42856 /* end confdefs.h. */
42857
42858 #include <stdlib.h>
42859 int main() {
42860 if(setresuid(-1,-1,-1)) {
42861 perror("setresuid:");
42862 exit(1);
42863 }
42864 exit(0);
42865 }
42866
42867 _ACEOF
42868 rm -f conftest$ac_exeext
42869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42870 (eval $ac_link) 2>&5
42871 ac_status=$?
42872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42875 (eval $ac_try) 2>&5
42876 ac_status=$?
42877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42878 (exit $ac_status); }; }; then
42879 ac_cv_func_setresuid="yes"
42880 else
42881 echo "$as_me: program exited with status $ac_status" >&5
42882 echo "$as_me: failed program was:" >&5
42883 sed 's/^/| /' conftest.$ac_ext >&5
42884
42885 ( exit $ac_status )
42886 ac_cv_func_setresuid="no"
42887 fi
42888 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42889 fi
42890
42891 fi
42892 echo "$as_me:$LINENO: result: $ac_cv_func_setresuid" >&5
42893 echo "${ECHO_T}$ac_cv_func_setresuid" >&6
42894 if test "$ac_cv_func_setresuid" = "yes" ; then
42895
42896 cat >>confdefs.h <<\_ACEOF
42897 #define HAVE_SETRESUID 1
42898 _ACEOF
42899
42900 fi
42901
42902
42903
42904 if false; then
42905 NEED_OWN_SNPRINTF_TRUE=
42906 NEED_OWN_SNPRINTF_FALSE='#'
42907 else
42908 NEED_OWN_SNPRINTF_TRUE='#'
42909 NEED_OWN_SNPRINTF_FALSE=
42910 fi
42911
42912 if test "$ac_cv_func_snprintf" = "no" || test "$ac_cv_func_vsnprintf" = "no" ; then
42913
42914
42915 if true; then
42916 NEED_OWN_SNPRINTF_TRUE=
42917 NEED_OWN_SNPRINTF_FALSE='#'
42918 else
42919 NEED_OWN_SNPRINTF_TRUE='#'
42920 NEED_OWN_SNPRINTF_FALSE=
42921 fi
42922
42923 fi
42924
42925
42926
42927 if false; then
42928 NEED_OWN_STRSEP_TRUE=
42929 NEED_OWN_STRSEP_FALSE='#'
42930 else
42931 NEED_OWN_STRSEP_TRUE='#'
42932 NEED_OWN_STRSEP_FALSE=
42933 fi
42934
42935 if test "$ac_cv_func_strsep" = "no" ; then
42936
42937
42938 if true; then
42939 NEED_OWN_STRSEP_TRUE=
42940 NEED_OWN_STRSEP_FALSE='#'
42941 else
42942 NEED_OWN_STRSEP_TRUE='#'
42943 NEED_OWN_STRSEP_FALSE=
42944 fi
42945
42946 fi
42947
42948
42949
42950 if false; then
42951 NEED_OWN_STRTOLL_TRUE=
42952 NEED_OWN_STRTOLL_FALSE='#'
42953 else
42954 NEED_OWN_STRTOLL_TRUE='#'
42955 NEED_OWN_STRTOLL_FALSE=
42956 fi
42957
42958 if test "$ac_cv_func_strtoll" = "no" ; then
42959
42960
42961 if true; then
42962 NEED_OWN_STRTOLL_TRUE=
42963 NEED_OWN_STRTOLL_FALSE='#'
42964 else
42965 NEED_OWN_STRTOLL_TRUE='#'
42966 NEED_OWN_STRTOLL_FALSE=
42967 fi
42968
42969 fi
42970
42971 echo "$as_me:$LINENO: checking if va_copy is implemented" >&5
42972 echo $ECHO_N "checking if va_copy is implemented... $ECHO_C" >&6
42973 if test "${ac_cv_func_va_copy+set}" = set; then
42974 echo $ECHO_N "(cached) $ECHO_C" >&6
42975 else
42976 if test "$cross_compiling" = yes; then
42977 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
42978 See \`config.log' for more details." >&5
42979 echo "$as_me: error: cannot run test program while cross compiling
42980 See \`config.log' for more details." >&2;}
42981 { (exit 1); exit 1; }; }
42982 else
42983 cat >conftest.$ac_ext <<_ACEOF
42984 /* confdefs.h. */
42985 _ACEOF
42986 cat confdefs.h >>conftest.$ac_ext
42987 cat >>conftest.$ac_ext <<_ACEOF
42988 /* end confdefs.h. */
42989
42990 #include <stdarg.h>
42991 void f (int i, ...) {
42992 va_list args1, args2;
42993 va_start (args1, i);
42994 va_copy (args2, args1);
42995 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
42996 exit (1);
42997 va_end (args1); va_end (args2);
42998 }
42999 int main() {
43000 f (0, 42);
43001 return 0;
43002 }
43003
43004 _ACEOF
43005 rm -f conftest$ac_exeext
43006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43007 (eval $ac_link) 2>&5
43008 ac_status=$?
43009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43012 (eval $ac_try) 2>&5
43013 ac_status=$?
43014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43015 (exit $ac_status); }; }; then
43016 ac_cv_func_va_copy="yes"
43017 else
43018 echo "$as_me: program exited with status $ac_status" >&5
43019 echo "$as_me: failed program was:" >&5
43020 sed 's/^/| /' conftest.$ac_ext >&5
43021
43022 ( exit $ac_status )
43023 ac_cv_func_va_copy="no"
43024 fi
43025 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43026 fi
43027
43028 fi
43029 echo "$as_me:$LINENO: result: $ac_cv_func_va_copy" >&5
43030 echo "${ECHO_T}$ac_cv_func_va_copy" >&6
43031 if test "$ac_cv_func_va_copy" = "yes" ; then
43032
43033 cat >>confdefs.h <<\_ACEOF
43034 #define HAVE_VA_COPY 1
43035 _ACEOF
43036
43037 fi
43038
43039 echo "$as_me:$LINENO: checking if __va_copy is implemented" >&5
43040 echo $ECHO_N "checking if __va_copy is implemented... $ECHO_C" >&6
43041 if test "${ac_cv_func___va_copy+set}" = set; then
43042 echo $ECHO_N "(cached) $ECHO_C" >&6
43043 else
43044 if test "$cross_compiling" = yes; then
43045 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
43046 See \`config.log' for more details." >&5
43047 echo "$as_me: error: cannot run test program while cross compiling
43048 See \`config.log' for more details." >&2;}
43049 { (exit 1); exit 1; }; }
43050 else
43051 cat >conftest.$ac_ext <<_ACEOF
43052 /* confdefs.h. */
43053 _ACEOF
43054 cat confdefs.h >>conftest.$ac_ext
43055 cat >>conftest.$ac_ext <<_ACEOF
43056 /* end confdefs.h. */
43057
43058 #include <stdarg.h>
43059 void f (int i, ...) {
43060 va_list args1, args2;
43061 va_start (args1, i);
43062 __va_copy (args2, args1);
43063 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
43064 exit (1);
43065 va_end (args1); va_end (args2);
43066 }
43067 int main() {
43068 f (0, 42);
43069 return 0;
43070 }
43071
43072 _ACEOF
43073 rm -f conftest$ac_exeext
43074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43075 (eval $ac_link) 2>&5
43076 ac_status=$?
43077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43080 (eval $ac_try) 2>&5
43081 ac_status=$?
43082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43083 (exit $ac_status); }; }; then
43084 ac_cv_func___va_copy="yes"
43085 else
43086 echo "$as_me: program exited with status $ac_status" >&5
43087 echo "$as_me: failed program was:" >&5
43088 sed 's/^/| /' conftest.$ac_ext >&5
43089
43090 ( exit $ac_status )
43091 ac_cv_func___va_copy="no"
43092 fi
43093 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43094 fi
43095
43096 fi
43097 echo "$as_me:$LINENO: result: $ac_cv_func___va_copy" >&5
43098 echo "${ECHO_T}$ac_cv_func___va_copy" >&6
43099 if test "$ac_cv_func___va_copy" = "yes" ; then
43100
43101 cat >>confdefs.h <<\_ACEOF
43102 #define HAVE___VA_COPY 1
43103 _ACEOF
43104
43105 fi
43106
43107 if test "$IPF_TRANSPARENT" ; then
43108 echo "$as_me:$LINENO: checking if IP-Filter header files are installed" >&5
43109 echo $ECHO_N "checking if IP-Filter header files are installed... $ECHO_C" >&6
43110 # hold on to your hats...
43111 if test "$ac_cv_header_ip_compat_h" = "yes" ||
43112 test "$ac_cv_header_ip_fil_compat_h" = "yes" ||
43113 test "$ac_cv_header_netinet_ip_compat_h" = "yes" ||
43114 test "$ac_cv_header_netinet_ip_fil_compat_h" = "yes" ; then
43115 have_ipfilter_compat_header="yes"
43116 fi
43117 if test "x$have_ipfilter_compat_header" = "xyes" &&
43118 test "$ac_cv_header_ip_fil_h" = "yes" &&
43119 test "$ac_cv_header_ip_nat_h" = "yes" ; then
43120 IPF_TRANSPARENT="yes"
43121 cat >>confdefs.h <<\_ACEOF
43122 #define IPF_TRANSPARENT 1
43123 _ACEOF
43124
43125 elif test "$have_ipfilter_compat_header" = "yes" &&
43126 test "$ac_cv_header_netinet_ip_fil_h" = "yes" &&
43127 test "$ac_cv_header_netinet_ip_nat_h" = "yes" ; then
43128 IPF_TRANSPARENT="yes"
43129 cat >>confdefs.h <<\_ACEOF
43130 #define IPF_TRANSPARENT 1
43131 _ACEOF
43132
43133 else
43134 IPF_TRANSPARENT="no"
43135 cat >>confdefs.h <<\_ACEOF
43136 #define IPF_TRANSPARENT 0
43137 _ACEOF
43138
43139 fi
43140 echo "$as_me:$LINENO: result: $IPF_TRANSPARENT" >&5
43141 echo "${ECHO_T}$IPF_TRANSPARENT" >&6
43142 fi
43143 if test "$IPF_TRANSPARENT" = "no" ; then
43144 echo "WARNING: Cannot find necessary IP-Filter header files"
43145 echo " Transparent Proxy support WILL NOT be enabled"
43146 sleep 10
43147 elif test "$IPF_TRANSPARENT" = "yes" ; then
43148 case "$host" in
43149 *-solaris*)
43150 solrev=`uname -r | sh -c 'IFS=. read j n x; echo $n'`
43151 CFLAGS="-DSOLARIS2=$solrev $CFLAGS"
43152 CXXFLAGS="-DSOLARIS2=$solrev $CXXFLAGS"
43153 ;;
43154 *)
43155 ;;
43156 esac
43157 fi
43158
43159 if test "$PF_TRANSPARENT" ; then
43160 echo "$as_me:$LINENO: checking if PF header file is installed" >&5
43161 echo $ECHO_N "checking if PF header file is installed... $ECHO_C" >&6
43162 # hold on to your hats...
43163 if test "$ac_cv_header_net_pfvar_h" = "yes"; then
43164 PF_TRANSPARENT="yes"
43165 cat >>confdefs.h <<\_ACEOF
43166 #define PF_TRANSPARENT 1
43167 _ACEOF
43168
43169 else
43170 PF_TRANSPARENT="no"
43171 cat >>confdefs.h <<\_ACEOF
43172 #define PF_TRANSPARENT 0
43173 _ACEOF
43174
43175 fi
43176 echo "$as_me:$LINENO: result: $PF_TRANSPARENT" >&5
43177 echo "${ECHO_T}$PF_TRANSPARENT" >&6
43178 fi
43179 if test "$PF_TRANSPARENT" = "no" ; then
43180 echo "WARNING: Cannot find necessary PF header file"
43181 echo " Transparent Proxy support WILL NOT be enabled"
43182 sleep 10
43183 fi
43184
43185 if test "$LINUX_NETFILTER" ; then
43186 echo "$as_me:$LINENO: checking if Linux (Netfilter) kernel header files are installed" >&5
43187 echo $ECHO_N "checking if Linux (Netfilter) kernel header files are installed... $ECHO_C" >&6
43188 # hold on to your hats...
43189 if test "$ac_cv_header_linux_netfilter_ipv4_h" = "yes"; then
43190 LINUX_NETFILTER="yes"
43191 cat >>confdefs.h <<\_ACEOF
43192 #define LINUX_NETFILTER 1
43193 _ACEOF
43194
43195 else
43196 LINUX_NETFILTER="no"
43197 cat >>confdefs.h <<\_ACEOF
43198 #define LINUX_NETFILTER 0
43199 _ACEOF
43200
43201 fi
43202 echo "$as_me:$LINENO: result: $LINUX_NETFILTER" >&5
43203 echo "${ECHO_T}$LINUX_NETFILTER" >&6
43204 fi
43205 if test "$LINUX_NETFILTER" = "no" ; then
43206 echo "WARNING: Cannot find necessary Linux kernel (Netfilter) header files"
43207 echo " Linux Transparent Proxy support WILL NOT be enabled"
43208 sleep 10
43209 fi
43210
43211 if test "$LINUX_TPROXY" ; then
43212 echo "$as_me:$LINENO: checking if TPROXY header files are installed" >&5
43213 echo $ECHO_N "checking if TPROXY header files are installed... $ECHO_C" >&6
43214 # hold on to your hats...
43215 if test "$ac_cv_header_linux_netfilter_ipv4_ip_tproxy_h" = "yes" && test "$LINUX_NETFILTER" = "yes"; then
43216 LINUX_TPROXY="yes"
43217
43218 cat >>confdefs.h <<\_ACEOF
43219 #define LINUX_TPROXY 1
43220 _ACEOF
43221
43222 else
43223 LINUX_TPROXY="no"
43224
43225 cat >>confdefs.h <<\_ACEOF
43226 #define LINUX_TPROXY 0
43227 _ACEOF
43228
43229 fi
43230 echo "$as_me:$LINENO: result: $LINUX_TPROXY" >&5
43231 echo "${ECHO_T}$LINUX_TPROXY" >&6
43232 fi
43233 if test "$LINUX_TPROXY" = "no" && test "$LINUX_NETFILTER" = "yes"; then
43234 echo "WARNING: Cannot find TPROXY headers, you need to install the"
43235 echo "tproxy package from:"
43236 echo " - lynx http://www.balabit.com/downloads/tproxy/"
43237 sleep 10
43238 fi
43239
43240 if test -z "$USE_GNUREGEX" ; then
43241 case "$host" in
43242 *-sun-solaris2.[0-4])
43243 USE_GNUREGEX="yes"
43244 ;;
43245 *-next-nextstep*)
43246 USE_GNUREGEX="yes"
43247 ;;
43248 esac
43249 fi
43250 echo "$as_me:$LINENO: checking if GNUregex needs to be compiled" >&5
43251 echo $ECHO_N "checking if GNUregex needs to be compiled... $ECHO_C" >&6
43252 if test -z "$USE_GNUREGEX"; then
43253 if test "$ac_cv_func_regcomp" = "no" || test "$USE_GNUREGEX" = "yes" ; then
43254 USE_GNUREGEX="yes"
43255 else
43256 cat >conftest.$ac_ext <<_ACEOF
43257 /* confdefs.h. */
43258 _ACEOF
43259 cat confdefs.h >>conftest.$ac_ext
43260 cat >>conftest.$ac_ext <<_ACEOF
43261 /* end confdefs.h. */
43262 #include <sys/types.h>
43263 #include <regex.h>
43264 int
43265 main ()
43266 {
43267 regex_t t; regcomp(&t,"",0);
43268 ;
43269 return 0;
43270 }
43271 _ACEOF
43272 rm -f conftest.$ac_objext
43273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43274 (eval $ac_compile) 2>conftest.er1
43275 ac_status=$?
43276 grep -v '^ *+' conftest.er1 >conftest.err
43277 rm -f conftest.er1
43278 cat conftest.err >&5
43279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43280 (exit $ac_status); } &&
43281 { ac_try='test -z "$ac_c_werror_flag"
43282 || test ! -s conftest.err'
43283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43284 (eval $ac_try) 2>&5
43285 ac_status=$?
43286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43287 (exit $ac_status); }; } &&
43288 { ac_try='test -s conftest.$ac_objext'
43289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43290 (eval $ac_try) 2>&5
43291 ac_status=$?
43292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43293 (exit $ac_status); }; }; then
43294 USE_GNUREGEX="no"
43295 else
43296 echo "$as_me: failed program was:" >&5
43297 sed 's/^/| /' conftest.$ac_ext >&5
43298
43299 USE_GNUREGEX="yes"
43300 fi
43301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43302 fi
43303 fi
43304 echo "$as_me:$LINENO: result: $USE_GNUREGEX" >&5
43305 echo "${ECHO_T}$USE_GNUREGEX" >&6
43306 if test "$USE_GNUREGEX" = "yes"; then
43307 REGEXLIB="-lregex"
43308 LIBREGEX="libregex.a"
43309
43310 cat >>confdefs.h <<\_ACEOF
43311 #define USE_GNUREGEX 1
43312 _ACEOF
43313
43314 fi
43315
43316
43317
43318
43319
43320
43321
43322 for ac_func in \
43323 drand48 \
43324 tempnam \
43325 strerror \
43326 initgroups
43327
43328 do
43329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43330 echo "$as_me:$LINENO: checking for $ac_func" >&5
43331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43332 if eval "test \"\${$as_ac_var+set}\" = set"; then
43333 echo $ECHO_N "(cached) $ECHO_C" >&6
43334 else
43335 cat >conftest.$ac_ext <<_ACEOF
43336 /* confdefs.h. */
43337 _ACEOF
43338 cat confdefs.h >>conftest.$ac_ext
43339 cat >>conftest.$ac_ext <<_ACEOF
43340 /* end confdefs.h. */
43341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43343 #define $ac_func innocuous_$ac_func
43344
43345 /* System header to define __stub macros and hopefully few prototypes,
43346 which can conflict with char $ac_func (); below.
43347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43348 <limits.h> exists even on freestanding compilers. */
43349
43350 #ifdef __STDC__
43351 # include <limits.h>
43352 #else
43353 # include <assert.h>
43354 #endif
43355
43356 #undef $ac_func
43357
43358 /* Override any gcc2 internal prototype to avoid an error. */
43359 #ifdef __cplusplus
43360 extern "C"
43361 {
43362 #endif
43363 /* We use char because int might match the return type of a gcc2
43364 builtin and then its argument prototype would still apply. */
43365 char $ac_func ();
43366 /* The GNU C library defines this for functions which it implements
43367 to always fail with ENOSYS. Some functions are actually named
43368 something starting with __ and the normal name is an alias. */
43369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43370 choke me
43371 #else
43372 char (*f) () = $ac_func;
43373 #endif
43374 #ifdef __cplusplus
43375 }
43376 #endif
43377
43378 int
43379 main ()
43380 {
43381 return f != $ac_func;
43382 ;
43383 return 0;
43384 }
43385 _ACEOF
43386 rm -f conftest.$ac_objext conftest$ac_exeext
43387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43388 (eval $ac_link) 2>conftest.er1
43389 ac_status=$?
43390 grep -v '^ *+' conftest.er1 >conftest.err
43391 rm -f conftest.er1
43392 cat conftest.err >&5
43393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43394 (exit $ac_status); } &&
43395 { ac_try='test -z "$ac_c_werror_flag"
43396 || test ! -s conftest.err'
43397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43398 (eval $ac_try) 2>&5
43399 ac_status=$?
43400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43401 (exit $ac_status); }; } &&
43402 { ac_try='test -s conftest$ac_exeext'
43403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43404 (eval $ac_try) 2>&5
43405 ac_status=$?
43406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43407 (exit $ac_status); }; }; then
43408 eval "$as_ac_var=yes"
43409 else
43410 echo "$as_me: failed program was:" >&5
43411 sed 's/^/| /' conftest.$ac_ext >&5
43412
43413 eval "$as_ac_var=no"
43414 fi
43415 rm -f conftest.err conftest.$ac_objext \
43416 conftest$ac_exeext conftest.$ac_ext
43417 fi
43418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43419 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43420 if test `eval echo '${'$as_ac_var'}'` = yes; then
43421 cat >>confdefs.h <<_ACEOF
43422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43423 _ACEOF
43424
43425 else
43426 case $LIBOBJS in
43427 "$ac_func.$ac_objext" | \
43428 *" $ac_func.$ac_objext" | \
43429 "$ac_func.$ac_objext "* | \
43430 *" $ac_func.$ac_objext "* ) ;;
43431 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
43432 esac
43433
43434 fi
43435 done
43436
43437
43438
43439 echo "$as_me:$LINENO: checking Default FD_SETSIZE value" >&5
43440 echo $ECHO_N "checking Default FD_SETSIZE value... $ECHO_C" >&6
43441 if test "$cross_compiling" = yes; then
43442 DEFAULT_FD_SETSIZE=256
43443 else
43444 cat >conftest.$ac_ext <<_ACEOF
43445 /* confdefs.h. */
43446 _ACEOF
43447 cat confdefs.h >>conftest.$ac_ext
43448 cat >>conftest.$ac_ext <<_ACEOF
43449 /* end confdefs.h. */
43450
43451 #if HAVE_STDIO_H
43452 #include <stdio.h>
43453 #endif
43454 #if HAVE_UNISTD_H
43455 #include <unistd.h>
43456 #endif
43457 #if HAVE_SYS_TIME_H
43458 #include <sys/time.h>
43459 #endif
43460 #if HAVE_SYS_SELECT_H
43461 #include <sys/select.h>
43462 #endif
43463 #if HAVE_SYS_TYPES_H
43464 #include <sys/types.h>
43465 #endif
43466 main() {
43467 FILE *fp = fopen("conftestval", "w");
43468 fprintf (fp, "%d\n", FD_SETSIZE);
43469 exit(0);
43470 }
43471
43472 _ACEOF
43473 rm -f conftest$ac_exeext
43474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43475 (eval $ac_link) 2>&5
43476 ac_status=$?
43477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43478 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43480 (eval $ac_try) 2>&5
43481 ac_status=$?
43482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43483 (exit $ac_status); }; }; then
43484 DEFAULT_FD_SETSIZE=`cat conftestval`
43485 else
43486 echo "$as_me: program exited with status $ac_status" >&5
43487 echo "$as_me: failed program was:" >&5
43488 sed 's/^/| /' conftest.$ac_ext >&5
43489
43490 ( exit $ac_status )
43491 DEFAULT_FD_SETSIZE=256
43492 fi
43493 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43494 fi
43495 echo "$as_me:$LINENO: result: $DEFAULT_FD_SETSIZE" >&5
43496 echo "${ECHO_T}$DEFAULT_FD_SETSIZE" >&6
43497
43498 cat >>confdefs.h <<_ACEOF
43499 #define DEFAULT_FD_SETSIZE $DEFAULT_FD_SETSIZE
43500 _ACEOF
43501
43502
43503
43504 echo "$as_me:$LINENO: checking Maximum number of filedescriptors we can open" >&5
43505 echo $ECHO_N "checking Maximum number of filedescriptors we can open... $ECHO_C" >&6
43506 if test -n "$squid_filedescriptors_num" ; then
43507 SQUID_MAXFD=$squid_filedescriptors_num
43508 echo "$as_me:$LINENO: result: $SQUID_MAXFD (user-forced)" >&5
43509 echo "${ECHO_T}$SQUID_MAXFD (user-forced)" >&6
43510 else
43511 TLDFLAGS="$LDFLAGS"
43512 case $host in
43513 i386-unknown-freebsd*)
43514 if echo "$LDFLAGS" | grep -q pthread; then
43515 LDFLAGS=`echo $LDFLAGS | sed -e "s/-pthread//"`
43516 fi
43517 esac
43518 if test "$cross_compiling" = yes; then
43519 SQUID_MAXFD=256
43520 else
43521 cat >conftest.$ac_ext <<_ACEOF
43522 /* confdefs.h. */
43523 _ACEOF
43524 cat confdefs.h >>conftest.$ac_ext
43525 cat >>conftest.$ac_ext <<_ACEOF
43526 /* end confdefs.h. */
43527
43528 #include <stdio.h>
43529 #include <unistd.h>
43530 #include <sys/time.h> /* needed on FreeBSD */
43531 #include <sys/param.h>
43532 #include <sys/resource.h>
43533 main() {
43534 FILE *fp;
43535 int i,j;
43536 #if defined(__CYGWIN32__) || defined (__CYGWIN__)
43537 /* getrlimit and sysconf returns bogous values on cygwin32.
43538 * Number of fds is virtually unlimited in cygwin (sys/param.h)
43539 * __CYGWIN32__ is deprecated.
43540 */
43541 i = NOFILE;
43542 #else
43543 #if HAVE_SETRLIMIT
43544 struct rlimit rl;
43545 #if defined(RLIMIT_NOFILE)
43546 if (getrlimit(RLIMIT_NOFILE, &rl) < 0) {
43547 perror("getrlimit: RLIMIT_NOFILE");
43548 } else {
43549 rl.rlim_cur = rl.rlim_max; /* set it to the max */
43550 if (setrlimit(RLIMIT_NOFILE, &rl) < 0) {
43551 perror("setrlimit: RLIMIT_NOFILE");
43552 }
43553 }
43554 #elif defined(RLIMIT_OFILE)
43555 if (getrlimit(RLIMIT_OFILE, &rl) < 0) {
43556 perror("getrlimit: RLIMIT_OFILE");
43557 } else {
43558 rl.rlim_cur = rl.rlim_max; /* set it to the max */
43559 if (setrlimit(RLIMIT_OFILE, &rl) < 0) {
43560 perror("setrlimit: RLIMIT_OFILE");
43561 }
43562 }
43563 #endif /* RLIMIT_NOFILE */
43564 #endif /* HAVE_SETRLIMIT */
43565 /* by starting at 2^14, we will never get higher
43566 than 2^15 for SQUID_MAXFD */
43567 i = j = 1<<14;
43568 while (j) {
43569 j >>= 1;
43570 if (dup2(0, i) < 0) {
43571 i -= j;
43572 } else {
43573 close(i);
43574 i += j;
43575 }
43576 }
43577 i++;
43578 #endif /* IF !DEF CYGWIN */
43579 fp = fopen("conftestval", "w");
43580 fprintf (fp, "%d\n", i & ~0x3F);
43581 exit(0);
43582 }
43583
43584 _ACEOF
43585 rm -f conftest$ac_exeext
43586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43587 (eval $ac_link) 2>&5
43588 ac_status=$?
43589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43592 (eval $ac_try) 2>&5
43593 ac_status=$?
43594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43595 (exit $ac_status); }; }; then
43596 SQUID_MAXFD=`cat conftestval`
43597 else
43598 echo "$as_me: program exited with status $ac_status" >&5
43599 echo "$as_me: failed program was:" >&5
43600 sed 's/^/| /' conftest.$ac_ext >&5
43601
43602 ( exit $ac_status )
43603 SQUID_MAXFD=256
43604 fi
43605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43606 fi
43607 case "$host_os" in
43608 mingw|mingw32)
43609 SQUID_MAXFD="2048"
43610 ;;
43611 esac
43612 echo "$as_me:$LINENO: result: $SQUID_MAXFD" >&5
43613 echo "${ECHO_T}$SQUID_MAXFD" >&6
43614 fi
43615
43616 cat >>confdefs.h <<_ACEOF
43617 #define SQUID_MAXFD $SQUID_MAXFD
43618 _ACEOF
43619
43620 if test "$SQUID_MAXFD" -lt 512 ; then
43621 echo "WARNING: $SQUID_MAXFD may not be enough filedescriptors if your"
43622 echo " cache will be very busy. Please see the FAQ page"
43623 echo " http://www.squid-cache.org/FAQ/FAQ-11.html#filedescriptors"
43624 echo " on how to increase your filedescriptor limit"
43625 sleep 10
43626 fi
43627 LDFLAGS="$TLDFLAGS"
43628
43629 if test `expr $SQUID_MAXFD % 64` != 0; then
43630 echo "WARNING: $SQUID_MAXFD is not an multiple of 64. This may cause issues"
43631 echo " on certain platforms."
43632 sleep 10
43633 fi
43634
43635 echo "$as_me:$LINENO: checking Default UDP send buffer size" >&5
43636 echo $ECHO_N "checking Default UDP send buffer size... $ECHO_C" >&6
43637 if test "$cross_compiling" = yes; then
43638 SQUID_DETECT_UDP_SO_SNDBUF=16384
43639 else
43640 cat >conftest.$ac_ext <<_ACEOF
43641 /* confdefs.h. */
43642 _ACEOF
43643 cat confdefs.h >>conftest.$ac_ext
43644 cat >>conftest.$ac_ext <<_ACEOF
43645 /* end confdefs.h. */
43646
43647 #include <stdlib.h>
43648 #include <stdio.h>
43649 #include <sys/types.h>
43650 #include <sys/socket.h>
43651 #include <netinet/in.h>
43652 main ()
43653 {
43654 FILE *fp;
43655 int fd,val=0,len=sizeof(int);
43656 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1);
43657 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1);
43658 if (val<=0) exit(1);
43659 fp = fopen("conftestval", "w");
43660 fprintf (fp, "%d\n", val);
43661 exit(0);
43662 }
43663
43664 _ACEOF
43665 rm -f conftest$ac_exeext
43666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43667 (eval $ac_link) 2>&5
43668 ac_status=$?
43669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43672 (eval $ac_try) 2>&5
43673 ac_status=$?
43674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43675 (exit $ac_status); }; }; then
43676 SQUID_DETECT_UDP_SO_SNDBUF=`cat conftestval`
43677 else
43678 echo "$as_me: program exited with status $ac_status" >&5
43679 echo "$as_me: failed program was:" >&5
43680 sed 's/^/| /' conftest.$ac_ext >&5
43681
43682 ( exit $ac_status )
43683 SQUID_DETECT_UDP_SO_SNDBUF=16384
43684 fi
43685 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43686 fi
43687 echo "$as_me:$LINENO: result: $SQUID_DETECT_UDP_SO_SNDBUF" >&5
43688 echo "${ECHO_T}$SQUID_DETECT_UDP_SO_SNDBUF" >&6
43689
43690 cat >>confdefs.h <<_ACEOF
43691 #define SQUID_DETECT_UDP_SO_SNDBUF $SQUID_DETECT_UDP_SO_SNDBUF
43692 _ACEOF
43693
43694
43695 echo "$as_me:$LINENO: checking Default UDP receive buffer size" >&5
43696 echo $ECHO_N "checking Default UDP receive buffer size... $ECHO_C" >&6
43697 if test "$cross_compiling" = yes; then
43698 SQUID_DETECT_UDP_SO_RCVBUF=16384
43699 else
43700 cat >conftest.$ac_ext <<_ACEOF
43701 /* confdefs.h. */
43702 _ACEOF
43703 cat confdefs.h >>conftest.$ac_ext
43704 cat >>conftest.$ac_ext <<_ACEOF
43705 /* end confdefs.h. */
43706
43707 #include <stdlib.h>
43708 #include <stdio.h>
43709 #include <sys/types.h>
43710 #include <sys/socket.h>
43711 #include <netinet/in.h>
43712 main ()
43713 {
43714 FILE *fp;
43715 int fd,val=0,len=sizeof(int);
43716 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) exit(1);
43717 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1);
43718 if (val <= 0) exit(1);
43719 fp = fopen("conftestval", "w");
43720 fprintf (fp, "%d\n", val);
43721 exit(0);
43722 }
43723
43724 _ACEOF
43725 rm -f conftest$ac_exeext
43726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43727 (eval $ac_link) 2>&5
43728 ac_status=$?
43729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43732 (eval $ac_try) 2>&5
43733 ac_status=$?
43734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43735 (exit $ac_status); }; }; then
43736 SQUID_DETECT_UDP_SO_RCVBUF=`cat conftestval`
43737 else
43738 echo "$as_me: program exited with status $ac_status" >&5
43739 echo "$as_me: failed program was:" >&5
43740 sed 's/^/| /' conftest.$ac_ext >&5
43741
43742 ( exit $ac_status )
43743 SQUID_DETECT_UDP_SO_RCVBUF=16384
43744 fi
43745 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43746 fi
43747 echo "$as_me:$LINENO: result: $SQUID_DETECT_UDP_SO_RCVBUF" >&5
43748 echo "${ECHO_T}$SQUID_DETECT_UDP_SO_RCVBUF" >&6
43749
43750 cat >>confdefs.h <<_ACEOF
43751 #define SQUID_DETECT_UDP_SO_RCVBUF $SQUID_DETECT_UDP_SO_RCVBUF
43752 _ACEOF
43753
43754
43755 echo "$as_me:$LINENO: checking Default TCP send buffer size" >&5
43756 echo $ECHO_N "checking Default TCP send buffer size... $ECHO_C" >&6
43757 if test "$cross_compiling" = yes; then
43758 SQUID_TCP_SO_SNDBUF=16384
43759 else
43760 cat >conftest.$ac_ext <<_ACEOF
43761 /* confdefs.h. */
43762 _ACEOF
43763 cat confdefs.h >>conftest.$ac_ext
43764 cat >>conftest.$ac_ext <<_ACEOF
43765 /* end confdefs.h. */
43766
43767 #include <stdlib.h>
43768 #include <stdio.h>
43769 #include <sys/types.h>
43770 #include <sys/socket.h>
43771 #include <netinet/in.h>
43772 main ()
43773 {
43774 FILE *fp;
43775 int fd,val=0,len=sizeof(int);
43776 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1);
43777 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &val, &len) < 0) exit(1);
43778 if (val <= 0) exit(1);
43779 fp = fopen("conftestval", "w");
43780 fprintf (fp, "%d\n", val);
43781 exit(0);
43782 }
43783
43784 _ACEOF
43785 rm -f conftest$ac_exeext
43786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43787 (eval $ac_link) 2>&5
43788 ac_status=$?
43789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43792 (eval $ac_try) 2>&5
43793 ac_status=$?
43794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43795 (exit $ac_status); }; }; then
43796 SQUID_TCP_SO_SNDBUF=`cat conftestval`
43797 else
43798 echo "$as_me: program exited with status $ac_status" >&5
43799 echo "$as_me: failed program was:" >&5
43800 sed 's/^/| /' conftest.$ac_ext >&5
43801
43802 ( exit $ac_status )
43803 SQUID_TCP_SO_SNDBUF=16384
43804 fi
43805 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43806 fi
43807 echo "$as_me:$LINENO: result: $SQUID_TCP_SO_SNDBUF" >&5
43808 echo "${ECHO_T}$SQUID_TCP_SO_SNDBUF" >&6
43809 if test $SQUID_TCP_SO_SNDBUF -gt 32768; then
43810 echo "Limiting send buffer size to 32K"
43811 SQUID_TCP_SO_SNDBUF=32768
43812 fi
43813
43814 cat >>confdefs.h <<_ACEOF
43815 #define SQUID_TCP_SO_SNDBUF $SQUID_TCP_SO_SNDBUF
43816 _ACEOF
43817
43818
43819 echo "$as_me:$LINENO: checking Default TCP receive buffer size" >&5
43820 echo $ECHO_N "checking Default TCP receive buffer size... $ECHO_C" >&6
43821 if test "$cross_compiling" = yes; then
43822 SQUID_TCP_SO_RCVBUF=16384
43823 else
43824 cat >conftest.$ac_ext <<_ACEOF
43825 /* confdefs.h. */
43826 _ACEOF
43827 cat confdefs.h >>conftest.$ac_ext
43828 cat >>conftest.$ac_ext <<_ACEOF
43829 /* end confdefs.h. */
43830
43831 #include <stdlib.h>
43832 #include <stdio.h>
43833 #include <sys/types.h>
43834 #include <sys/socket.h>
43835 #include <netinet/in.h>
43836 main ()
43837 {
43838 FILE *fp;
43839 int fd,val=0,len=sizeof(int);
43840 if ((fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) exit(1);
43841 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &val, &len) < 0) exit(1);
43842 if (val <= 0) exit(1);
43843 fp = fopen("conftestval", "w");
43844 fprintf (fp, "%d\n", val);
43845 exit(0);
43846 }
43847
43848 _ACEOF
43849 rm -f conftest$ac_exeext
43850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43851 (eval $ac_link) 2>&5
43852 ac_status=$?
43853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43856 (eval $ac_try) 2>&5
43857 ac_status=$?
43858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43859 (exit $ac_status); }; }; then
43860 SQUID_TCP_SO_RCVBUF=`cat conftestval`
43861 else
43862 echo "$as_me: program exited with status $ac_status" >&5
43863 echo "$as_me: failed program was:" >&5
43864 sed 's/^/| /' conftest.$ac_ext >&5
43865
43866 ( exit $ac_status )
43867 SQUID_TCP_SO_RCVBUF=16384
43868 fi
43869 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43870 fi
43871 echo "$as_me:$LINENO: result: $SQUID_TCP_SO_RCVBUF" >&5
43872 echo "${ECHO_T}$SQUID_TCP_SO_RCVBUF" >&6
43873 if test $SQUID_TCP_SO_RCVBUF -gt 65535; then
43874 echo "Limiting receive buffer size to 64K"
43875 SQUID_TCP_SO_RCVBUF=65535
43876 fi
43877
43878 cat >>confdefs.h <<_ACEOF
43879 #define SQUID_TCP_SO_RCVBUF $SQUID_TCP_SO_RCVBUF
43880 _ACEOF
43881
43882 echo "$as_me:$LINENO: checking if sys_errlist is already defined" >&5
43883 echo $ECHO_N "checking if sys_errlist is already defined... $ECHO_C" >&6
43884 if test "${ac_cv_needs_sys_errlist+set}" = set; then
43885 echo $ECHO_N "(cached) $ECHO_C" >&6
43886 else
43887 cat >conftest.$ac_ext <<_ACEOF
43888 /* confdefs.h. */
43889 _ACEOF
43890 cat confdefs.h >>conftest.$ac_ext
43891 cat >>conftest.$ac_ext <<_ACEOF
43892 /* end confdefs.h. */
43893 #include <stdio.h>
43894 int
43895 main ()
43896 {
43897 char *s = sys_errlist;
43898 ;
43899 return 0;
43900 }
43901 _ACEOF
43902 rm -f conftest.$ac_objext
43903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43904 (eval $ac_compile) 2>conftest.er1
43905 ac_status=$?
43906 grep -v '^ *+' conftest.er1 >conftest.err
43907 rm -f conftest.er1
43908 cat conftest.err >&5
43909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43910 (exit $ac_status); } &&
43911 { ac_try='test -z "$ac_c_werror_flag"
43912 || test ! -s conftest.err'
43913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43914 (eval $ac_try) 2>&5
43915 ac_status=$?
43916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43917 (exit $ac_status); }; } &&
43918 { ac_try='test -s conftest.$ac_objext'
43919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43920 (eval $ac_try) 2>&5
43921 ac_status=$?
43922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43923 (exit $ac_status); }; }; then
43924 ac_cv_needs_sys_errlist="no"
43925 else
43926 echo "$as_me: failed program was:" >&5
43927 sed 's/^/| /' conftest.$ac_ext >&5
43928
43929 ac_cv_needs_sys_errlist="yes"
43930 fi
43931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43932
43933 fi
43934 echo "$as_me:$LINENO: result: $ac_cv_needs_sys_errlist" >&5
43935 echo "${ECHO_T}$ac_cv_needs_sys_errlist" >&6
43936 if test "$ac_cv_needs_sys_errlist" = "yes" ; then
43937
43938 cat >>confdefs.h <<\_ACEOF
43939 #define NEED_SYS_ERRLIST 1
43940 _ACEOF
43941
43942 fi
43943
43944 echo "$as_me:$LINENO: checking for libresolv _dns_ttl_ hack" >&5
43945 echo $ECHO_N "checking for libresolv _dns_ttl_ hack... $ECHO_C" >&6
43946 cat >conftest.$ac_ext <<_ACEOF
43947 /* confdefs.h. */
43948 _ACEOF
43949 cat confdefs.h >>conftest.$ac_ext
43950 cat >>conftest.$ac_ext <<_ACEOF
43951 /* end confdefs.h. */
43952 extern int _dns_ttl_;
43953 int
43954 main ()
43955 {
43956 return _dns_ttl_;
43957 ;
43958 return 0;
43959 }
43960 _ACEOF
43961 rm -f conftest.$ac_objext conftest$ac_exeext
43962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43963 (eval $ac_link) 2>conftest.er1
43964 ac_status=$?
43965 grep -v '^ *+' conftest.er1 >conftest.err
43966 rm -f conftest.er1
43967 cat conftest.err >&5
43968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43969 (exit $ac_status); } &&
43970 { ac_try='test -z "$ac_c_werror_flag"
43971 || test ! -s conftest.err'
43972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43973 (eval $ac_try) 2>&5
43974 ac_status=$?
43975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43976 (exit $ac_status); }; } &&
43977 { ac_try='test -s conftest$ac_exeext'
43978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43979 (eval $ac_try) 2>&5
43980 ac_status=$?
43981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43982 (exit $ac_status); }; }; then
43983 echo "$as_me:$LINENO: result: yes" >&5
43984 echo "${ECHO_T}yes" >&6
43985
43986 cat >>confdefs.h <<\_ACEOF
43987 #define LIBRESOLV_DNS_TTL_HACK 1
43988 _ACEOF
43989
43990 else
43991 echo "$as_me: failed program was:" >&5
43992 sed 's/^/| /' conftest.$ac_ext >&5
43993
43994 echo "$as_me:$LINENO: result: no" >&5
43995 echo "${ECHO_T}no" >&6
43996 fi
43997 rm -f conftest.err conftest.$ac_objext \
43998 conftest$ac_exeext conftest.$ac_ext
43999
44000 echo "$as_me:$LINENO: checking if inet_ntoa() actually works" >&5
44001 echo $ECHO_N "checking if inet_ntoa() actually works... $ECHO_C" >&6
44002 if test "$cross_compiling" = yes; then
44003 INET_NTOA_RESULT="broken"
44004 else
44005 cat >conftest.$ac_ext <<_ACEOF
44006 /* confdefs.h. */
44007 _ACEOF
44008 cat confdefs.h >>conftest.$ac_ext
44009 cat >>conftest.$ac_ext <<_ACEOF
44010 /* end confdefs.h. */
44011
44012 #include <stdlib.h>
44013 #include <stdio.h>
44014 #include <sys/types.h>
44015 #include <netinet/in.h>
44016 #include <arpa/inet.h>
44017 main ()
44018 {
44019 FILE *fp;
44020 struct in_addr in;
44021 in.s_addr = inet_addr("1.2.3.4");
44022 fp = fopen("conftestval", "w");
44023 fprintf (fp, "%s\n", inet_ntoa(in));
44024 exit(0);
44025 }
44026
44027 _ACEOF
44028 rm -f conftest$ac_exeext
44029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44030 (eval $ac_link) 2>&5
44031 ac_status=$?
44032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44035 (eval $ac_try) 2>&5
44036 ac_status=$?
44037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44038 (exit $ac_status); }; }; then
44039 INET_NTOA_RESULT=`cat conftestval`
44040 else
44041 echo "$as_me: program exited with status $ac_status" >&5
44042 echo "$as_me: failed program was:" >&5
44043 sed 's/^/| /' conftest.$ac_ext >&5
44044
44045 ( exit $ac_status )
44046 INET_NTOA_RESULT="broken"
44047 fi
44048 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44049 fi
44050 if test "$INET_NTOA_RESULT" = "1.2.3.4" ; then
44051 echo "$as_me:$LINENO: result: \"yes\"" >&5
44052 echo "${ECHO_T}\"yes\"" >&6
44053 else
44054 echo "$as_me:$LINENO: result: \"no\"" >&5
44055 echo "${ECHO_T}\"no\"" >&6
44056 case "$host_os" in
44057 mingw|mingw32)
44058 echo "Using Win32 resolver instead."
44059 ;;
44060 *)
44061 echo "Will use our own inet_ntoa()."
44062 case $LIBOBJS in
44063 "inet_ntoa.$ac_objext" | \
44064 *" inet_ntoa.$ac_objext" | \
44065 "inet_ntoa.$ac_objext "* | \
44066 *" inet_ntoa.$ac_objext "* ) ;;
44067 *) LIBOBJS="$LIBOBJS inet_ntoa.$ac_objext" ;;
44068 esac
44069
44070 # echo "WARNING: This looks bad, and probably prevents Squid from working."
44071 # echo " If you're on IRIX and using GCC 2.8, you probably need"
44072 # echo " to use the IRIX C compiler instead."
44073 # sleep 10
44074 ;;
44075 esac
44076 fi
44077
44078 if test "$ac_cv_header_sys_statvfs_h" = "yes" ; then
44079 echo "$as_me:$LINENO: checking for working statvfs() interface" >&5
44080 echo $ECHO_N "checking for working statvfs() interface... $ECHO_C" >&6
44081 cat >conftest.$ac_ext <<_ACEOF
44082 /* confdefs.h. */
44083 _ACEOF
44084 cat confdefs.h >>conftest.$ac_ext
44085 cat >>conftest.$ac_ext <<_ACEOF
44086 /* end confdefs.h. */
44087
44088 #include <stdlib.h>
44089 #include <stdio.h>
44090 #include <sys/types.h>
44091 #include <sys/statvfs.h>
44092
44093 int
44094 main ()
44095 {
44096
44097 struct statvfs sfs;
44098 sfs.f_blocks = sfs.f_bfree = sfs.f_frsize =
44099 sfs.f_files = sfs.f_ffree = 0;
44100 statvfs("/tmp", &sfs);
44101
44102 ;
44103 return 0;
44104 }
44105 _ACEOF
44106 rm -f conftest.$ac_objext
44107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44108 (eval $ac_compile) 2>conftest.er1
44109 ac_status=$?
44110 grep -v '^ *+' conftest.er1 >conftest.err
44111 rm -f conftest.er1
44112 cat conftest.err >&5
44113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44114 (exit $ac_status); } &&
44115 { ac_try='test -z "$ac_c_werror_flag"
44116 || test ! -s conftest.err'
44117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44118 (eval $ac_try) 2>&5
44119 ac_status=$?
44120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44121 (exit $ac_status); }; } &&
44122 { ac_try='test -s conftest.$ac_objext'
44123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44124 (eval $ac_try) 2>&5
44125 ac_status=$?
44126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44127 (exit $ac_status); }; }; then
44128 ac_cv_func_statvfs=yes
44129 else
44130 echo "$as_me: failed program was:" >&5
44131 sed 's/^/| /' conftest.$ac_ext >&5
44132
44133 ac_cv_func_statvfs=no
44134 fi
44135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44136 echo "$as_me:$LINENO: result: $ac_cv_func_statvfs" >&5
44137 echo "${ECHO_T}$ac_cv_func_statvfs" >&6
44138 if test "$ac_cv_func_statvfs" = "yes" ; then
44139
44140 cat >>confdefs.h <<\_ACEOF
44141 #define HAVE_STATVFS 1
44142 _ACEOF
44143
44144 fi
44145 fi
44146
44147 echo "$as_me:$LINENO: checking for _res.nsaddr_list" >&5
44148 echo $ECHO_N "checking for _res.nsaddr_list... $ECHO_C" >&6
44149 if test "${ac_cv_have_res_nsaddr_list+set}" = set; then
44150 echo $ECHO_N "(cached) $ECHO_C" >&6
44151 else
44152 cat >conftest.$ac_ext <<_ACEOF
44153 /* confdefs.h. */
44154 _ACEOF
44155 cat confdefs.h >>conftest.$ac_ext
44156 cat >>conftest.$ac_ext <<_ACEOF
44157 /* end confdefs.h. */
44158
44159 #if HAVE_SYS_TYPES_H
44160 #include <sys/types.h>
44161 #endif
44162 #if HAVE_NETINET_IN_H
44163 #include <netinet/in.h>
44164 #endif
44165 #if HAVE_ARPA_INET_H
44166 #include <arpa/inet.h>
44167 #endif
44168 #if HAVE_ARPA_NAMESER_H
44169 #include <arpa/nameser.h>
44170 #endif
44171 #if HAVE_RESOLV_H
44172 #include <resolv.h>
44173 #endif
44174
44175 int
44176 main ()
44177 {
44178 _res.nsaddr_list[0];
44179 ;
44180 return 0;
44181 }
44182 _ACEOF
44183 rm -f conftest.$ac_objext
44184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44185 (eval $ac_compile) 2>conftest.er1
44186 ac_status=$?
44187 grep -v '^ *+' conftest.er1 >conftest.err
44188 rm -f conftest.er1
44189 cat conftest.err >&5
44190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44191 (exit $ac_status); } &&
44192 { ac_try='test -z "$ac_c_werror_flag"
44193 || test ! -s conftest.err'
44194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44195 (eval $ac_try) 2>&5
44196 ac_status=$?
44197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44198 (exit $ac_status); }; } &&
44199 { ac_try='test -s conftest.$ac_objext'
44200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44201 (eval $ac_try) 2>&5
44202 ac_status=$?
44203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44204 (exit $ac_status); }; }; then
44205 ac_cv_have_res_nsaddr_list="yes"
44206 else
44207 echo "$as_me: failed program was:" >&5
44208 sed 's/^/| /' conftest.$ac_ext >&5
44209
44210 ac_cv_have_res_nsaddr_list="no"
44211 fi
44212 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44213 fi
44214 echo "$as_me:$LINENO: result: $ac_cv_have_res_nsaddr_list" >&5
44215 echo "${ECHO_T}$ac_cv_have_res_nsaddr_list" >&6
44216 if test $ac_cv_have_res_nsaddr_list = "yes" ; then
44217
44218 cat >>confdefs.h <<\_ACEOF
44219 #define HAVE_RES_NSADDR_LIST 1
44220 _ACEOF
44221
44222 fi
44223
44224 if test $ac_cv_have_res_nsaddr_list = "no" ; then
44225 echo "$as_me:$LINENO: checking for _res.ns_list" >&5
44226 echo $ECHO_N "checking for _res.ns_list... $ECHO_C" >&6
44227 if test "${ac_cv_have_res_ns_list+set}" = set; then
44228 echo $ECHO_N "(cached) $ECHO_C" >&6
44229 else
44230 cat >conftest.$ac_ext <<_ACEOF
44231 /* confdefs.h. */
44232 _ACEOF
44233 cat confdefs.h >>conftest.$ac_ext
44234 cat >>conftest.$ac_ext <<_ACEOF
44235 /* end confdefs.h. */
44236
44237 #if HAVE_SYS_TYPES_H
44238 #include <sys/types.h>
44239 #endif
44240 #if HAVE_NETINET_IN_H
44241 #include <netinet/in.h>
44242 #endif
44243 #if HAVE_ARPA_INET_H
44244 #include <arpa/inet.h>
44245 #endif
44246 #if HAVE_ARPA_NAMESER_H
44247 #include <arpa/nameser.h>
44248 #endif
44249 #if HAVE_RESOLV_H
44250 #include <resolv.h>
44251 #endif
44252
44253 int
44254 main ()
44255 {
44256 _res.ns_list[0].addr;
44257 ;
44258 return 0;
44259 }
44260 _ACEOF
44261 rm -f conftest.$ac_objext
44262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44263 (eval $ac_compile) 2>conftest.er1
44264 ac_status=$?
44265 grep -v '^ *+' conftest.er1 >conftest.err
44266 rm -f conftest.er1
44267 cat conftest.err >&5
44268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44269 (exit $ac_status); } &&
44270 { ac_try='test -z "$ac_c_werror_flag"
44271 || test ! -s conftest.err'
44272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44273 (eval $ac_try) 2>&5
44274 ac_status=$?
44275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44276 (exit $ac_status); }; } &&
44277 { ac_try='test -s conftest.$ac_objext'
44278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44279 (eval $ac_try) 2>&5
44280 ac_status=$?
44281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44282 (exit $ac_status); }; }; then
44283 ac_cv_have_res_ns_list="yes"
44284 else
44285 echo "$as_me: failed program was:" >&5
44286 sed 's/^/| /' conftest.$ac_ext >&5
44287
44288 ac_cv_have_res_ns_list="no"
44289 fi
44290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44291 fi
44292 echo "$as_me:$LINENO: result: $ac_cv_have_res_ns_list" >&5
44293 echo "${ECHO_T}$ac_cv_have_res_ns_list" >&6
44294 if test $ac_cv_have_res_ns_list = "yes" ; then
44295
44296 cat >>confdefs.h <<\_ACEOF
44297 #define HAVE_RES_NS_LIST 1
44298 _ACEOF
44299
44300 fi
44301 fi
44302
44303 XTRA_OBJS=''
44304 if test "$ac_cv_lib_malloc_main" = "yes" ; then
44305 if test -r /usr/lib/debug/malloc.o ; then
44306 XTRA_OBJS="$XTRA_OBJS /usr/lib/debug/malloc.o"
44307 fi
44308 if test -r /usr/lib/debug/mallocmap.o ; then
44309 XTRA_OBJS="$XTRA_OBJS /usr/lib/debug/mallocmap.o"
44310 fi
44311 fi
44312
44313
44314
44315 if test -z "$XTRA_LIBS"; then
44316 XTRA_LIBS="$LIBS"
44317 XTRA_LIBS=`echo $XTRA_LIBS | sed -e "s/ */ /g"`
44318 LIBS=''
44319 fi
44320
44321
44322 rm -f core
44323
44324 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/basic_auth/POP3/Makefile helpers/basic_auth/DB/Makefile helpers/basic_auth/squid_radius_auth/Makefile helpers/digest_auth/Makefile helpers/digest_auth/password/Makefile helpers/digest_auth/ldap/Makefile helpers/digest_auth/eDirectory/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/negotiate_auth/squid_kerb_auth/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"
44325
44326
44327
44328
44329 subdirs="$subdirs lib/libTrie"
44330
44331
44332 cat >confcache <<\_ACEOF
44333 # This file is a shell script that caches the results of configure
44334 # tests run on this system so they can be shared between configure
44335 # scripts and configure runs, see configure's option --config-cache.
44336 # It is not useful on other systems. If it contains results you don't
44337 # want to keep, you may remove or edit it.
44338 #
44339 # config.status only pays attention to the cache file if you give it
44340 # the --recheck option to rerun configure.
44341 #
44342 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44343 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44344 # following values.
44345
44346 _ACEOF
44347
44348 # The following way of writing the cache mishandles newlines in values,
44349 # but we know of no workaround that is simple, portable, and efficient.
44350 # So, don't put newlines in cache variables' values.
44351 # Ultrix sh set writes to stderr and can't be redirected directly,
44352 # and sets the high bit in the cache file unless we assign to the vars.
44353 {
44354 (set) 2>&1 |
44355 case `(ac_space=' '; set | grep ac_space) 2>&1` in
44356 *ac_space=\ *)
44357 # `set' does not quote correctly, so add quotes (double-quote
44358 # substitution turns \\\\ into \\, and sed turns \\ into \).
44359 sed -n \
44360 "s/'/'\\\\''/g;
44361 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44362 ;;
44363 *)
44364 # `set' quotes correctly as required by POSIX, so do not add quotes.
44365 sed -n \
44366 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
44367 ;;
44368 esac;
44369 } |
44370 sed '
44371 t clear
44372 : clear
44373 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44374 t end
44375 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44376 : end' >>confcache
44377 if diff $cache_file confcache >/dev/null 2>&1; then :; else
44378 if test -w $cache_file; then
44379 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
44380 cat confcache >$cache_file
44381 else
44382 echo "not updating unwritable cache $cache_file"
44383 fi
44384 fi
44385 rm -f confcache
44386
44387 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44388 # Let make expand exec_prefix.
44389 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44390
44391 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44392 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44393 # trailing colons and then remove the whole line if VPATH becomes empty
44394 # (actually we leave an empty line to preserve line numbers).
44395 if test "x$srcdir" = x.; then
44396 ac_vpsub='/^[ ]*VPATH[ ]*=/{
44397 s/:*\$(srcdir):*/:/;
44398 s/:*\${srcdir}:*/:/;
44399 s/:*@srcdir@:*/:/;
44400 s/^\([^=]*=[ ]*\):*/\1/;
44401 s/:*$//;
44402 s/^[^=]*=[ ]*$//;
44403 }'
44404 fi
44405
44406 DEFS=-DHAVE_CONFIG_H
44407
44408 ac_libobjs=
44409 ac_ltlibobjs=
44410 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44411 # 1. Remove the extension, and $U if already installed.
44412 ac_i=`echo "$ac_i" |
44413 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
44414 # 2. Add them.
44415 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
44416 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
44417 done
44418 LIBOBJS=$ac_libobjs
44419
44420 LTLIBOBJS=$ac_ltlibobjs
44421
44422
44423 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
44424 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
44425 Usually this means the macro was only invoked conditionally." >&5
44426 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
44427 Usually this means the macro was only invoked conditionally." >&2;}
44428 { (exit 1); exit 1; }; }
44429 fi
44430 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
44431 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
44432 Usually this means the macro was only invoked conditionally." >&5
44433 echo "$as_me: error: conditional \"AMDEP\" was never defined.
44434 Usually this means the macro was only invoked conditionally." >&2;}
44435 { (exit 1); exit 1; }; }
44436 fi
44437 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
44438 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
44439 Usually this means the macro was only invoked conditionally." >&5
44440 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
44441 Usually this means the macro was only invoked conditionally." >&2;}
44442 { (exit 1); exit 1; }; }
44443 fi
44444 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
44445 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
44446 Usually this means the macro was only invoked conditionally." >&5
44447 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
44448 Usually this means the macro was only invoked conditionally." >&2;}
44449 { (exit 1); exit 1; }; }
44450 fi
44451 if test -z "${ENABLE_WIN32SPECIFIC_TRUE}" && test -z "${ENABLE_WIN32SPECIFIC_FALSE}"; then
44452 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WIN32SPECIFIC\" was never defined.
44453 Usually this means the macro was only invoked conditionally." >&5
44454 echo "$as_me: error: conditional \"ENABLE_WIN32SPECIFIC\" was never defined.
44455 Usually this means the macro was only invoked conditionally." >&2;}
44456 { (exit 1); exit 1; }; }
44457 fi
44458 if test -z "${ENABLE_WIN32SPECIFIC_TRUE}" && test -z "${ENABLE_WIN32SPECIFIC_FALSE}"; then
44459 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_WIN32SPECIFIC\" was never defined.
44460 Usually this means the macro was only invoked conditionally." >&5
44461 echo "$as_me: error: conditional \"ENABLE_WIN32SPECIFIC\" was never defined.
44462 Usually this means the macro was only invoked conditionally." >&2;}
44463 { (exit 1); exit 1; }; }
44464 fi
44465 if test -z "${USE_IPC_WIN32_TRUE}" && test -z "${USE_IPC_WIN32_FALSE}"; then
44466 { { echo "$as_me:$LINENO: error: conditional \"USE_IPC_WIN32\" was never defined.
44467 Usually this means the macro was only invoked conditionally." >&5
44468 echo "$as_me: error: conditional \"USE_IPC_WIN32\" was never defined.
44469 Usually this means the macro was only invoked conditionally." >&2;}
44470 { (exit 1); exit 1; }; }
44471 fi
44472 if test -z "${USE_IPC_WIN32_TRUE}" && test -z "${USE_IPC_WIN32_FALSE}"; then
44473 { { echo "$as_me:$LINENO: error: conditional \"USE_IPC_WIN32\" was never defined.
44474 Usually this means the macro was only invoked conditionally." >&5
44475 echo "$as_me: error: conditional \"USE_IPC_WIN32\" was never defined.
44476 Usually this means the macro was only invoked conditionally." >&2;}
44477 { (exit 1); exit 1; }; }
44478 fi
44479 if test -z "${USE_AIOPS_WIN32_TRUE}" && test -z "${USE_AIOPS_WIN32_FALSE}"; then
44480 { { echo "$as_me:$LINENO: error: conditional \"USE_AIOPS_WIN32\" was never defined.
44481 Usually this means the macro was only invoked conditionally." >&5
44482 echo "$as_me: error: conditional \"USE_AIOPS_WIN32\" was never defined.
44483 Usually this means the macro was only invoked conditionally." >&2;}
44484 { (exit 1); exit 1; }; }
44485 fi
44486 if test -z "${USE_AIO_WIN32_TRUE}" && test -z "${USE_AIO_WIN32_FALSE}"; then
44487 { { echo "$as_me:$LINENO: error: conditional \"USE_AIO_WIN32\" was never defined.
44488 Usually this means the macro was only invoked conditionally." >&5
44489 echo "$as_me: error: conditional \"USE_AIO_WIN32\" was never defined.
44490 Usually this means the macro was only invoked conditionally." >&2;}
44491 { (exit 1); exit 1; }; }
44492 fi
44493 if test -z "${ENABLE_PINGER_TRUE}" && test -z "${ENABLE_PINGER_FALSE}"; then
44494 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PINGER\" was never defined.
44495 Usually this means the macro was only invoked conditionally." >&5
44496 echo "$as_me: error: conditional \"ENABLE_PINGER\" was never defined.
44497 Usually this means the macro was only invoked conditionally." >&2;}
44498 { (exit 1); exit 1; }; }
44499 fi
44500 if test -z "${ENABLE_PINGER_TRUE}" && test -z "${ENABLE_PINGER_FALSE}"; then
44501 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PINGER\" was never defined.
44502 Usually this means the macro was only invoked conditionally." >&5
44503 echo "$as_me: error: conditional \"ENABLE_PINGER\" was never defined.
44504 Usually this means the macro was only invoked conditionally." >&2;}
44505 { (exit 1); exit 1; }; }
44506 fi
44507 if test -z "${USE_DELAY_POOLS_TRUE}" && test -z "${USE_DELAY_POOLS_FALSE}"; then
44508 { { echo "$as_me:$LINENO: error: conditional \"USE_DELAY_POOLS\" was never defined.
44509 Usually this means the macro was only invoked conditionally." >&5
44510 echo "$as_me: error: conditional \"USE_DELAY_POOLS\" was never defined.
44511 Usually this means the macro was only invoked conditionally." >&2;}
44512 { (exit 1); exit 1; }; }
44513 fi
44514 if test -z "${USE_DELAY_POOLS_TRUE}" && test -z "${USE_DELAY_POOLS_FALSE}"; then
44515 { { echo "$as_me:$LINENO: error: conditional \"USE_DELAY_POOLS\" was never defined.
44516 Usually this means the macro was only invoked conditionally." >&5
44517 echo "$as_me: error: conditional \"USE_DELAY_POOLS\" was never defined.
44518 Usually this means the macro was only invoked conditionally." >&2;}
44519 { (exit 1); exit 1; }; }
44520 fi
44521 if test -z "${USE_ESI_TRUE}" && test -z "${USE_ESI_FALSE}"; then
44522 { { echo "$as_me:$LINENO: error: conditional \"USE_ESI\" was never defined.
44523 Usually this means the macro was only invoked conditionally." >&5
44524 echo "$as_me: error: conditional \"USE_ESI\" was never defined.
44525 Usually this means the macro was only invoked conditionally." >&2;}
44526 { (exit 1); exit 1; }; }
44527 fi
44528 if test -z "${USE_ESI_TRUE}" && test -z "${USE_ESI_FALSE}"; then
44529 { { echo "$as_me:$LINENO: error: conditional \"USE_ESI\" was never defined.
44530 Usually this means the macro was only invoked conditionally." >&5
44531 echo "$as_me: error: conditional \"USE_ESI\" was never defined.
44532 Usually this means the macro was only invoked conditionally." >&2;}
44533 { (exit 1); exit 1; }; }
44534 fi
44535 if test -z "${USE_ICAP_CLIENT_TRUE}" && test -z "${USE_ICAP_CLIENT_FALSE}"; then
44536 { { echo "$as_me:$LINENO: error: conditional \"USE_ICAP_CLIENT\" was never defined.
44537 Usually this means the macro was only invoked conditionally." >&5
44538 echo "$as_me: error: conditional \"USE_ICAP_CLIENT\" was never defined.
44539 Usually this means the macro was only invoked conditionally." >&2;}
44540 { (exit 1); exit 1; }; }
44541 fi
44542 if test -z "${USE_ICAP_CLIENT_TRUE}" && test -z "${USE_ICAP_CLIENT_FALSE}"; then
44543 { { echo "$as_me:$LINENO: error: conditional \"USE_ICAP_CLIENT\" was never defined.
44544 Usually this means the macro was only invoked conditionally." >&5
44545 echo "$as_me: error: conditional \"USE_ICAP_CLIENT\" was never defined.
44546 Usually this means the macro was only invoked conditionally." >&2;}
44547 { (exit 1); exit 1; }; }
44548 fi
44549 if test -z "${USE_SNMP_TRUE}" && test -z "${USE_SNMP_FALSE}"; then
44550 { { echo "$as_me:$LINENO: error: conditional \"USE_SNMP\" was never defined.
44551 Usually this means the macro was only invoked conditionally." >&5
44552 echo "$as_me: error: conditional \"USE_SNMP\" was never defined.
44553 Usually this means the macro was only invoked conditionally." >&2;}
44554 { (exit 1); exit 1; }; }
44555 fi
44556 if test -z "${USE_SNMP_TRUE}" && test -z "${USE_SNMP_FALSE}"; then
44557 { { echo "$as_me:$LINENO: error: conditional \"USE_SNMP\" was never defined.
44558 Usually this means the macro was only invoked conditionally." >&5
44559 echo "$as_me: error: conditional \"USE_SNMP\" was never defined.
44560 Usually this means the macro was only invoked conditionally." >&2;}
44561 { (exit 1); exit 1; }; }
44562 fi
44563 if test -z "${ENABLE_ARP_ACL_TRUE}" && test -z "${ENABLE_ARP_ACL_FALSE}"; then
44564 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ARP_ACL\" was never defined.
44565 Usually this means the macro was only invoked conditionally." >&5
44566 echo "$as_me: error: conditional \"ENABLE_ARP_ACL\" was never defined.
44567 Usually this means the macro was only invoked conditionally." >&2;}
44568 { (exit 1); exit 1; }; }
44569 fi
44570 if test -z "${ENABLE_ARP_ACL_TRUE}" && test -z "${ENABLE_ARP_ACL_FALSE}"; then
44571 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ARP_ACL\" was never defined.
44572 Usually this means the macro was only invoked conditionally." >&5
44573 echo "$as_me: error: conditional \"ENABLE_ARP_ACL\" was never defined.
44574 Usually this means the macro was only invoked conditionally." >&2;}
44575 { (exit 1); exit 1; }; }
44576 fi
44577 if test -z "${ENABLE_HTCP_TRUE}" && test -z "${ENABLE_HTCP_FALSE}"; then
44578 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_HTCP\" was never defined.
44579 Usually this means the macro was only invoked conditionally." >&5
44580 echo "$as_me: error: conditional \"ENABLE_HTCP\" was never defined.
44581 Usually this means the macro was only invoked conditionally." >&2;}
44582 { (exit 1); exit 1; }; }
44583 fi
44584 if test -z "${ENABLE_HTCP_TRUE}" && test -z "${ENABLE_HTCP_FALSE}"; then
44585 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_HTCP\" was never defined.
44586 Usually this means the macro was only invoked conditionally." >&5
44587 echo "$as_me: error: conditional \"ENABLE_HTCP\" was never defined.
44588 Usually this means the macro was only invoked conditionally." >&2;}
44589 { (exit 1); exit 1; }; }
44590 fi
44591 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
44592 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
44593 Usually this means the macro was only invoked conditionally." >&5
44594 echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
44595 Usually this means the macro was only invoked conditionally." >&2;}
44596 { (exit 1); exit 1; }; }
44597 fi
44598 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
44599 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
44600 Usually this means the macro was only invoked conditionally." >&5
44601 echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
44602 Usually this means the macro was only invoked conditionally." >&2;}
44603 { (exit 1); exit 1; }; }
44604 fi
44605 if test -z "${NEED_OWN_MD5_TRUE}" && test -z "${NEED_OWN_MD5_FALSE}"; then
44606 { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_MD5\" was never defined.
44607 Usually this means the macro was only invoked conditionally." >&5
44608 echo "$as_me: error: conditional \"NEED_OWN_MD5\" was never defined.
44609 Usually this means the macro was only invoked conditionally." >&2;}
44610 { (exit 1); exit 1; }; }
44611 fi
44612 if test -z "${NEED_OWN_MD5_TRUE}" && test -z "${NEED_OWN_MD5_FALSE}"; then
44613 { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_MD5\" was never defined.
44614 Usually this means the macro was only invoked conditionally." >&5
44615 echo "$as_me: error: conditional \"NEED_OWN_MD5\" was never defined.
44616 Usually this means the macro was only invoked conditionally." >&2;}
44617 { (exit 1); exit 1; }; }
44618 fi
44619 if test -z "${MAKE_LEAKFINDER_TRUE}" && test -z "${MAKE_LEAKFINDER_FALSE}"; then
44620 { { echo "$as_me:$LINENO: error: conditional \"MAKE_LEAKFINDER\" was never defined.
44621 Usually this means the macro was only invoked conditionally." >&5
44622 echo "$as_me: error: conditional \"MAKE_LEAKFINDER\" was never defined.
44623 Usually this means the macro was only invoked conditionally." >&2;}
44624 { (exit 1); exit 1; }; }
44625 fi
44626 if test -z "${MAKE_LEAKFINDER_TRUE}" && test -z "${MAKE_LEAKFINDER_FALSE}"; then
44627 { { echo "$as_me:$LINENO: error: conditional \"MAKE_LEAKFINDER\" was never defined.
44628 Usually this means the macro was only invoked conditionally." >&5
44629 echo "$as_me: error: conditional \"MAKE_LEAKFINDER\" was never defined.
44630 Usually this means the macro was only invoked conditionally." >&2;}
44631 { (exit 1); exit 1; }; }
44632 fi
44633 if test -z "${ENABLE_IDENT_TRUE}" && test -z "${ENABLE_IDENT_FALSE}"; then
44634 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IDENT\" was never defined.
44635 Usually this means the macro was only invoked conditionally." >&5
44636 echo "$as_me: error: conditional \"ENABLE_IDENT\" was never defined.
44637 Usually this means the macro was only invoked conditionally." >&2;}
44638 { (exit 1); exit 1; }; }
44639 fi
44640 if test -z "${ENABLE_IDENT_TRUE}" && test -z "${ENABLE_IDENT_FALSE}"; then
44641 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_IDENT\" was never defined.
44642 Usually this means the macro was only invoked conditionally." >&5
44643 echo "$as_me: error: conditional \"ENABLE_IDENT\" was never defined.
44644 Usually this means the macro was only invoked conditionally." >&2;}
44645 { (exit 1); exit 1; }; }
44646 fi
44647 if test -z "${USE_DNSSERVER_TRUE}" && test -z "${USE_DNSSERVER_FALSE}"; then
44648 { { echo "$as_me:$LINENO: error: conditional \"USE_DNSSERVER\" was never defined.
44649 Usually this means the macro was only invoked conditionally." >&5
44650 echo "$as_me: error: conditional \"USE_DNSSERVER\" was never defined.
44651 Usually this means the macro was only invoked conditionally." >&2;}
44652 { (exit 1); exit 1; }; }
44653 fi
44654 if test -z "${USE_DNSSERVER_TRUE}" && test -z "${USE_DNSSERVER_FALSE}"; then
44655 { { echo "$as_me:$LINENO: error: conditional \"USE_DNSSERVER\" was never defined.
44656 Usually this means the macro was only invoked conditionally." >&5
44657 echo "$as_me: error: conditional \"USE_DNSSERVER\" was never defined.
44658 Usually this means the macro was only invoked conditionally." >&2;}
44659 { (exit 1); exit 1; }; }
44660 fi
44661 if test -z "${ENABLE_UNLINKD_TRUE}" && test -z "${ENABLE_UNLINKD_FALSE}"; then
44662 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UNLINKD\" was never defined.
44663 Usually this means the macro was only invoked conditionally." >&5
44664 echo "$as_me: error: conditional \"ENABLE_UNLINKD\" was never defined.
44665 Usually this means the macro was only invoked conditionally." >&2;}
44666 { (exit 1); exit 1; }; }
44667 fi
44668 if test -z "${ENABLE_UNLINKD_TRUE}" && test -z "${ENABLE_UNLINKD_FALSE}"; then
44669 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_UNLINKD\" was never defined.
44670 Usually this means the macro was only invoked conditionally." >&5
44671 echo "$as_me: error: conditional \"ENABLE_UNLINKD\" was never defined.
44672 Usually this means the macro was only invoked conditionally." >&2;}
44673 { (exit 1); exit 1; }; }
44674 fi
44675 if test -z "${ENABLE_XPROF_STATS_TRUE}" && test -z "${ENABLE_XPROF_STATS_FALSE}"; then
44676 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XPROF_STATS\" was never defined.
44677 Usually this means the macro was only invoked conditionally." >&5
44678 echo "$as_me: error: conditional \"ENABLE_XPROF_STATS\" was never defined.
44679 Usually this means the macro was only invoked conditionally." >&2;}
44680 { (exit 1); exit 1; }; }
44681 fi
44682 if test -z "${ENABLE_XPROF_STATS_TRUE}" && test -z "${ENABLE_XPROF_STATS_FALSE}"; then
44683 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_XPROF_STATS\" was never defined.
44684 Usually this means the macro was only invoked conditionally." >&5
44685 echo "$as_me: error: conditional \"ENABLE_XPROF_STATS\" was never defined.
44686 Usually this means the macro was only invoked conditionally." >&2;}
44687 { (exit 1); exit 1; }; }
44688 fi
44689 if test -z "${USE_POLL_TRUE}" && test -z "${USE_POLL_FALSE}"; then
44690 { { echo "$as_me:$LINENO: error: conditional \"USE_POLL\" was never defined.
44691 Usually this means the macro was only invoked conditionally." >&5
44692 echo "$as_me: error: conditional \"USE_POLL\" was never defined.
44693 Usually this means the macro was only invoked conditionally." >&2;}
44694 { (exit 1); exit 1; }; }
44695 fi
44696 if test -z "${USE_EPOLL_TRUE}" && test -z "${USE_EPOLL_FALSE}"; then
44697 { { echo "$as_me:$LINENO: error: conditional \"USE_EPOLL\" was never defined.
44698 Usually this means the macro was only invoked conditionally." >&5
44699 echo "$as_me: error: conditional \"USE_EPOLL\" was never defined.
44700 Usually this means the macro was only invoked conditionally." >&2;}
44701 { (exit 1); exit 1; }; }
44702 fi
44703 if test -z "${USE_SELECT_TRUE}" && test -z "${USE_SELECT_FALSE}"; then
44704 { { echo "$as_me:$LINENO: error: conditional \"USE_SELECT\" was never defined.
44705 Usually this means the macro was only invoked conditionally." >&5
44706 echo "$as_me: error: conditional \"USE_SELECT\" was never defined.
44707 Usually this means the macro was only invoked conditionally." >&2;}
44708 { (exit 1); exit 1; }; }
44709 fi
44710 if test -z "${USE_SELECT_SIMPLE_TRUE}" && test -z "${USE_SELECT_SIMPLE_FALSE}"; then
44711 { { echo "$as_me:$LINENO: error: conditional \"USE_SELECT_SIMPLE\" was never defined.
44712 Usually this means the macro was only invoked conditionally." >&5
44713 echo "$as_me: error: conditional \"USE_SELECT_SIMPLE\" was never defined.
44714 Usually this means the macro was only invoked conditionally." >&2;}
44715 { (exit 1); exit 1; }; }
44716 fi
44717 if test -z "${USE_SELECT_WIN32_TRUE}" && test -z "${USE_SELECT_WIN32_FALSE}"; then
44718 { { echo "$as_me:$LINENO: error: conditional \"USE_SELECT_WIN32\" was never defined.
44719 Usually this means the macro was only invoked conditionally." >&5
44720 echo "$as_me: error: conditional \"USE_SELECT_WIN32\" was never defined.
44721 Usually this means the macro was only invoked conditionally." >&2;}
44722 { (exit 1); exit 1; }; }
44723 fi
44724 if test -z "${USE_KQUEUE_TRUE}" && test -z "${USE_KQUEUE_FALSE}"; then
44725 { { echo "$as_me:$LINENO: error: conditional \"USE_KQUEUE\" was never defined.
44726 Usually this means the macro was only invoked conditionally." >&5
44727 echo "$as_me: error: conditional \"USE_KQUEUE\" was never defined.
44728 Usually this means the macro was only invoked conditionally." >&2;}
44729 { (exit 1); exit 1; }; }
44730 fi
44731 if test -z "${USE_DEVPOLL_TRUE}" && test -z "${USE_DEVPOLL_FALSE}"; then
44732 { { echo "$as_me:$LINENO: error: conditional \"USE_DEVPOLL\" was never defined.
44733 Usually this means the macro was only invoked conditionally." >&5
44734 echo "$as_me: error: conditional \"USE_DEVPOLL\" was never defined.
44735 Usually this means the macro was only invoked conditionally." >&2;}
44736 { (exit 1); exit 1; }; }
44737 fi
44738 if test -z "${NEED_OWN_SNPRINTF_TRUE}" && test -z "${NEED_OWN_SNPRINTF_FALSE}"; then
44739 { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_SNPRINTF\" was never defined.
44740 Usually this means the macro was only invoked conditionally." >&5
44741 echo "$as_me: error: conditional \"NEED_OWN_SNPRINTF\" was never defined.
44742 Usually this means the macro was only invoked conditionally." >&2;}
44743 { (exit 1); exit 1; }; }
44744 fi
44745 if test -z "${NEED_OWN_SNPRINTF_TRUE}" && test -z "${NEED_OWN_SNPRINTF_FALSE}"; then
44746 { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_SNPRINTF\" was never defined.
44747 Usually this means the macro was only invoked conditionally." >&5
44748 echo "$as_me: error: conditional \"NEED_OWN_SNPRINTF\" was never defined.
44749 Usually this means the macro was only invoked conditionally." >&2;}
44750 { (exit 1); exit 1; }; }
44751 fi
44752 if test -z "${NEED_OWN_STRSEP_TRUE}" && test -z "${NEED_OWN_STRSEP_FALSE}"; then
44753 { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_STRSEP\" was never defined.
44754 Usually this means the macro was only invoked conditionally." >&5
44755 echo "$as_me: error: conditional \"NEED_OWN_STRSEP\" was never defined.
44756 Usually this means the macro was only invoked conditionally." >&2;}
44757 { (exit 1); exit 1; }; }
44758 fi
44759 if test -z "${NEED_OWN_STRSEP_TRUE}" && test -z "${NEED_OWN_STRSEP_FALSE}"; then
44760 { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_STRSEP\" was never defined.
44761 Usually this means the macro was only invoked conditionally." >&5
44762 echo "$as_me: error: conditional \"NEED_OWN_STRSEP\" was never defined.
44763 Usually this means the macro was only invoked conditionally." >&2;}
44764 { (exit 1); exit 1; }; }
44765 fi
44766 if test -z "${NEED_OWN_STRTOLL_TRUE}" && test -z "${NEED_OWN_STRTOLL_FALSE}"; then
44767 { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_STRTOLL\" was never defined.
44768 Usually this means the macro was only invoked conditionally." >&5
44769 echo "$as_me: error: conditional \"NEED_OWN_STRTOLL\" was never defined.
44770 Usually this means the macro was only invoked conditionally." >&2;}
44771 { (exit 1); exit 1; }; }
44772 fi
44773 if test -z "${NEED_OWN_STRTOLL_TRUE}" && test -z "${NEED_OWN_STRTOLL_FALSE}"; then
44774 { { echo "$as_me:$LINENO: error: conditional \"NEED_OWN_STRTOLL\" was never defined.
44775 Usually this means the macro was only invoked conditionally." >&5
44776 echo "$as_me: error: conditional \"NEED_OWN_STRTOLL\" was never defined.
44777 Usually this means the macro was only invoked conditionally." >&2;}
44778 { (exit 1); exit 1; }; }
44779 fi
44780
44781 : ${CONFIG_STATUS=./config.status}
44782 ac_clean_files_save=$ac_clean_files
44783 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44784 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44785 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44786 cat >$CONFIG_STATUS <<_ACEOF
44787 #! $SHELL
44788 # Generated by $as_me.
44789 # Run this file to recreate the current configuration.
44790 # Compiler output produced by configure, useful for debugging
44791 # configure, is in config.log if it exists.
44792
44793 debug=false
44794 ac_cs_recheck=false
44795 ac_cs_silent=false
44796 SHELL=\${CONFIG_SHELL-$SHELL}
44797 _ACEOF
44798
44799 cat >>$CONFIG_STATUS <<\_ACEOF
44800 ## --------------------- ##
44801 ## M4sh Initialization. ##
44802 ## --------------------- ##
44803
44804 # Be Bourne compatible
44805 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44806 emulate sh
44807 NULLCMD=:
44808 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44809 # is contrary to our usage. Disable this feature.
44810 alias -g '${1+"$@"}'='"$@"'
44811 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44812 set -o posix
44813 fi
44814 DUALCASE=1; export DUALCASE # for MKS sh
44815
44816 # Support unset when possible.
44817 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44818 as_unset=unset
44819 else
44820 as_unset=false
44821 fi
44822
44823
44824 # Work around bugs in pre-3.0 UWIN ksh.
44825 $as_unset ENV MAIL MAILPATH
44826 PS1='$ '
44827 PS2='> '
44828 PS4='+ '
44829
44830 # NLS nuisances.
44831 for as_var in \
44832 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44833 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44834 LC_TELEPHONE LC_TIME
44835 do
44836 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44837 eval $as_var=C; export $as_var
44838 else
44839 $as_unset $as_var
44840 fi
44841 done
44842
44843 # Required to use basename.
44844 if expr a : '\(a\)' >/dev/null 2>&1; then
44845 as_expr=expr
44846 else
44847 as_expr=false
44848 fi
44849
44850 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
44851 as_basename=basename
44852 else
44853 as_basename=false
44854 fi
44855
44856
44857 # Name of the executable.
44858 as_me=`$as_basename "$0" ||
44859 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44860 X"$0" : 'X\(//\)$' \| \
44861 X"$0" : 'X\(/\)$' \| \
44862 . : '\(.\)' 2>/dev/null ||
44863 echo X/"$0" |
44864 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
44865 /^X\/\(\/\/\)$/{ s//\1/; q; }
44866 /^X\/\(\/\).*/{ s//\1/; q; }
44867 s/.*/./; q'`
44868
44869
44870 # PATH needs CR, and LINENO needs CR and PATH.
44871 # Avoid depending upon Character Ranges.
44872 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44873 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44874 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44875 as_cr_digits='0123456789'
44876 as_cr_alnum=$as_cr_Letters$as_cr_digits
44877
44878 # The user is always right.
44879 if test "${PATH_SEPARATOR+set}" != set; then
44880 echo "#! /bin/sh" >conf$$.sh
44881 echo "exit 0" >>conf$$.sh
44882 chmod +x conf$$.sh
44883 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44884 PATH_SEPARATOR=';'
44885 else
44886 PATH_SEPARATOR=:
44887 fi
44888 rm -f conf$$.sh
44889 fi
44890
44891
44892 as_lineno_1=$LINENO
44893 as_lineno_2=$LINENO
44894 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44895 test "x$as_lineno_1" != "x$as_lineno_2" &&
44896 test "x$as_lineno_3" = "x$as_lineno_2" || {
44897 # Find who we are. Look in the path if we contain no path at all
44898 # relative or not.
44899 case $0 in
44900 *[\\/]* ) as_myself=$0 ;;
44901 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44902 for as_dir in $PATH
44903 do
44904 IFS=$as_save_IFS
44905 test -z "$as_dir" && as_dir=.
44906 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44907 done
44908
44909 ;;
44910 esac
44911 # We did not find ourselves, most probably we were run as `sh COMMAND'
44912 # in which case we are not to be found in the path.
44913 if test "x$as_myself" = x; then
44914 as_myself=$0
44915 fi
44916 if test ! -f "$as_myself"; then
44917 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
44918 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
44919 { (exit 1); exit 1; }; }
44920 fi
44921 case $CONFIG_SHELL in
44922 '')
44923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44924 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
44925 do
44926 IFS=$as_save_IFS
44927 test -z "$as_dir" && as_dir=.
44928 for as_base in sh bash ksh sh5; do
44929 case $as_dir in
44930 /*)
44931 if ("$as_dir/$as_base" -c '
44932 as_lineno_1=$LINENO
44933 as_lineno_2=$LINENO
44934 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
44935 test "x$as_lineno_1" != "x$as_lineno_2" &&
44936 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
44937 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
44938 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
44939 CONFIG_SHELL=$as_dir/$as_base
44940 export CONFIG_SHELL
44941 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
44942 fi;;
44943 esac
44944 done
44945 done
44946 ;;
44947 esac
44948
44949 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44950 # uniformly replaced by the line number. The first 'sed' inserts a
44951 # line-number line before each line; the second 'sed' does the real
44952 # work. The second script uses 'N' to pair each line-number line
44953 # with the numbered line, and appends trailing '-' during
44954 # substitution so that $LINENO is not a special case at line end.
44955 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44956 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
44957 sed '=' <$as_myself |
44958 sed '
44959 N
44960 s,$,-,
44961 : loop
44962 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
44963 t loop
44964 s,-$,,
44965 s,^['$as_cr_digits']*\n,,
44966 ' >$as_me.lineno &&
44967 chmod +x $as_me.lineno ||
44968 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
44969 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
44970 { (exit 1); exit 1; }; }
44971
44972 # Don't try to exec as it changes $[0], causing all sort of problems
44973 # (the dirname of $[0] is not the place where we might find the
44974 # original and so on. Autoconf is especially sensible to this).
44975 . ./$as_me.lineno
44976 # Exit status is that of the last command.
44977 exit
44978 }
44979
44980
44981 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
44982 *c*,-n*) ECHO_N= ECHO_C='
44983 ' ECHO_T=' ' ;;
44984 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
44985 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
44986 esac
44987
44988 if expr a : '\(a\)' >/dev/null 2>&1; then
44989 as_expr=expr
44990 else
44991 as_expr=false
44992 fi
44993
44994 rm -f conf$$ conf$$.exe conf$$.file
44995 echo >conf$$.file
44996 if ln -s conf$$.file conf$$ 2>/dev/null; then
44997 # We could just check for DJGPP; but this test a) works b) is more generic
44998 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
44999 if test -f conf$$.exe; then
45000 # Don't use ln at all; we don't have any links
45001 as_ln_s='cp -p'
45002 else
45003 as_ln_s='ln -s'
45004 fi
45005 elif ln conf$$.file conf$$ 2>/dev/null; then
45006 as_ln_s=ln
45007 else
45008 as_ln_s='cp -p'
45009 fi
45010 rm -f conf$$ conf$$.exe conf$$.file
45011
45012 if mkdir -p . 2>/dev/null; then
45013 as_mkdir_p=:
45014 else
45015 test -d ./-p && rmdir ./-p
45016 as_mkdir_p=false
45017 fi
45018
45019 as_executable_p="test -f"
45020
45021 # Sed expression to map a string onto a valid CPP name.
45022 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45023
45024 # Sed expression to map a string onto a valid variable name.
45025 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45026
45027
45028 # IFS
45029 # We need space, tab and new line, in precisely that order.
45030 as_nl='
45031 '
45032 IFS=" $as_nl"
45033
45034 # CDPATH.
45035 $as_unset CDPATH
45036
45037 exec 6>&1
45038
45039 # Open the log real soon, to keep \$[0] and so on meaningful, and to
45040 # report actual input values of CONFIG_FILES etc. instead of their
45041 # values after options handling. Logging --version etc. is OK.
45042 exec 5>>config.log
45043 {
45044 echo
45045 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45046 ## Running $as_me. ##
45047 _ASBOX
45048 } >&5
45049 cat >&5 <<_CSEOF
45050
45051 This file was extended by Squid Web Proxy $as_me 3.0.PRE6-CVS, which was
45052 generated by GNU Autoconf 2.59. Invocation command line was
45053
45054 CONFIG_FILES = $CONFIG_FILES
45055 CONFIG_HEADERS = $CONFIG_HEADERS
45056 CONFIG_LINKS = $CONFIG_LINKS
45057 CONFIG_COMMANDS = $CONFIG_COMMANDS
45058 $ $0 $@
45059
45060 _CSEOF
45061 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
45062 echo >&5
45063 _ACEOF
45064
45065 # Files that config.status was made for.
45066 if test -n "$ac_config_files"; then
45067 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
45068 fi
45069
45070 if test -n "$ac_config_headers"; then
45071 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
45072 fi
45073
45074 if test -n "$ac_config_links"; then
45075 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
45076 fi
45077
45078 if test -n "$ac_config_commands"; then
45079 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
45080 fi
45081
45082 cat >>$CONFIG_STATUS <<\_ACEOF
45083
45084 ac_cs_usage="\
45085 \`$as_me' instantiates files from templates according to the
45086 current configuration.
45087
45088 Usage: $0 [OPTIONS] [FILE]...
45089
45090 -h, --help print this help, then exit
45091 -V, --version print version number, then exit
45092 -q, --quiet do not print progress messages
45093 -d, --debug don't remove temporary files
45094 --recheck update $as_me by reconfiguring in the same conditions
45095 --file=FILE[:TEMPLATE]
45096 instantiate the configuration file FILE
45097 --header=FILE[:TEMPLATE]
45098 instantiate the configuration header FILE
45099
45100 Configuration files:
45101 $config_files
45102
45103 Configuration headers:
45104 $config_headers
45105
45106 Configuration commands:
45107 $config_commands
45108
45109 Report bugs to <bug-autoconf@gnu.org>."
45110 _ACEOF
45111
45112 cat >>$CONFIG_STATUS <<_ACEOF
45113 ac_cs_version="\\
45114 Squid Web Proxy config.status 3.0.PRE6-CVS
45115 configured by $0, generated by GNU Autoconf 2.59,
45116 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
45117
45118 Copyright (C) 2003 Free Software Foundation, Inc.
45119 This config.status script is free software; the Free Software Foundation
45120 gives unlimited permission to copy, distribute and modify it."
45121 srcdir=$srcdir
45122 INSTALL="$INSTALL"
45123 _ACEOF
45124
45125 cat >>$CONFIG_STATUS <<\_ACEOF
45126 # If no file are specified by the user, then we need to provide default
45127 # value. By we need to know if files were specified by the user.
45128 ac_need_defaults=:
45129 while test $# != 0
45130 do
45131 case $1 in
45132 --*=*)
45133 ac_option=`expr "x$1" : 'x\([^=]*\)='`
45134 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
45135 ac_shift=:
45136 ;;
45137 -*)
45138 ac_option=$1
45139 ac_optarg=$2
45140 ac_shift=shift
45141 ;;
45142 *) # This is not an option, so the user has probably given explicit
45143 # arguments.
45144 ac_option=$1
45145 ac_need_defaults=false;;
45146 esac
45147
45148 case $ac_option in
45149 # Handling of the options.
45150 _ACEOF
45151 cat >>$CONFIG_STATUS <<\_ACEOF
45152 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45153 ac_cs_recheck=: ;;
45154 --version | --vers* | -V )
45155 echo "$ac_cs_version"; exit 0 ;;
45156 --he | --h)
45157 # Conflict between --help and --header
45158 { { echo "$as_me:$LINENO: error: ambiguous option: $1
45159 Try \`$0 --help' for more information." >&5
45160 echo "$as_me: error: ambiguous option: $1
45161 Try \`$0 --help' for more information." >&2;}
45162 { (exit 1); exit 1; }; };;
45163 --help | --hel | -h )
45164 echo "$ac_cs_usage"; exit 0 ;;
45165 --debug | --d* | -d )
45166 debug=: ;;
45167 --file | --fil | --fi | --f )
45168 $ac_shift
45169 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
45170 ac_need_defaults=false;;
45171 --header | --heade | --head | --hea )
45172 $ac_shift
45173 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
45174 ac_need_defaults=false;;
45175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45176 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45177 ac_cs_silent=: ;;
45178
45179 # This is an error.
45180 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
45181 Try \`$0 --help' for more information." >&5
45182 echo "$as_me: error: unrecognized option: $1
45183 Try \`$0 --help' for more information." >&2;}
45184 { (exit 1); exit 1; }; } ;;
45185
45186 *) ac_config_targets="$ac_config_targets $1" ;;
45187
45188 esac
45189 shift
45190 done
45191
45192 ac_configure_extra_args=
45193
45194 if $ac_cs_silent; then
45195 exec 6>/dev/null
45196 ac_configure_extra_args="$ac_configure_extra_args --silent"
45197 fi
45198
45199 _ACEOF
45200 cat >>$CONFIG_STATUS <<_ACEOF
45201 if \$ac_cs_recheck; then
45202 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
45203 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45204 fi
45205
45206 _ACEOF
45207
45208 cat >>$CONFIG_STATUS <<_ACEOF
45209 #
45210 # INIT-COMMANDS section.
45211 #
45212
45213 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
45214
45215 _ACEOF
45216
45217
45218
45219 cat >>$CONFIG_STATUS <<\_ACEOF
45220 for ac_config_target in $ac_config_targets
45221 do
45222 case "$ac_config_target" in
45223 # Handling of arguments.
45224 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45225 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
45226 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
45227 "scripts/RunCache" ) CONFIG_FILES="$CONFIG_FILES scripts/RunCache" ;;
45228 "scripts/RunAccel" ) CONFIG_FILES="$CONFIG_FILES scripts/RunAccel" ;;
45229 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
45230 "src/fs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/fs/Makefile" ;;
45231 "src/repl/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/repl/Makefile" ;;
45232 "src/auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/auth/Makefile" ;;
45233 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
45234 "snmplib/Makefile" ) CONFIG_FILES="$CONFIG_FILES snmplib/Makefile" ;;
45235 "icons/Makefile" ) CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;;
45236 "errors/Makefile" ) CONFIG_FILES="$CONFIG_FILES errors/Makefile" ;;
45237 "test-suite/Makefile" ) CONFIG_FILES="$CONFIG_FILES test-suite/Makefile" ;;
45238 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
45239 "helpers/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/Makefile" ;;
45240 "helpers/basic_auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/Makefile" ;;
45241 "helpers/basic_auth/LDAP/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/LDAP/Makefile" ;;
45242 "helpers/basic_auth/MSNT/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/MSNT/Makefile" ;;
45243 "helpers/basic_auth/NCSA/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/NCSA/Makefile" ;;
45244 "helpers/basic_auth/PAM/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/PAM/Makefile" ;;
45245 "helpers/basic_auth/SMB/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/SMB/Makefile" ;;
45246 "helpers/basic_auth/mswin_sspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/mswin_sspi/Makefile" ;;
45247 "helpers/basic_auth/YP/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/YP/Makefile" ;;
45248 "helpers/basic_auth/getpwnam/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/getpwnam/Makefile" ;;
45249 "helpers/basic_auth/multi-domain-NTLM/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/multi-domain-NTLM/Makefile" ;;
45250 "helpers/basic_auth/SASL/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/SASL/Makefile" ;;
45251 "helpers/basic_auth/POP3/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/POP3/Makefile" ;;
45252 "helpers/basic_auth/DB/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/DB/Makefile" ;;
45253 "helpers/basic_auth/squid_radius_auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/basic_auth/squid_radius_auth/Makefile" ;;
45254 "helpers/digest_auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/digest_auth/Makefile" ;;
45255 "helpers/digest_auth/password/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/digest_auth/password/Makefile" ;;
45256 "helpers/digest_auth/ldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/digest_auth/ldap/Makefile" ;;
45257 "helpers/digest_auth/eDirectory/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/digest_auth/eDirectory/Makefile" ;;
45258 "helpers/ntlm_auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/Makefile" ;;
45259 "helpers/ntlm_auth/fakeauth/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/fakeauth/Makefile" ;;
45260 "helpers/ntlm_auth/no_check/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/no_check/Makefile" ;;
45261 "helpers/ntlm_auth/SMB/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/SMB/Makefile" ;;
45262 "helpers/ntlm_auth/SMB/smbval/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/SMB/smbval/Makefile" ;;
45263 "helpers/ntlm_auth/mswin_sspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/ntlm_auth/mswin_sspi/Makefile" ;;
45264 "helpers/negotiate_auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/negotiate_auth/Makefile" ;;
45265 "helpers/negotiate_auth/mswin_sspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/negotiate_auth/mswin_sspi/Makefile" ;;
45266 "helpers/negotiate_auth/squid_kerb_auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/negotiate_auth/squid_kerb_auth/Makefile" ;;
45267 "helpers/external_acl/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/external_acl/Makefile" ;;
45268 "helpers/external_acl/ip_user/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/external_acl/ip_user/Makefile" ;;
45269 "helpers/external_acl/ldap_group/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/external_acl/ldap_group/Makefile" ;;
45270 "helpers/external_acl/session/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/external_acl/session/Makefile" ;;
45271 "helpers/external_acl/unix_group/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/external_acl/unix_group/Makefile" ;;
45272 "helpers/external_acl/wbinfo_group/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/external_acl/wbinfo_group/Makefile" ;;
45273 "helpers/external_acl/mswin_lm_group/Makefile" ) CONFIG_FILES="$CONFIG_FILES helpers/external_acl/mswin_lm_group/Makefile" ;;
45274 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
45275 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
45276 "include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/autoconf.h" ;;
45277 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45278 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45279 { (exit 1); exit 1; }; };;
45280 esac
45281 done
45282
45283 # If the user did not use the arguments to specify the items to instantiate,
45284 # then the envvar interface is used. Set only those that are not.
45285 # We use the long form for the default assignment because of an extremely
45286 # bizarre bug on SunOS 4.1.3.
45287 if $ac_need_defaults; then
45288 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45289 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45290 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45291 fi
45292
45293 # Have a temporary directory for convenience. Make it in the build tree
45294 # simply because there is no reason to put it here, and in addition,
45295 # creating and moving files from /tmp can sometimes cause problems.
45296 # Create a temporary directory, and hook for its removal unless debugging.
45297 $debug ||
45298 {
45299 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
45300 trap '{ (exit 1); exit 1; }' 1 2 13 15
45301 }
45302
45303 # Create a (secure) tmp directory for tmp files.
45304
45305 {
45306 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
45307 test -n "$tmp" && test -d "$tmp"
45308 } ||
45309 {
45310 tmp=./confstat$$-$RANDOM
45311 (umask 077 && mkdir $tmp)
45312 } ||
45313 {
45314 echo "$me: cannot create a temporary directory in ." >&2
45315 { (exit 1); exit 1; }
45316 }
45317
45318 _ACEOF
45319
45320 cat >>$CONFIG_STATUS <<_ACEOF
45321
45322 #
45323 # CONFIG_FILES section.
45324 #
45325
45326 # No need to generate the scripts if there are no CONFIG_FILES.
45327 # This happens for instance when ./config.status config.h
45328 if test -n "\$CONFIG_FILES"; then
45329 # Protect against being on the right side of a sed subst in config.status.
45330 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
45331 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
45332 s,@SHELL@,$SHELL,;t t
45333 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
45334 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
45335 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
45336 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
45337 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
45338 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
45339 s,@exec_prefix@,$exec_prefix,;t t
45340 s,@prefix@,$prefix,;t t
45341 s,@program_transform_name@,$program_transform_name,;t t
45342 s,@bindir@,$bindir,;t t
45343 s,@sbindir@,$sbindir,;t t
45344 s,@libexecdir@,$libexecdir,;t t
45345 s,@datadir@,$datadir,;t t
45346 s,@sysconfdir@,$sysconfdir,;t t
45347 s,@sharedstatedir@,$sharedstatedir,;t t
45348 s,@localstatedir@,$localstatedir,;t t
45349 s,@libdir@,$libdir,;t t
45350 s,@includedir@,$includedir,;t t
45351 s,@oldincludedir@,$oldincludedir,;t t
45352 s,@infodir@,$infodir,;t t
45353 s,@mandir@,$mandir,;t t
45354 s,@build_alias@,$build_alias,;t t
45355 s,@host_alias@,$host_alias,;t t
45356 s,@target_alias@,$target_alias,;t t
45357 s,@DEFS@,$DEFS,;t t
45358 s,@ECHO_C@,$ECHO_C,;t t
45359 s,@ECHO_N@,$ECHO_N,;t t
45360 s,@ECHO_T@,$ECHO_T,;t t
45361 s,@LIBS@,$LIBS,;t t
45362 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
45363 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
45364 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
45365 s,@CYGPATH_W@,$CYGPATH_W,;t t
45366 s,@PACKAGE@,$PACKAGE,;t t
45367 s,@VERSION@,$VERSION,;t t
45368 s,@ACLOCAL@,$ACLOCAL,;t t
45369 s,@AUTOCONF@,$AUTOCONF,;t t
45370 s,@AUTOMAKE@,$AUTOMAKE,;t t
45371 s,@AUTOHEADER@,$AUTOHEADER,;t t
45372 s,@MAKEINFO@,$MAKEINFO,;t t
45373 s,@install_sh@,$install_sh,;t t
45374 s,@STRIP@,$STRIP,;t t
45375 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
45376 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
45377 s,@mkdir_p@,$mkdir_p,;t t
45378 s,@AWK@,$AWK,;t t
45379 s,@SET_MAKE@,$SET_MAKE,;t t
45380 s,@am__leading_dot@,$am__leading_dot,;t t
45381 s,@AMTAR@,$AMTAR,;t t
45382 s,@am__tar@,$am__tar,;t t
45383 s,@am__untar@,$am__untar,;t t
45384 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
45385 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
45386 s,@MAINT@,$MAINT,;t t
45387 s,@CC@,$CC,;t t
45388 s,@CFLAGS@,$CFLAGS,;t t
45389 s,@LDFLAGS@,$LDFLAGS,;t t
45390 s,@CPPFLAGS@,$CPPFLAGS,;t t
45391 s,@ac_ct_CC@,$ac_ct_CC,;t t
45392 s,@EXEEXT@,$EXEEXT,;t t
45393 s,@OBJEXT@,$OBJEXT,;t t
45394 s,@DEPDIR@,$DEPDIR,;t t
45395 s,@am__include@,$am__include,;t t
45396 s,@am__quote@,$am__quote,;t t
45397 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
45398 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
45399 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
45400 s,@CCDEPMODE@,$CCDEPMODE,;t t
45401 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
45402 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
45403 s,@CXX@,$CXX,;t t
45404 s,@CXXFLAGS@,$CXXFLAGS,;t t
45405 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
45406 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
45407 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
45408 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
45409 s,@build@,$build,;t t
45410 s,@build_cpu@,$build_cpu,;t t
45411 s,@build_vendor@,$build_vendor,;t t
45412 s,@build_os@,$build_os,;t t
45413 s,@host@,$host,;t t
45414 s,@host_cpu@,$host_cpu,;t t
45415 s,@host_vendor@,$host_vendor,;t t
45416 s,@host_os@,$host_os,;t t
45417 s,@EGREP@,$EGREP,;t t
45418 s,@LN_S@,$LN_S,;t t
45419 s,@ECHO@,$ECHO,;t t
45420 s,@AR@,$AR,;t t
45421 s,@ac_ct_AR@,$ac_ct_AR,;t t
45422 s,@RANLIB@,$RANLIB,;t t
45423 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
45424 s,@CPP@,$CPP,;t t
45425 s,@CXXCPP@,$CXXCPP,;t t
45426 s,@F77@,$F77,;t t
45427 s,@FFLAGS@,$FFLAGS,;t t
45428 s,@ac_ct_F77@,$ac_ct_F77,;t t
45429 s,@LIBTOOL@,$LIBTOOL,;t t
45430 s,@LIBADD_DL@,$LIBADD_DL,;t t
45431 s,@CGIEXT@,$CGIEXT,;t t
45432 s,@ENABLE_WIN32SPECIFIC_TRUE@,$ENABLE_WIN32SPECIFIC_TRUE,;t t
45433 s,@ENABLE_WIN32SPECIFIC_FALSE@,$ENABLE_WIN32SPECIFIC_FALSE,;t t
45434 s,@WIN32_PSAPI@,$WIN32_PSAPI,;t t
45435 s,@USE_IPC_WIN32_TRUE@,$USE_IPC_WIN32_TRUE,;t t
45436 s,@USE_IPC_WIN32_FALSE@,$USE_IPC_WIN32_FALSE,;t t
45437 s,@MINGW_LIBS@,$MINGW_LIBS,;t t
45438 s,@CACHE_HTTP_PORT@,$CACHE_HTTP_PORT,;t t
45439 s,@CACHE_ICP_PORT@,$CACHE_ICP_PORT,;t t
45440 s,@SQUID_CFLAGS@,$SQUID_CFLAGS,;t t
45441 s,@SQUID_CXXFLAGS@,$SQUID_CXXFLAGS,;t t
45442 s,@LIBDLMALLOC@,$LIBDLMALLOC,;t t
45443 s,@LIB_MALLOC@,$LIB_MALLOC,;t t
45444 s,@STORE_OBJS@,$STORE_OBJS,;t t
45445 s,@STORE_LIBS@,$STORE_LIBS,;t t
45446 s,@STORE_LINKOBJS@,$STORE_LINKOBJS,;t t
45447 s,@STORE_TESTS@,$STORE_TESTS,;t t
45448 s,@DISK_LIBS@,$DISK_LIBS,;t t
45449 s,@DISK_PROGRAMS@,$DISK_PROGRAMS,;t t
45450 s,@DISK_LINKOBJS@,$DISK_LINKOBJS,;t t
45451 s,@USE_AIOPS_WIN32_TRUE@,$USE_AIOPS_WIN32_TRUE,;t t
45452 s,@USE_AIOPS_WIN32_FALSE@,$USE_AIOPS_WIN32_FALSE,;t t
45453 s,@USE_AIO_WIN32_TRUE@,$USE_AIO_WIN32_TRUE,;t t
45454 s,@USE_AIO_WIN32_FALSE@,$USE_AIO_WIN32_FALSE,;t t
45455 s,@REPL_POLICIES@,$REPL_POLICIES,;t t
45456 s,@REPL_OBJS@,$REPL_OBJS,;t t
45457 s,@REPL_LIBS@,$REPL_LIBS,;t t
45458 s,@ENABLE_PINGER_TRUE@,$ENABLE_PINGER_TRUE,;t t
45459 s,@ENABLE_PINGER_FALSE@,$ENABLE_PINGER_FALSE,;t t
45460 s,@USE_DELAY_POOLS_TRUE@,$USE_DELAY_POOLS_TRUE,;t t
45461 s,@USE_DELAY_POOLS_FALSE@,$USE_DELAY_POOLS_FALSE,;t t
45462 s,@USE_ESI_TRUE@,$USE_ESI_TRUE,;t t
45463 s,@USE_ESI_FALSE@,$USE_ESI_FALSE,;t t
45464 s,@USE_ICAP_CLIENT_TRUE@,$USE_ICAP_CLIENT_TRUE,;t t
45465 s,@USE_ICAP_CLIENT_FALSE@,$USE_ICAP_CLIENT_FALSE,;t t
45466 s,@ICAP_LIBS@,$ICAP_LIBS,;t t
45467 s,@USE_SNMP_TRUE@,$USE_SNMP_TRUE,;t t
45468 s,@USE_SNMP_FALSE@,$USE_SNMP_FALSE,;t t
45469 s,@SNMPLIB@,$SNMPLIB,;t t
45470 s,@makesnmplib@,$makesnmplib,;t t
45471 s,@ENABLE_ARP_ACL_TRUE@,$ENABLE_ARP_ACL_TRUE,;t t
45472 s,@ENABLE_ARP_ACL_FALSE@,$ENABLE_ARP_ACL_FALSE,;t t
45473 s,@ENABLE_HTCP_TRUE@,$ENABLE_HTCP_TRUE,;t t
45474 s,@ENABLE_HTCP_FALSE@,$ENABLE_HTCP_FALSE,;t t
45475 s,@ENABLE_SSL_TRUE@,$ENABLE_SSL_TRUE,;t t
45476 s,@ENABLE_SSL_FALSE@,$ENABLE_SSL_FALSE,;t t
45477 s,@NEED_OWN_MD5_TRUE@,$NEED_OWN_MD5_TRUE,;t t
45478 s,@NEED_OWN_MD5_FALSE@,$NEED_OWN_MD5_FALSE,;t t
45479 s,@SSLLIB@,$SSLLIB,;t t
45480 s,@ERR_DEFAULT_LANGUAGE@,$ERR_DEFAULT_LANGUAGE,;t t
45481 s,@ERR_LANGUAGES@,$ERR_LANGUAGES,;t t
45482 s,@MAKE_LEAKFINDER_TRUE@,$MAKE_LEAKFINDER_TRUE,;t t
45483 s,@MAKE_LEAKFINDER_FALSE@,$MAKE_LEAKFINDER_FALSE,;t t
45484 s,@ENABLE_IDENT_TRUE@,$ENABLE_IDENT_TRUE,;t t
45485 s,@ENABLE_IDENT_FALSE@,$ENABLE_IDENT_FALSE,;t t
45486 s,@USE_DNSSERVER_TRUE@,$USE_DNSSERVER_TRUE,;t t
45487 s,@USE_DNSSERVER_FALSE@,$USE_DNSSERVER_FALSE,;t t
45488 s,@OPT_DEFAULT_HOSTS@,$OPT_DEFAULT_HOSTS,;t t
45489 s,@AUTH_MODULES@,$AUTH_MODULES,;t t
45490 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
45491 s,@AUTH_LINKOBJS@,$AUTH_LINKOBJS,;t t
45492 s,@AUTH_OBJS@,$AUTH_OBJS,;t t
45493 s,@BASIC_AUTH_HELPERS@,$BASIC_AUTH_HELPERS,;t t
45494 s,@NTLM_AUTH_HELPERS@,$NTLM_AUTH_HELPERS,;t t
45495 s,@NEGOTIATE_AUTH_HELPERS@,$NEGOTIATE_AUTH_HELPERS,;t t
45496 s,@DIGEST_AUTH_HELPERS@,$DIGEST_AUTH_HELPERS,;t t
45497 s,@EXTERNAL_ACL_HELPERS@,$EXTERNAL_ACL_HELPERS,;t t
45498 s,@LIBSASL@,$LIBSASL,;t t
45499 s,@ENABLE_UNLINKD_TRUE@,$ENABLE_UNLINKD_TRUE,;t t
45500 s,@ENABLE_UNLINKD_FALSE@,$ENABLE_UNLINKD_FALSE,;t t
45501 s,@ENABLE_XPROF_STATS_TRUE@,$ENABLE_XPROF_STATS_TRUE,;t t
45502 s,@ENABLE_XPROF_STATS_FALSE@,$ENABLE_XPROF_STATS_FALSE,;t t
45503 s,@CPPUNITCONFIG@,$CPPUNITCONFIG,;t t
45504 s,@SQUID_CPPUNIT_LIBS@,$SQUID_CPPUNIT_LIBS,;t t
45505 s,@SQUID_CPPUNIT_LA@,$SQUID_CPPUNIT_LA,;t t
45506 s,@SQUID_CPPUNIT_INC@,$SQUID_CPPUNIT_INC,;t t
45507 s,@SH@,$SH,;t t
45508 s,@FALSE@,$FALSE,;t t
45509 s,@TRUE@,$TRUE,;t t
45510 s,@RM@,$RM,;t t
45511 s,@MV@,$MV,;t t
45512 s,@MKDIR@,$MKDIR,;t t
45513 s,@LN@,$LN,;t t
45514 s,@PERL@,$PERL,;t t
45515 s,@AR_R@,$AR_R,;t t
45516 s,@ALLOCA@,$ALLOCA,;t t
45517 s,@CRYPTLIB@,$CRYPTLIB,;t t
45518 s,@LIB_LDAP@,$LIB_LDAP,;t t
45519 s,@LIB_LBER@,$LIB_LBER,;t t
45520 s,@LIB_DB@,$LIB_DB,;t t
45521 s,@EPOLL_LIBS@,$EPOLL_LIBS,;t t
45522 s,@USE_POLL_TRUE@,$USE_POLL_TRUE,;t t
45523 s,@USE_POLL_FALSE@,$USE_POLL_FALSE,;t t
45524 s,@USE_EPOLL_TRUE@,$USE_EPOLL_TRUE,;t t
45525 s,@USE_EPOLL_FALSE@,$USE_EPOLL_FALSE,;t t
45526 s,@USE_SELECT_TRUE@,$USE_SELECT_TRUE,;t t
45527 s,@USE_SELECT_FALSE@,$USE_SELECT_FALSE,;t t
45528 s,@USE_SELECT_SIMPLE_TRUE@,$USE_SELECT_SIMPLE_TRUE,;t t
45529 s,@USE_SELECT_SIMPLE_FALSE@,$USE_SELECT_SIMPLE_FALSE,;t t
45530 s,@USE_SELECT_WIN32_TRUE@,$USE_SELECT_WIN32_TRUE,;t t
45531 s,@USE_SELECT_WIN32_FALSE@,$USE_SELECT_WIN32_FALSE,;t t
45532 s,@USE_KQUEUE_TRUE@,$USE_KQUEUE_TRUE,;t t
45533 s,@USE_KQUEUE_FALSE@,$USE_KQUEUE_FALSE,;t t
45534 s,@USE_DEVPOLL_TRUE@,$USE_DEVPOLL_TRUE,;t t
45535 s,@USE_DEVPOLL_FALSE@,$USE_DEVPOLL_FALSE,;t t
45536 s,@NEED_OWN_SNPRINTF_TRUE@,$NEED_OWN_SNPRINTF_TRUE,;t t
45537 s,@NEED_OWN_SNPRINTF_FALSE@,$NEED_OWN_SNPRINTF_FALSE,;t t
45538 s,@NEED_OWN_STRSEP_TRUE@,$NEED_OWN_STRSEP_TRUE,;t t
45539 s,@NEED_OWN_STRSEP_FALSE@,$NEED_OWN_STRSEP_FALSE,;t t
45540 s,@NEED_OWN_STRTOLL_TRUE@,$NEED_OWN_STRTOLL_TRUE,;t t
45541 s,@NEED_OWN_STRTOLL_FALSE@,$NEED_OWN_STRTOLL_FALSE,;t t
45542 s,@REGEXLIB@,$REGEXLIB,;t t
45543 s,@LIBREGEX@,$LIBREGEX,;t t
45544 s,@LIBOBJS@,$LIBOBJS,;t t
45545 s,@XTRA_OBJS@,$XTRA_OBJS,;t t
45546 s,@XTRA_LIBS@,$XTRA_LIBS,;t t
45547 s,@subdirs@,$subdirs,;t t
45548 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
45549 CEOF
45550
45551 _ACEOF
45552
45553 cat >>$CONFIG_STATUS <<\_ACEOF
45554 # Split the substitutions into bite-sized pieces for seds with
45555 # small command number limits, like on Digital OSF/1 and HP-UX.
45556 ac_max_sed_lines=48
45557 ac_sed_frag=1 # Number of current file.
45558 ac_beg=1 # First line for current file.
45559 ac_end=$ac_max_sed_lines # Line after last line for current file.
45560 ac_more_lines=:
45561 ac_sed_cmds=
45562 while $ac_more_lines; do
45563 if test $ac_beg -gt 1; then
45564 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45565 else
45566 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
45567 fi
45568 if test ! -s $tmp/subs.frag; then
45569 ac_more_lines=false
45570 else
45571 # The purpose of the label and of the branching condition is to
45572 # speed up the sed processing (if there are no `@' at all, there
45573 # is no need to browse any of the substitutions).
45574 # These are the two extra sed commands mentioned above.
45575 (echo ':t
45576 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
45577 if test -z "$ac_sed_cmds"; then
45578 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
45579 else
45580 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
45581 fi
45582 ac_sed_frag=`expr $ac_sed_frag + 1`
45583 ac_beg=$ac_end
45584 ac_end=`expr $ac_end + $ac_max_sed_lines`
45585 fi
45586 done
45587 if test -z "$ac_sed_cmds"; then
45588 ac_sed_cmds=cat
45589 fi
45590 fi # test -n "$CONFIG_FILES"
45591
45592 _ACEOF
45593 cat >>$CONFIG_STATUS <<\_ACEOF
45594 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
45595 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45596 case $ac_file in
45597 - | *:- | *:-:* ) # input from stdin
45598 cat >$tmp/stdin
45599 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45600 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45601 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45602 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45603 * ) ac_file_in=$ac_file.in ;;
45604 esac
45605
45606 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
45607 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45608 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45609 X"$ac_file" : 'X\(//\)[^/]' \| \
45610 X"$ac_file" : 'X\(//\)$' \| \
45611 X"$ac_file" : 'X\(/\)' \| \
45612 . : '\(.\)' 2>/dev/null ||
45613 echo X"$ac_file" |
45614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45615 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45616 /^X\(\/\/\)$/{ s//\1/; q; }
45617 /^X\(\/\).*/{ s//\1/; q; }
45618 s/.*/./; q'`
45619 { if $as_mkdir_p; then
45620 mkdir -p "$ac_dir"
45621 else
45622 as_dir="$ac_dir"
45623 as_dirs=
45624 while test ! -d "$as_dir"; do
45625 as_dirs="$as_dir $as_dirs"
45626 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45627 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45628 X"$as_dir" : 'X\(//\)[^/]' \| \
45629 X"$as_dir" : 'X\(//\)$' \| \
45630 X"$as_dir" : 'X\(/\)' \| \
45631 . : '\(.\)' 2>/dev/null ||
45632 echo X"$as_dir" |
45633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45634 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45635 /^X\(\/\/\)$/{ s//\1/; q; }
45636 /^X\(\/\).*/{ s//\1/; q; }
45637 s/.*/./; q'`
45638 done
45639 test ! -n "$as_dirs" || mkdir $as_dirs
45640 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45641 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45642 { (exit 1); exit 1; }; }; }
45643
45644 ac_builddir=.
45645
45646 if test "$ac_dir" != .; then
45647 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45648 # A "../" for each directory in $ac_dir_suffix.
45649 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45650 else
45651 ac_dir_suffix= ac_top_builddir=
45652 fi
45653
45654 case $srcdir in
45655 .) # No --srcdir option. We are building in place.
45656 ac_srcdir=.
45657 if test -z "$ac_top_builddir"; then
45658 ac_top_srcdir=.
45659 else
45660 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45661 fi ;;
45662 [\\/]* | ?:[\\/]* ) # Absolute path.
45663 ac_srcdir=$srcdir$ac_dir_suffix;
45664 ac_top_srcdir=$srcdir ;;
45665 *) # Relative path.
45666 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45667 ac_top_srcdir=$ac_top_builddir$srcdir ;;
45668 esac
45669
45670 # Do not use `cd foo && pwd` to compute absolute paths, because
45671 # the directories may not exist.
45672 case `pwd` in
45673 .) ac_abs_builddir="$ac_dir";;
45674 *)
45675 case "$ac_dir" in
45676 .) ac_abs_builddir=`pwd`;;
45677 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45678 *) ac_abs_builddir=`pwd`/"$ac_dir";;
45679 esac;;
45680 esac
45681 case $ac_abs_builddir in
45682 .) ac_abs_top_builddir=${ac_top_builddir}.;;
45683 *)
45684 case ${ac_top_builddir}. in
45685 .) ac_abs_top_builddir=$ac_abs_builddir;;
45686 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45687 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45688 esac;;
45689 esac
45690 case $ac_abs_builddir in
45691 .) ac_abs_srcdir=$ac_srcdir;;
45692 *)
45693 case $ac_srcdir in
45694 .) ac_abs_srcdir=$ac_abs_builddir;;
45695 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45696 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45697 esac;;
45698 esac
45699 case $ac_abs_builddir in
45700 .) ac_abs_top_srcdir=$ac_top_srcdir;;
45701 *)
45702 case $ac_top_srcdir in
45703 .) ac_abs_top_srcdir=$ac_abs_builddir;;
45704 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45705 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45706 esac;;
45707 esac
45708
45709
45710 case $INSTALL in
45711 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45712 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
45713 esac
45714
45715 if test x"$ac_file" != x-; then
45716 { echo "$as_me:$LINENO: creating $ac_file" >&5
45717 echo "$as_me: creating $ac_file" >&6;}
45718 rm -f "$ac_file"
45719 fi
45720 # Let's still pretend it is `configure' which instantiates (i.e., don't
45721 # use $as_me), people would be surprised to read:
45722 # /* config.h. Generated by config.status. */
45723 if test x"$ac_file" = x-; then
45724 configure_input=
45725 else
45726 configure_input="$ac_file. "
45727 fi
45728 configure_input=$configure_input"Generated from `echo $ac_file_in |
45729 sed 's,.*/,,'` by configure."
45730
45731 # First look for the input files in the build tree, otherwise in the
45732 # src tree.
45733 ac_file_inputs=`IFS=:
45734 for f in $ac_file_in; do
45735 case $f in
45736 -) echo $tmp/stdin ;;
45737 [\\/$]*)
45738 # Absolute (can't be DOS-style, as IFS=:)
45739 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45740 echo "$as_me: error: cannot find input file: $f" >&2;}
45741 { (exit 1); exit 1; }; }
45742 echo "$f";;
45743 *) # Relative
45744 if test -f "$f"; then
45745 # Build tree
45746 echo "$f"
45747 elif test -f "$srcdir/$f"; then
45748 # Source tree
45749 echo "$srcdir/$f"
45750 else
45751 # /dev/null tree
45752 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45753 echo "$as_me: error: cannot find input file: $f" >&2;}
45754 { (exit 1); exit 1; }; }
45755 fi;;
45756 esac
45757 done` || { (exit 1); exit 1; }
45758 _ACEOF
45759 cat >>$CONFIG_STATUS <<_ACEOF
45760 sed "$ac_vpsub
45761 $extrasub
45762 _ACEOF
45763 cat >>$CONFIG_STATUS <<\_ACEOF
45764 :t
45765 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45766 s,@configure_input@,$configure_input,;t t
45767 s,@srcdir@,$ac_srcdir,;t t
45768 s,@abs_srcdir@,$ac_abs_srcdir,;t t
45769 s,@top_srcdir@,$ac_top_srcdir,;t t
45770 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
45771 s,@builddir@,$ac_builddir,;t t
45772 s,@abs_builddir@,$ac_abs_builddir,;t t
45773 s,@top_builddir@,$ac_top_builddir,;t t
45774 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
45775 s,@INSTALL@,$ac_INSTALL,;t t
45776 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
45777 rm -f $tmp/stdin
45778 if test x"$ac_file" != x-; then
45779 mv $tmp/out $ac_file
45780 else
45781 cat $tmp/out
45782 rm -f $tmp/out
45783 fi
45784
45785 done
45786 _ACEOF
45787 cat >>$CONFIG_STATUS <<\_ACEOF
45788
45789 #
45790 # CONFIG_HEADER section.
45791 #
45792
45793 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
45794 # NAME is the cpp macro being defined and VALUE is the value it is being given.
45795 #
45796 # ac_d sets the value in "#define NAME VALUE" lines.
45797 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
45798 ac_dB='[ ].*$,\1#\2'
45799 ac_dC=' '
45800 ac_dD=',;t'
45801 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
45802 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
45803 ac_uB='$,\1#\2define\3'
45804 ac_uC=' '
45805 ac_uD=',;t'
45806
45807 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
45808 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
45809 case $ac_file in
45810 - | *:- | *:-:* ) # input from stdin
45811 cat >$tmp/stdin
45812 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45813 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45814 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
45815 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
45816 * ) ac_file_in=$ac_file.in ;;
45817 esac
45818
45819 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
45820 echo "$as_me: creating $ac_file" >&6;}
45821
45822 # First look for the input files in the build tree, otherwise in the
45823 # src tree.
45824 ac_file_inputs=`IFS=:
45825 for f in $ac_file_in; do
45826 case $f in
45827 -) echo $tmp/stdin ;;
45828 [\\/$]*)
45829 # Absolute (can't be DOS-style, as IFS=:)
45830 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45831 echo "$as_me: error: cannot find input file: $f" >&2;}
45832 { (exit 1); exit 1; }; }
45833 # Do quote $f, to prevent DOS paths from being IFS'd.
45834 echo "$f";;
45835 *) # Relative
45836 if test -f "$f"; then
45837 # Build tree
45838 echo "$f"
45839 elif test -f "$srcdir/$f"; then
45840 # Source tree
45841 echo "$srcdir/$f"
45842 else
45843 # /dev/null tree
45844 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
45845 echo "$as_me: error: cannot find input file: $f" >&2;}
45846 { (exit 1); exit 1; }; }
45847 fi;;
45848 esac
45849 done` || { (exit 1); exit 1; }
45850 # Remove the trailing spaces.
45851 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
45852
45853 _ACEOF
45854
45855 # Transform confdefs.h into two sed scripts, `conftest.defines' and
45856 # `conftest.undefs', that substitutes the proper values into
45857 # config.h.in to produce config.h. The first handles `#define'
45858 # templates, and the second `#undef' templates.
45859 # And first: Protect against being on the right side of a sed subst in
45860 # config.status. Protect against being in an unquoted here document
45861 # in config.status.
45862 rm -f conftest.defines conftest.undefs
45863 # Using a here document instead of a string reduces the quoting nightmare.
45864 # Putting comments in sed scripts is not portable.
45865 #
45866 # `end' is used to avoid that the second main sed command (meant for
45867 # 0-ary CPP macros) applies to n-ary macro definitions.
45868 # See the Autoconf documentation for `clear'.
45869 cat >confdef2sed.sed <<\_ACEOF
45870 s/[\\&,]/\\&/g
45871 s,[\\$`],\\&,g
45872 t clear
45873 : clear
45874 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
45875 t end
45876 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
45877 : end
45878 _ACEOF
45879 # If some macros were called several times there might be several times
45880 # the same #defines, which is useless. Nevertheless, we may not want to
45881 # sort them, since we want the *last* AC-DEFINE to be honored.
45882 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
45883 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
45884 rm -f confdef2sed.sed
45885
45886 # This sed command replaces #undef with comments. This is necessary, for
45887 # example, in the case of _POSIX_SOURCE, which is predefined and required
45888 # on some systems where configure will not decide to define it.
45889 cat >>conftest.undefs <<\_ACEOF
45890 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
45891 _ACEOF
45892
45893 # Break up conftest.defines because some shells have a limit on the size
45894 # of here documents, and old seds have small limits too (100 cmds).
45895 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
45896 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
45897 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
45898 echo ' :' >>$CONFIG_STATUS
45899 rm -f conftest.tail
45900 while grep . conftest.defines >/dev/null
45901 do
45902 # Write a limited-size here document to $tmp/defines.sed.
45903 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
45904 # Speed up: don't consider the non `#define' lines.
45905 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
45906 # Work around the forget-to-reset-the-flag bug.
45907 echo 't clr' >>$CONFIG_STATUS
45908 echo ': clr' >>$CONFIG_STATUS
45909 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
45910 echo 'CEOF
45911 sed -f $tmp/defines.sed $tmp/in >$tmp/out
45912 rm -f $tmp/in
45913 mv $tmp/out $tmp/in
45914 ' >>$CONFIG_STATUS
45915 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
45916 rm -f conftest.defines
45917 mv conftest.tail conftest.defines
45918 done
45919 rm -f conftest.defines
45920 echo ' fi # grep' >>$CONFIG_STATUS
45921 echo >>$CONFIG_STATUS
45922
45923 # Break up conftest.undefs because some shells have a limit on the size
45924 # of here documents, and old seds have small limits too (100 cmds).
45925 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
45926 rm -f conftest.tail
45927 while grep . conftest.undefs >/dev/null
45928 do
45929 # Write a limited-size here document to $tmp/undefs.sed.
45930 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
45931 # Speed up: don't consider the non `#undef'
45932 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
45933 # Work around the forget-to-reset-the-flag bug.
45934 echo 't clr' >>$CONFIG_STATUS
45935 echo ': clr' >>$CONFIG_STATUS
45936 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
45937 echo 'CEOF
45938 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
45939 rm -f $tmp/in
45940 mv $tmp/out $tmp/in
45941 ' >>$CONFIG_STATUS
45942 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
45943 rm -f conftest.undefs
45944 mv conftest.tail conftest.undefs
45945 done
45946 rm -f conftest.undefs
45947
45948 cat >>$CONFIG_STATUS <<\_ACEOF
45949 # Let's still pretend it is `configure' which instantiates (i.e., don't
45950 # use $as_me), people would be surprised to read:
45951 # /* config.h. Generated by config.status. */
45952 if test x"$ac_file" = x-; then
45953 echo "/* Generated by configure. */" >$tmp/config.h
45954 else
45955 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
45956 fi
45957 cat $tmp/in >>$tmp/config.h
45958 rm -f $tmp/in
45959 if test x"$ac_file" != x-; then
45960 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
45961 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45962 echo "$as_me: $ac_file is unchanged" >&6;}
45963 else
45964 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
45965 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45966 X"$ac_file" : 'X\(//\)[^/]' \| \
45967 X"$ac_file" : 'X\(//\)$' \| \
45968 X"$ac_file" : 'X\(/\)' \| \
45969 . : '\(.\)' 2>/dev/null ||
45970 echo X"$ac_file" |
45971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45972 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45973 /^X\(\/\/\)$/{ s//\1/; q; }
45974 /^X\(\/\).*/{ s//\1/; q; }
45975 s/.*/./; q'`
45976 { if $as_mkdir_p; then
45977 mkdir -p "$ac_dir"
45978 else
45979 as_dir="$ac_dir"
45980 as_dirs=
45981 while test ! -d "$as_dir"; do
45982 as_dirs="$as_dir $as_dirs"
45983 as_dir=`(dirname "$as_dir") 2>/dev/null ||
45984 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45985 X"$as_dir" : 'X\(//\)[^/]' \| \
45986 X"$as_dir" : 'X\(//\)$' \| \
45987 X"$as_dir" : 'X\(/\)' \| \
45988 . : '\(.\)' 2>/dev/null ||
45989 echo X"$as_dir" |
45990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45991 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45992 /^X\(\/\/\)$/{ s//\1/; q; }
45993 /^X\(\/\).*/{ s//\1/; q; }
45994 s/.*/./; q'`
45995 done
45996 test ! -n "$as_dirs" || mkdir $as_dirs
45997 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45998 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45999 { (exit 1); exit 1; }; }; }
46000
46001 rm -f $ac_file
46002 mv $tmp/config.h $ac_file
46003 fi
46004 else
46005 cat $tmp/config.h
46006 rm -f $tmp/config.h
46007 fi
46008 # Compute $ac_file's index in $config_headers.
46009 _am_stamp_count=1
46010 for _am_header in $config_headers :; do
46011 case $_am_header in
46012 $ac_file | $ac_file:* )
46013 break ;;
46014 * )
46015 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46016 esac
46017 done
46018 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
46019 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46020 X$ac_file : 'X\(//\)[^/]' \| \
46021 X$ac_file : 'X\(//\)$' \| \
46022 X$ac_file : 'X\(/\)' \| \
46023 . : '\(.\)' 2>/dev/null ||
46024 echo X$ac_file |
46025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46026 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46027 /^X\(\/\/\)$/{ s//\1/; q; }
46028 /^X\(\/\).*/{ s//\1/; q; }
46029 s/.*/./; q'`/stamp-h$_am_stamp_count
46030 done
46031 _ACEOF
46032 cat >>$CONFIG_STATUS <<\_ACEOF
46033
46034 #
46035 # CONFIG_COMMANDS section.
46036 #
46037 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
46038 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
46039 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
46040 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
46041 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46042 X"$ac_dest" : 'X\(//\)[^/]' \| \
46043 X"$ac_dest" : 'X\(//\)$' \| \
46044 X"$ac_dest" : 'X\(/\)' \| \
46045 . : '\(.\)' 2>/dev/null ||
46046 echo X"$ac_dest" |
46047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46048 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46049 /^X\(\/\/\)$/{ s//\1/; q; }
46050 /^X\(\/\).*/{ s//\1/; q; }
46051 s/.*/./; q'`
46052 { if $as_mkdir_p; then
46053 mkdir -p "$ac_dir"
46054 else
46055 as_dir="$ac_dir"
46056 as_dirs=
46057 while test ! -d "$as_dir"; do
46058 as_dirs="$as_dir $as_dirs"
46059 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46060 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46061 X"$as_dir" : 'X\(//\)[^/]' \| \
46062 X"$as_dir" : 'X\(//\)$' \| \
46063 X"$as_dir" : 'X\(/\)' \| \
46064 . : '\(.\)' 2>/dev/null ||
46065 echo X"$as_dir" |
46066 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46067 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46068 /^X\(\/\/\)$/{ s//\1/; q; }
46069 /^X\(\/\).*/{ s//\1/; q; }
46070 s/.*/./; q'`
46071 done
46072 test ! -n "$as_dirs" || mkdir $as_dirs
46073 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46074 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46075 { (exit 1); exit 1; }; }; }
46076
46077 ac_builddir=.
46078
46079 if test "$ac_dir" != .; then
46080 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46081 # A "../" for each directory in $ac_dir_suffix.
46082 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46083 else
46084 ac_dir_suffix= ac_top_builddir=
46085 fi
46086
46087 case $srcdir in
46088 .) # No --srcdir option. We are building in place.
46089 ac_srcdir=.
46090 if test -z "$ac_top_builddir"; then
46091 ac_top_srcdir=.
46092 else
46093 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46094 fi ;;
46095 [\\/]* | ?:[\\/]* ) # Absolute path.
46096 ac_srcdir=$srcdir$ac_dir_suffix;
46097 ac_top_srcdir=$srcdir ;;
46098 *) # Relative path.
46099 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46100 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46101 esac
46102
46103 # Do not use `cd foo && pwd` to compute absolute paths, because
46104 # the directories may not exist.
46105 case `pwd` in
46106 .) ac_abs_builddir="$ac_dir";;
46107 *)
46108 case "$ac_dir" in
46109 .) ac_abs_builddir=`pwd`;;
46110 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46111 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46112 esac;;
46113 esac
46114 case $ac_abs_builddir in
46115 .) ac_abs_top_builddir=${ac_top_builddir}.;;
46116 *)
46117 case ${ac_top_builddir}. in
46118 .) ac_abs_top_builddir=$ac_abs_builddir;;
46119 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46120 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46121 esac;;
46122 esac
46123 case $ac_abs_builddir in
46124 .) ac_abs_srcdir=$ac_srcdir;;
46125 *)
46126 case $ac_srcdir in
46127 .) ac_abs_srcdir=$ac_abs_builddir;;
46128 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46129 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46130 esac;;
46131 esac
46132 case $ac_abs_builddir in
46133 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46134 *)
46135 case $ac_top_srcdir in
46136 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46137 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46138 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46139 esac;;
46140 esac
46141
46142
46143 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
46144 echo "$as_me: executing $ac_dest commands" >&6;}
46145 case $ac_dest in
46146 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
46147 # Strip MF so we end up with the name of the file.
46148 mf=`echo "$mf" | sed -e 's/:.*$//'`
46149 # Check whether this is an Automake generated Makefile or not.
46150 # We used to match only the files named `Makefile.in', but
46151 # some people rename them; so instead we look at the file content.
46152 # Grep'ing the first line is not enough: some people post-process
46153 # each Makefile.in and add a new line on top of each file to say so.
46154 # So let's grep whole file.
46155 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
46156 dirpart=`(dirname "$mf") 2>/dev/null ||
46157 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46158 X"$mf" : 'X\(//\)[^/]' \| \
46159 X"$mf" : 'X\(//\)$' \| \
46160 X"$mf" : 'X\(/\)' \| \
46161 . : '\(.\)' 2>/dev/null ||
46162 echo X"$mf" |
46163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46165 /^X\(\/\/\)$/{ s//\1/; q; }
46166 /^X\(\/\).*/{ s//\1/; q; }
46167 s/.*/./; q'`
46168 else
46169 continue
46170 fi
46171 # Extract the definition of DEPDIR, am__include, and am__quote
46172 # from the Makefile without running `make'.
46173 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
46174 test -z "$DEPDIR" && continue
46175 am__include=`sed -n 's/^am__include = //p' < "$mf"`
46176 test -z "am__include" && continue
46177 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
46178 # When using ansi2knr, U may be empty or an underscore; expand it
46179 U=`sed -n 's/^U = //p' < "$mf"`
46180 # Find all dependency output files, they are included files with
46181 # $(DEPDIR) in their names. We invoke sed twice because it is the
46182 # simplest approach to changing $(DEPDIR) to its actual value in the
46183 # expansion.
46184 for file in `sed -n "
46185 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
46186 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
46187 # Make sure the directory exists.
46188 test -f "$dirpart/$file" && continue
46189 fdir=`(dirname "$file") 2>/dev/null ||
46190 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46191 X"$file" : 'X\(//\)[^/]' \| \
46192 X"$file" : 'X\(//\)$' \| \
46193 X"$file" : 'X\(/\)' \| \
46194 . : '\(.\)' 2>/dev/null ||
46195 echo X"$file" |
46196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46198 /^X\(\/\/\)$/{ s//\1/; q; }
46199 /^X\(\/\).*/{ s//\1/; q; }
46200 s/.*/./; q'`
46201 { if $as_mkdir_p; then
46202 mkdir -p $dirpart/$fdir
46203 else
46204 as_dir=$dirpart/$fdir
46205 as_dirs=
46206 while test ! -d "$as_dir"; do
46207 as_dirs="$as_dir $as_dirs"
46208 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46209 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46210 X"$as_dir" : 'X\(//\)[^/]' \| \
46211 X"$as_dir" : 'X\(//\)$' \| \
46212 X"$as_dir" : 'X\(/\)' \| \
46213 . : '\(.\)' 2>/dev/null ||
46214 echo X"$as_dir" |
46215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46216 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46217 /^X\(\/\/\)$/{ s//\1/; q; }
46218 /^X\(\/\).*/{ s//\1/; q; }
46219 s/.*/./; q'`
46220 done
46221 test ! -n "$as_dirs" || mkdir $as_dirs
46222 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
46223 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
46224 { (exit 1); exit 1; }; }; }
46225
46226 # echo "creating $dirpart/$file"
46227 echo '# dummy' > "$dirpart/$file"
46228 done
46229 done
46230 ;;
46231 esac
46232 done
46233 _ACEOF
46234
46235 cat >>$CONFIG_STATUS <<\_ACEOF
46236
46237 { (exit 0); exit 0; }
46238 _ACEOF
46239 chmod +x $CONFIG_STATUS
46240 ac_clean_files=$ac_clean_files_save
46241
46242
46243 # configure is writing to config.log, and then calls config.status.
46244 # config.status does its own redirection, appending to config.log.
46245 # Unfortunately, on DOS this fails, as config.log is still kept open
46246 # by configure, so config.status won't be able to write to it; its
46247 # output is simply discarded. So we exec the FD to /dev/null,
46248 # effectively closing config.log, so it can be properly (re)opened and
46249 # appended to by config.status. When coming back to configure, we
46250 # need to make the FD available again.
46251 if test "$no_create" != yes; then
46252 ac_cs_success=:
46253 ac_config_status_args=
46254 test "$silent" = yes &&
46255 ac_config_status_args="$ac_config_status_args --quiet"
46256 exec 5>/dev/null
46257 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46258 exec 5>>config.log
46259 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46260 # would make configure fail if this is the last instruction.
46261 $ac_cs_success || { (exit 1); exit 1; }
46262 fi
46263
46264 #
46265 # CONFIG_SUBDIRS section.
46266 #
46267 if test "$no_recursion" != yes; then
46268
46269 # Remove --cache-file and --srcdir arguments so they do not pile up.
46270 ac_sub_configure_args=
46271 # Add --quiet option if used
46272 test "$silent" = yes &&
46273 ac_sub_configure_args="$ac_sub_configure_args --quiet"
46274 ac_prev=
46275 for ac_arg in $ac_configure_args; do
46276 if test -n "$ac_prev"; then
46277 ac_prev=
46278 continue
46279 fi
46280 case $ac_arg in
46281 -cache-file | --cache-file | --cache-fil | --cache-fi \
46282 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
46283 ac_prev=cache_file ;;
46284 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
46285 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
46286 | --c=*)
46287 ;;
46288 --config-cache | -C)
46289 ;;
46290 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
46291 ac_prev=srcdir ;;
46292 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
46293 ;;
46294 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
46295 ac_prev=prefix ;;
46296 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
46297 ;;
46298 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
46299 esac
46300 done
46301
46302 # Always prepend --prefix to ensure using the same prefix
46303 # in subdir configurations.
46304 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
46305
46306 ac_popdir=`pwd`
46307 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
46308
46309 # Do not complain, so a configure script can configure whichever
46310 # parts of a large source tree are present.
46311 test -d $srcdir/$ac_dir || continue
46312
46313 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
46314 echo "$as_me: configuring in $ac_dir" >&6;}
46315 { if $as_mkdir_p; then
46316 mkdir -p "$ac_dir"
46317 else
46318 as_dir="$ac_dir"
46319 as_dirs=
46320 while test ! -d "$as_dir"; do
46321 as_dirs="$as_dir $as_dirs"
46322 as_dir=`(dirname "$as_dir") 2>/dev/null ||
46323 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46324 X"$as_dir" : 'X\(//\)[^/]' \| \
46325 X"$as_dir" : 'X\(//\)$' \| \
46326 X"$as_dir" : 'X\(/\)' \| \
46327 . : '\(.\)' 2>/dev/null ||
46328 echo X"$as_dir" |
46329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
46330 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
46331 /^X\(\/\/\)$/{ s//\1/; q; }
46332 /^X\(\/\).*/{ s//\1/; q; }
46333 s/.*/./; q'`
46334 done
46335 test ! -n "$as_dirs" || mkdir $as_dirs
46336 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
46337 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
46338 { (exit 1); exit 1; }; }; }
46339
46340 ac_builddir=.
46341
46342 if test "$ac_dir" != .; then
46343 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
46344 # A "../" for each directory in $ac_dir_suffix.
46345 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
46346 else
46347 ac_dir_suffix= ac_top_builddir=
46348 fi
46349
46350 case $srcdir in
46351 .) # No --srcdir option. We are building in place.
46352 ac_srcdir=.
46353 if test -z "$ac_top_builddir"; then
46354 ac_top_srcdir=.
46355 else
46356 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
46357 fi ;;
46358 [\\/]* | ?:[\\/]* ) # Absolute path.
46359 ac_srcdir=$srcdir$ac_dir_suffix;
46360 ac_top_srcdir=$srcdir ;;
46361 *) # Relative path.
46362 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
46363 ac_top_srcdir=$ac_top_builddir$srcdir ;;
46364 esac
46365
46366 # Do not use `cd foo && pwd` to compute absolute paths, because
46367 # the directories may not exist.
46368 case `pwd` in
46369 .) ac_abs_builddir="$ac_dir";;
46370 *)
46371 case "$ac_dir" in
46372 .) ac_abs_builddir=`pwd`;;
46373 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
46374 *) ac_abs_builddir=`pwd`/"$ac_dir";;
46375 esac;;
46376 esac
46377 case $ac_abs_builddir in
46378 .) ac_abs_top_builddir=${ac_top_builddir}.;;
46379 *)
46380 case ${ac_top_builddir}. in
46381 .) ac_abs_top_builddir=$ac_abs_builddir;;
46382 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
46383 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
46384 esac;;
46385 esac
46386 case $ac_abs_builddir in
46387 .) ac_abs_srcdir=$ac_srcdir;;
46388 *)
46389 case $ac_srcdir in
46390 .) ac_abs_srcdir=$ac_abs_builddir;;
46391 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
46392 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
46393 esac;;
46394 esac
46395 case $ac_abs_builddir in
46396 .) ac_abs_top_srcdir=$ac_top_srcdir;;
46397 *)
46398 case $ac_top_srcdir in
46399 .) ac_abs_top_srcdir=$ac_abs_builddir;;
46400 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
46401 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
46402 esac;;
46403 esac
46404
46405
46406 cd $ac_dir
46407
46408 # Check for guested configure; otherwise get Cygnus style configure.
46409 if test -f $ac_srcdir/configure.gnu; then
46410 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
46411 elif test -f $ac_srcdir/configure; then
46412 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
46413 elif test -f $ac_srcdir/configure.in; then
46414 ac_sub_configure=$ac_configure
46415 else
46416 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
46417 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
46418 ac_sub_configure=
46419 fi
46420
46421 # The recursion is here.
46422 if test -n "$ac_sub_configure"; then
46423 # Make the cache file name correct relative to the subdirectory.
46424 case $cache_file in
46425 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
46426 *) # Relative path.
46427 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
46428 esac
46429
46430 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
46431 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
46432 # The eval makes quoting arguments work.
46433 eval $ac_sub_configure $ac_sub_configure_args \
46434 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
46435 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
46436 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
46437 { (exit 1); exit 1; }; }
46438 fi
46439
46440 cd $ac_popdir
46441 done
46442 fi
46443