configure revision 1.1.1.1.4.2 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libevent 2.1.2-alpha-dev.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1
176
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
184 if (eval "$as_required") 2>/dev/null; then :
185 as_have_required=yes
186 else
187 as_have_required=no
188 fi
189 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190
191 else
192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
193 as_found=false
194 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 do
196 IFS=$as_save_IFS
197 test -z "$as_dir" && as_dir=.
198 as_found=:
199 case $as_dir in #(
200 /*)
201 for as_base in sh bash ksh sh5; do
202 # Try only shells that exist, to save several forks.
203 as_shell=$as_dir/$as_base
204 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 CONFIG_SHELL=$as_shell as_have_required=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 break 2
209 fi
210 fi
211 done;;
212 esac
213 as_found=false
214 done
215 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
217 CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219 IFS=$as_save_IFS
220
221
222 if test "x$CONFIG_SHELL" != x; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 case $- in # ((((
232 *v*x* | *x*v* ) as_opts=-vx ;;
233 *v* ) as_opts=-v ;;
234 *x* ) as_opts=-x ;;
235 * ) as_opts= ;;
236 esac
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
238 fi
239
240 if test x$as_have_required = xno; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x${ZSH_VERSION+set} = xset ; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
246 else
247 $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
251 fi
252 exit 1
253 fi
254 fi
255 fi
256 SHELL=${CONFIG_SHELL-/bin/sh}
257 export SHELL
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE= GREP_OPTIONS=
260 unset CLICOLOR_FORCE GREP_OPTIONS
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270 { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279 return $1
280 } # as_fn_set_status
281
282 # as_fn_exit STATUS
283 # -----------------
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
285 as_fn_exit ()
286 {
287 set +e
288 as_fn_set_status $1
289 exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
298 case $as_dir in #(
299 -*) as_dir=./$as_dir;;
300 esac
301 test -d "$as_dir" || eval $as_mkdir_p || {
302 as_dirs=
303 while :; do
304 case $as_dir in #(
305 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306 *) as_qdir=$as_dir;;
307 esac
308 as_dirs="'$as_qdir' $as_dirs"
309 as_dir=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)[^/].*/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)$/{
324 s//\1/
325 q
326 }
327 /^X\(\/\).*/{
328 s//\1/
329 q
330 }
331 s/.*/./; q'`
332 test -d "$as_dir" && break
333 done
334 test -z "$as_dirs" || eval "mkdir $as_dirs"
335 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
337
338 } # as_fn_mkdir_p
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
344 # implementations.
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
346 eval 'as_fn_append ()
347 {
348 eval $1+=\$2
349 }'
350 else
351 as_fn_append ()
352 {
353 eval $1=\$$1\$2
354 }
355 fi # as_fn_append
356
357 # as_fn_arith ARG...
358 # ------------------
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
363 eval 'as_fn_arith ()
364 {
365 as_val=$(( $* ))
366 }'
367 else
368 as_fn_arith ()
369 {
370 as_val=`expr "$@" || test $? -eq 1`
371 }
372 fi # as_fn_arith
373
374
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
380 as_fn_error ()
381 {
382 as_status=$1; test $as_status -eq 0 && as_status=1
383 if test "$4"; then
384 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
386 fi
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit $as_status
389 } # as_fn_error
390
391 if expr a : '\(a\)' >/dev/null 2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 as_expr=expr
394 else
395 as_expr=false
396 fi
397
398 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 as_basename=basename
400 else
401 as_basename=false
402 fi
403
404 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_dirname=dirname
406 else
407 as_dirname=false
408 fi
409
410 as_me=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
414 $as_echo X/"$0" |
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\/\)$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\).*/{
424 s//\1/
425 q
426 }
427 s/.*/./; q'`
428
429 # Avoid depending upon Character Ranges.
430 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits='0123456789'
434 as_cr_alnum=$as_cr_Letters$as_cr_digits
435
436
437 as_lineno_1=$LINENO as_lineno_1a=$LINENO
438 as_lineno_2=$LINENO as_lineno_2a=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 sed -n '
443 p
444 /[$]LINENO/=
445 ' <$as_myself |
446 sed '
447 s/[$]LINENO.*/&-/
448 t lineno
449 b
450 :lineno
451 N
452 :loop
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454 t loop
455 s/-\n.*//
456 ' >$as_me.lineno &&
457 chmod +x "$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
459
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
463 . "./$as_me.lineno"
464 # Exit status is that of the last command.
465 exit
466 }
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in #(((((
470 -n*)
471 case `echo 'xy\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 xy) ECHO_C='\c';;
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
475 ECHO_T=' ';;
476 esac;;
477 *)
478 ECHO_N='-n';;
479 esac
480
481 rm -f conf$$ conf$$.exe conf$$.file
482 if test -d conf$$.dir; then
483 rm -f conf$$.dir/conf$$.file
484 else
485 rm -f conf$$.dir
486 mkdir conf$$.dir 2>/dev/null
487 fi
488 if (echo >conf$$.file) 2>/dev/null; then
489 if ln -s conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s='ln -s'
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
496 as_ln_s='cp -p'
497 elif ln conf$$.file conf$$ 2>/dev/null; then
498 as_ln_s=ln
499 else
500 as_ln_s='cp -p'
501 fi
502 else
503 as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p='mkdir -p "$as_dir"'
510 else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513 fi
514
515 if test -x / >/dev/null 2>&1; then
516 as_test_x='test -x'
517 else
518 if ls -dL / >/dev/null 2>&1; then
519 as_ls_L_option=L
520 else
521 as_ls_L_option=
522 fi
523 as_test_x='
524 eval sh -c '\''
525 if test -d "$1"; then
526 test -d "$1/.";
527 else
528 case $1 in #(
529 -*)set "./$1";;
530 esac;
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
533 '\'' sh
534 '
535 fi
536 as_executable_p=$as_test_x
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
550 # Name of the host.
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554
555 #
556 # Initializations.
557 #
558 ac_default_prefix=/usr/local
559 ac_clean_files=
560 ac_config_libobj_dir=.
561 LIBOBJS=
562 cross_compiling=no
563 subdirs=
564 MFLAGS=
565 MAKEFLAGS=
566
567 # Identity of this package.
568 PACKAGE_NAME='libevent'
569 PACKAGE_TARNAME='libevent'
570 PACKAGE_VERSION='2.1.2-alpha-dev'
571 PACKAGE_STRING='libevent 2.1.2-alpha-dev'
572 PACKAGE_BUGREPORT=''
573 PACKAGE_URL=''
574
575 ac_unique_file="event.c"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
578 #include <stdio.h>
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
581 #endif
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
584 #endif
585 #ifdef STDC_HEADERS
586 # include <stdlib.h>
587 # include <stddef.h>
588 #else
589 # ifdef HAVE_STDLIB_H
590 # include <stdlib.h>
591 # endif
592 #endif
593 #ifdef HAVE_STRING_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 # include <memory.h>
596 # endif
597 # include <string.h>
598 #endif
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
601 #endif
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
604 #endif
605 #ifdef HAVE_STDINT_H
606 # include <stdint.h>
607 #endif
608 #ifdef HAVE_UNISTD_H
609 # include <unistd.h>
610 #endif"
611
612 ac_subst_vars='am__EXEEXT_FALSE
613 am__EXEEXT_TRUE
614 LTLIBOBJS
615 INSTALL_LIBEVENT_FALSE
616 INSTALL_LIBEVENT_TRUE
617 LIBEVENT_GC_SECTIONS
618 PTHREADS_FALSE
619 PTHREADS_TRUE
620 PTHREAD_CFLAGS
621 PTHREAD_LIBS
622 SIGNAL_SUPPORT_FALSE
623 SIGNAL_SUPPORT_TRUE
624 EVPORT_BACKEND_FALSE
625 EVPORT_BACKEND_TRUE
626 EPOLL_BACKEND_FALSE
627 EPOLL_BACKEND_TRUE
628 LIBOBJS
629 KQUEUE_BACKEND_FALSE
630 KQUEUE_BACKEND_TRUE
631 DEVPOLL_BACKEND_FALSE
632 DEVPOLL_BACKEND_TRUE
633 POLL_BACKEND_FALSE
634 POLL_BACKEND_TRUE
635 SELECT_BACKEND_FALSE
636 SELECT_BACKEND_TRUE
637 BUILD_WITH_NO_UNDEFINED_FALSE
638 BUILD_WITH_NO_UNDEFINED_TRUE
639 BUILD_CYGWIN_FALSE
640 BUILD_CYGWIN_TRUE
641 BUILD_WIN32_FALSE
642 BUILD_WIN32_TRUE
643 OPENSSL_FALSE
644 OPENSSL_TRUE
645 OPENSSL_LIBS
646 OPENSSL_INCS
647 PKG_CONFIG
648 OPENSSL_LIBADD
649 EV_LIB_GDI
650 EV_LIB_WS32
651 ZLIB_REGRESS_FALSE
652 ZLIB_REGRESS_TRUE
653 ZLIB_LIBS
654 BUILD_REGRESS_FALSE
655 BUILD_REGRESS_TRUE
656 LIBTOOL_DEPS
657 OTOOL64
658 OTOOL
659 LIPO
660 NMEDIT
661 DSYMUTIL
662 MANIFEST_TOOL
663 RANLIB
664 ac_ct_AR
665 AR
666 DLLTOOL
667 OBJDUMP
668 NM
669 ac_ct_DUMPBIN
670 DUMPBIN
671 LD
672 FGREP
673 LIBTOOL
674 LN_S
675 SED
676 EGREP
677 GREP
678 CPP
679 am__fastdepCC_FALSE
680 am__fastdepCC_TRUE
681 CCDEPMODE
682 AMDEPBACKSLASH
683 AMDEP_FALSE
684 AMDEP_TRUE
685 am__quote
686 am__include
687 DEPDIR
688 OBJEXT
689 EXEEXT
690 ac_ct_CC
691 CPPFLAGS
692 LDFLAGS
693 CFLAGS
694 CC
695 host_os
696 host_vendor
697 host_cpu
698 host
699 build_os
700 build_vendor
701 build_cpu
702 build
703 AM_BACKSLASH
704 AM_DEFAULT_VERBOSITY
705 am__untar
706 am__tar
707 AMTAR
708 am__leading_dot
709 SET_MAKE
710 AWK
711 mkdir_p
712 MKDIR_P
713 INSTALL_STRIP_PROGRAM
714 STRIP
715 install_sh
716 MAKEINFO
717 AUTOHEADER
718 AUTOMAKE
719 AUTOCONF
720 ACLOCAL
721 VERSION
722 PACKAGE
723 CYGPATH_W
724 am__isrc
725 INSTALL_DATA
726 INSTALL_SCRIPT
727 INSTALL_PROGRAM
728 target_alias
729 host_alias
730 build_alias
731 LIBS
732 ECHO_T
733 ECHO_N
734 ECHO_C
735 DEFS
736 mandir
737 localedir
738 libdir
739 psdir
740 pdfdir
741 dvidir
742 htmldir
743 infodir
744 docdir
745 oldincludedir
746 includedir
747 localstatedir
748 sharedstatedir
749 sysconfdir
750 datadir
751 datarootdir
752 libexecdir
753 sbindir
754 bindir
755 program_transform_name
756 prefix
757 exec_prefix
758 PACKAGE_URL
759 PACKAGE_BUGREPORT
760 PACKAGE_STRING
761 PACKAGE_VERSION
762 PACKAGE_TARNAME
763 PACKAGE_NAME
764 PATH_SEPARATOR
765 SHELL'
766 ac_subst_files=''
767 ac_user_opts='
768 enable_option_checking
769 enable_silent_rules
770 enable_dependency_tracking
771 enable_gcc_warnings
772 enable_gcc_hardening
773 enable_thread_support
774 enable_malloc_replacement
775 enable_openssl
776 enable_debug_mode
777 enable_libevent_install
778 enable_libevent_regress
779 enable_function_sections
780 enable_verbose_debug
781 enable_shared
782 enable_static
783 with_pic
784 enable_fast_install
785 with_gnu_ld
786 with_sysroot
787 enable_libtool_lock
788 enable_largefile
789 with_threads
790 '
791 ac_precious_vars='build_alias
792 host_alias
793 target_alias
794 CC
795 CFLAGS
796 LDFLAGS
797 LIBS
798 CPPFLAGS
799 CPP'
800
801
802 # Initialize some variables set by options.
803 ac_init_help=
804 ac_init_version=false
805 ac_unrecognized_opts=
806 ac_unrecognized_sep=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
823
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
842 htmldir='${docdir}'
843 dvidir='${docdir}'
844 pdfdir='${docdir}'
845 psdir='${docdir}'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
849
850 ac_prev=
851 ac_dashdash=
852 for ac_option
853 do
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\$ac_option
857 ac_prev=
858 continue
859 fi
860
861 case $ac_option in
862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 *=) ac_optarg= ;;
864 *) ac_optarg=yes ;;
865 esac
866
867 # Accept the important Cygnus configure options, so we can diagnose typos.
868
869 case $ac_dashdash$ac_option in
870 --)
871 ac_dashdash=yes ;;
872
873 -bindir | --bindir | --bindi | --bind | --bin | --bi)
874 ac_prev=bindir ;;
875 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
876 bindir=$ac_optarg ;;
877
878 -build | --build | --buil | --bui | --bu)
879 ac_prev=build_alias ;;
880 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
881 build_alias=$ac_optarg ;;
882
883 -cache-file | --cache-file | --cache-fil | --cache-fi \
884 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
885 ac_prev=cache_file ;;
886 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
887 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
888 cache_file=$ac_optarg ;;
889
890 --config-cache | -C)
891 cache_file=config.cache ;;
892
893 -datadir | --datadir | --datadi | --datad)
894 ac_prev=datadir ;;
895 -datadir=* | --datadir=* | --datadi=* | --datad=*)
896 datadir=$ac_optarg ;;
897
898 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
899 | --dataroo | --dataro | --datar)
900 ac_prev=datarootdir ;;
901 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
902 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
903 datarootdir=$ac_optarg ;;
904
905 -disable-* | --disable-*)
906 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909 as_fn_error $? "invalid feature name: $ac_useropt"
910 ac_useropt_orig=$ac_useropt
911 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
912 case $ac_user_opts in
913 *"
914 "enable_$ac_useropt"
915 "*) ;;
916 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
917 ac_unrecognized_sep=', ';;
918 esac
919 eval enable_$ac_useropt=no ;;
920
921 -docdir | --docdir | --docdi | --doc | --do)
922 ac_prev=docdir ;;
923 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
924 docdir=$ac_optarg ;;
925
926 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
927 ac_prev=dvidir ;;
928 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
929 dvidir=$ac_optarg ;;
930
931 -enable-* | --enable-*)
932 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
935 as_fn_error $? "invalid feature name: $ac_useropt"
936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
939 *"
940 "enable_$ac_useropt"
941 "*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
944 esac
945 eval enable_$ac_useropt=\$ac_optarg ;;
946
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
955
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
958 with_gas=yes ;;
959
960 -help | --help | --hel | --he | -h)
961 ac_init_help=long ;;
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
966
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
971
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
973 ac_prev=htmldir ;;
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
975 | --ht=*)
976 htmldir=$ac_optarg ;;
977
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
984
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
986 ac_prev=infodir ;;
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
989
990 -libdir | --libdir | --libdi | --libd)
991 ac_prev=libdir ;;
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
993 libdir=$ac_optarg ;;
994
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1001
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1006
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1013
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1015 ac_prev=mandir ;;
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1018
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1021 with_fp=no ;;
1022
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1025 no_create=yes ;;
1026
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1029 no_recursion=yes ;;
1030
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1039
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1041 ac_prev=prefix ;;
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1044
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1051
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1058
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1075
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1077 ac_prev=pdfdir ;;
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1080
1081 -psdir | --psdir | --psdi | --psd | --ps)
1082 ac_prev=psdir ;;
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1084 psdir=$ac_optarg ;;
1085
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1088 silent=yes ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=\$ac_optarg ;;
1150
1151 -without-* | --without-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=no ;;
1166
1167 --x)
1168 # Obsolete; use --with-x.
1169 with_x=yes ;;
1170
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1177
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1184
1185 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1186 Try \`$0 --help' for more information"
1187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 case $ac_envvar in #(
1193 '' | [0-9]* | *[!_$as_cr_alnum]* )
1194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1195 esac
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1198
1199 *)
1200 # FIXME: should be removed in autoconf 3.0.
1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1205 ;;
1206
1207 esac
1208 done
1209
1210 if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 as_fn_error $? "missing argument to $ac_option"
1213 fi
1214
1215 if test -n "$ac_unrecognized_opts"; then
1216 case $enable_option_checking in
1217 no) ;;
1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 esac
1221 fi
1222
1223 # Check all directory arguments for consistency.
1224 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir
1228 do
1229 eval ac_val=\$$ac_var
1230 # Remove trailing slashes.
1231 case $ac_val in
1232 */ )
1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234 eval $ac_var=\$ac_val;;
1235 esac
1236 # Be sure to have absolute directory names.
1237 case $ac_val in
1238 [\\/$]* | ?:[\\/]* ) continue;;
1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240 esac
1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242 done
1243
1244 # There might be people who depend on the old broken behavior: `$host'
1245 # used to hold the argument of --host etc.
1246 # FIXME: To remove some day.
1247 build=$build_alias
1248 host=$host_alias
1249 target=$target_alias
1250
1251 # FIXME: To remove some day.
1252 if test "x$host_alias" != x; then
1253 if test "x$build_alias" = x; then
1254 cross_compiling=maybe
1255 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1256 If a cross compiler is detected then cross compile mode will be used" >&2
1257 elif test "x$build_alias" != "x$host_alias"; then
1258 cross_compiling=yes
1259 fi
1260 fi
1261
1262 ac_tool_prefix=
1263 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264
1265 test "$silent" = yes && exec 6>/dev/null
1266
1267
1268 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1269 ac_ls_di=`ls -di .` &&
1270 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1271 as_fn_error $? "working directory cannot be determined"
1272 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1273 as_fn_error $? "pwd does not report name of working directory"
1274
1275
1276 # Find the source files, if location was not specified.
1277 if test -z "$srcdir"; then
1278 ac_srcdir_defaulted=yes
1279 # Try the directory containing this script, then the parent directory.
1280 ac_confdir=`$as_dirname -- "$as_myself" ||
1281 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1282 X"$as_myself" : 'X\(//\)[^/]' \| \
1283 X"$as_myself" : 'X\(//\)$' \| \
1284 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1285 $as_echo X"$as_myself" |
1286 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\/\)[^/].*/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\/\)$/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\).*/{
1299 s//\1/
1300 q
1301 }
1302 s/.*/./; q'`
1303 srcdir=$ac_confdir
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305 srcdir=..
1306 fi
1307 else
1308 ac_srcdir_defaulted=no
1309 fi
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1312 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1313 fi
1314 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1315 ac_abs_confdir=`(
1316 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1317 pwd)`
1318 # When building in place, set srcdir=.
1319 if test "$ac_abs_confdir" = "$ac_pwd"; then
1320 srcdir=.
1321 fi
1322 # Remove unnecessary trailing slashes from srcdir.
1323 # Double slashes in file names in object file debugging info
1324 # mess up M-x gdb in Emacs.
1325 case $srcdir in
1326 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1327 esac
1328 for ac_var in $ac_precious_vars; do
1329 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_env_${ac_var}_value=\$${ac_var}
1331 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1333 done
1334
1335 #
1336 # Report the --help message.
1337 #
1338 if test "$ac_init_help" = "long"; then
1339 # Omit some internal or obsolete options to make the list less imposing.
1340 # This message is too long to be a string in the A/UX 3.1 sh.
1341 cat <<_ACEOF
1342 \`configure' configures libevent 2.1.2-alpha-dev to adapt to many kinds of systems.
1343
1344 Usage: $0 [OPTION]... [VAR=VALUE]...
1345
1346 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1347 VAR=VALUE. See below for descriptions of some of the useful variables.
1348
1349 Defaults for the options are specified in brackets.
1350
1351 Configuration:
1352 -h, --help display this help and exit
1353 --help=short display options specific to this package
1354 --help=recursive display the short help of all the included packages
1355 -V, --version display version information and exit
1356 -q, --quiet, --silent do not print \`checking ...' messages
1357 --cache-file=FILE cache test results in FILE [disabled]
1358 -C, --config-cache alias for \`--cache-file=config.cache'
1359 -n, --no-create do not create output files
1360 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1361
1362 Installation directories:
1363 --prefix=PREFIX install architecture-independent files in PREFIX
1364 [$ac_default_prefix]
1365 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1366 [PREFIX]
1367
1368 By default, \`make install' will install all the files in
1369 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1370 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1371 for instance \`--prefix=\$HOME'.
1372
1373 For better control, use the options below.
1374
1375 Fine tuning of the installation directories:
1376 --bindir=DIR user executables [EPREFIX/bin]
1377 --sbindir=DIR system admin executables [EPREFIX/sbin]
1378 --libexecdir=DIR program executables [EPREFIX/libexec]
1379 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1380 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1381 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1382 --libdir=DIR object code libraries [EPREFIX/lib]
1383 --includedir=DIR C header files [PREFIX/include]
1384 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1385 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1386 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1387 --infodir=DIR info documentation [DATAROOTDIR/info]
1388 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1389 --mandir=DIR man documentation [DATAROOTDIR/man]
1390 --docdir=DIR documentation root [DATAROOTDIR/doc/libevent]
1391 --htmldir=DIR html documentation [DOCDIR]
1392 --dvidir=DIR dvi documentation [DOCDIR]
1393 --pdfdir=DIR pdf documentation [DOCDIR]
1394 --psdir=DIR ps documentation [DOCDIR]
1395 _ACEOF
1396
1397 cat <<\_ACEOF
1398
1399 Program names:
1400 --program-prefix=PREFIX prepend PREFIX to installed program names
1401 --program-suffix=SUFFIX append SUFFIX to installed program names
1402 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1403
1404 System types:
1405 --build=BUILD configure for building on BUILD [guessed]
1406 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1407 _ACEOF
1408 fi
1409
1410 if test -n "$ac_init_help"; then
1411 case $ac_init_help in
1412 short | recursive ) echo "Configuration of libevent 2.1.2-alpha-dev:";;
1413 esac
1414 cat <<\_ACEOF
1415
1416 Optional Features:
1417 --disable-option-checking ignore unrecognized --enable/--with options
1418 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1419 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1420 --enable-silent-rules less verbose build output (undo: `make V=1')
1421 --disable-silent-rules verbose build output (undo: `make V=0')
1422 --disable-dependency-tracking speeds up one-time build
1423 --enable-dependency-tracking do not reject slow dependency extractors
1424 --disable-gcc-warnings disable verbose warnings with GCC
1425 --enable-gcc-hardening enable compiler security checks
1426 --disable-thread-support
1427 disable support for threading
1428 --disable-malloc-replacement
1429 disable support for replacing the memory mgt
1430 functions
1431 --disable-openssl disable support for openssl encryption
1432 --disable-debug-mode disable support for running in debug mode
1433 --disable-libevent-install, disable installation of libevent
1434
1435 --disable-libevent-regress, skip regress in make check
1436
1437 --enable-function-sections, make static library allow smaller binaries with --gc-sections
1438
1439 --enable-verbose-debug, verbose debug logging
1440
1441 --enable-shared[=PKGS] build shared libraries [default=yes]
1442 --enable-static[=PKGS] build static libraries [default=yes]
1443 --enable-fast-install[=PKGS]
1444 optimize for fast installation [default=yes]
1445 --disable-libtool-lock avoid locking (might break parallel builds)
1446 --disable-largefile omit support for large files
1447
1448 Optional Packages:
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1451 --with-pic try to use only PIC/non-PIC objects [default=use
1452 both]
1453 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1454 --with-sysroot=DIR Search for dependent libraries within DIR
1455 (or the compiler's sysroot if not specified).
1456 --with-threads with threads [auto]
1457
1458 Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 LIBS libraries to pass to the linker, e.g. -l<library>
1464 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1465 you have headers in a nonstandard directory <include dir>
1466 CPP C preprocessor
1467
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1470
1471 Report bugs to the package provider.
1472 _ACEOF
1473 ac_status=$?
1474 fi
1475
1476 if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479 test -d "$ac_dir" ||
1480 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481 continue
1482 ac_builddir=.
1483
1484 case "$ac_dir" in
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *)
1487 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1488 # A ".." for each directory in $ac_dir_suffix.
1489 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 esac ;;
1494 esac
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1499
1500 case $srcdir in
1501 .) # We are building in place.
1502 ac_srcdir=.
1503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
1506 ac_srcdir=$srcdir$ac_dir_suffix;
1507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1509 *) # Relative name.
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 esac
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for guested configure.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure" --help=recursive
1524 else
1525 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526 fi || ac_status=$?
1527 cd "$ac_pwd" || { ac_status=$?; break; }
1528 done
1529 fi
1530
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1533 cat <<\_ACEOF
1534 libevent configure 2.1.2-alpha-dev
1535 generated by GNU Autoconf 2.68
1536
1537 Copyright (C) 2010 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1540 _ACEOF
1541 exit
1542 fi
1543
1544 ## ------------------------ ##
1545 ## Autoconf initialization. ##
1546 ## ------------------------ ##
1547
1548 # ac_fn_c_try_compile LINENO
1549 # --------------------------
1550 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_compile ()
1552 {
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 rm -f conftest.$ac_objext
1555 if { { ac_try="$ac_compile"
1556 case "(($ac_try" in
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_compile") 2>conftest.err
1563 ac_status=$?
1564 if test -s conftest.err; then
1565 grep -v '^ *+' conftest.err >conftest.er1
1566 cat conftest.er1 >&5
1567 mv -f conftest.er1 conftest.err
1568 fi
1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } && {
1571 test -z "$ac_c_werror_flag" ||
1572 test ! -s conftest.err
1573 } && test -s conftest.$ac_objext; then :
1574 ac_retval=0
1575 else
1576 $as_echo "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1578
1579 ac_retval=1
1580 fi
1581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582 as_fn_set_status $ac_retval
1583
1584 } # ac_fn_c_try_compile
1585
1586 # ac_fn_c_try_cpp LINENO
1587 # ----------------------
1588 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_c_try_cpp ()
1590 {
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 if { { ac_try="$ac_cpp conftest.$ac_ext"
1593 case "(($ac_try" in
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1596 esac
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1600 ac_status=$?
1601 if test -s conftest.err; then
1602 grep -v '^ *+' conftest.err >conftest.er1
1603 cat conftest.er1 >&5
1604 mv -f conftest.er1 conftest.err
1605 fi
1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } > conftest.i && {
1608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1609 test ! -s conftest.err
1610 }; then :
1611 ac_retval=0
1612 else
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616 ac_retval=1
1617 fi
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 as_fn_set_status $ac_retval
1620
1621 } # ac_fn_c_try_cpp
1622
1623 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1624 # -------------------------------------------------------
1625 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1626 # the include files in INCLUDES and setting the cache variable VAR
1627 # accordingly.
1628 ac_fn_c_check_header_mongrel ()
1629 {
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 if eval \${$3+:} false; then :
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633 $as_echo_n "checking for $2... " >&6; }
1634 if eval \${$3+:} false; then :
1635 $as_echo_n "(cached) " >&6
1636 fi
1637 eval ac_res=\$$3
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639 $as_echo "$ac_res" >&6; }
1640 else
1641 # Is the header compilable?
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1643 $as_echo_n "checking $2 usability... " >&6; }
1644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h. */
1646 $4
1647 #include <$2>
1648 _ACEOF
1649 if ac_fn_c_try_compile "$LINENO"; then :
1650 ac_header_compiler=yes
1651 else
1652 ac_header_compiler=no
1653 fi
1654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1656 $as_echo "$ac_header_compiler" >&6; }
1657
1658 # Is the header present?
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1660 $as_echo_n "checking $2 presence... " >&6; }
1661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1662 /* end confdefs.h. */
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_cpp "$LINENO"; then :
1666 ac_header_preproc=yes
1667 else
1668 ac_header_preproc=no
1669 fi
1670 rm -f conftest.err conftest.i conftest.$ac_ext
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1672 $as_echo "$ac_header_preproc" >&6; }
1673
1674 # So? What about this header?
1675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1676 yes:no: )
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1678 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1680 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1681 ;;
1682 no:yes:* )
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1684 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1686 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1688 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1690 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1692 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1693 ;;
1694 esac
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if eval \${$3+:} false; then :
1698 $as_echo_n "(cached) " >&6
1699 else
1700 eval "$3=\$ac_header_compiler"
1701 fi
1702 eval ac_res=\$$3
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704 $as_echo "$ac_res" >&6; }
1705 fi
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1707
1708 } # ac_fn_c_check_header_mongrel
1709
1710 # ac_fn_c_try_run LINENO
1711 # ----------------------
1712 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1713 # that executables *can* be run.
1714 ac_fn_c_try_run ()
1715 {
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 if { { ac_try="$ac_link"
1718 case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_link") 2>&5
1725 ac_status=$?
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1728 { { case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_try") 2>&5
1735 ac_status=$?
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; }; }; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: program exited with status $ac_status" >&5
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.$ac_ext >&5
1743
1744 ac_retval=$ac_status
1745 fi
1746 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status $ac_retval
1749
1750 } # ac_fn_c_try_run
1751
1752 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1753 # -------------------------------------------------------
1754 # Tests whether HEADER exists and can be compiled using the include files in
1755 # INCLUDES, setting the cache variable VAR accordingly.
1756 ac_fn_c_check_header_compile ()
1757 {
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1760 $as_echo_n "checking for $2... " >&6; }
1761 if eval \${$3+:} false; then :
1762 $as_echo_n "(cached) " >&6
1763 else
1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765 /* end confdefs.h. */
1766 $4
1767 #include <$2>
1768 _ACEOF
1769 if ac_fn_c_try_compile "$LINENO"; then :
1770 eval "$3=yes"
1771 else
1772 eval "$3=no"
1773 fi
1774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1775 fi
1776 eval ac_res=\$$3
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1778 $as_echo "$ac_res" >&6; }
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780
1781 } # ac_fn_c_check_header_compile
1782
1783 # ac_fn_c_try_link LINENO
1784 # -----------------------
1785 # Try to link conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_c_try_link ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext conftest$ac_exeext
1790 if { { ac_try="$ac_link"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1803 fi
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest$ac_exeext && {
1809 test "$cross_compiling" = yes ||
1810 $as_test_x conftest$ac_exeext
1811 }; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1816
1817 ac_retval=1
1818 fi
1819 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1820 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1821 # interfere with the next link command; also delete a directory that is
1822 # left behind by Apple's compiler. We do this before executing the actions.
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1826
1827 } # ac_fn_c_try_link
1828
1829 # ac_fn_c_check_func LINENO FUNC VAR
1830 # ----------------------------------
1831 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1832 ac_fn_c_check_func ()
1833 {
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1836 $as_echo_n "checking for $2... " >&6; }
1837 if eval \${$3+:} false; then :
1838 $as_echo_n "(cached) " >&6
1839 else
1840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841 /* end confdefs.h. */
1842 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1844 #define $2 innocuous_$2
1845
1846 /* System header to define __stub macros and hopefully few prototypes,
1847 which can conflict with char $2 (); below.
1848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1849 <limits.h> exists even on freestanding compilers. */
1850
1851 #ifdef __STDC__
1852 # include <limits.h>
1853 #else
1854 # include <assert.h>
1855 #endif
1856
1857 #undef $2
1858
1859 /* Override any GCC internal prototype to avoid an error.
1860 Use char because int might match the return type of a GCC
1861 builtin and then its argument prototype would still apply. */
1862 #ifdef __cplusplus
1863 extern "C"
1864 #endif
1865 char $2 ();
1866 /* The GNU C library defines this for functions which it implements
1867 to always fail with ENOSYS. Some functions are actually named
1868 something starting with __ and the normal name is an alias. */
1869 #if defined __stub_$2 || defined __stub___$2
1870 choke me
1871 #endif
1872
1873 int
1874 main ()
1875 {
1876 return $2 ();
1877 ;
1878 return 0;
1879 }
1880 _ACEOF
1881 if ac_fn_c_try_link "$LINENO"; then :
1882 eval "$3=yes"
1883 else
1884 eval "$3=no"
1885 fi
1886 rm -f core conftest.err conftest.$ac_objext \
1887 conftest$ac_exeext conftest.$ac_ext
1888 fi
1889 eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1893
1894 } # ac_fn_c_check_func
1895
1896 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1897 # ---------------------------------------------
1898 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1899 # accordingly.
1900 ac_fn_c_check_decl ()
1901 {
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 as_decl_name=`echo $2|sed 's/ *(.*//'`
1904 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1906 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1907 if eval \${$3+:} false; then :
1908 $as_echo_n "(cached) " >&6
1909 else
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1912 $4
1913 int
1914 main ()
1915 {
1916 #ifndef $as_decl_name
1917 #ifdef __cplusplus
1918 (void) $as_decl_use;
1919 #else
1920 (void) $as_decl_name;
1921 #endif
1922 #endif
1923
1924 ;
1925 return 0;
1926 }
1927 _ACEOF
1928 if ac_fn_c_try_compile "$LINENO"; then :
1929 eval "$3=yes"
1930 else
1931 eval "$3=no"
1932 fi
1933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1934 fi
1935 eval ac_res=\$$3
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939
1940 } # ac_fn_c_check_decl
1941
1942 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1943 # -------------------------------------------
1944 # Tests whether TYPE exists after having included INCLUDES, setting cache
1945 # variable VAR accordingly.
1946 ac_fn_c_check_type ()
1947 {
1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if eval \${$3+:} false; then :
1952 $as_echo_n "(cached) " >&6
1953 else
1954 eval "$3=no"
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1957 $4
1958 int
1959 main ()
1960 {
1961 if (sizeof ($2))
1962 return 0;
1963 ;
1964 return 0;
1965 }
1966 _ACEOF
1967 if ac_fn_c_try_compile "$LINENO"; then :
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 $4
1971 int
1972 main ()
1973 {
1974 if (sizeof (($2)))
1975 return 0;
1976 ;
1977 return 0;
1978 }
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"; then :
1981
1982 else
1983 eval "$3=yes"
1984 fi
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 fi
1989 eval ac_res=\$$3
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993
1994 } # ac_fn_c_check_type
1995
1996 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1997 # --------------------------------------------
1998 # Tries to find the compile-time value of EXPR in a program that includes
1999 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2000 # computed
2001 ac_fn_c_compute_int ()
2002 {
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 if test "$cross_compiling" = yes; then
2005 # Depending upon the size, compute the lo and hi bounds.
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2008 $4
2009 int
2010 main ()
2011 {
2012 static int test_array [1 - 2 * !(($2) >= 0)];
2013 test_array [0] = 0
2014
2015 ;
2016 return 0;
2017 }
2018 _ACEOF
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020 ac_lo=0 ac_mid=0
2021 while :; do
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2024 $4
2025 int
2026 main ()
2027 {
2028 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2029 test_array [0] = 0
2030
2031 ;
2032 return 0;
2033 }
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036 ac_hi=$ac_mid; break
2037 else
2038 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2039 if test $ac_lo -le $ac_mid; then
2040 ac_lo= ac_hi=
2041 break
2042 fi
2043 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2044 fi
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 done
2047 else
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2050 $4
2051 int
2052 main ()
2053 {
2054 static int test_array [1 - 2 * !(($2) < 0)];
2055 test_array [0] = 0
2056
2057 ;
2058 return 0;
2059 }
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062 ac_hi=-1 ac_mid=-1
2063 while :; do
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2066 $4
2067 int
2068 main ()
2069 {
2070 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2071 test_array [0] = 0
2072
2073 ;
2074 return 0;
2075 }
2076 _ACEOF
2077 if ac_fn_c_try_compile "$LINENO"; then :
2078 ac_lo=$ac_mid; break
2079 else
2080 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2081 if test $ac_mid -le $ac_hi; then
2082 ac_lo= ac_hi=
2083 break
2084 fi
2085 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2086 fi
2087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088 done
2089 else
2090 ac_lo= ac_hi=
2091 fi
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 fi
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 # Binary search between lo and hi bounds.
2096 while test "x$ac_lo" != "x$ac_hi"; do
2097 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 $4
2101 int
2102 main ()
2103 {
2104 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2105 test_array [0] = 0
2106
2107 ;
2108 return 0;
2109 }
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_hi=$ac_mid
2113 else
2114 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2115 fi
2116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117 done
2118 case $ac_lo in #((
2119 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2120 '') ac_retval=1 ;;
2121 esac
2122 else
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2125 $4
2126 static long int longval () { return $2; }
2127 static unsigned long int ulongval () { return $2; }
2128 #include <stdio.h>
2129 #include <stdlib.h>
2130 int
2131 main ()
2132 {
2133
2134 FILE *f = fopen ("conftest.val", "w");
2135 if (! f)
2136 return 1;
2137 if (($2) < 0)
2138 {
2139 long int i = longval ();
2140 if (i != ($2))
2141 return 1;
2142 fprintf (f, "%ld", i);
2143 }
2144 else
2145 {
2146 unsigned long int i = ulongval ();
2147 if (i != ($2))
2148 return 1;
2149 fprintf (f, "%lu", i);
2150 }
2151 /* Do not output a trailing newline, as this causes \r\n confusion
2152 on some platforms. */
2153 return ferror (f) || fclose (f) != 0;
2154
2155 ;
2156 return 0;
2157 }
2158 _ACEOF
2159 if ac_fn_c_try_run "$LINENO"; then :
2160 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2161 else
2162 ac_retval=1
2163 fi
2164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2165 conftest.$ac_objext conftest.beam conftest.$ac_ext
2166 rm -f conftest.val
2167
2168 fi
2169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170 as_fn_set_status $ac_retval
2171
2172 } # ac_fn_c_compute_int
2173
2174 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2175 # ----------------------------------------------------
2176 # Tries to find if the field MEMBER exists in type AGGR, after including
2177 # INCLUDES, setting cache variable VAR accordingly.
2178 ac_fn_c_check_member ()
2179 {
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2182 $as_echo_n "checking for $2.$3... " >&6; }
2183 if eval \${$4+:} false; then :
2184 $as_echo_n "(cached) " >&6
2185 else
2186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h. */
2188 $5
2189 int
2190 main ()
2191 {
2192 static $2 ac_aggr;
2193 if (ac_aggr.$3)
2194 return 0;
2195 ;
2196 return 0;
2197 }
2198 _ACEOF
2199 if ac_fn_c_try_compile "$LINENO"; then :
2200 eval "$4=yes"
2201 else
2202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2203 /* end confdefs.h. */
2204 $5
2205 int
2206 main ()
2207 {
2208 static $2 ac_aggr;
2209 if (sizeof ac_aggr.$3)
2210 return 0;
2211 ;
2212 return 0;
2213 }
2214 _ACEOF
2215 if ac_fn_c_try_compile "$LINENO"; then :
2216 eval "$4=yes"
2217 else
2218 eval "$4=no"
2219 fi
2220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221 fi
2222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 fi
2224 eval ac_res=\$$4
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2226 $as_echo "$ac_res" >&6; }
2227 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228
2229 } # ac_fn_c_check_member
2230 cat >config.log <<_ACEOF
2231 This file contains any messages produced by compilers while
2232 running configure, to aid debugging if configure makes a mistake.
2233
2234 It was created by libevent $as_me 2.1.2-alpha-dev, which was
2235 generated by GNU Autoconf 2.68. Invocation command line was
2236
2237 $ $0 $@
2238
2239 _ACEOF
2240 exec 5>>config.log
2241 {
2242 cat <<_ASUNAME
2243 ## --------- ##
2244 ## Platform. ##
2245 ## --------- ##
2246
2247 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2248 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2249 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2250 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2251 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2252
2253 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2254 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2255
2256 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2257 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2258 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2259 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2260 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2261 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2262 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2263
2264 _ASUNAME
2265
2266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 for as_dir in $PATH
2268 do
2269 IFS=$as_save_IFS
2270 test -z "$as_dir" && as_dir=.
2271 $as_echo "PATH: $as_dir"
2272 done
2273 IFS=$as_save_IFS
2274
2275 } >&5
2276
2277 cat >&5 <<_ACEOF
2278
2279
2280 ## ----------- ##
2281 ## Core tests. ##
2282 ## ----------- ##
2283
2284 _ACEOF
2285
2286
2287 # Keep a trace of the command line.
2288 # Strip out --no-create and --no-recursion so they do not pile up.
2289 # Strip out --silent because we don't want to record it for future runs.
2290 # Also quote any args containing shell meta-characters.
2291 # Make two passes to allow for proper duplicate-argument suppression.
2292 ac_configure_args=
2293 ac_configure_args0=
2294 ac_configure_args1=
2295 ac_must_keep_next=false
2296 for ac_pass in 1 2
2297 do
2298 for ac_arg
2299 do
2300 case $ac_arg in
2301 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2303 | -silent | --silent | --silen | --sile | --sil)
2304 continue ;;
2305 *\'*)
2306 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2307 esac
2308 case $ac_pass in
2309 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2310 2)
2311 as_fn_append ac_configure_args1 " '$ac_arg'"
2312 if test $ac_must_keep_next = true; then
2313 ac_must_keep_next=false # Got value, back to normal.
2314 else
2315 case $ac_arg in
2316 *=* | --config-cache | -C | -disable-* | --disable-* \
2317 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2318 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2319 | -with-* | --with-* | -without-* | --without-* | --x)
2320 case "$ac_configure_args0 " in
2321 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2322 esac
2323 ;;
2324 -* ) ac_must_keep_next=true ;;
2325 esac
2326 fi
2327 as_fn_append ac_configure_args " '$ac_arg'"
2328 ;;
2329 esac
2330 done
2331 done
2332 { ac_configure_args0=; unset ac_configure_args0;}
2333 { ac_configure_args1=; unset ac_configure_args1;}
2334
2335 # When interrupted or exit'd, cleanup temporary files, and complete
2336 # config.log. We remove comments because anyway the quotes in there
2337 # would cause problems or look ugly.
2338 # WARNING: Use '\'' to represent an apostrophe within the trap.
2339 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2340 trap 'exit_status=$?
2341 # Save into config.log some information that might help in debugging.
2342 {
2343 echo
2344
2345 $as_echo "## ---------------- ##
2346 ## Cache variables. ##
2347 ## ---------------- ##"
2348 echo
2349 # The following way of writing the cache mishandles newlines in values,
2350 (
2351 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2352 eval ac_val=\$$ac_var
2353 case $ac_val in #(
2354 *${as_nl}*)
2355 case $ac_var in #(
2356 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2357 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2358 esac
2359 case $ac_var in #(
2360 _ | IFS | as_nl) ;; #(
2361 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2362 *) { eval $ac_var=; unset $ac_var;} ;;
2363 esac ;;
2364 esac
2365 done
2366 (set) 2>&1 |
2367 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2368 *${as_nl}ac_space=\ *)
2369 sed -n \
2370 "s/'\''/'\''\\\\'\'''\''/g;
2371 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2372 ;; #(
2373 *)
2374 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2375 ;;
2376 esac |
2377 sort
2378 )
2379 echo
2380
2381 $as_echo "## ----------------- ##
2382 ## Output variables. ##
2383 ## ----------------- ##"
2384 echo
2385 for ac_var in $ac_subst_vars
2386 do
2387 eval ac_val=\$$ac_var
2388 case $ac_val in
2389 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2390 esac
2391 $as_echo "$ac_var='\''$ac_val'\''"
2392 done | sort
2393 echo
2394
2395 if test -n "$ac_subst_files"; then
2396 $as_echo "## ------------------- ##
2397 ## File substitutions. ##
2398 ## ------------------- ##"
2399 echo
2400 for ac_var in $ac_subst_files
2401 do
2402 eval ac_val=\$$ac_var
2403 case $ac_val in
2404 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2405 esac
2406 $as_echo "$ac_var='\''$ac_val'\''"
2407 done | sort
2408 echo
2409 fi
2410
2411 if test -s confdefs.h; then
2412 $as_echo "## ----------- ##
2413 ## confdefs.h. ##
2414 ## ----------- ##"
2415 echo
2416 cat confdefs.h
2417 echo
2418 fi
2419 test "$ac_signal" != 0 &&
2420 $as_echo "$as_me: caught signal $ac_signal"
2421 $as_echo "$as_me: exit $exit_status"
2422 } >&5
2423 rm -f core *.core core.conftest.* &&
2424 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2425 exit $exit_status
2426 ' 0
2427 for ac_signal in 1 2 13 15; do
2428 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2429 done
2430 ac_signal=0
2431
2432 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2433 rm -f -r conftest* confdefs.h
2434
2435 $as_echo "/* confdefs.h */" > confdefs.h
2436
2437 # Predefined preprocessor variables.
2438
2439 cat >>confdefs.h <<_ACEOF
2440 #define PACKAGE_NAME "$PACKAGE_NAME"
2441 _ACEOF
2442
2443 cat >>confdefs.h <<_ACEOF
2444 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2445 _ACEOF
2446
2447 cat >>confdefs.h <<_ACEOF
2448 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2449 _ACEOF
2450
2451 cat >>confdefs.h <<_ACEOF
2452 #define PACKAGE_STRING "$PACKAGE_STRING"
2453 _ACEOF
2454
2455 cat >>confdefs.h <<_ACEOF
2456 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2457 _ACEOF
2458
2459 cat >>confdefs.h <<_ACEOF
2460 #define PACKAGE_URL "$PACKAGE_URL"
2461 _ACEOF
2462
2463
2464 # Let the site file select an alternate cache file if it wants to.
2465 # Prefer an explicitly selected file to automatically selected ones.
2466 ac_site_file1=NONE
2467 ac_site_file2=NONE
2468 if test -n "$CONFIG_SITE"; then
2469 # We do not want a PATH search for config.site.
2470 case $CONFIG_SITE in #((
2471 -*) ac_site_file1=./$CONFIG_SITE;;
2472 */*) ac_site_file1=$CONFIG_SITE;;
2473 *) ac_site_file1=./$CONFIG_SITE;;
2474 esac
2475 elif test "x$prefix" != xNONE; then
2476 ac_site_file1=$prefix/share/config.site
2477 ac_site_file2=$prefix/etc/config.site
2478 else
2479 ac_site_file1=$ac_default_prefix/share/config.site
2480 ac_site_file2=$ac_default_prefix/etc/config.site
2481 fi
2482 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2483 do
2484 test "x$ac_site_file" = xNONE && continue
2485 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2487 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2488 sed 's/^/| /' "$ac_site_file" >&5
2489 . "$ac_site_file" \
2490 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2492 as_fn_error $? "failed to load site script $ac_site_file
2493 See \`config.log' for more details" "$LINENO" 5; }
2494 fi
2495 done
2496
2497 if test -r "$cache_file"; then
2498 # Some versions of bash will fail to source /dev/null (special files
2499 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2500 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2502 $as_echo "$as_me: loading cache $cache_file" >&6;}
2503 case $cache_file in
2504 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2505 *) . "./$cache_file";;
2506 esac
2507 fi
2508 else
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2510 $as_echo "$as_me: creating cache $cache_file" >&6;}
2511 >$cache_file
2512 fi
2513
2514 # Check that the precious variables saved in the cache have kept the same
2515 # value.
2516 ac_cache_corrupted=false
2517 for ac_var in $ac_precious_vars; do
2518 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2519 eval ac_new_set=\$ac_env_${ac_var}_set
2520 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2521 eval ac_new_val=\$ac_env_${ac_var}_value
2522 case $ac_old_set,$ac_new_set in
2523 set,)
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2525 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2526 ac_cache_corrupted=: ;;
2527 ,set)
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2529 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2530 ac_cache_corrupted=: ;;
2531 ,);;
2532 *)
2533 if test "x$ac_old_val" != "x$ac_new_val"; then
2534 # differences in whitespace do not lead to failure.
2535 ac_old_val_w=`echo x $ac_old_val`
2536 ac_new_val_w=`echo x $ac_new_val`
2537 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2539 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2540 ac_cache_corrupted=:
2541 else
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2543 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2544 eval $ac_var=\$ac_old_val
2545 fi
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2547 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2549 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2550 fi;;
2551 esac
2552 # Pass precious variables to config.status.
2553 if test "$ac_new_set" = set; then
2554 case $ac_new_val in
2555 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2556 *) ac_arg=$ac_var=$ac_new_val ;;
2557 esac
2558 case " $ac_configure_args " in
2559 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2560 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2561 esac
2562 fi
2563 done
2564 if $ac_cache_corrupted; then
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2568 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2569 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2570 fi
2571 ## -------------------- ##
2572 ## Main body of script. ##
2573 ## -------------------- ##
2574
2575 ac_ext=c
2576 ac_cpp='$CPP $CPPFLAGS'
2577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2580
2581
2582
2583
2584
2585
2586 ac_aux_dir=
2587 for ac_dir in build-aux "$srcdir"/build-aux; do
2588 if test -f "$ac_dir/install-sh"; then
2589 ac_aux_dir=$ac_dir
2590 ac_install_sh="$ac_aux_dir/install-sh -c"
2591 break
2592 elif test -f "$ac_dir/install.sh"; then
2593 ac_aux_dir=$ac_dir
2594 ac_install_sh="$ac_aux_dir/install.sh -c"
2595 break
2596 elif test -f "$ac_dir/shtool"; then
2597 ac_aux_dir=$ac_dir
2598 ac_install_sh="$ac_aux_dir/shtool install -c"
2599 break
2600 fi
2601 done
2602 if test -z "$ac_aux_dir"; then
2603 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2604 fi
2605
2606 # These three variables are undocumented and unsupported,
2607 # and are intended to be withdrawn in a future Autoconf release.
2608 # They can cause serious problems if a builder's source tree is in a directory
2609 # whose full name contains unusual characters.
2610 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2611 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2612 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2613
2614
2615
2616 am__api_version='1.11'
2617
2618 # Find a good install program. We prefer a C program (faster),
2619 # so one script is as good as another. But avoid the broken or
2620 # incompatible versions:
2621 # SysV /etc/install, /usr/sbin/install
2622 # SunOS /usr/etc/install
2623 # IRIX /sbin/install
2624 # AIX /bin/install
2625 # AmigaOS /C/install, which installs bootblocks on floppy discs
2626 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2627 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2628 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2629 # OS/2's system install, which has a completely different semantic
2630 # ./install, which can be erroneously created by make from ./install.sh.
2631 # Reject install programs that cannot install multiple files.
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2633 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2634 if test -z "$INSTALL"; then
2635 if ${ac_cv_path_install+:} false; then :
2636 $as_echo_n "(cached) " >&6
2637 else
2638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2639 for as_dir in $PATH
2640 do
2641 IFS=$as_save_IFS
2642 test -z "$as_dir" && as_dir=.
2643 # Account for people who put trailing slashes in PATH elements.
2644 case $as_dir/ in #((
2645 ./ | .// | /[cC]/* | \
2646 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2647 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2648 /usr/ucb/* ) ;;
2649 *)
2650 # OSF1 and SCO ODT 3.0 have their own names for install.
2651 # Don't use installbsd from OSF since it installs stuff as root
2652 # by default.
2653 for ac_prog in ginstall scoinst install; do
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2656 if test $ac_prog = install &&
2657 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2658 # AIX install. It has an incompatible calling convention.
2659 :
2660 elif test $ac_prog = install &&
2661 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2662 # program-specific install script used by HP pwplus--don't use.
2663 :
2664 else
2665 rm -rf conftest.one conftest.two conftest.dir
2666 echo one > conftest.one
2667 echo two > conftest.two
2668 mkdir conftest.dir
2669 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2670 test -s conftest.one && test -s conftest.two &&
2671 test -s conftest.dir/conftest.one &&
2672 test -s conftest.dir/conftest.two
2673 then
2674 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2675 break 3
2676 fi
2677 fi
2678 fi
2679 done
2680 done
2681 ;;
2682 esac
2683
2684 done
2685 IFS=$as_save_IFS
2686
2687 rm -rf conftest.one conftest.two conftest.dir
2688
2689 fi
2690 if test "${ac_cv_path_install+set}" = set; then
2691 INSTALL=$ac_cv_path_install
2692 else
2693 # As a last resort, use the slow shell script. Don't cache a
2694 # value for INSTALL within a source directory, because that will
2695 # break other packages using the cache if that directory is
2696 # removed, or if the value is a relative name.
2697 INSTALL=$ac_install_sh
2698 fi
2699 fi
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2701 $as_echo "$INSTALL" >&6; }
2702
2703 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2704 # It thinks the first close brace ends the variable substitution.
2705 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2706
2707 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2708
2709 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2710
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2712 $as_echo_n "checking whether build environment is sane... " >&6; }
2713 # Just in case
2714 sleep 1
2715 echo timestamp > conftest.file
2716 # Reject unsafe characters in $srcdir or the absolute working directory
2717 # name. Accept space and tab only in the latter.
2718 am_lf='
2719 '
2720 case `pwd` in
2721 *[\\\"\#\$\&\'\`$am_lf]*)
2722 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2723 esac
2724 case $srcdir in
2725 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2726 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2727 esac
2728
2729 # Do `set' in a subshell so we don't clobber the current shell's
2730 # arguments. Must try -L first in case configure is actually a
2731 # symlink; some systems play weird games with the mod time of symlinks
2732 # (eg FreeBSD returns the mod time of the symlink's containing
2733 # directory).
2734 if (
2735 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2736 if test "$*" = "X"; then
2737 # -L didn't work.
2738 set X `ls -t "$srcdir/configure" conftest.file`
2739 fi
2740 rm -f conftest.file
2741 if test "$*" != "X $srcdir/configure conftest.file" \
2742 && test "$*" != "X conftest.file $srcdir/configure"; then
2743
2744 # If neither matched, then we have a broken ls. This can happen
2745 # if, for instance, CONFIG_SHELL is bash and it inherits a
2746 # broken ls alias from the environment. This has actually
2747 # happened. Such a system could not be considered "sane".
2748 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2749 alias in your environment" "$LINENO" 5
2750 fi
2751
2752 test "$2" = conftest.file
2753 )
2754 then
2755 # Ok.
2756 :
2757 else
2758 as_fn_error $? "newly created file is older than distributed files!
2759 Check your system clock" "$LINENO" 5
2760 fi
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2762 $as_echo "yes" >&6; }
2763 test "$program_prefix" != NONE &&
2764 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2765 # Use a double $ so make ignores it.
2766 test "$program_suffix" != NONE &&
2767 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2768 # Double any \ or $.
2769 # By default was `s,x,x', remove it if useless.
2770 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2771 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2772
2773 # expand $ac_aux_dir to an absolute path
2774 am_aux_dir=`cd $ac_aux_dir && pwd`
2775
2776 if test x"${MISSING+set}" != xset; then
2777 case $am_aux_dir in
2778 *\ * | *\ *)
2779 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2780 *)
2781 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2782 esac
2783 fi
2784 # Use eval to expand $SHELL
2785 if eval "$MISSING --run true"; then
2786 am_missing_run="$MISSING --run "
2787 else
2788 am_missing_run=
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2790 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2791 fi
2792
2793 if test x"${install_sh}" != xset; then
2794 case $am_aux_dir in
2795 *\ * | *\ *)
2796 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2797 *)
2798 install_sh="\${SHELL} $am_aux_dir/install-sh"
2799 esac
2800 fi
2801
2802 # Installed binaries are usually stripped using `strip' when the user
2803 # run `make install-strip'. However `strip' might not be the right
2804 # tool to use in cross-compilation environments, therefore Automake
2805 # will honor the `STRIP' environment variable to overrule this program.
2806 if test "$cross_compiling" != no; then
2807 if test -n "$ac_tool_prefix"; then
2808 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2809 set dummy ${ac_tool_prefix}strip; ac_word=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 $as_echo_n "checking for $ac_word... " >&6; }
2812 if ${ac_cv_prog_STRIP+:} false; then :
2813 $as_echo_n "(cached) " >&6
2814 else
2815 if test -n "$STRIP"; then
2816 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2820 do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2825 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2828 fi
2829 done
2830 done
2831 IFS=$as_save_IFS
2832
2833 fi
2834 fi
2835 STRIP=$ac_cv_prog_STRIP
2836 if test -n "$STRIP"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2838 $as_echo "$STRIP" >&6; }
2839 else
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2842 fi
2843
2844
2845 fi
2846 if test -z "$ac_cv_prog_STRIP"; then
2847 ac_ct_STRIP=$STRIP
2848 # Extract the first word of "strip", so it can be a program name with args.
2849 set dummy strip; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2853 $as_echo_n "(cached) " >&6
2854 else
2855 if test -n "$ac_ct_STRIP"; then
2856 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2860 do
2861 IFS=$as_save_IFS
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865 ac_cv_prog_ac_ct_STRIP="strip"
2866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 break 2
2868 fi
2869 done
2870 done
2871 IFS=$as_save_IFS
2872
2873 fi
2874 fi
2875 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2876 if test -n "$ac_ct_STRIP"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2878 $as_echo "$ac_ct_STRIP" >&6; }
2879 else
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2882 fi
2883
2884 if test "x$ac_ct_STRIP" = x; then
2885 STRIP=":"
2886 else
2887 case $cross_compiling:$ac_tool_warned in
2888 yes:)
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2891 ac_tool_warned=yes ;;
2892 esac
2893 STRIP=$ac_ct_STRIP
2894 fi
2895 else
2896 STRIP="$ac_cv_prog_STRIP"
2897 fi
2898
2899 fi
2900 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2901
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2903 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2904 if test -z "$MKDIR_P"; then
2905 if ${ac_cv_path_mkdir+:} false; then :
2906 $as_echo_n "(cached) " >&6
2907 else
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2910 do
2911 IFS=$as_save_IFS
2912 test -z "$as_dir" && as_dir=.
2913 for ac_prog in mkdir gmkdir; do
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2916 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2917 'mkdir (GNU coreutils) '* | \
2918 'mkdir (coreutils) '* | \
2919 'mkdir (fileutils) '4.1*)
2920 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2921 break 3;;
2922 esac
2923 done
2924 done
2925 done
2926 IFS=$as_save_IFS
2927
2928 fi
2929
2930 test -d ./--version && rmdir ./--version
2931 if test "${ac_cv_path_mkdir+set}" = set; then
2932 MKDIR_P="$ac_cv_path_mkdir -p"
2933 else
2934 # As a last resort, use the slow shell script. Don't cache a
2935 # value for MKDIR_P within a source directory, because that will
2936 # break other packages using the cache if that directory is
2937 # removed, or if the value is a relative name.
2938 MKDIR_P="$ac_install_sh -d"
2939 fi
2940 fi
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2942 $as_echo "$MKDIR_P" >&6; }
2943
2944 mkdir_p="$MKDIR_P"
2945 case $mkdir_p in
2946 [\\/$]* | ?:[\\/]*) ;;
2947 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2948 esac
2949
2950 for ac_prog in gawk mawk nawk awk
2951 do
2952 # Extract the first word of "$ac_prog", so it can be a program name with args.
2953 set dummy $ac_prog; ac_word=$2
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955 $as_echo_n "checking for $ac_word... " >&6; }
2956 if ${ac_cv_prog_AWK+:} false; then :
2957 $as_echo_n "(cached) " >&6
2958 else
2959 if test -n "$AWK"; then
2960 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2964 do
2965 IFS=$as_save_IFS
2966 test -z "$as_dir" && as_dir=.
2967 for ac_exec_ext in '' $ac_executable_extensions; do
2968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969 ac_cv_prog_AWK="$ac_prog"
2970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 break 2
2972 fi
2973 done
2974 done
2975 IFS=$as_save_IFS
2976
2977 fi
2978 fi
2979 AWK=$ac_cv_prog_AWK
2980 if test -n "$AWK"; then
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2982 $as_echo "$AWK" >&6; }
2983 else
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985 $as_echo "no" >&6; }
2986 fi
2987
2988
2989 test -n "$AWK" && break
2990 done
2991
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2993 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2994 set x ${MAKE-make}
2995 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2996 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2997 $as_echo_n "(cached) " >&6
2998 else
2999 cat >conftest.make <<\_ACEOF
3000 SHELL = /bin/sh
3001 all:
3002 @echo '@@@%%%=$(MAKE)=@@@%%%'
3003 _ACEOF
3004 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3005 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3006 *@@@%%%=?*=@@@%%%*)
3007 eval ac_cv_prog_make_${ac_make}_set=yes;;
3008 *)
3009 eval ac_cv_prog_make_${ac_make}_set=no;;
3010 esac
3011 rm -f conftest.make
3012 fi
3013 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3015 $as_echo "yes" >&6; }
3016 SET_MAKE=
3017 else
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 SET_MAKE="MAKE=${MAKE-make}"
3021 fi
3022
3023 rm -rf .tst 2>/dev/null
3024 mkdir .tst 2>/dev/null
3025 if test -d .tst; then
3026 am__leading_dot=.
3027 else
3028 am__leading_dot=_
3029 fi
3030 rmdir .tst 2>/dev/null
3031
3032 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3033 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3034 # is not polluted with repeated "-I."
3035 am__isrc=' -I$(srcdir)'
3036 # test to see if srcdir already configured
3037 if test -f $srcdir/config.status; then
3038 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3039 fi
3040 fi
3041
3042 # test whether we have cygpath
3043 if test -z "$CYGPATH_W"; then
3044 if (cygpath --version) >/dev/null 2>/dev/null; then
3045 CYGPATH_W='cygpath -w'
3046 else
3047 CYGPATH_W=echo
3048 fi
3049 fi
3050
3051
3052 # Define the identity of the package.
3053 PACKAGE='libevent'
3054 VERSION='2.1.2-alpha-dev'
3055
3056
3057 cat >>confdefs.h <<_ACEOF
3058 #define PACKAGE "$PACKAGE"
3059 _ACEOF
3060
3061
3062 cat >>confdefs.h <<_ACEOF
3063 #define VERSION "$VERSION"
3064 _ACEOF
3065
3066 # Some tools Automake needs.
3067
3068 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3069
3070
3071 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3072
3073
3074 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3075
3076
3077 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3078
3079
3080 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3081
3082 # We need awk for the "check" target. The system "awk" is bad on
3083 # some platforms.
3084 # Always define AMTAR for backward compatibility.
3085
3086 AMTAR=${AMTAR-"${am_missing_run}tar"}
3087
3088 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3089
3090
3091
3092
3093
3094 # Check whether --enable-silent-rules was given.
3095 if test "${enable_silent_rules+set}" = set; then :
3096 enableval=$enable_silent_rules;
3097 fi
3098
3099 case $enable_silent_rules in
3100 yes) AM_DEFAULT_VERBOSITY=0;;
3101 no) AM_DEFAULT_VERBOSITY=1;;
3102 *) AM_DEFAULT_VERBOSITY=0;;
3103 esac
3104 AM_BACKSLASH='\'
3105
3106 ac_config_headers="$ac_config_headers config.h evconfig-private.h:evconfig-private.h.in"
3107
3108
3109 $as_echo "#define NUMERIC_VERSION 0x02010201" >>confdefs.h
3110
3111
3112 if test "$prefix" = "NONE"; then
3113 prefix="/usr/local"
3114 fi
3115
3116
3117 # Make sure we can run config.sub.
3118 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3119 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3120
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3122 $as_echo_n "checking build system type... " >&6; }
3123 if ${ac_cv_build+:} false; then :
3124 $as_echo_n "(cached) " >&6
3125 else
3126 ac_build_alias=$build_alias
3127 test "x$ac_build_alias" = x &&
3128 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3129 test "x$ac_build_alias" = x &&
3130 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3131 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3132 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3133
3134 fi
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3136 $as_echo "$ac_cv_build" >&6; }
3137 case $ac_cv_build in
3138 *-*-*) ;;
3139 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3140 esac
3141 build=$ac_cv_build
3142 ac_save_IFS=$IFS; IFS='-'
3143 set x $ac_cv_build
3144 shift
3145 build_cpu=$1
3146 build_vendor=$2
3147 shift; shift
3148 # Remember, the first character of IFS is used to create $*,
3149 # except with old shells:
3150 build_os=$*
3151 IFS=$ac_save_IFS
3152 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3153
3154
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3156 $as_echo_n "checking host system type... " >&6; }
3157 if ${ac_cv_host+:} false; then :
3158 $as_echo_n "(cached) " >&6
3159 else
3160 if test "x$host_alias" = x; then
3161 ac_cv_host=$ac_cv_build
3162 else
3163 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3164 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3165 fi
3166
3167 fi
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3169 $as_echo "$ac_cv_host" >&6; }
3170 case $ac_cv_host in
3171 *-*-*) ;;
3172 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3173 esac
3174 host=$ac_cv_host
3175 ac_save_IFS=$IFS; IFS='-'
3176 set x $ac_cv_host
3177 shift
3178 host_cpu=$1
3179 host_vendor=$2
3180 shift; shift
3181 # Remember, the first character of IFS is used to create $*,
3182 # except with old shells:
3183 host_os=$*
3184 IFS=$ac_save_IFS
3185 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3186
3187
3188 DEPDIR="${am__leading_dot}deps"
3189
3190 ac_config_commands="$ac_config_commands depfiles"
3191
3192
3193 am_make=${MAKE-make}
3194 cat > confinc << 'END'
3195 am__doit:
3196 @echo this is the am__doit target
3197 .PHONY: am__doit
3198 END
3199 # If we don't find an include directive, just comment out the code.
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3201 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3202 am__include="#"
3203 am__quote=
3204 _am_result=none
3205 # First try GNU make style include.
3206 echo "include confinc" > confmf
3207 # Ignore all kinds of additional output from `make'.
3208 case `$am_make -s -f confmf 2> /dev/null` in #(
3209 *the\ am__doit\ target*)
3210 am__include=include
3211 am__quote=
3212 _am_result=GNU
3213 ;;
3214 esac
3215 # Now try BSD make style include.
3216 if test "$am__include" = "#"; then
3217 echo '.include "confinc"' > confmf
3218 case `$am_make -s -f confmf 2> /dev/null` in #(
3219 *the\ am__doit\ target*)
3220 am__include=.include
3221 am__quote="\""
3222 _am_result=BSD
3223 ;;
3224 esac
3225 fi
3226
3227
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3229 $as_echo "$_am_result" >&6; }
3230 rm -f confinc confmf
3231
3232 # Check whether --enable-dependency-tracking was given.
3233 if test "${enable_dependency_tracking+set}" = set; then :
3234 enableval=$enable_dependency_tracking;
3235 fi
3236
3237 if test "x$enable_dependency_tracking" != xno; then
3238 am_depcomp="$ac_aux_dir/depcomp"
3239 AMDEPBACKSLASH='\'
3240 fi
3241 if test "x$enable_dependency_tracking" != xno; then
3242 AMDEP_TRUE=
3243 AMDEP_FALSE='#'
3244 else
3245 AMDEP_TRUE='#'
3246 AMDEP_FALSE=
3247 fi
3248
3249
3250 ac_ext=c
3251 ac_cpp='$CPP $CPPFLAGS'
3252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3255 if test -n "$ac_tool_prefix"; then
3256 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3257 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if ${ac_cv_prog_CC+:} false; then :
3261 $as_echo_n "(cached) " >&6
3262 else
3263 if test -n "$CC"; then
3264 ac_cv_prog_CC="$CC" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269 IFS=$as_save_IFS
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 break 2
3276 fi
3277 done
3278 done
3279 IFS=$as_save_IFS
3280
3281 fi
3282 fi
3283 CC=$ac_cv_prog_CC
3284 if test -n "$CC"; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3286 $as_echo "$CC" >&6; }
3287 else
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3290 fi
3291
3292
3293 fi
3294 if test -z "$ac_cv_prog_CC"; then
3295 ac_ct_CC=$CC
3296 # Extract the first word of "gcc", so it can be a program name with args.
3297 set dummy gcc; ac_word=$2
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299 $as_echo_n "checking for $ac_word... " >&6; }
3300 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3301 $as_echo_n "(cached) " >&6
3302 else
3303 if test -n "$ac_ct_CC"; then
3304 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3305 else
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3308 do
3309 IFS=$as_save_IFS
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3313 ac_cv_prog_ac_ct_CC="gcc"
3314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 break 2
3316 fi
3317 done
3318 done
3319 IFS=$as_save_IFS
3320
3321 fi
3322 fi
3323 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3324 if test -n "$ac_ct_CC"; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3326 $as_echo "$ac_ct_CC" >&6; }
3327 else
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 fi
3331
3332 if test "x$ac_ct_CC" = x; then
3333 CC=""
3334 else
3335 case $cross_compiling:$ac_tool_warned in
3336 yes:)
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3339 ac_tool_warned=yes ;;
3340 esac
3341 CC=$ac_ct_CC
3342 fi
3343 else
3344 CC="$ac_cv_prog_CC"
3345 fi
3346
3347 if test -z "$CC"; then
3348 if test -n "$ac_tool_prefix"; then
3349 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3350 set dummy ${ac_tool_prefix}cc; ac_word=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if ${ac_cv_prog_CC+:} false; then :
3354 $as_echo_n "(cached) " >&6
3355 else
3356 if test -n "$CC"; then
3357 ac_cv_prog_CC="$CC" # Let the user override the test.
3358 else
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3361 do
3362 IFS=$as_save_IFS
3363 test -z "$as_dir" && as_dir=.
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3366 ac_cv_prog_CC="${ac_tool_prefix}cc"
3367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3368 break 2
3369 fi
3370 done
3371 done
3372 IFS=$as_save_IFS
3373
3374 fi
3375 fi
3376 CC=$ac_cv_prog_CC
3377 if test -n "$CC"; then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3379 $as_echo "$CC" >&6; }
3380 else
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382 $as_echo "no" >&6; }
3383 fi
3384
3385
3386 fi
3387 fi
3388 if test -z "$CC"; then
3389 # Extract the first word of "cc", so it can be a program name with args.
3390 set dummy cc; ac_word=$2
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3392 $as_echo_n "checking for $ac_word... " >&6; }
3393 if ${ac_cv_prog_CC+:} false; then :
3394 $as_echo_n "(cached) " >&6
3395 else
3396 if test -n "$CC"; then
3397 ac_cv_prog_CC="$CC" # Let the user override the test.
3398 else
3399 ac_prog_rejected=no
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3402 do
3403 IFS=$as_save_IFS
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3407 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3408 ac_prog_rejected=yes
3409 continue
3410 fi
3411 ac_cv_prog_CC="cc"
3412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3413 break 2
3414 fi
3415 done
3416 done
3417 IFS=$as_save_IFS
3418
3419 if test $ac_prog_rejected = yes; then
3420 # We found a bogon in the path, so make sure we never use it.
3421 set dummy $ac_cv_prog_CC
3422 shift
3423 if test $# != 0; then
3424 # We chose a different compiler from the bogus one.
3425 # However, it has the same basename, so the bogon will be chosen
3426 # first if we set CC to just the basename; use the full file name.
3427 shift
3428 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3429 fi
3430 fi
3431 fi
3432 fi
3433 CC=$ac_cv_prog_CC
3434 if test -n "$CC"; then
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3436 $as_echo "$CC" >&6; }
3437 else
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3440 fi
3441
3442
3443 fi
3444 if test -z "$CC"; then
3445 if test -n "$ac_tool_prefix"; then
3446 for ac_prog in cl.exe
3447 do
3448 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 $as_echo_n "checking for $ac_word... " >&6; }
3452 if ${ac_cv_prog_CC+:} false; then :
3453 $as_echo_n "(cached) " >&6
3454 else
3455 if test -n "$CC"; then
3456 ac_cv_prog_CC="$CC" # Let the user override the test.
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3460 do
3461 IFS=$as_save_IFS
3462 test -z "$as_dir" && as_dir=.
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3465 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 break 2
3468 fi
3469 done
3470 done
3471 IFS=$as_save_IFS
3472
3473 fi
3474 fi
3475 CC=$ac_cv_prog_CC
3476 if test -n "$CC"; then
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3478 $as_echo "$CC" >&6; }
3479 else
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3482 fi
3483
3484
3485 test -n "$CC" && break
3486 done
3487 fi
3488 if test -z "$CC"; then
3489 ac_ct_CC=$CC
3490 for ac_prog in cl.exe
3491 do
3492 # Extract the first word of "$ac_prog", so it can be a program name with args.
3493 set dummy $ac_prog; ac_word=$2
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495 $as_echo_n "checking for $ac_word... " >&6; }
3496 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3497 $as_echo_n "(cached) " >&6
3498 else
3499 if test -n "$ac_ct_CC"; then
3500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3501 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3504 do
3505 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 ac_cv_prog_ac_ct_CC="$ac_prog"
3510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 break 2
3512 fi
3513 done
3514 done
3515 IFS=$as_save_IFS
3516
3517 fi
3518 fi
3519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3520 if test -n "$ac_ct_CC"; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3522 $as_echo "$ac_ct_CC" >&6; }
3523 else
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3526 fi
3527
3528
3529 test -n "$ac_ct_CC" && break
3530 done
3531
3532 if test "x$ac_ct_CC" = x; then
3533 CC=""
3534 else
3535 case $cross_compiling:$ac_tool_warned in
3536 yes:)
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3539 ac_tool_warned=yes ;;
3540 esac
3541 CC=$ac_ct_CC
3542 fi
3543 fi
3544
3545 fi
3546
3547
3548 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3550 as_fn_error $? "no acceptable C compiler found in \$PATH
3551 See \`config.log' for more details" "$LINENO" 5; }
3552
3553 # Provide some information about the compiler.
3554 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3555 set X $ac_compile
3556 ac_compiler=$2
3557 for ac_option in --version -v -V -qversion; do
3558 { { ac_try="$ac_compiler $ac_option >&5"
3559 case "(($ac_try" in
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3562 esac
3563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 $as_echo "$ac_try_echo"; } >&5
3565 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3566 ac_status=$?
3567 if test -s conftest.err; then
3568 sed '10a\
3569 ... rest of stderr output deleted ...
3570 10q' conftest.err >conftest.er1
3571 cat conftest.er1 >&5
3572 fi
3573 rm -f conftest.er1 conftest.err
3574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575 test $ac_status = 0; }
3576 done
3577
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580
3581 int
3582 main ()
3583 {
3584
3585 ;
3586 return 0;
3587 }
3588 _ACEOF
3589 ac_clean_files_save=$ac_clean_files
3590 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3591 # Try to create an executable without -o first, disregard a.out.
3592 # It will help us diagnose broken compilers, and finding out an intuition
3593 # of exeext.
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3595 $as_echo_n "checking whether the C compiler works... " >&6; }
3596 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3597
3598 # The possible output files:
3599 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3600
3601 ac_rmfiles=
3602 for ac_file in $ac_files
3603 do
3604 case $ac_file in
3605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3606 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3607 esac
3608 done
3609 rm -f $ac_rmfiles
3610
3611 if { { ac_try="$ac_link_default"
3612 case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3615 esac
3616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618 (eval "$ac_link_default") 2>&5
3619 ac_status=$?
3620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621 test $ac_status = 0; }; then :
3622 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3623 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3624 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3625 # so that the user can short-circuit this test for compilers unknown to
3626 # Autoconf.
3627 for ac_file in $ac_files ''
3628 do
3629 test -f "$ac_file" || continue
3630 case $ac_file in
3631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3632 ;;
3633 [ab].out )
3634 # We found the default executable, but exeext='' is most
3635 # certainly right.
3636 break;;
3637 *.* )
3638 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3639 then :; else
3640 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3641 fi
3642 # We set ac_cv_exeext here because the later test for it is not
3643 # safe: cross compilers may not add the suffix if given an `-o'
3644 # argument, so we may need to know it at that point already.
3645 # Even if this section looks crufty: it has the advantage of
3646 # actually working.
3647 break;;
3648 * )
3649 break;;
3650 esac
3651 done
3652 test "$ac_cv_exeext" = no && ac_cv_exeext=
3653
3654 else
3655 ac_file=''
3656 fi
3657 if test -z "$ac_file"; then :
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3660 $as_echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3662
3663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 as_fn_error 77 "C compiler cannot create executables
3666 See \`config.log' for more details" "$LINENO" 5; }
3667 else
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3669 $as_echo "yes" >&6; }
3670 fi
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3672 $as_echo_n "checking for C compiler default output file name... " >&6; }
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3674 $as_echo "$ac_file" >&6; }
3675 ac_exeext=$ac_cv_exeext
3676
3677 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3678 ac_clean_files=$ac_clean_files_save
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3680 $as_echo_n "checking for suffix of executables... " >&6; }
3681 if { { ac_try="$ac_link"
3682 case "(($ac_try" in
3683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684 *) ac_try_echo=$ac_try;;
3685 esac
3686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3687 $as_echo "$ac_try_echo"; } >&5
3688 (eval "$ac_link") 2>&5
3689 ac_status=$?
3690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3691 test $ac_status = 0; }; then :
3692 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3693 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3694 # work properly (i.e., refer to `conftest.exe'), while it won't with
3695 # `rm'.
3696 for ac_file in conftest.exe conftest conftest.*; do
3697 test -f "$ac_file" || continue
3698 case $ac_file in
3699 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3700 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3701 break;;
3702 * ) break;;
3703 esac
3704 done
3705 else
3706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3709 See \`config.log' for more details" "$LINENO" 5; }
3710 fi
3711 rm -f conftest conftest$ac_cv_exeext
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3713 $as_echo "$ac_cv_exeext" >&6; }
3714
3715 rm -f conftest.$ac_ext
3716 EXEEXT=$ac_cv_exeext
3717 ac_exeext=$EXEEXT
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3720 #include <stdio.h>
3721 int
3722 main ()
3723 {
3724 FILE *f = fopen ("conftest.out", "w");
3725 return ferror (f) || fclose (f) != 0;
3726
3727 ;
3728 return 0;
3729 }
3730 _ACEOF
3731 ac_clean_files="$ac_clean_files conftest.out"
3732 # Check that the compiler produces executables we can run. If not, either
3733 # the compiler is broken, or we cross compile.
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3735 $as_echo_n "checking whether we are cross compiling... " >&6; }
3736 if test "$cross_compiling" != yes; then
3737 { { ac_try="$ac_link"
3738 case "(($ac_try" in
3739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740 *) ac_try_echo=$ac_try;;
3741 esac
3742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3743 $as_echo "$ac_try_echo"; } >&5
3744 (eval "$ac_link") 2>&5
3745 ac_status=$?
3746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3747 test $ac_status = 0; }
3748 if { ac_try='./conftest$ac_cv_exeext'
3749 { { case "(($ac_try" in
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3752 esac
3753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754 $as_echo "$ac_try_echo"; } >&5
3755 (eval "$ac_try") 2>&5
3756 ac_status=$?
3757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3758 test $ac_status = 0; }; }; then
3759 cross_compiling=no
3760 else
3761 if test "$cross_compiling" = maybe; then
3762 cross_compiling=yes
3763 else
3764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3766 as_fn_error $? "cannot run C compiled programs.
3767 If you meant to cross compile, use \`--host'.
3768 See \`config.log' for more details" "$LINENO" 5; }
3769 fi
3770 fi
3771 fi
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3773 $as_echo "$cross_compiling" >&6; }
3774
3775 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3776 ac_clean_files=$ac_clean_files_save
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3778 $as_echo_n "checking for suffix of object files... " >&6; }
3779 if ${ac_cv_objext+:} false; then :
3780 $as_echo_n "(cached) " >&6
3781 else
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3784
3785 int
3786 main ()
3787 {
3788
3789 ;
3790 return 0;
3791 }
3792 _ACEOF
3793 rm -f conftest.o conftest.obj
3794 if { { ac_try="$ac_compile"
3795 case "(($ac_try" in
3796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797 *) ac_try_echo=$ac_try;;
3798 esac
3799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3800 $as_echo "$ac_try_echo"; } >&5
3801 (eval "$ac_compile") 2>&5
3802 ac_status=$?
3803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3804 test $ac_status = 0; }; then :
3805 for ac_file in conftest.o conftest.obj conftest.*; do
3806 test -f "$ac_file" || continue;
3807 case $ac_file in
3808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3809 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3810 break;;
3811 esac
3812 done
3813 else
3814 $as_echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3816
3817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3819 as_fn_error $? "cannot compute suffix of object files: cannot compile
3820 See \`config.log' for more details" "$LINENO" 5; }
3821 fi
3822 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3823 fi
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3825 $as_echo "$ac_cv_objext" >&6; }
3826 OBJEXT=$ac_cv_objext
3827 ac_objext=$OBJEXT
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3829 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3830 if ${ac_cv_c_compiler_gnu+:} false; then :
3831 $as_echo_n "(cached) " >&6
3832 else
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3835
3836 int
3837 main ()
3838 {
3839 #ifndef __GNUC__
3840 choke me
3841 #endif
3842
3843 ;
3844 return 0;
3845 }
3846 _ACEOF
3847 if ac_fn_c_try_compile "$LINENO"; then :
3848 ac_compiler_gnu=yes
3849 else
3850 ac_compiler_gnu=no
3851 fi
3852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3854
3855 fi
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3857 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3858 if test $ac_compiler_gnu = yes; then
3859 GCC=yes
3860 else
3861 GCC=
3862 fi
3863 ac_test_CFLAGS=${CFLAGS+set}
3864 ac_save_CFLAGS=$CFLAGS
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3866 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3867 if ${ac_cv_prog_cc_g+:} false; then :
3868 $as_echo_n "(cached) " >&6
3869 else
3870 ac_save_c_werror_flag=$ac_c_werror_flag
3871 ac_c_werror_flag=yes
3872 ac_cv_prog_cc_g=no
3873 CFLAGS="-g"
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3876
3877 int
3878 main ()
3879 {
3880
3881 ;
3882 return 0;
3883 }
3884 _ACEOF
3885 if ac_fn_c_try_compile "$LINENO"; then :
3886 ac_cv_prog_cc_g=yes
3887 else
3888 CFLAGS=""
3889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3891
3892 int
3893 main ()
3894 {
3895
3896 ;
3897 return 0;
3898 }
3899 _ACEOF
3900 if ac_fn_c_try_compile "$LINENO"; then :
3901
3902 else
3903 ac_c_werror_flag=$ac_save_c_werror_flag
3904 CFLAGS="-g"
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3907
3908 int
3909 main ()
3910 {
3911
3912 ;
3913 return 0;
3914 }
3915 _ACEOF
3916 if ac_fn_c_try_compile "$LINENO"; then :
3917 ac_cv_prog_cc_g=yes
3918 fi
3919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920 fi
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 fi
3923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 ac_c_werror_flag=$ac_save_c_werror_flag
3925 fi
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3927 $as_echo "$ac_cv_prog_cc_g" >&6; }
3928 if test "$ac_test_CFLAGS" = set; then
3929 CFLAGS=$ac_save_CFLAGS
3930 elif test $ac_cv_prog_cc_g = yes; then
3931 if test "$GCC" = yes; then
3932 CFLAGS="-g -O2"
3933 else
3934 CFLAGS="-g"
3935 fi
3936 else
3937 if test "$GCC" = yes; then
3938 CFLAGS="-O2"
3939 else
3940 CFLAGS=
3941 fi
3942 fi
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3944 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3945 if ${ac_cv_prog_cc_c89+:} false; then :
3946 $as_echo_n "(cached) " >&6
3947 else
3948 ac_cv_prog_cc_c89=no
3949 ac_save_CC=$CC
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h. */
3952 #include <stdarg.h>
3953 #include <stdio.h>
3954 #include <sys/types.h>
3955 #include <sys/stat.h>
3956 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3957 struct buf { int x; };
3958 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3959 static char *e (p, i)
3960 char **p;
3961 int i;
3962 {
3963 return p[i];
3964 }
3965 static char *f (char * (*g) (char **, int), char **p, ...)
3966 {
3967 char *s;
3968 va_list v;
3969 va_start (v,p);
3970 s = g (p, va_arg (v,int));
3971 va_end (v);
3972 return s;
3973 }
3974
3975 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3976 function prototypes and stuff, but not '\xHH' hex character constants.
3977 These don't provoke an error unfortunately, instead are silently treated
3978 as 'x'. The following induces an error, until -std is added to get
3979 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3980 array size at least. It's necessary to write '\x00'==0 to get something
3981 that's true only with -std. */
3982 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3983
3984 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3985 inside strings and character constants. */
3986 #define FOO(x) 'x'
3987 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3988
3989 int test (int i, double x);
3990 struct s1 {int (*f) (int a);};
3991 struct s2 {int (*f) (double a);};
3992 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3993 int argc;
3994 char **argv;
3995 int
3996 main ()
3997 {
3998 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3999 ;
4000 return 0;
4001 }
4002 _ACEOF
4003 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4004 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4005 do
4006 CC="$ac_save_CC $ac_arg"
4007 if ac_fn_c_try_compile "$LINENO"; then :
4008 ac_cv_prog_cc_c89=$ac_arg
4009 fi
4010 rm -f core conftest.err conftest.$ac_objext
4011 test "x$ac_cv_prog_cc_c89" != "xno" && break
4012 done
4013 rm -f conftest.$ac_ext
4014 CC=$ac_save_CC
4015
4016 fi
4017 # AC_CACHE_VAL
4018 case "x$ac_cv_prog_cc_c89" in
4019 x)
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4021 $as_echo "none needed" >&6; } ;;
4022 xno)
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4024 $as_echo "unsupported" >&6; } ;;
4025 *)
4026 CC="$CC $ac_cv_prog_cc_c89"
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4028 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4029 esac
4030 if test "x$ac_cv_prog_cc_c89" != xno; then :
4031
4032 fi
4033
4034 ac_ext=c
4035 ac_cpp='$CPP $CPPFLAGS'
4036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4039
4040 depcc="$CC" am_compiler_list=
4041
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4043 $as_echo_n "checking dependency style of $depcc... " >&6; }
4044 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4048 # We make a subdir and do the tests there. Otherwise we can end up
4049 # making bogus files that we don't know about and never remove. For
4050 # instance it was reported that on HP-UX the gcc test will end up
4051 # making a dummy file named `D' -- because `-MD' means `put the output
4052 # in D'.
4053 mkdir conftest.dir
4054 # Copy depcomp to subdir because otherwise we won't find it if we're
4055 # using a relative directory.
4056 cp "$am_depcomp" conftest.dir
4057 cd conftest.dir
4058 # We will build objects and dependencies in a subdirectory because
4059 # it helps to detect inapplicable dependency modes. For instance
4060 # both Tru64's cc and ICC support -MD to output dependencies as a
4061 # side effect of compilation, but ICC will put the dependencies in
4062 # the current directory while Tru64 will put them in the object
4063 # directory.
4064 mkdir sub
4065
4066 am_cv_CC_dependencies_compiler_type=none
4067 if test "$am_compiler_list" = ""; then
4068 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4069 fi
4070 am__universal=false
4071 case " $depcc " in #(
4072 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4073 esac
4074
4075 for depmode in $am_compiler_list; do
4076 # Setup a source with many dependencies, because some compilers
4077 # like to wrap large dependency lists on column 80 (with \), and
4078 # we should not choose a depcomp mode which is confused by this.
4079 #
4080 # We need to recreate these files for each test, as the compiler may
4081 # overwrite some of them when testing with obscure command lines.
4082 # This happens at least with the AIX C compiler.
4083 : > sub/conftest.c
4084 for i in 1 2 3 4 5 6; do
4085 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4086 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4087 # Solaris 8's {/usr,}/bin/sh.
4088 touch sub/conftst$i.h
4089 done
4090 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4091
4092 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4093 # mode. It turns out that the SunPro C++ compiler does not properly
4094 # handle `-M -o', and we need to detect this. Also, some Intel
4095 # versions had trouble with output in subdirs
4096 am__obj=sub/conftest.${OBJEXT-o}
4097 am__minus_obj="-o $am__obj"
4098 case $depmode in
4099 gcc)
4100 # This depmode causes a compiler race in universal mode.
4101 test "$am__universal" = false || continue
4102 ;;
4103 nosideeffect)
4104 # after this tag, mechanisms are not by side-effect, so they'll
4105 # only be used when explicitly requested
4106 if test "x$enable_dependency_tracking" = xyes; then
4107 continue
4108 else
4109 break
4110 fi
4111 ;;
4112 msvisualcpp | msvcmsys)
4113 # This compiler won't grok `-c -o', but also, the minuso test has
4114 # not run yet. These depmodes are late enough in the game, and
4115 # so weak that their functioning should not be impacted.
4116 am__obj=conftest.${OBJEXT-o}
4117 am__minus_obj=
4118 ;;
4119 none) break ;;
4120 esac
4121 if depmode=$depmode \
4122 source=sub/conftest.c object=$am__obj \
4123 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4124 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4125 >/dev/null 2>conftest.err &&
4126 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4127 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4128 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4129 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4130 # icc doesn't choke on unknown options, it will just issue warnings
4131 # or remarks (even with -Werror). So we grep stderr for any message
4132 # that says an option was ignored or not supported.
4133 # When given -MP, icc 7.0 and 7.1 complain thusly:
4134 # icc: Command line warning: ignoring option '-M'; no argument required
4135 # The diagnosis changed in icc 8.0:
4136 # icc: Command line remark: option '-MP' not supported
4137 if (grep 'ignoring option' conftest.err ||
4138 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4139 am_cv_CC_dependencies_compiler_type=$depmode
4140 break
4141 fi
4142 fi
4143 done
4144
4145 cd ..
4146 rm -rf conftest.dir
4147 else
4148 am_cv_CC_dependencies_compiler_type=none
4149 fi
4150
4151 fi
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4153 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4154 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4155
4156 if
4157 test "x$enable_dependency_tracking" != xno \
4158 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4159 am__fastdepCC_TRUE=
4160 am__fastdepCC_FALSE='#'
4161 else
4162 am__fastdepCC_TRUE='#'
4163 am__fastdepCC_FALSE=
4164 fi
4165
4166
4167
4168 ac_ext=c
4169 ac_cpp='$CPP $CPPFLAGS'
4170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4174 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4175 # On Suns, sometimes $CPP names a directory.
4176 if test -n "$CPP" && test -d "$CPP"; then
4177 CPP=
4178 fi
4179 if test -z "$CPP"; then
4180 if ${ac_cv_prog_CPP+:} false; then :
4181 $as_echo_n "(cached) " >&6
4182 else
4183 # Double quotes because CPP needs to be expanded
4184 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4185 do
4186 ac_preproc_ok=false
4187 for ac_c_preproc_warn_flag in '' yes
4188 do
4189 # Use a header file that comes with gcc, so configuring glibc
4190 # with a fresh cross-compiler works.
4191 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4192 # <limits.h> exists even on freestanding compilers.
4193 # On the NeXT, cc -E runs the code through the compiler's parser,
4194 # not just through cpp. "Syntax error" is here to catch this case.
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4197 #ifdef __STDC__
4198 # include <limits.h>
4199 #else
4200 # include <assert.h>
4201 #endif
4202 Syntax error
4203 _ACEOF
4204 if ac_fn_c_try_cpp "$LINENO"; then :
4205
4206 else
4207 # Broken: fails on valid input.
4208 continue
4209 fi
4210 rm -f conftest.err conftest.i conftest.$ac_ext
4211
4212 # OK, works on sane cases. Now check whether nonexistent headers
4213 # can be detected and how.
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4216 #include <ac_nonexistent.h>
4217 _ACEOF
4218 if ac_fn_c_try_cpp "$LINENO"; then :
4219 # Broken: success on invalid input.
4220 continue
4221 else
4222 # Passes both tests.
4223 ac_preproc_ok=:
4224 break
4225 fi
4226 rm -f conftest.err conftest.i conftest.$ac_ext
4227
4228 done
4229 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4230 rm -f conftest.i conftest.err conftest.$ac_ext
4231 if $ac_preproc_ok; then :
4232 break
4233 fi
4234
4235 done
4236 ac_cv_prog_CPP=$CPP
4237
4238 fi
4239 CPP=$ac_cv_prog_CPP
4240 else
4241 ac_cv_prog_CPP=$CPP
4242 fi
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4244 $as_echo "$CPP" >&6; }
4245 ac_preproc_ok=false
4246 for ac_c_preproc_warn_flag in '' yes
4247 do
4248 # Use a header file that comes with gcc, so configuring glibc
4249 # with a fresh cross-compiler works.
4250 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4251 # <limits.h> exists even on freestanding compilers.
4252 # On the NeXT, cc -E runs the code through the compiler's parser,
4253 # not just through cpp. "Syntax error" is here to catch this case.
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4256 #ifdef __STDC__
4257 # include <limits.h>
4258 #else
4259 # include <assert.h>
4260 #endif
4261 Syntax error
4262 _ACEOF
4263 if ac_fn_c_try_cpp "$LINENO"; then :
4264
4265 else
4266 # Broken: fails on valid input.
4267 continue
4268 fi
4269 rm -f conftest.err conftest.i conftest.$ac_ext
4270
4271 # OK, works on sane cases. Now check whether nonexistent headers
4272 # can be detected and how.
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4275 #include <ac_nonexistent.h>
4276 _ACEOF
4277 if ac_fn_c_try_cpp "$LINENO"; then :
4278 # Broken: success on invalid input.
4279 continue
4280 else
4281 # Passes both tests.
4282 ac_preproc_ok=:
4283 break
4284 fi
4285 rm -f conftest.err conftest.i conftest.$ac_ext
4286
4287 done
4288 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4289 rm -f conftest.i conftest.err conftest.$ac_ext
4290 if $ac_preproc_ok; then :
4291
4292 else
4293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4295 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4296 See \`config.log' for more details" "$LINENO" 5; }
4297 fi
4298
4299 ac_ext=c
4300 ac_cpp='$CPP $CPPFLAGS'
4301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304
4305
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4307 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4308 if ${ac_cv_path_GREP+:} false; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311 if test -z "$GREP"; then
4312 ac_path_GREP_found=false
4313 # Loop through the user's path and test for each of PROGNAME-LIST
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4316 do
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_prog in grep ggrep; do
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4322 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4323 # Check for GNU ac_path_GREP and select it if it is found.
4324 # Check for GNU $ac_path_GREP
4325 case `"$ac_path_GREP" --version 2>&1` in
4326 *GNU*)
4327 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4328 *)
4329 ac_count=0
4330 $as_echo_n 0123456789 >"conftest.in"
4331 while :
4332 do
4333 cat "conftest.in" "conftest.in" >"conftest.tmp"
4334 mv "conftest.tmp" "conftest.in"
4335 cp "conftest.in" "conftest.nl"
4336 $as_echo 'GREP' >> "conftest.nl"
4337 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4338 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4339 as_fn_arith $ac_count + 1 && ac_count=$as_val
4340 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4341 # Best one so far, save it but keep looking for a better one
4342 ac_cv_path_GREP="$ac_path_GREP"
4343 ac_path_GREP_max=$ac_count
4344 fi
4345 # 10*(2^10) chars as input seems more than enough
4346 test $ac_count -gt 10 && break
4347 done
4348 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4349 esac
4350
4351 $ac_path_GREP_found && break 3
4352 done
4353 done
4354 done
4355 IFS=$as_save_IFS
4356 if test -z "$ac_cv_path_GREP"; then
4357 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4358 fi
4359 else
4360 ac_cv_path_GREP=$GREP
4361 fi
4362
4363 fi
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4365 $as_echo "$ac_cv_path_GREP" >&6; }
4366 GREP="$ac_cv_path_GREP"
4367
4368
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4370 $as_echo_n "checking for egrep... " >&6; }
4371 if ${ac_cv_path_EGREP+:} false; then :
4372 $as_echo_n "(cached) " >&6
4373 else
4374 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4375 then ac_cv_path_EGREP="$GREP -E"
4376 else
4377 if test -z "$EGREP"; then
4378 ac_path_EGREP_found=false
4379 # Loop through the user's path and test for each of PROGNAME-LIST
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4382 do
4383 IFS=$as_save_IFS
4384 test -z "$as_dir" && as_dir=.
4385 for ac_prog in egrep; do
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4388 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4389 # Check for GNU ac_path_EGREP and select it if it is found.
4390 # Check for GNU $ac_path_EGREP
4391 case `"$ac_path_EGREP" --version 2>&1` in
4392 *GNU*)
4393 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4394 *)
4395 ac_count=0
4396 $as_echo_n 0123456789 >"conftest.in"
4397 while :
4398 do
4399 cat "conftest.in" "conftest.in" >"conftest.tmp"
4400 mv "conftest.tmp" "conftest.in"
4401 cp "conftest.in" "conftest.nl"
4402 $as_echo 'EGREP' >> "conftest.nl"
4403 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4405 as_fn_arith $ac_count + 1 && ac_count=$as_val
4406 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4407 # Best one so far, save it but keep looking for a better one
4408 ac_cv_path_EGREP="$ac_path_EGREP"
4409 ac_path_EGREP_max=$ac_count
4410 fi
4411 # 10*(2^10) chars as input seems more than enough
4412 test $ac_count -gt 10 && break
4413 done
4414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4415 esac
4416
4417 $ac_path_EGREP_found && break 3
4418 done
4419 done
4420 done
4421 IFS=$as_save_IFS
4422 if test -z "$ac_cv_path_EGREP"; then
4423 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4424 fi
4425 else
4426 ac_cv_path_EGREP=$EGREP
4427 fi
4428
4429 fi
4430 fi
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4432 $as_echo "$ac_cv_path_EGREP" >&6; }
4433 EGREP="$ac_cv_path_EGREP"
4434
4435
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4437 $as_echo_n "checking for ANSI C header files... " >&6; }
4438 if ${ac_cv_header_stdc+:} false; then :
4439 $as_echo_n "(cached) " >&6
4440 else
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4443 #include <stdlib.h>
4444 #include <stdarg.h>
4445 #include <string.h>
4446 #include <float.h>
4447
4448 int
4449 main ()
4450 {
4451
4452 ;
4453 return 0;
4454 }
4455 _ACEOF
4456 if ac_fn_c_try_compile "$LINENO"; then :
4457 ac_cv_header_stdc=yes
4458 else
4459 ac_cv_header_stdc=no
4460 fi
4461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4462
4463 if test $ac_cv_header_stdc = yes; then
4464 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4467 #include <string.h>
4468
4469 _ACEOF
4470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4471 $EGREP "memchr" >/dev/null 2>&1; then :
4472
4473 else
4474 ac_cv_header_stdc=no
4475 fi
4476 rm -f conftest*
4477
4478 fi
4479
4480 if test $ac_cv_header_stdc = yes; then
4481 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h. */
4484 #include <stdlib.h>
4485
4486 _ACEOF
4487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4488 $EGREP "free" >/dev/null 2>&1; then :
4489
4490 else
4491 ac_cv_header_stdc=no
4492 fi
4493 rm -f conftest*
4494
4495 fi
4496
4497 if test $ac_cv_header_stdc = yes; then
4498 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4499 if test "$cross_compiling" = yes; then :
4500 :
4501 else
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4504 #include <ctype.h>
4505 #include <stdlib.h>
4506 #if ((' ' & 0x0FF) == 0x020)
4507 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4508 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4509 #else
4510 # define ISLOWER(c) \
4511 (('a' <= (c) && (c) <= 'i') \
4512 || ('j' <= (c) && (c) <= 'r') \
4513 || ('s' <= (c) && (c) <= 'z'))
4514 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4515 #endif
4516
4517 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4518 int
4519 main ()
4520 {
4521 int i;
4522 for (i = 0; i < 256; i++)
4523 if (XOR (islower (i), ISLOWER (i))
4524 || toupper (i) != TOUPPER (i))
4525 return 2;
4526 return 0;
4527 }
4528 _ACEOF
4529 if ac_fn_c_try_run "$LINENO"; then :
4530
4531 else
4532 ac_cv_header_stdc=no
4533 fi
4534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4535 conftest.$ac_objext conftest.beam conftest.$ac_ext
4536 fi
4537
4538 fi
4539 fi
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4541 $as_echo "$ac_cv_header_stdc" >&6; }
4542 if test $ac_cv_header_stdc = yes; then
4543
4544 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4545
4546 fi
4547
4548 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4549 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4550 inttypes.h stdint.h unistd.h
4551 do :
4552 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4553 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4554 "
4555 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4556 cat >>confdefs.h <<_ACEOF
4557 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4558 _ACEOF
4559
4560 fi
4561
4562 done
4563
4564
4565
4566
4567
4568 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4569 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4570 MINIX=yes
4571 else
4572 MINIX=
4573 fi
4574
4575
4576 if test "$MINIX" = yes; then
4577
4578 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4579
4580
4581 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4582
4583
4584 $as_echo "#define _MINIX 1" >>confdefs.h
4585
4586 fi
4587
4588 case "$host_os" in
4589 hpux*)
4590
4591 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4592
4593 ;;
4594 esac
4595
4596
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4598 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4599 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4600 $as_echo_n "(cached) " >&6
4601 else
4602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603 /* end confdefs.h. */
4604
4605 # define __EXTENSIONS__ 1
4606 $ac_includes_default
4607 int
4608 main ()
4609 {
4610
4611 ;
4612 return 0;
4613 }
4614 _ACEOF
4615 if ac_fn_c_try_compile "$LINENO"; then :
4616 ac_cv_safe_to_define___extensions__=yes
4617 else
4618 ac_cv_safe_to_define___extensions__=no
4619 fi
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 fi
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4623 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4624 test $ac_cv_safe_to_define___extensions__ = yes &&
4625 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4626
4627 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4628
4629 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4630
4631 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4632
4633 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4634
4635
4636
4637
4638
4639
4640
4641 #case "$host_os" in
4642 #
4643 # osf5*)
4644 # CFLAGS="$CFLAGS -D_OSF_SOURCE"
4645 # ;;
4646 #esac
4647
4648 if test "x$CC" != xcc; then
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4650 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4651 else
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4653 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4654 fi
4655 set dummy $CC; ac_cc=`$as_echo "$2" |
4656 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4657 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4658 $as_echo_n "(cached) " >&6
4659 else
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4662
4663 int
4664 main ()
4665 {
4666
4667 ;
4668 return 0;
4669 }
4670 _ACEOF
4671 # Make sure it works both with $CC and with simple cc.
4672 # We do the test twice because some compilers refuse to overwrite an
4673 # existing .o file with -o, though they will create one.
4674 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4675 rm -f conftest2.*
4676 if { { case "(($ac_try" in
4677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678 *) ac_try_echo=$ac_try;;
4679 esac
4680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4681 $as_echo "$ac_try_echo"; } >&5
4682 (eval "$ac_try") 2>&5
4683 ac_status=$?
4684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4685 test $ac_status = 0; } &&
4686 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688 *) ac_try_echo=$ac_try;;
4689 esac
4690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4691 $as_echo "$ac_try_echo"; } >&5
4692 (eval "$ac_try") 2>&5
4693 ac_status=$?
4694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4695 test $ac_status = 0; };
4696 then
4697 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4698 if test "x$CC" != xcc; then
4699 # Test first that cc exists at all.
4700 if { ac_try='cc -c conftest.$ac_ext >&5'
4701 { { case "(($ac_try" in
4702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703 *) ac_try_echo=$ac_try;;
4704 esac
4705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4706 $as_echo "$ac_try_echo"; } >&5
4707 (eval "$ac_try") 2>&5
4708 ac_status=$?
4709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4710 test $ac_status = 0; }; }; then
4711 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4712 rm -f conftest2.*
4713 if { { case "(($ac_try" in
4714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4715 *) ac_try_echo=$ac_try;;
4716 esac
4717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4718 $as_echo "$ac_try_echo"; } >&5
4719 (eval "$ac_try") 2>&5
4720 ac_status=$?
4721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4722 test $ac_status = 0; } &&
4723 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4725 *) ac_try_echo=$ac_try;;
4726 esac
4727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4728 $as_echo "$ac_try_echo"; } >&5
4729 (eval "$ac_try") 2>&5
4730 ac_status=$?
4731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4732 test $ac_status = 0; };
4733 then
4734 # cc works too.
4735 :
4736 else
4737 # cc exists but doesn't like -o.
4738 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4739 fi
4740 fi
4741 fi
4742 else
4743 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4744 fi
4745 rm -f core conftest*
4746
4747 fi
4748 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4750 $as_echo "yes" >&6; }
4751 else
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 $as_echo "no" >&6; }
4754
4755 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4756
4757 fi
4758
4759 # FIXME: we rely on the cache variable name because
4760 # there is no other way.
4761 set dummy $CC
4762 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4763 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4764 if test "$am_t" != yes; then
4765 # Losing compiler, so override with the script.
4766 # FIXME: It is wrong to rewrite CC.
4767 # But if we don't then we get into trouble of one sort or another.
4768 # A longer-term fix would be to have automake use am__CC in this case,
4769 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4770 CC="$am_aux_dir/compile $CC"
4771 fi
4772
4773
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4775 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4776 if ${ac_cv_path_SED+:} false; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4780 for ac_i in 1 2 3 4 5 6 7; do
4781 ac_script="$ac_script$as_nl$ac_script"
4782 done
4783 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4784 { ac_script=; unset ac_script;}
4785 if test -z "$SED"; then
4786 ac_path_SED_found=false
4787 # Loop through the user's path and test for each of PROGNAME-LIST
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH
4790 do
4791 IFS=$as_save_IFS
4792 test -z "$as_dir" && as_dir=.
4793 for ac_prog in sed gsed; do
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4796 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4797 # Check for GNU ac_path_SED and select it if it is found.
4798 # Check for GNU $ac_path_SED
4799 case `"$ac_path_SED" --version 2>&1` in
4800 *GNU*)
4801 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4802 *)
4803 ac_count=0
4804 $as_echo_n 0123456789 >"conftest.in"
4805 while :
4806 do
4807 cat "conftest.in" "conftest.in" >"conftest.tmp"
4808 mv "conftest.tmp" "conftest.in"
4809 cp "conftest.in" "conftest.nl"
4810 $as_echo '' >> "conftest.nl"
4811 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4812 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4813 as_fn_arith $ac_count + 1 && ac_count=$as_val
4814 if test $ac_count -gt ${ac_path_SED_max-0}; then
4815 # Best one so far, save it but keep looking for a better one
4816 ac_cv_path_SED="$ac_path_SED"
4817 ac_path_SED_max=$ac_count
4818 fi
4819 # 10*(2^10) chars as input seems more than enough
4820 test $ac_count -gt 10 && break
4821 done
4822 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4823 esac
4824
4825 $ac_path_SED_found && break 3
4826 done
4827 done
4828 done
4829 IFS=$as_save_IFS
4830 if test -z "$ac_cv_path_SED"; then
4831 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4832 fi
4833 else
4834 ac_cv_path_SED=$SED
4835 fi
4836
4837 fi
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4839 $as_echo "$ac_cv_path_SED" >&6; }
4840 SED="$ac_cv_path_SED"
4841 rm -f conftest.sed
4842
4843
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4845 $as_echo_n "checking whether ln -s works... " >&6; }
4846 LN_S=$as_ln_s
4847 if test "$LN_S" = "ln -s"; then
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4849 $as_echo "yes" >&6; }
4850 else
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4852 $as_echo "no, using $LN_S" >&6; }
4853 fi
4854
4855 # AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
4856
4857 if test $ac_cv_c_compiler_gnu = yes; then
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4859 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4860 if ${ac_cv_prog_gcc_traditional+:} false; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 ac_pattern="Autoconf.*'x'"
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4866 #include <sgtty.h>
4867 Autoconf TIOCGETP
4868 _ACEOF
4869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4870 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4871 ac_cv_prog_gcc_traditional=yes
4872 else
4873 ac_cv_prog_gcc_traditional=no
4874 fi
4875 rm -f conftest*
4876
4877
4878 if test $ac_cv_prog_gcc_traditional = no; then
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4881 #include <termio.h>
4882 Autoconf TCGETA
4883 _ACEOF
4884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4885 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4886 ac_cv_prog_gcc_traditional=yes
4887 fi
4888 rm -f conftest*
4889
4890 fi
4891 fi
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4893 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4894 if test $ac_cv_prog_gcc_traditional = yes; then
4895 CC="$CC -traditional"
4896 fi
4897 fi
4898
4899
4900 # We need to test for at least gcc 2.95 here, because older versions don't
4901 # have -fno-strict-aliasing
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4904
4905 int
4906 main ()
4907 {
4908
4909 #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
4910 #error
4911 #endif
4912 ;
4913 return 0;
4914 }
4915 _ACEOF
4916 if ac_fn_c_try_compile "$LINENO"; then :
4917 have_gcc295=yes
4918 else
4919 have_gcc295=no
4920 fi
4921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922
4923 if test "$GCC" = "yes" ; then
4924 # Enable many gcc warnings by default...
4925 CFLAGS="$CFLAGS -Wall"
4926 # And disable the strict-aliasing optimization, since it breaks
4927 # our sockaddr-handling code in strange ways.
4928 if test x$have_gcc295 = xyes; then
4929 CFLAGS="$CFLAGS -fno-strict-aliasing"
4930 fi
4931 fi
4932
4933 # OS X Lion started deprecating the system openssl. Let's just disable
4934 # all deprecation warnings on OS X.
4935 case "$host_os" in
4936
4937 darwin*)
4938 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
4939 ;;
4940 esac
4941
4942 # Check whether --enable-gcc-warnings was given.
4943 if test "${enable_gcc_warnings+set}" = set; then :
4944 enableval=$enable_gcc_warnings;
4945 fi
4946
4947
4948 # Check whether --enable-gcc-hardening was given.
4949 if test "${enable_gcc_hardening+set}" = set; then :
4950 enableval=$enable_gcc_hardening; if test x$enableval = xyes; then
4951 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
4952 CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector"
4953 CFLAGS="$CFLAGS --param ssp-buffer-size=1"
4954 fi
4955 fi
4956
4957
4958 # Check whether --enable-thread-support was given.
4959 if test "${enable_thread_support+set}" = set; then :
4960 enableval=$enable_thread_support;
4961 else
4962 enable_thread_support=yes
4963 fi
4964
4965 # Check whether --enable-malloc-replacement was given.
4966 if test "${enable_malloc_replacement+set}" = set; then :
4967 enableval=$enable_malloc_replacement;
4968 else
4969 enable_malloc_replacement=yes
4970 fi
4971
4972 # Check whether --enable-openssl was given.
4973 if test "${enable_openssl+set}" = set; then :
4974 enableval=$enable_openssl;
4975 else
4976 enable_openssl=yes
4977 fi
4978
4979 # Check whether --enable-debug-mode was given.
4980 if test "${enable_debug_mode+set}" = set; then :
4981 enableval=$enable_debug_mode;
4982 else
4983 enable_debug_mode=yes
4984 fi
4985
4986 # Check whether --enable-libevent-install was given.
4987 if test "${enable_libevent_install+set}" = set; then :
4988 enableval=$enable_libevent_install;
4989 else
4990 enable_libevent_install=yes
4991 fi
4992
4993 # Check whether --enable-libevent-regress was given.
4994 if test "${enable_libevent_regress+set}" = set; then :
4995 enableval=$enable_libevent_regress;
4996 else
4997 enable_libevent_regress=yes
4998 fi
4999
5000 # Check whether --enable-function-sections was given.
5001 if test "${enable_function_sections+set}" = set; then :
5002 enableval=$enable_function_sections;
5003 else
5004 enable_function_sections=no
5005 fi
5006
5007 # Check whether --enable-verbose-debug was given.
5008 if test "${enable_verbose_debug+set}" = set; then :
5009 enableval=$enable_verbose_debug;
5010 else
5011 enable_verbose_debug=no
5012 fi
5013
5014
5015
5016 case `pwd` in
5017 *\ * | *\ *)
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5019 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5020 esac
5021
5022
5023
5024 macro_version='2.4'
5025 macro_revision='1.3293'
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039 ltmain="$ac_aux_dir/ltmain.sh"
5040
5041 # Backslashify metacharacters that are still active within
5042 # double-quoted strings.
5043 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5044
5045 # Same as above, but do not quote variable references.
5046 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5047
5048 # Sed substitution to delay expansion of an escaped shell variable in a
5049 # double_quote_subst'ed string.
5050 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5051
5052 # Sed substitution to delay expansion of an escaped single quote.
5053 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5054
5055 # Sed substitution to avoid accidental globbing in evaled expressions
5056 no_glob_subst='s/\*/\\\*/g'
5057
5058 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5059 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5060 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5061
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5063 $as_echo_n "checking how to print strings... " >&6; }
5064 # Test print first, because it will be a builtin if present.
5065 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5066 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5067 ECHO='print -r --'
5068 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5069 ECHO='printf %s\n'
5070 else
5071 # Use this function as a fallback that always works.
5072 func_fallback_echo ()
5073 {
5074 eval 'cat <<_LTECHO_EOF
5075 $1
5076 _LTECHO_EOF'
5077 }
5078 ECHO='func_fallback_echo'
5079 fi
5080
5081 # func_echo_all arg...
5082 # Invoke $ECHO with all args, space-separated.
5083 func_echo_all ()
5084 {
5085 $ECHO ""
5086 }
5087
5088 case "$ECHO" in
5089 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5090 $as_echo "printf" >&6; } ;;
5091 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5092 $as_echo "print -r" >&6; } ;;
5093 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5094 $as_echo "cat" >&6; } ;;
5095 esac
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5111 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5112 if ${ac_cv_path_SED+:} false; then :
5113 $as_echo_n "(cached) " >&6
5114 else
5115 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5116 for ac_i in 1 2 3 4 5 6 7; do
5117 ac_script="$ac_script$as_nl$ac_script"
5118 done
5119 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5120 { ac_script=; unset ac_script;}
5121 if test -z "$SED"; then
5122 ac_path_SED_found=false
5123 # Loop through the user's path and test for each of PROGNAME-LIST
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5126 do
5127 IFS=$as_save_IFS
5128 test -z "$as_dir" && as_dir=.
5129 for ac_prog in sed gsed; do
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5132 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5133 # Check for GNU ac_path_SED and select it if it is found.
5134 # Check for GNU $ac_path_SED
5135 case `"$ac_path_SED" --version 2>&1` in
5136 *GNU*)
5137 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5138 *)
5139 ac_count=0
5140 $as_echo_n 0123456789 >"conftest.in"
5141 while :
5142 do
5143 cat "conftest.in" "conftest.in" >"conftest.tmp"
5144 mv "conftest.tmp" "conftest.in"
5145 cp "conftest.in" "conftest.nl"
5146 $as_echo '' >> "conftest.nl"
5147 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5148 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5149 as_fn_arith $ac_count + 1 && ac_count=$as_val
5150 if test $ac_count -gt ${ac_path_SED_max-0}; then
5151 # Best one so far, save it but keep looking for a better one
5152 ac_cv_path_SED="$ac_path_SED"
5153 ac_path_SED_max=$ac_count
5154 fi
5155 # 10*(2^10) chars as input seems more than enough
5156 test $ac_count -gt 10 && break
5157 done
5158 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5159 esac
5160
5161 $ac_path_SED_found && break 3
5162 done
5163 done
5164 done
5165 IFS=$as_save_IFS
5166 if test -z "$ac_cv_path_SED"; then
5167 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5168 fi
5169 else
5170 ac_cv_path_SED=$SED
5171 fi
5172
5173 fi
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5175 $as_echo "$ac_cv_path_SED" >&6; }
5176 SED="$ac_cv_path_SED"
5177 rm -f conftest.sed
5178
5179 test -z "$SED" && SED=sed
5180 Xsed="$SED -e 1s/^X//"
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5193 $as_echo_n "checking for fgrep... " >&6; }
5194 if ${ac_cv_path_FGREP+:} false; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5198 then ac_cv_path_FGREP="$GREP -F"
5199 else
5200 if test -z "$FGREP"; then
5201 ac_path_FGREP_found=false
5202 # Loop through the user's path and test for each of PROGNAME-LIST
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5205 do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_prog in fgrep; do
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5211 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5212 # Check for GNU ac_path_FGREP and select it if it is found.
5213 # Check for GNU $ac_path_FGREP
5214 case `"$ac_path_FGREP" --version 2>&1` in
5215 *GNU*)
5216 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5217 *)
5218 ac_count=0
5219 $as_echo_n 0123456789 >"conftest.in"
5220 while :
5221 do
5222 cat "conftest.in" "conftest.in" >"conftest.tmp"
5223 mv "conftest.tmp" "conftest.in"
5224 cp "conftest.in" "conftest.nl"
5225 $as_echo 'FGREP' >> "conftest.nl"
5226 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5227 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5228 as_fn_arith $ac_count + 1 && ac_count=$as_val
5229 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5230 # Best one so far, save it but keep looking for a better one
5231 ac_cv_path_FGREP="$ac_path_FGREP"
5232 ac_path_FGREP_max=$ac_count
5233 fi
5234 # 10*(2^10) chars as input seems more than enough
5235 test $ac_count -gt 10 && break
5236 done
5237 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5238 esac
5239
5240 $ac_path_FGREP_found && break 3
5241 done
5242 done
5243 done
5244 IFS=$as_save_IFS
5245 if test -z "$ac_cv_path_FGREP"; then
5246 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5247 fi
5248 else
5249 ac_cv_path_FGREP=$FGREP
5250 fi
5251
5252 fi
5253 fi
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5255 $as_echo "$ac_cv_path_FGREP" >&6; }
5256 FGREP="$ac_cv_path_FGREP"
5257
5258
5259 test -z "$GREP" && GREP=grep
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279 # Check whether --with-gnu-ld was given.
5280 if test "${with_gnu_ld+set}" = set; then :
5281 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5282 else
5283 with_gnu_ld=no
5284 fi
5285
5286 ac_prog=ld
5287 if test "$GCC" = yes; then
5288 # Check if gcc -print-prog-name=ld gives a path.
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5290 $as_echo_n "checking for ld used by $CC... " >&6; }
5291 case $host in
5292 *-*-mingw*)
5293 # gcc leaves a trailing carriage return which upsets mingw
5294 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5295 *)
5296 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5297 esac
5298 case $ac_prog in
5299 # Accept absolute paths.
5300 [\\/]* | ?:[\\/]*)
5301 re_direlt='/[^/][^/]*/\.\./'
5302 # Canonicalize the pathname of ld
5303 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5304 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5305 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5306 done
5307 test -z "$LD" && LD="$ac_prog"
5308 ;;
5309 "")
5310 # If it fails, then pretend we aren't using GCC.
5311 ac_prog=ld
5312 ;;
5313 *)
5314 # If it is relative, then search for the first ld in PATH.
5315 with_gnu_ld=unknown
5316 ;;
5317 esac
5318 elif test "$with_gnu_ld" = yes; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5320 $as_echo_n "checking for GNU ld... " >&6; }
5321 else
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5323 $as_echo_n "checking for non-GNU ld... " >&6; }
5324 fi
5325 if ${lt_cv_path_LD+:} false; then :
5326 $as_echo_n "(cached) " >&6
5327 else
5328 if test -z "$LD"; then
5329 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5330 for ac_dir in $PATH; do
5331 IFS="$lt_save_ifs"
5332 test -z "$ac_dir" && ac_dir=.
5333 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5334 lt_cv_path_LD="$ac_dir/$ac_prog"
5335 # Check to see if the program is GNU ld. I'd rather use --version,
5336 # but apparently some variants of GNU ld only accept -v.
5337 # Break only if it was the GNU/non-GNU ld that we prefer.
5338 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5339 *GNU* | *'with BFD'*)
5340 test "$with_gnu_ld" != no && break
5341 ;;
5342 *)
5343 test "$with_gnu_ld" != yes && break
5344 ;;
5345 esac
5346 fi
5347 done
5348 IFS="$lt_save_ifs"
5349 else
5350 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5351 fi
5352 fi
5353
5354 LD="$lt_cv_path_LD"
5355 if test -n "$LD"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5357 $as_echo "$LD" >&6; }
5358 else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5361 fi
5362 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5364 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5365 if ${lt_cv_prog_gnu_ld+:} false; then :
5366 $as_echo_n "(cached) " >&6
5367 else
5368 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5369 case `$LD -v 2>&1 </dev/null` in
5370 *GNU* | *'with BFD'*)
5371 lt_cv_prog_gnu_ld=yes
5372 ;;
5373 *)
5374 lt_cv_prog_gnu_ld=no
5375 ;;
5376 esac
5377 fi
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5379 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5380 with_gnu_ld=$lt_cv_prog_gnu_ld
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5391 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5392 if ${lt_cv_path_NM+:} false; then :
5393 $as_echo_n "(cached) " >&6
5394 else
5395 if test -n "$NM"; then
5396 # Let the user override the test.
5397 lt_cv_path_NM="$NM"
5398 else
5399 lt_nm_to_check="${ac_tool_prefix}nm"
5400 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5401 lt_nm_to_check="$lt_nm_to_check nm"
5402 fi
5403 for lt_tmp_nm in $lt_nm_to_check; do
5404 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5405 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5406 IFS="$lt_save_ifs"
5407 test -z "$ac_dir" && ac_dir=.
5408 tmp_nm="$ac_dir/$lt_tmp_nm"
5409 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5410 # Check to see if the nm accepts a BSD-compat flag.
5411 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5412 # nm: unknown option "B" ignored
5413 # Tru64's nm complains that /dev/null is an invalid object file
5414 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5415 */dev/null* | *'Invalid file or object type'*)
5416 lt_cv_path_NM="$tmp_nm -B"
5417 break
5418 ;;
5419 *)
5420 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5421 */dev/null*)
5422 lt_cv_path_NM="$tmp_nm -p"
5423 break
5424 ;;
5425 *)
5426 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5427 continue # so that we can try to find one that supports BSD flags
5428 ;;
5429 esac
5430 ;;
5431 esac
5432 fi
5433 done
5434 IFS="$lt_save_ifs"
5435 done
5436 : ${lt_cv_path_NM=no}
5437 fi
5438 fi
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5440 $as_echo "$lt_cv_path_NM" >&6; }
5441 if test "$lt_cv_path_NM" != "no"; then
5442 NM="$lt_cv_path_NM"
5443 else
5444 # Didn't find any BSD compatible name lister, look for dumpbin.
5445 if test -n "$DUMPBIN"; then :
5446 # Let the user override the test.
5447 else
5448 if test -n "$ac_tool_prefix"; then
5449 for ac_prog in dumpbin "link -dump"
5450 do
5451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5452 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454 $as_echo_n "checking for $ac_word... " >&6; }
5455 if ${ac_cv_prog_DUMPBIN+:} false; then :
5456 $as_echo_n "(cached) " >&6
5457 else
5458 if test -n "$DUMPBIN"; then
5459 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5460 else
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH
5463 do
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5468 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 break 2
5471 fi
5472 done
5473 done
5474 IFS=$as_save_IFS
5475
5476 fi
5477 fi
5478 DUMPBIN=$ac_cv_prog_DUMPBIN
5479 if test -n "$DUMPBIN"; then
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5481 $as_echo "$DUMPBIN" >&6; }
5482 else
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5485 fi
5486
5487
5488 test -n "$DUMPBIN" && break
5489 done
5490 fi
5491 if test -z "$DUMPBIN"; then
5492 ac_ct_DUMPBIN=$DUMPBIN
5493 for ac_prog in dumpbin "link -dump"
5494 do
5495 # Extract the first word of "$ac_prog", so it can be a program name with args.
5496 set dummy $ac_prog; ac_word=$2
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498 $as_echo_n "checking for $ac_word... " >&6; }
5499 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5500 $as_echo_n "(cached) " >&6
5501 else
5502 if test -n "$ac_ct_DUMPBIN"; then
5503 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5504 else
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5507 do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5515 fi
5516 done
5517 done
5518 IFS=$as_save_IFS
5519
5520 fi
5521 fi
5522 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5523 if test -n "$ac_ct_DUMPBIN"; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5525 $as_echo "$ac_ct_DUMPBIN" >&6; }
5526 else
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5528 $as_echo "no" >&6; }
5529 fi
5530
5531
5532 test -n "$ac_ct_DUMPBIN" && break
5533 done
5534
5535 if test "x$ac_ct_DUMPBIN" = x; then
5536 DUMPBIN=":"
5537 else
5538 case $cross_compiling:$ac_tool_warned in
5539 yes:)
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5542 ac_tool_warned=yes ;;
5543 esac
5544 DUMPBIN=$ac_ct_DUMPBIN
5545 fi
5546 fi
5547
5548 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5549 *COFF*)
5550 DUMPBIN="$DUMPBIN -symbols"
5551 ;;
5552 *)
5553 DUMPBIN=:
5554 ;;
5555 esac
5556 fi
5557
5558 if test "$DUMPBIN" != ":"; then
5559 NM="$DUMPBIN"
5560 fi
5561 fi
5562 test -z "$NM" && NM=nm
5563
5564
5565
5566
5567
5568
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5570 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5571 if ${lt_cv_nm_interface+:} false; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 lt_cv_nm_interface="BSD nm"
5575 echo "int some_variable = 0;" > conftest.$ac_ext
5576 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5577 (eval "$ac_compile" 2>conftest.err)
5578 cat conftest.err >&5
5579 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5580 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5581 cat conftest.err >&5
5582 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5583 cat conftest.out >&5
5584 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5585 lt_cv_nm_interface="MS dumpbin"
5586 fi
5587 rm -f conftest*
5588 fi
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5590 $as_echo "$lt_cv_nm_interface" >&6; }
5591
5592 # find the maximum length of command line arguments
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5594 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5595 if ${lt_cv_sys_max_cmd_len+:} false; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 i=0
5599 teststring="ABCD"
5600
5601 case $build_os in
5602 msdosdjgpp*)
5603 # On DJGPP, this test can blow up pretty badly due to problems in libc
5604 # (any single argument exceeding 2000 bytes causes a buffer overrun
5605 # during glob expansion). Even if it were fixed, the result of this
5606 # check would be larger than it should be.
5607 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5608 ;;
5609
5610 gnu*)
5611 # Under GNU Hurd, this test is not required because there is
5612 # no limit to the length of command line arguments.
5613 # Libtool will interpret -1 as no limit whatsoever
5614 lt_cv_sys_max_cmd_len=-1;
5615 ;;
5616
5617 cygwin* | mingw* | cegcc*)
5618 # On Win9x/ME, this test blows up -- it succeeds, but takes
5619 # about 5 minutes as the teststring grows exponentially.
5620 # Worse, since 9x/ME are not pre-emptively multitasking,
5621 # you end up with a "frozen" computer, even though with patience
5622 # the test eventually succeeds (with a max line length of 256k).
5623 # Instead, let's just punt: use the minimum linelength reported by
5624 # all of the supported platforms: 8192 (on NT/2K/XP).
5625 lt_cv_sys_max_cmd_len=8192;
5626 ;;
5627
5628 mint*)
5629 # On MiNT this can take a long time and run out of memory.
5630 lt_cv_sys_max_cmd_len=8192;
5631 ;;
5632
5633 amigaos*)
5634 # On AmigaOS with pdksh, this test takes hours, literally.
5635 # So we just punt and use a minimum line length of 8192.
5636 lt_cv_sys_max_cmd_len=8192;
5637 ;;
5638
5639 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5640 # This has been around since 386BSD, at least. Likely further.
5641 if test -x /sbin/sysctl; then
5642 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5643 elif test -x /usr/sbin/sysctl; then
5644 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5645 else
5646 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5647 fi
5648 # And add a safety zone
5649 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5650 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5651 ;;
5652
5653 interix*)
5654 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5655 lt_cv_sys_max_cmd_len=196608
5656 ;;
5657
5658 osf*)
5659 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5660 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5661 # nice to cause kernel panics so lets avoid the loop below.
5662 # First set a reasonable default.
5663 lt_cv_sys_max_cmd_len=16384
5664 #
5665 if test -x /sbin/sysconfig; then
5666 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5667 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5668 esac
5669 fi
5670 ;;
5671 sco3.2v5*)
5672 lt_cv_sys_max_cmd_len=102400
5673 ;;
5674 sysv5* | sco5v6* | sysv4.2uw2*)
5675 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5676 if test -n "$kargmax"; then
5677 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5678 else
5679 lt_cv_sys_max_cmd_len=32768
5680 fi
5681 ;;
5682 *)
5683 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5684 if test -n "$lt_cv_sys_max_cmd_len"; then
5685 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5686 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5687 else
5688 # Make teststring a little bigger before we do anything with it.
5689 # a 1K string should be a reasonable start.
5690 for i in 1 2 3 4 5 6 7 8 ; do
5691 teststring=$teststring$teststring
5692 done
5693 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5694 # If test is not a shell built-in, we'll probably end up computing a
5695 # maximum length that is only half of the actual maximum length, but
5696 # we can't tell.
5697 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5698 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5699 test $i != 17 # 1/2 MB should be enough
5700 do
5701 i=`expr $i + 1`
5702 teststring=$teststring$teststring
5703 done
5704 # Only check the string length outside the loop.
5705 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5706 teststring=
5707 # Add a significant safety factor because C++ compilers can tack on
5708 # massive amounts of additional arguments before passing them to the
5709 # linker. It appears as though 1/2 is a usable value.
5710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5711 fi
5712 ;;
5713 esac
5714
5715 fi
5716
5717 if test -n $lt_cv_sys_max_cmd_len ; then
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5719 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5720 else
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5722 $as_echo "none" >&6; }
5723 fi
5724 max_cmd_len=$lt_cv_sys_max_cmd_len
5725
5726
5727
5728
5729
5730
5731 : ${CP="cp -f"}
5732 : ${MV="mv -f"}
5733 : ${RM="rm -f"}
5734
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5736 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5737 # Try some XSI features
5738 xsi_shell=no
5739 ( _lt_dummy="a/b/c"
5740 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5741 = c,a/b,b/c, \
5742 && eval 'test $(( 1 + 1 )) -eq 2 \
5743 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5744 && xsi_shell=yes
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5746 $as_echo "$xsi_shell" >&6; }
5747
5748
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5750 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5751 lt_shell_append=no
5752 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5753 >/dev/null 2>&1 \
5754 && lt_shell_append=yes
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5756 $as_echo "$lt_shell_append" >&6; }
5757
5758
5759 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5760 lt_unset=unset
5761 else
5762 lt_unset=false
5763 fi
5764
5765
5766
5767
5768
5769 # test EBCDIC or ASCII
5770 case `echo X|tr X '\101'` in
5771 A) # ASCII based system
5772 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5773 lt_SP2NL='tr \040 \012'
5774 lt_NL2SP='tr \015\012 \040\040'
5775 ;;
5776 *) # EBCDIC based system
5777 lt_SP2NL='tr \100 \n'
5778 lt_NL2SP='tr \r\n \100\100'
5779 ;;
5780 esac
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5791 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5792 if ${lt_cv_to_host_file_cmd+:} false; then :
5793 $as_echo_n "(cached) " >&6
5794 else
5795 case $host in
5796 *-*-mingw* )
5797 case $build in
5798 *-*-mingw* ) # actually msys
5799 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5800 ;;
5801 *-*-cygwin* )
5802 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5803 ;;
5804 * ) # otherwise, assume *nix
5805 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5806 ;;
5807 esac
5808 ;;
5809 *-*-cygwin* )
5810 case $build in
5811 *-*-mingw* ) # actually msys
5812 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5813 ;;
5814 *-*-cygwin* )
5815 lt_cv_to_host_file_cmd=func_convert_file_noop
5816 ;;
5817 * ) # otherwise, assume *nix
5818 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5819 ;;
5820 esac
5821 ;;
5822 * ) # unhandled hosts (and "normal" native builds)
5823 lt_cv_to_host_file_cmd=func_convert_file_noop
5824 ;;
5825 esac
5826
5827 fi
5828
5829 to_host_file_cmd=$lt_cv_to_host_file_cmd
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5831 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5832
5833
5834
5835
5836
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5838 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5839 if ${lt_cv_to_tool_file_cmd+:} false; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 #assume ordinary cross tools, or native build.
5843 lt_cv_to_tool_file_cmd=func_convert_file_noop
5844 case $host in
5845 *-*-mingw* )
5846 case $build in
5847 *-*-mingw* ) # actually msys
5848 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5849 ;;
5850 esac
5851 ;;
5852 esac
5853
5854 fi
5855
5856 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5858 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5859
5860
5861
5862
5863
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5865 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5866 if ${lt_cv_ld_reload_flag+:} false; then :
5867 $as_echo_n "(cached) " >&6
5868 else
5869 lt_cv_ld_reload_flag='-r'
5870 fi
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5872 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5873 reload_flag=$lt_cv_ld_reload_flag
5874 case $reload_flag in
5875 "" | " "*) ;;
5876 *) reload_flag=" $reload_flag" ;;
5877 esac
5878 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5879 case $host_os in
5880 cygwin* | mingw* | pw32* | cegcc*)
5881 if test "$GCC" != yes; then
5882 reload_cmds=false
5883 fi
5884 ;;
5885 darwin*)
5886 if test "$GCC" = yes; then
5887 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5888 else
5889 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5890 fi
5891 ;;
5892 esac
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902 if test -n "$ac_tool_prefix"; then
5903 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5904 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5906 $as_echo_n "checking for $ac_word... " >&6; }
5907 if ${ac_cv_prog_OBJDUMP+:} false; then :
5908 $as_echo_n "(cached) " >&6
5909 else
5910 if test -n "$OBJDUMP"; then
5911 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5912 else
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 for as_dir in $PATH
5915 do
5916 IFS=$as_save_IFS
5917 test -z "$as_dir" && as_dir=.
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5920 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5922 break 2
5923 fi
5924 done
5925 done
5926 IFS=$as_save_IFS
5927
5928 fi
5929 fi
5930 OBJDUMP=$ac_cv_prog_OBJDUMP
5931 if test -n "$OBJDUMP"; then
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5933 $as_echo "$OBJDUMP" >&6; }
5934 else
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936 $as_echo "no" >&6; }
5937 fi
5938
5939
5940 fi
5941 if test -z "$ac_cv_prog_OBJDUMP"; then
5942 ac_ct_OBJDUMP=$OBJDUMP
5943 # Extract the first word of "objdump", so it can be a program name with args.
5944 set dummy objdump; ac_word=$2
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946 $as_echo_n "checking for $ac_word... " >&6; }
5947 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 if test -n "$ac_ct_OBJDUMP"; then
5951 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5952 else
5953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 for as_dir in $PATH
5955 do
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5960 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 break 2
5963 fi
5964 done
5965 done
5966 IFS=$as_save_IFS
5967
5968 fi
5969 fi
5970 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5971 if test -n "$ac_ct_OBJDUMP"; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5973 $as_echo "$ac_ct_OBJDUMP" >&6; }
5974 else
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976 $as_echo "no" >&6; }
5977 fi
5978
5979 if test "x$ac_ct_OBJDUMP" = x; then
5980 OBJDUMP="false"
5981 else
5982 case $cross_compiling:$ac_tool_warned in
5983 yes:)
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5986 ac_tool_warned=yes ;;
5987 esac
5988 OBJDUMP=$ac_ct_OBJDUMP
5989 fi
5990 else
5991 OBJDUMP="$ac_cv_prog_OBJDUMP"
5992 fi
5993
5994 test -z "$OBJDUMP" && OBJDUMP=objdump
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6005 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6006 if ${lt_cv_deplibs_check_method+:} false; then :
6007 $as_echo_n "(cached) " >&6
6008 else
6009 lt_cv_file_magic_cmd='$MAGIC_CMD'
6010 lt_cv_file_magic_test_file=
6011 lt_cv_deplibs_check_method='unknown'
6012 # Need to set the preceding variable on all platforms that support
6013 # interlibrary dependencies.
6014 # 'none' -- dependencies not supported.
6015 # `unknown' -- same as none, but documents that we really don't know.
6016 # 'pass_all' -- all dependencies passed with no checks.
6017 # 'test_compile' -- check by making test program.
6018 # 'file_magic [[regex]]' -- check by looking for files in library path
6019 # which responds to the $file_magic_cmd with a given extended regex.
6020 # If you have `file' or equivalent on your system and you're not sure
6021 # whether `pass_all' will *always* work, you probably want this one.
6022
6023 case $host_os in
6024 aix[4-9]*)
6025 lt_cv_deplibs_check_method=pass_all
6026 ;;
6027
6028 beos*)
6029 lt_cv_deplibs_check_method=pass_all
6030 ;;
6031
6032 bsdi[45]*)
6033 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6034 lt_cv_file_magic_cmd='/usr/bin/file -L'
6035 lt_cv_file_magic_test_file=/shlib/libc.so
6036 ;;
6037
6038 cygwin*)
6039 # func_win32_libid is a shell function defined in ltmain.sh
6040 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6041 lt_cv_file_magic_cmd='func_win32_libid'
6042 ;;
6043
6044 mingw* | pw32*)
6045 # Base MSYS/MinGW do not provide the 'file' command needed by
6046 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6047 # unless we find 'file', for example because we are cross-compiling.
6048 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6049 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6050 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6051 lt_cv_file_magic_cmd='func_win32_libid'
6052 else
6053 # Keep this pattern in sync with the one in func_win32_libid.
6054 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6055 lt_cv_file_magic_cmd='$OBJDUMP -f'
6056 fi
6057 ;;
6058
6059 cegcc*)
6060 # use the weaker test based on 'objdump'. See mingw*.
6061 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6062 lt_cv_file_magic_cmd='$OBJDUMP -f'
6063 ;;
6064
6065 darwin* | rhapsody*)
6066 lt_cv_deplibs_check_method=pass_all
6067 ;;
6068
6069 freebsd* | dragonfly*)
6070 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6071 case $host_cpu in
6072 i*86 )
6073 # Not sure whether the presence of OpenBSD here was a mistake.
6074 # Let's accept both of them until this is cleared up.
6075 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6076 lt_cv_file_magic_cmd=/usr/bin/file
6077 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6078 ;;
6079 esac
6080 else
6081 lt_cv_deplibs_check_method=pass_all
6082 fi
6083 ;;
6084
6085 gnu*)
6086 lt_cv_deplibs_check_method=pass_all
6087 ;;
6088
6089 haiku*)
6090 lt_cv_deplibs_check_method=pass_all
6091 ;;
6092
6093 hpux10.20* | hpux11*)
6094 lt_cv_file_magic_cmd=/usr/bin/file
6095 case $host_cpu in
6096 ia64*)
6097 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6098 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6099 ;;
6100 hppa*64*)
6101 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6102 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6103 ;;
6104 *)
6105 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6106 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6107 ;;
6108 esac
6109 ;;
6110
6111 interix[3-9]*)
6112 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6114 ;;
6115
6116 irix5* | irix6* | nonstopux*)
6117 case $LD in
6118 *-32|*"-32 ") libmagic=32-bit;;
6119 *-n32|*"-n32 ") libmagic=N32;;
6120 *-64|*"-64 ") libmagic=64-bit;;
6121 *) libmagic=never-match;;
6122 esac
6123 lt_cv_deplibs_check_method=pass_all
6124 ;;
6125
6126 # This must be Linux ELF.
6127 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6128 lt_cv_deplibs_check_method=pass_all
6129 ;;
6130
6131 netbsd*)
6132 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6133 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6134 else
6135 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6136 fi
6137 ;;
6138
6139 newos6*)
6140 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6141 lt_cv_file_magic_cmd=/usr/bin/file
6142 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6143 ;;
6144
6145 *nto* | *qnx*)
6146 lt_cv_deplibs_check_method=pass_all
6147 ;;
6148
6149 openbsd*)
6150 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6151 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6152 else
6153 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6154 fi
6155 ;;
6156
6157 osf3* | osf4* | osf5*)
6158 lt_cv_deplibs_check_method=pass_all
6159 ;;
6160
6161 rdos*)
6162 lt_cv_deplibs_check_method=pass_all
6163 ;;
6164
6165 solaris*)
6166 lt_cv_deplibs_check_method=pass_all
6167 ;;
6168
6169 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6170 lt_cv_deplibs_check_method=pass_all
6171 ;;
6172
6173 sysv4 | sysv4.3*)
6174 case $host_vendor in
6175 motorola)
6176 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]'
6177 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6178 ;;
6179 ncr)
6180 lt_cv_deplibs_check_method=pass_all
6181 ;;
6182 sequent)
6183 lt_cv_file_magic_cmd='/bin/file'
6184 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6185 ;;
6186 sni)
6187 lt_cv_file_magic_cmd='/bin/file'
6188 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6189 lt_cv_file_magic_test_file=/lib/libc.so
6190 ;;
6191 siemens)
6192 lt_cv_deplibs_check_method=pass_all
6193 ;;
6194 pc)
6195 lt_cv_deplibs_check_method=pass_all
6196 ;;
6197 esac
6198 ;;
6199
6200 tpf*)
6201 lt_cv_deplibs_check_method=pass_all
6202 ;;
6203 esac
6204
6205 fi
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6207 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6208
6209 file_magic_glob=
6210 want_nocaseglob=no
6211 if test "$build" = "$host"; then
6212 case $host_os in
6213 mingw* | pw32*)
6214 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6215 want_nocaseglob=yes
6216 else
6217 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6218 fi
6219 ;;
6220 esac
6221 fi
6222
6223 file_magic_cmd=$lt_cv_file_magic_cmd
6224 deplibs_check_method=$lt_cv_deplibs_check_method
6225 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248 if test -n "$ac_tool_prefix"; then
6249 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6250 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252 $as_echo_n "checking for $ac_word... " >&6; }
6253 if ${ac_cv_prog_DLLTOOL+:} false; then :
6254 $as_echo_n "(cached) " >&6
6255 else
6256 if test -n "$DLLTOOL"; then
6257 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6258 else
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6261 do
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 break 2
6269 fi
6270 done
6271 done
6272 IFS=$as_save_IFS
6273
6274 fi
6275 fi
6276 DLLTOOL=$ac_cv_prog_DLLTOOL
6277 if test -n "$DLLTOOL"; then
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6279 $as_echo "$DLLTOOL" >&6; }
6280 else
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282 $as_echo "no" >&6; }
6283 fi
6284
6285
6286 fi
6287 if test -z "$ac_cv_prog_DLLTOOL"; then
6288 ac_ct_DLLTOOL=$DLLTOOL
6289 # Extract the first word of "dlltool", so it can be a program name with args.
6290 set dummy dlltool; ac_word=$2
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292 $as_echo_n "checking for $ac_word... " >&6; }
6293 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6294 $as_echo_n "(cached) " >&6
6295 else
6296 if test -n "$ac_ct_DLLTOOL"; then
6297 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6298 else
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH
6301 do
6302 IFS=$as_save_IFS
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6306 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 break 2
6309 fi
6310 done
6311 done
6312 IFS=$as_save_IFS
6313
6314 fi
6315 fi
6316 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6317 if test -n "$ac_ct_DLLTOOL"; then
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6319 $as_echo "$ac_ct_DLLTOOL" >&6; }
6320 else
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322 $as_echo "no" >&6; }
6323 fi
6324
6325 if test "x$ac_ct_DLLTOOL" = x; then
6326 DLLTOOL="false"
6327 else
6328 case $cross_compiling:$ac_tool_warned in
6329 yes:)
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6331 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6332 ac_tool_warned=yes ;;
6333 esac
6334 DLLTOOL=$ac_ct_DLLTOOL
6335 fi
6336 else
6337 DLLTOOL="$ac_cv_prog_DLLTOOL"
6338 fi
6339
6340 test -z "$DLLTOOL" && DLLTOOL=dlltool
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6352 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6353 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6354 $as_echo_n "(cached) " >&6
6355 else
6356 lt_cv_sharedlib_from_linklib_cmd='unknown'
6357
6358 case $host_os in
6359 cygwin* | mingw* | pw32* | cegcc*)
6360 # two different shell functions defined in ltmain.sh
6361 # decide which to use based on capabilities of $DLLTOOL
6362 case `$DLLTOOL --help 2>&1` in
6363 *--identify-strict*)
6364 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6365 ;;
6366 *)
6367 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6368 ;;
6369 esac
6370 ;;
6371 *)
6372 # fallback: assume linklib IS sharedlib
6373 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6374 ;;
6375 esac
6376
6377 fi
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6379 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6380 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6381 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6382
6383
6384
6385
6386
6387
6388
6389 if test -n "$ac_tool_prefix"; then
6390 for ac_prog in ar
6391 do
6392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6393 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6395 $as_echo_n "checking for $ac_word... " >&6; }
6396 if ${ac_cv_prog_AR+:} false; then :
6397 $as_echo_n "(cached) " >&6
6398 else
6399 if test -n "$AR"; then
6400 ac_cv_prog_AR="$AR" # Let the user override the test.
6401 else
6402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403 for as_dir in $PATH
6404 do
6405 IFS=$as_save_IFS
6406 test -z "$as_dir" && as_dir=.
6407 for ac_exec_ext in '' $ac_executable_extensions; do
6408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6409 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6411 break 2
6412 fi
6413 done
6414 done
6415 IFS=$as_save_IFS
6416
6417 fi
6418 fi
6419 AR=$ac_cv_prog_AR
6420 if test -n "$AR"; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6422 $as_echo "$AR" >&6; }
6423 else
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6425 $as_echo "no" >&6; }
6426 fi
6427
6428
6429 test -n "$AR" && break
6430 done
6431 fi
6432 if test -z "$AR"; then
6433 ac_ct_AR=$AR
6434 for ac_prog in ar
6435 do
6436 # Extract the first word of "$ac_prog", so it can be a program name with args.
6437 set dummy $ac_prog; ac_word=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 if test -n "$ac_ct_AR"; then
6444 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6448 do
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453 ac_cv_prog_ac_ct_AR="$ac_prog"
6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 break 2
6456 fi
6457 done
6458 done
6459 IFS=$as_save_IFS
6460
6461 fi
6462 fi
6463 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6464 if test -n "$ac_ct_AR"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6466 $as_echo "$ac_ct_AR" >&6; }
6467 else
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6470 fi
6471
6472
6473 test -n "$ac_ct_AR" && break
6474 done
6475
6476 if test "x$ac_ct_AR" = x; then
6477 AR="false"
6478 else
6479 case $cross_compiling:$ac_tool_warned in
6480 yes:)
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6483 ac_tool_warned=yes ;;
6484 esac
6485 AR=$ac_ct_AR
6486 fi
6487 fi
6488
6489 : ${AR=ar}
6490 : ${AR_FLAGS=cru}
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6503 $as_echo_n "checking for archiver @FILE support... " >&6; }
6504 if ${lt_cv_ar_at_file+:} false; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6507 lt_cv_ar_at_file=no
6508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6509 /* end confdefs.h. */
6510
6511 int
6512 main ()
6513 {
6514
6515 ;
6516 return 0;
6517 }
6518 _ACEOF
6519 if ac_fn_c_try_compile "$LINENO"; then :
6520 echo conftest.$ac_objext > conftest.lst
6521 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6523 (eval $lt_ar_try) 2>&5
6524 ac_status=$?
6525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6526 test $ac_status = 0; }
6527 if test "$ac_status" -eq 0; then
6528 # Ensure the archiver fails upon bogus file names.
6529 rm -f conftest.$ac_objext libconftest.a
6530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6531 (eval $lt_ar_try) 2>&5
6532 ac_status=$?
6533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6534 test $ac_status = 0; }
6535 if test "$ac_status" -ne 0; then
6536 lt_cv_ar_at_file=@
6537 fi
6538 fi
6539 rm -f conftest.* libconftest.a
6540
6541 fi
6542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6543
6544 fi
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6546 $as_echo "$lt_cv_ar_at_file" >&6; }
6547
6548 if test "x$lt_cv_ar_at_file" = xno; then
6549 archiver_list_spec=
6550 else
6551 archiver_list_spec=$lt_cv_ar_at_file
6552 fi
6553
6554
6555
6556
6557
6558
6559
6560 if test -n "$ac_tool_prefix"; then
6561 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6562 set dummy ${ac_tool_prefix}strip; ac_word=$2
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564 $as_echo_n "checking for $ac_word... " >&6; }
6565 if ${ac_cv_prog_STRIP+:} false; then :
6566 $as_echo_n "(cached) " >&6
6567 else
6568 if test -n "$STRIP"; then
6569 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6570 else
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6573 do
6574 IFS=$as_save_IFS
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6578 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 break 2
6581 fi
6582 done
6583 done
6584 IFS=$as_save_IFS
6585
6586 fi
6587 fi
6588 STRIP=$ac_cv_prog_STRIP
6589 if test -n "$STRIP"; then
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6591 $as_echo "$STRIP" >&6; }
6592 else
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594 $as_echo "no" >&6; }
6595 fi
6596
6597
6598 fi
6599 if test -z "$ac_cv_prog_STRIP"; then
6600 ac_ct_STRIP=$STRIP
6601 # Extract the first word of "strip", so it can be a program name with args.
6602 set dummy strip; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6608 if test -n "$ac_ct_STRIP"; then
6609 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618 ac_cv_prog_ac_ct_STRIP="strip"
6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 break 2
6621 fi
6622 done
6623 done
6624 IFS=$as_save_IFS
6625
6626 fi
6627 fi
6628 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6629 if test -n "$ac_ct_STRIP"; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6631 $as_echo "$ac_ct_STRIP" >&6; }
6632 else
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6635 fi
6636
6637 if test "x$ac_ct_STRIP" = x; then
6638 STRIP=":"
6639 else
6640 case $cross_compiling:$ac_tool_warned in
6641 yes:)
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644 ac_tool_warned=yes ;;
6645 esac
6646 STRIP=$ac_ct_STRIP
6647 fi
6648 else
6649 STRIP="$ac_cv_prog_STRIP"
6650 fi
6651
6652 test -z "$STRIP" && STRIP=:
6653
6654
6655
6656
6657
6658
6659 if test -n "$ac_tool_prefix"; then
6660 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6661 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6663 $as_echo_n "checking for $ac_word... " >&6; }
6664 if ${ac_cv_prog_RANLIB+:} false; then :
6665 $as_echo_n "(cached) " >&6
6666 else
6667 if test -n "$RANLIB"; then
6668 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6669 else
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6672 do
6673 IFS=$as_save_IFS
6674 test -z "$as_dir" && as_dir=.
6675 for ac_exec_ext in '' $ac_executable_extensions; do
6676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6679 break 2
6680 fi
6681 done
6682 done
6683 IFS=$as_save_IFS
6684
6685 fi
6686 fi
6687 RANLIB=$ac_cv_prog_RANLIB
6688 if test -n "$RANLIB"; then
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6690 $as_echo "$RANLIB" >&6; }
6691 else
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6693 $as_echo "no" >&6; }
6694 fi
6695
6696
6697 fi
6698 if test -z "$ac_cv_prog_RANLIB"; then
6699 ac_ct_RANLIB=$RANLIB
6700 # Extract the first word of "ranlib", so it can be a program name with args.
6701 set dummy ranlib; ac_word=$2
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703 $as_echo_n "checking for $ac_word... " >&6; }
6704 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6705 $as_echo_n "(cached) " >&6
6706 else
6707 if test -n "$ac_ct_RANLIB"; then
6708 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6709 else
6710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711 for as_dir in $PATH
6712 do
6713 IFS=$as_save_IFS
6714 test -z "$as_dir" && as_dir=.
6715 for ac_exec_ext in '' $ac_executable_extensions; do
6716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6717 ac_cv_prog_ac_ct_RANLIB="ranlib"
6718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719 break 2
6720 fi
6721 done
6722 done
6723 IFS=$as_save_IFS
6724
6725 fi
6726 fi
6727 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6728 if test -n "$ac_ct_RANLIB"; then
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6730 $as_echo "$ac_ct_RANLIB" >&6; }
6731 else
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733 $as_echo "no" >&6; }
6734 fi
6735
6736 if test "x$ac_ct_RANLIB" = x; then
6737 RANLIB=":"
6738 else
6739 case $cross_compiling:$ac_tool_warned in
6740 yes:)
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6743 ac_tool_warned=yes ;;
6744 esac
6745 RANLIB=$ac_ct_RANLIB
6746 fi
6747 else
6748 RANLIB="$ac_cv_prog_RANLIB"
6749 fi
6750
6751 test -z "$RANLIB" && RANLIB=:
6752
6753
6754
6755
6756
6757
6758 # Determine commands to create old-style static archives.
6759 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6760 old_postinstall_cmds='chmod 644 $oldlib'
6761 old_postuninstall_cmds=
6762
6763 if test -n "$RANLIB"; then
6764 case $host_os in
6765 openbsd*)
6766 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6767 ;;
6768 *)
6769 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6770 ;;
6771 esac
6772 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6773 fi
6774
6775 case $host_os in
6776 darwin*)
6777 lock_old_archive_extraction=yes ;;
6778 *)
6779 lock_old_archive_extraction=no ;;
6780 esac
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820 # If no C compiler was specified, use CC.
6821 LTCC=${LTCC-"$CC"}
6822
6823 # If no C compiler flags were specified, use CFLAGS.
6824 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6825
6826 # Allow CC to be a program name with arguments.
6827 compiler=$CC
6828
6829
6830 # Check for command to grab the raw symbol name followed by C symbol from nm.
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6832 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6833 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6834 $as_echo_n "(cached) " >&6
6835 else
6836
6837 # These are sane defaults that work on at least a few old systems.
6838 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6839
6840 # Character class describing NM global symbol codes.
6841 symcode='[BCDEGRST]'
6842
6843 # Regexp to match symbols that can be accessed directly from C.
6844 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6845
6846 # Define system-specific variables.
6847 case $host_os in
6848 aix*)
6849 symcode='[BCDT]'
6850 ;;
6851 cygwin* | mingw* | pw32* | cegcc*)
6852 symcode='[ABCDGISTW]'
6853 ;;
6854 hpux*)
6855 if test "$host_cpu" = ia64; then
6856 symcode='[ABCDEGRST]'
6857 fi
6858 ;;
6859 irix* | nonstopux*)
6860 symcode='[BCDEGRST]'
6861 ;;
6862 osf*)
6863 symcode='[BCDEGQRST]'
6864 ;;
6865 solaris*)
6866 symcode='[BDRT]'
6867 ;;
6868 sco3.2v5*)
6869 symcode='[DT]'
6870 ;;
6871 sysv4.2uw2*)
6872 symcode='[DT]'
6873 ;;
6874 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6875 symcode='[ABDT]'
6876 ;;
6877 sysv4)
6878 symcode='[DFNSTU]'
6879 ;;
6880 esac
6881
6882 # If we're using GNU nm, then use its standard symbol codes.
6883 case `$NM -V 2>&1` in
6884 *GNU* | *'with BFD'*)
6885 symcode='[ABCDGIRSTW]' ;;
6886 esac
6887
6888 # Transform an extracted symbol line into a proper C declaration.
6889 # Some systems (esp. on ia64) link data and code symbols differently,
6890 # so use this general approach.
6891 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6892
6893 # Transform an extracted symbol line into symbol name and symbol address
6894 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6895 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6896
6897 # Handle CRLF in mingw tool chain
6898 opt_cr=
6899 case $build_os in
6900 mingw*)
6901 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6902 ;;
6903 esac
6904
6905 # Try without a prefix underscore, then with it.
6906 for ac_symprfx in "" "_"; do
6907
6908 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6909 symxfrm="\\1 $ac_symprfx\\2 \\2"
6910
6911 # Write the raw and C identifiers.
6912 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6913 # Fake it for dumpbin and say T for any non-static function
6914 # and D for any global variable.
6915 # Also find C++ and __fastcall symbols from MSVC++,
6916 # which start with @ or ?.
6917 lt_cv_sys_global_symbol_pipe="$AWK '"\
6918 " {last_section=section; section=\$ 3};"\
6919 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6920 " \$ 0!~/External *\|/{next};"\
6921 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6922 " {if(hide[section]) next};"\
6923 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6924 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6925 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6926 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6927 " ' prfx=^$ac_symprfx"
6928 else
6929 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6930 fi
6931 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6932
6933 # Check to see that the pipe works correctly.
6934 pipe_works=no
6935
6936 rm -f conftest*
6937 cat > conftest.$ac_ext <<_LT_EOF
6938 #ifdef __cplusplus
6939 extern "C" {
6940 #endif
6941 char nm_test_var;
6942 void nm_test_func(void);
6943 void nm_test_func(void){}
6944 #ifdef __cplusplus
6945 }
6946 #endif
6947 int main(){nm_test_var='a';nm_test_func();return(0);}
6948 _LT_EOF
6949
6950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6951 (eval $ac_compile) 2>&5
6952 ac_status=$?
6953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6954 test $ac_status = 0; }; then
6955 # Now try to grab the symbols.
6956 nlist=conftest.nm
6957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6958 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6959 ac_status=$?
6960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6961 test $ac_status = 0; } && test -s "$nlist"; then
6962 # Try sorting and uniquifying the output.
6963 if sort "$nlist" | uniq > "$nlist"T; then
6964 mv -f "$nlist"T "$nlist"
6965 else
6966 rm -f "$nlist"T
6967 fi
6968
6969 # Make sure that we snagged all the symbols we need.
6970 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6971 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6972 cat <<_LT_EOF > conftest.$ac_ext
6973 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6974 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6975 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6976 relocations are performed -- see ld's documentation on pseudo-relocs. */
6977 # define LT_DLSYM_CONST
6978 #elif defined(__osf__)
6979 /* This system does not cope well with relocations in const data. */
6980 # define LT_DLSYM_CONST
6981 #else
6982 # define LT_DLSYM_CONST const
6983 #endif
6984
6985 #ifdef __cplusplus
6986 extern "C" {
6987 #endif
6988
6989 _LT_EOF
6990 # Now generate the symbol file.
6991 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6992
6993 cat <<_LT_EOF >> conftest.$ac_ext
6994
6995 /* The mapping between symbol names and symbols. */
6996 LT_DLSYM_CONST struct {
6997 const char *name;
6998 void *address;
6999 }
7000 lt__PROGRAM__LTX_preloaded_symbols[] =
7001 {
7002 { "@PROGRAM@", (void *) 0 },
7003 _LT_EOF
7004 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7005 cat <<\_LT_EOF >> conftest.$ac_ext
7006 {0, (void *) 0}
7007 };
7008
7009 /* This works around a problem in FreeBSD linker */
7010 #ifdef FREEBSD_WORKAROUND
7011 static const void *lt_preloaded_setup() {
7012 return lt__PROGRAM__LTX_preloaded_symbols;
7013 }
7014 #endif
7015
7016 #ifdef __cplusplus
7017 }
7018 #endif
7019 _LT_EOF
7020 # Now try linking the two files.
7021 mv conftest.$ac_objext conftstm.$ac_objext
7022 lt_globsym_save_LIBS=$LIBS
7023 lt_globsym_save_CFLAGS=$CFLAGS
7024 LIBS="conftstm.$ac_objext"
7025 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7027 (eval $ac_link) 2>&5
7028 ac_status=$?
7029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7030 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7031 pipe_works=yes
7032 fi
7033 LIBS=$lt_globsym_save_LIBS
7034 CFLAGS=$lt_globsym_save_CFLAGS
7035 else
7036 echo "cannot find nm_test_func in $nlist" >&5
7037 fi
7038 else
7039 echo "cannot find nm_test_var in $nlist" >&5
7040 fi
7041 else
7042 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7043 fi
7044 else
7045 echo "$progname: failed program was:" >&5
7046 cat conftest.$ac_ext >&5
7047 fi
7048 rm -rf conftest* conftst*
7049
7050 # Do not use the global_symbol_pipe unless it works.
7051 if test "$pipe_works" = yes; then
7052 break
7053 else
7054 lt_cv_sys_global_symbol_pipe=
7055 fi
7056 done
7057
7058 fi
7059
7060 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7061 lt_cv_sys_global_symbol_to_cdecl=
7062 fi
7063 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7065 $as_echo "failed" >&6; }
7066 else
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7068 $as_echo "ok" >&6; }
7069 fi
7070
7071 # Response file support.
7072 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7073 nm_file_list_spec='@'
7074 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7075 nm_file_list_spec='@'
7076 fi
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7105 $as_echo_n "checking for sysroot... " >&6; }
7106
7107 # Check whether --with-sysroot was given.
7108 if test "${with_sysroot+set}" = set; then :
7109 withval=$with_sysroot;
7110 else
7111 with_sysroot=no
7112 fi
7113
7114
7115 lt_sysroot=
7116 case ${with_sysroot} in #(
7117 yes)
7118 if test "$GCC" = yes; then
7119 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7120 fi
7121 ;; #(
7122 /*)
7123 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7124 ;; #(
7125 no|'')
7126 ;; #(
7127 *)
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7129 $as_echo "${with_sysroot}" >&6; }
7130 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7131 ;;
7132 esac
7133
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7135 $as_echo "${lt_sysroot:-no}" >&6; }
7136
7137
7138
7139
7140
7141 # Check whether --enable-libtool-lock was given.
7142 if test "${enable_libtool_lock+set}" = set; then :
7143 enableval=$enable_libtool_lock;
7144 fi
7145
7146 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7147
7148 # Some flags need to be propagated to the compiler or linker for good
7149 # libtool support.
7150 case $host in
7151 ia64-*-hpux*)
7152 # Find out which ABI we are using.
7153 echo 'int i;' > conftest.$ac_ext
7154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7155 (eval $ac_compile) 2>&5
7156 ac_status=$?
7157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7158 test $ac_status = 0; }; then
7159 case `/usr/bin/file conftest.$ac_objext` in
7160 *ELF-32*)
7161 HPUX_IA64_MODE="32"
7162 ;;
7163 *ELF-64*)
7164 HPUX_IA64_MODE="64"
7165 ;;
7166 esac
7167 fi
7168 rm -rf conftest*
7169 ;;
7170 *-*-irix6*)
7171 # Find out which ABI we are using.
7172 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7174 (eval $ac_compile) 2>&5
7175 ac_status=$?
7176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7177 test $ac_status = 0; }; then
7178 if test "$lt_cv_prog_gnu_ld" = yes; then
7179 case `/usr/bin/file conftest.$ac_objext` in
7180 *32-bit*)
7181 LD="${LD-ld} -melf32bsmip"
7182 ;;
7183 *N32*)
7184 LD="${LD-ld} -melf32bmipn32"
7185 ;;
7186 *64-bit*)
7187 LD="${LD-ld} -melf64bmip"
7188 ;;
7189 esac
7190 else
7191 case `/usr/bin/file conftest.$ac_objext` in
7192 *32-bit*)
7193 LD="${LD-ld} -32"
7194 ;;
7195 *N32*)
7196 LD="${LD-ld} -n32"
7197 ;;
7198 *64-bit*)
7199 LD="${LD-ld} -64"
7200 ;;
7201 esac
7202 fi
7203 fi
7204 rm -rf conftest*
7205 ;;
7206
7207 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7208 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7209 # Find out which ABI we are using.
7210 echo 'int i;' > conftest.$ac_ext
7211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7212 (eval $ac_compile) 2>&5
7213 ac_status=$?
7214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7215 test $ac_status = 0; }; then
7216 case `/usr/bin/file conftest.o` in
7217 *32-bit*)
7218 case $host in
7219 x86_64-*kfreebsd*-gnu)
7220 LD="${LD-ld} -m elf_i386_fbsd"
7221 ;;
7222 x86_64-*linux*)
7223 LD="${LD-ld} -m elf_i386"
7224 ;;
7225 ppc64-*linux*|powerpc64-*linux*)
7226 LD="${LD-ld} -m elf32ppclinux"
7227 ;;
7228 s390x-*linux*)
7229 LD="${LD-ld} -m elf_s390"
7230 ;;
7231 sparc64-*linux*)
7232 LD="${LD-ld} -m elf32_sparc"
7233 ;;
7234 esac
7235 ;;
7236 *64-bit*)
7237 case $host in
7238 x86_64-*kfreebsd*-gnu)
7239 LD="${LD-ld} -m elf_x86_64_fbsd"
7240 ;;
7241 x86_64-*linux*)
7242 LD="${LD-ld} -m elf_x86_64"
7243 ;;
7244 ppc*-*linux*|powerpc*-*linux*)
7245 LD="${LD-ld} -m elf64ppc"
7246 ;;
7247 s390*-*linux*|s390*-*tpf*)
7248 LD="${LD-ld} -m elf64_s390"
7249 ;;
7250 sparc*-*linux*)
7251 LD="${LD-ld} -m elf64_sparc"
7252 ;;
7253 esac
7254 ;;
7255 esac
7256 fi
7257 rm -rf conftest*
7258 ;;
7259
7260 *-*-sco3.2v5*)
7261 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7262 SAVE_CFLAGS="$CFLAGS"
7263 CFLAGS="$CFLAGS -belf"
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7265 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7266 if ${lt_cv_cc_needs_belf+:} false; then :
7267 $as_echo_n "(cached) " >&6
7268 else
7269 ac_ext=c
7270 ac_cpp='$CPP $CPPFLAGS'
7271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7274
7275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7276 /* end confdefs.h. */
7277
7278 int
7279 main ()
7280 {
7281
7282 ;
7283 return 0;
7284 }
7285 _ACEOF
7286 if ac_fn_c_try_link "$LINENO"; then :
7287 lt_cv_cc_needs_belf=yes
7288 else
7289 lt_cv_cc_needs_belf=no
7290 fi
7291 rm -f core conftest.err conftest.$ac_objext \
7292 conftest$ac_exeext conftest.$ac_ext
7293 ac_ext=c
7294 ac_cpp='$CPP $CPPFLAGS'
7295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7298
7299 fi
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7301 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7302 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7303 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7304 CFLAGS="$SAVE_CFLAGS"
7305 fi
7306 ;;
7307 sparc*-*solaris*)
7308 # Find out which ABI we are using.
7309 echo 'int i;' > conftest.$ac_ext
7310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7311 (eval $ac_compile) 2>&5
7312 ac_status=$?
7313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7314 test $ac_status = 0; }; then
7315 case `/usr/bin/file conftest.o` in
7316 *64-bit*)
7317 case $lt_cv_prog_gnu_ld in
7318 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7319 *)
7320 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7321 LD="${LD-ld} -64"
7322 fi
7323 ;;
7324 esac
7325 ;;
7326 esac
7327 fi
7328 rm -rf conftest*
7329 ;;
7330 esac
7331
7332 need_locks="$enable_libtool_lock"
7333
7334 if test -n "$ac_tool_prefix"; then
7335 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7336 set dummy ${ac_tool_prefix}mt; ac_word=$2
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7338 $as_echo_n "checking for $ac_word... " >&6; }
7339 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7340 $as_echo_n "(cached) " >&6
7341 else
7342 if test -n "$MANIFEST_TOOL"; then
7343 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7344 else
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH
7347 do
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7352 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 break 2
7355 fi
7356 done
7357 done
7358 IFS=$as_save_IFS
7359
7360 fi
7361 fi
7362 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7363 if test -n "$MANIFEST_TOOL"; then
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7365 $as_echo "$MANIFEST_TOOL" >&6; }
7366 else
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7368 $as_echo "no" >&6; }
7369 fi
7370
7371
7372 fi
7373 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7374 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7375 # Extract the first word of "mt", so it can be a program name with args.
7376 set dummy mt; ac_word=$2
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378 $as_echo_n "checking for $ac_word... " >&6; }
7379 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7380 $as_echo_n "(cached) " >&6
7381 else
7382 if test -n "$ac_ct_MANIFEST_TOOL"; then
7383 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7384 else
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 for as_dir in $PATH
7387 do
7388 IFS=$as_save_IFS
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7392 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 break 2
7395 fi
7396 done
7397 done
7398 IFS=$as_save_IFS
7399
7400 fi
7401 fi
7402 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7403 if test -n "$ac_ct_MANIFEST_TOOL"; then
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7405 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7406 else
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 $as_echo "no" >&6; }
7409 fi
7410
7411 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7412 MANIFEST_TOOL=":"
7413 else
7414 case $cross_compiling:$ac_tool_warned in
7415 yes:)
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7417 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7418 ac_tool_warned=yes ;;
7419 esac
7420 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7421 fi
7422 else
7423 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7424 fi
7425
7426 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7428 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7429 if ${lt_cv_path_mainfest_tool+:} false; then :
7430 $as_echo_n "(cached) " >&6
7431 else
7432 lt_cv_path_mainfest_tool=no
7433 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7434 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7435 cat conftest.err >&5
7436 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7437 lt_cv_path_mainfest_tool=yes
7438 fi
7439 rm -f conftest*
7440 fi
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7442 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7443 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7444 MANIFEST_TOOL=:
7445 fi
7446
7447
7448
7449
7450
7451
7452 case $host_os in
7453 rhapsody* | darwin*)
7454 if test -n "$ac_tool_prefix"; then
7455 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7456 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7458 $as_echo_n "checking for $ac_word... " >&6; }
7459 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 if test -n "$DSYMUTIL"; then
7463 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7464 else
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 for as_dir in $PATH
7467 do
7468 IFS=$as_save_IFS
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7472 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 break 2
7475 fi
7476 done
7477 done
7478 IFS=$as_save_IFS
7479
7480 fi
7481 fi
7482 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7483 if test -n "$DSYMUTIL"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7485 $as_echo "$DSYMUTIL" >&6; }
7486 else
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }
7489 fi
7490
7491
7492 fi
7493 if test -z "$ac_cv_prog_DSYMUTIL"; then
7494 ac_ct_DSYMUTIL=$DSYMUTIL
7495 # Extract the first word of "dsymutil", so it can be a program name with args.
7496 set dummy dsymutil; ac_word=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7500 $as_echo_n "(cached) " >&6
7501 else
7502 if test -n "$ac_ct_DSYMUTIL"; then
7503 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7504 else
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 for as_dir in $PATH
7507 do
7508 IFS=$as_save_IFS
7509 test -z "$as_dir" && as_dir=.
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7512 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514 break 2
7515 fi
7516 done
7517 done
7518 IFS=$as_save_IFS
7519
7520 fi
7521 fi
7522 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7523 if test -n "$ac_ct_DSYMUTIL"; then
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7525 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7526 else
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7529 fi
7530
7531 if test "x$ac_ct_DSYMUTIL" = x; then
7532 DSYMUTIL=":"
7533 else
7534 case $cross_compiling:$ac_tool_warned in
7535 yes:)
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7538 ac_tool_warned=yes ;;
7539 esac
7540 DSYMUTIL=$ac_ct_DSYMUTIL
7541 fi
7542 else
7543 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7544 fi
7545
7546 if test -n "$ac_tool_prefix"; then
7547 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7548 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550 $as_echo_n "checking for $ac_word... " >&6; }
7551 if ${ac_cv_prog_NMEDIT+:} false; then :
7552 $as_echo_n "(cached) " >&6
7553 else
7554 if test -n "$NMEDIT"; then
7555 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7556 else
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH
7559 do
7560 IFS=$as_save_IFS
7561 test -z "$as_dir" && as_dir=.
7562 for ac_exec_ext in '' $ac_executable_extensions; do
7563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7564 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7566 break 2
7567 fi
7568 done
7569 done
7570 IFS=$as_save_IFS
7571
7572 fi
7573 fi
7574 NMEDIT=$ac_cv_prog_NMEDIT
7575 if test -n "$NMEDIT"; then
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7577 $as_echo "$NMEDIT" >&6; }
7578 else
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580 $as_echo "no" >&6; }
7581 fi
7582
7583
7584 fi
7585 if test -z "$ac_cv_prog_NMEDIT"; then
7586 ac_ct_NMEDIT=$NMEDIT
7587 # Extract the first word of "nmedit", so it can be a program name with args.
7588 set dummy nmedit; ac_word=$2
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590 $as_echo_n "checking for $ac_word... " >&6; }
7591 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7592 $as_echo_n "(cached) " >&6
7593 else
7594 if test -n "$ac_ct_NMEDIT"; then
7595 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7596 else
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7604 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7606 break 2
7607 fi
7608 done
7609 done
7610 IFS=$as_save_IFS
7611
7612 fi
7613 fi
7614 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7615 if test -n "$ac_ct_NMEDIT"; then
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7617 $as_echo "$ac_ct_NMEDIT" >&6; }
7618 else
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620 $as_echo "no" >&6; }
7621 fi
7622
7623 if test "x$ac_ct_NMEDIT" = x; then
7624 NMEDIT=":"
7625 else
7626 case $cross_compiling:$ac_tool_warned in
7627 yes:)
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7630 ac_tool_warned=yes ;;
7631 esac
7632 NMEDIT=$ac_ct_NMEDIT
7633 fi
7634 else
7635 NMEDIT="$ac_cv_prog_NMEDIT"
7636 fi
7637
7638 if test -n "$ac_tool_prefix"; then
7639 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7640 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7642 $as_echo_n "checking for $ac_word... " >&6; }
7643 if ${ac_cv_prog_LIPO+:} false; then :
7644 $as_echo_n "(cached) " >&6
7645 else
7646 if test -n "$LIPO"; then
7647 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7648 else
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 for as_dir in $PATH
7651 do
7652 IFS=$as_save_IFS
7653 test -z "$as_dir" && as_dir=.
7654 for ac_exec_ext in '' $ac_executable_extensions; do
7655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7656 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7658 break 2
7659 fi
7660 done
7661 done
7662 IFS=$as_save_IFS
7663
7664 fi
7665 fi
7666 LIPO=$ac_cv_prog_LIPO
7667 if test -n "$LIPO"; then
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7669 $as_echo "$LIPO" >&6; }
7670 else
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672 $as_echo "no" >&6; }
7673 fi
7674
7675
7676 fi
7677 if test -z "$ac_cv_prog_LIPO"; then
7678 ac_ct_LIPO=$LIPO
7679 # Extract the first word of "lipo", so it can be a program name with args.
7680 set dummy lipo; ac_word=$2
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682 $as_echo_n "checking for $ac_word... " >&6; }
7683 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7684 $as_echo_n "(cached) " >&6
7685 else
7686 if test -n "$ac_ct_LIPO"; then
7687 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7688 else
7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690 for as_dir in $PATH
7691 do
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7696 ac_cv_prog_ac_ct_LIPO="lipo"
7697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7698 break 2
7699 fi
7700 done
7701 done
7702 IFS=$as_save_IFS
7703
7704 fi
7705 fi
7706 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7707 if test -n "$ac_ct_LIPO"; then
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7709 $as_echo "$ac_ct_LIPO" >&6; }
7710 else
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7713 fi
7714
7715 if test "x$ac_ct_LIPO" = x; then
7716 LIPO=":"
7717 else
7718 case $cross_compiling:$ac_tool_warned in
7719 yes:)
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7722 ac_tool_warned=yes ;;
7723 esac
7724 LIPO=$ac_ct_LIPO
7725 fi
7726 else
7727 LIPO="$ac_cv_prog_LIPO"
7728 fi
7729
7730 if test -n "$ac_tool_prefix"; then
7731 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7732 set dummy ${ac_tool_prefix}otool; ac_word=$2
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7734 $as_echo_n "checking for $ac_word... " >&6; }
7735 if ${ac_cv_prog_OTOOL+:} false; then :
7736 $as_echo_n "(cached) " >&6
7737 else
7738 if test -n "$OTOOL"; then
7739 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7740 else
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 for as_dir in $PATH
7743 do
7744 IFS=$as_save_IFS
7745 test -z "$as_dir" && as_dir=.
7746 for ac_exec_ext in '' $ac_executable_extensions; do
7747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7748 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7750 break 2
7751 fi
7752 done
7753 done
7754 IFS=$as_save_IFS
7755
7756 fi
7757 fi
7758 OTOOL=$ac_cv_prog_OTOOL
7759 if test -n "$OTOOL"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7761 $as_echo "$OTOOL" >&6; }
7762 else
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 $as_echo "no" >&6; }
7765 fi
7766
7767
7768 fi
7769 if test -z "$ac_cv_prog_OTOOL"; then
7770 ac_ct_OTOOL=$OTOOL
7771 # Extract the first word of "otool", so it can be a program name with args.
7772 set dummy otool; ac_word=$2
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774 $as_echo_n "checking for $ac_word... " >&6; }
7775 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 if test -n "$ac_ct_OTOOL"; then
7779 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7780 else
7781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7782 for as_dir in $PATH
7783 do
7784 IFS=$as_save_IFS
7785 test -z "$as_dir" && as_dir=.
7786 for ac_exec_ext in '' $ac_executable_extensions; do
7787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7788 ac_cv_prog_ac_ct_OTOOL="otool"
7789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 break 2
7791 fi
7792 done
7793 done
7794 IFS=$as_save_IFS
7795
7796 fi
7797 fi
7798 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7799 if test -n "$ac_ct_OTOOL"; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7801 $as_echo "$ac_ct_OTOOL" >&6; }
7802 else
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7804 $as_echo "no" >&6; }
7805 fi
7806
7807 if test "x$ac_ct_OTOOL" = x; then
7808 OTOOL=":"
7809 else
7810 case $cross_compiling:$ac_tool_warned in
7811 yes:)
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7814 ac_tool_warned=yes ;;
7815 esac
7816 OTOOL=$ac_ct_OTOOL
7817 fi
7818 else
7819 OTOOL="$ac_cv_prog_OTOOL"
7820 fi
7821
7822 if test -n "$ac_tool_prefix"; then
7823 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7824 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 $as_echo_n "checking for $ac_word... " >&6; }
7827 if ${ac_cv_prog_OTOOL64+:} false; then :
7828 $as_echo_n "(cached) " >&6
7829 else
7830 if test -n "$OTOOL64"; then
7831 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7832 else
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 for as_dir in $PATH
7835 do
7836 IFS=$as_save_IFS
7837 test -z "$as_dir" && as_dir=.
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7840 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7842 break 2
7843 fi
7844 done
7845 done
7846 IFS=$as_save_IFS
7847
7848 fi
7849 fi
7850 OTOOL64=$ac_cv_prog_OTOOL64
7851 if test -n "$OTOOL64"; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7853 $as_echo "$OTOOL64" >&6; }
7854 else
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7857 fi
7858
7859
7860 fi
7861 if test -z "$ac_cv_prog_OTOOL64"; then
7862 ac_ct_OTOOL64=$OTOOL64
7863 # Extract the first word of "otool64", so it can be a program name with args.
7864 set dummy otool64; ac_word=$2
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7866 $as_echo_n "checking for $ac_word... " >&6; }
7867 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7870 if test -n "$ac_ct_OTOOL64"; then
7871 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7872 else
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 for as_dir in $PATH
7875 do
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7880 ac_cv_prog_ac_ct_OTOOL64="otool64"
7881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7882 break 2
7883 fi
7884 done
7885 done
7886 IFS=$as_save_IFS
7887
7888 fi
7889 fi
7890 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7891 if test -n "$ac_ct_OTOOL64"; then
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7893 $as_echo "$ac_ct_OTOOL64" >&6; }
7894 else
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 $as_echo "no" >&6; }
7897 fi
7898
7899 if test "x$ac_ct_OTOOL64" = x; then
7900 OTOOL64=":"
7901 else
7902 case $cross_compiling:$ac_tool_warned in
7903 yes:)
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7906 ac_tool_warned=yes ;;
7907 esac
7908 OTOOL64=$ac_ct_OTOOL64
7909 fi
7910 else
7911 OTOOL64="$ac_cv_prog_OTOOL64"
7912 fi
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7941 $as_echo_n "checking for -single_module linker flag... " >&6; }
7942 if ${lt_cv_apple_cc_single_mod+:} false; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 lt_cv_apple_cc_single_mod=no
7946 if test -z "${LT_MULTI_MODULE}"; then
7947 # By default we will add the -single_module flag. You can override
7948 # by either setting the environment variable LT_MULTI_MODULE
7949 # non-empty at configure time, or by adding -multi_module to the
7950 # link flags.
7951 rm -rf libconftest.dylib*
7952 echo "int foo(void){return 1;}" > conftest.c
7953 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7954 -dynamiclib -Wl,-single_module conftest.c" >&5
7955 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7956 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7957 _lt_result=$?
7958 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7959 lt_cv_apple_cc_single_mod=yes
7960 else
7961 cat conftest.err >&5
7962 fi
7963 rm -rf libconftest.dylib*
7964 rm -f conftest.*
7965 fi
7966 fi
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7968 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7970 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7971 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 lt_cv_ld_exported_symbols_list=no
7975 save_LDFLAGS=$LDFLAGS
7976 echo "_main" > conftest.sym
7977 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h. */
7980
7981 int
7982 main ()
7983 {
7984
7985 ;
7986 return 0;
7987 }
7988 _ACEOF
7989 if ac_fn_c_try_link "$LINENO"; then :
7990 lt_cv_ld_exported_symbols_list=yes
7991 else
7992 lt_cv_ld_exported_symbols_list=no
7993 fi
7994 rm -f core conftest.err conftest.$ac_objext \
7995 conftest$ac_exeext conftest.$ac_ext
7996 LDFLAGS="$save_LDFLAGS"
7997
7998 fi
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8000 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8002 $as_echo_n "checking for -force_load linker flag... " >&6; }
8003 if ${lt_cv_ld_force_load+:} false; then :
8004 $as_echo_n "(cached) " >&6
8005 else
8006 lt_cv_ld_force_load=no
8007 cat > conftest.c << _LT_EOF
8008 int forced_loaded() { return 2;}
8009 _LT_EOF
8010 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8011 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8012 echo "$AR cru libconftest.a conftest.o" >&5
8013 $AR cru libconftest.a conftest.o 2>&5
8014 echo "$RANLIB libconftest.a" >&5
8015 $RANLIB libconftest.a 2>&5
8016 cat > conftest.c << _LT_EOF
8017 int main() { return 0;}
8018 _LT_EOF
8019 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8020 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8021 _lt_result=$?
8022 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8023 lt_cv_ld_force_load=yes
8024 else
8025 cat conftest.err >&5
8026 fi
8027 rm -f conftest.err libconftest.a conftest conftest.c
8028 rm -rf conftest.dSYM
8029
8030 fi
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8032 $as_echo "$lt_cv_ld_force_load" >&6; }
8033 case $host_os in
8034 rhapsody* | darwin1.[012])
8035 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8036 darwin1.*)
8037 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8038 darwin*) # darwin 5.x on
8039 # if running on 10.5 or later, the deployment target defaults
8040 # to the OS version, if on x86, and 10.4, the deployment
8041 # target defaults to 10.4. Don't you love it?
8042 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8043 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8044 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8045 10.[012]*)
8046 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8047 10.*)
8048 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8049 esac
8050 ;;
8051 esac
8052 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8053 _lt_dar_single_mod='$single_module'
8054 fi
8055 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8056 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8057 else
8058 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8059 fi
8060 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8061 _lt_dsymutil='~$DSYMUTIL $lib || :'
8062 else
8063 _lt_dsymutil=
8064 fi
8065 ;;
8066 esac
8067
8068 for ac_header in dlfcn.h
8069 do :
8070 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8071 "
8072 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8073 cat >>confdefs.h <<_ACEOF
8074 #define HAVE_DLFCN_H 1
8075 _ACEOF
8076
8077 fi
8078
8079 done
8080
8081
8082
8083
8084
8085 # Set options
8086
8087
8088
8089 enable_dlopen=no
8090
8091
8092 enable_win32_dll=no
8093
8094
8095 # Check whether --enable-shared was given.
8096 if test "${enable_shared+set}" = set; then :
8097 enableval=$enable_shared; p=${PACKAGE-default}
8098 case $enableval in
8099 yes) enable_shared=yes ;;
8100 no) enable_shared=no ;;
8101 *)
8102 enable_shared=no
8103 # Look at the argument we got. We use all the common list separators.
8104 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8105 for pkg in $enableval; do
8106 IFS="$lt_save_ifs"
8107 if test "X$pkg" = "X$p"; then
8108 enable_shared=yes
8109 fi
8110 done
8111 IFS="$lt_save_ifs"
8112 ;;
8113 esac
8114 else
8115 enable_shared=yes
8116 fi
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126 # Check whether --enable-static was given.
8127 if test "${enable_static+set}" = set; then :
8128 enableval=$enable_static; p=${PACKAGE-default}
8129 case $enableval in
8130 yes) enable_static=yes ;;
8131 no) enable_static=no ;;
8132 *)
8133 enable_static=no
8134 # Look at the argument we got. We use all the common list separators.
8135 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8136 for pkg in $enableval; do
8137 IFS="$lt_save_ifs"
8138 if test "X$pkg" = "X$p"; then
8139 enable_static=yes
8140 fi
8141 done
8142 IFS="$lt_save_ifs"
8143 ;;
8144 esac
8145 else
8146 enable_static=yes
8147 fi
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158 # Check whether --with-pic was given.
8159 if test "${with_pic+set}" = set; then :
8160 withval=$with_pic; pic_mode="$withval"
8161 else
8162 pic_mode=default
8163 fi
8164
8165
8166 test -z "$pic_mode" && pic_mode=default
8167
8168
8169
8170
8171
8172
8173
8174 # Check whether --enable-fast-install was given.
8175 if test "${enable_fast_install+set}" = set; then :
8176 enableval=$enable_fast_install; p=${PACKAGE-default}
8177 case $enableval in
8178 yes) enable_fast_install=yes ;;
8179 no) enable_fast_install=no ;;
8180 *)
8181 enable_fast_install=no
8182 # Look at the argument we got. We use all the common list separators.
8183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8184 for pkg in $enableval; do
8185 IFS="$lt_save_ifs"
8186 if test "X$pkg" = "X$p"; then
8187 enable_fast_install=yes
8188 fi
8189 done
8190 IFS="$lt_save_ifs"
8191 ;;
8192 esac
8193 else
8194 enable_fast_install=yes
8195 fi
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207 # This can be used to rebuild libtool when needed
8208 LIBTOOL_DEPS="$ltmain"
8209
8210 # Always use our own libtool.
8211 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238 test -z "$LN_S" && LN_S="ln -s"
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253 if test -n "${ZSH_VERSION+set}" ; then
8254 setopt NO_GLOB_SUBST
8255 fi
8256
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8258 $as_echo_n "checking for objdir... " >&6; }
8259 if ${lt_cv_objdir+:} false; then :
8260 $as_echo_n "(cached) " >&6
8261 else
8262 rm -f .libs 2>/dev/null
8263 mkdir .libs 2>/dev/null
8264 if test -d .libs; then
8265 lt_cv_objdir=.libs
8266 else
8267 # MS-DOS does not allow filenames that begin with a dot.
8268 lt_cv_objdir=_libs
8269 fi
8270 rmdir .libs 2>/dev/null
8271 fi
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8273 $as_echo "$lt_cv_objdir" >&6; }
8274 objdir=$lt_cv_objdir
8275
8276
8277
8278
8279
8280 cat >>confdefs.h <<_ACEOF
8281 #define LT_OBJDIR "$lt_cv_objdir/"
8282 _ACEOF
8283
8284
8285
8286
8287 case $host_os in
8288 aix3*)
8289 # AIX sometimes has problems with the GCC collect2 program. For some
8290 # reason, if we set the COLLECT_NAMES environment variable, the problems
8291 # vanish in a puff of smoke.
8292 if test "X${COLLECT_NAMES+set}" != Xset; then
8293 COLLECT_NAMES=
8294 export COLLECT_NAMES
8295 fi
8296 ;;
8297 esac
8298
8299 # Global variables:
8300 ofile=libtool
8301 can_build_shared=yes
8302
8303 # All known linkers require a `.a' archive for static linking (except MSVC,
8304 # which needs '.lib').
8305 libext=a
8306
8307 with_gnu_ld="$lt_cv_prog_gnu_ld"
8308
8309 old_CC="$CC"
8310 old_CFLAGS="$CFLAGS"
8311
8312 # Set sane defaults for various variables
8313 test -z "$CC" && CC=cc
8314 test -z "$LTCC" && LTCC=$CC
8315 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8316 test -z "$LD" && LD=ld
8317 test -z "$ac_objext" && ac_objext=o
8318
8319 for cc_temp in $compiler""; do
8320 case $cc_temp in
8321 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8322 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8323 \-*) ;;
8324 *) break;;
8325 esac
8326 done
8327 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8328
8329
8330 # Only perform the check for file, if the check method requires it
8331 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8332 case $deplibs_check_method in
8333 file_magic*)
8334 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8336 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8337 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8338 $as_echo_n "(cached) " >&6
8339 else
8340 case $MAGIC_CMD in
8341 [\\/*] | ?:[\\/]*)
8342 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8343 ;;
8344 *)
8345 lt_save_MAGIC_CMD="$MAGIC_CMD"
8346 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8347 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8348 for ac_dir in $ac_dummy; do
8349 IFS="$lt_save_ifs"
8350 test -z "$ac_dir" && ac_dir=.
8351 if test -f $ac_dir/${ac_tool_prefix}file; then
8352 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8353 if test -n "$file_magic_test_file"; then
8354 case $deplibs_check_method in
8355 "file_magic "*)
8356 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8357 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8358 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8359 $EGREP "$file_magic_regex" > /dev/null; then
8360 :
8361 else
8362 cat <<_LT_EOF 1>&2
8363
8364 *** Warning: the command libtool uses to detect shared libraries,
8365 *** $file_magic_cmd, produces output that libtool cannot recognize.
8366 *** The result is that libtool may fail to recognize shared libraries
8367 *** as such. This will affect the creation of libtool libraries that
8368 *** depend on shared libraries, but programs linked with such libtool
8369 *** libraries will work regardless of this problem. Nevertheless, you
8370 *** may want to report the problem to your system manager and/or to
8371 *** bug-libtool@gnu.org
8372
8373 _LT_EOF
8374 fi ;;
8375 esac
8376 fi
8377 break
8378 fi
8379 done
8380 IFS="$lt_save_ifs"
8381 MAGIC_CMD="$lt_save_MAGIC_CMD"
8382 ;;
8383 esac
8384 fi
8385
8386 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8387 if test -n "$MAGIC_CMD"; then
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8389 $as_echo "$MAGIC_CMD" >&6; }
8390 else
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8393 fi
8394
8395
8396
8397
8398
8399 if test -z "$lt_cv_path_MAGIC_CMD"; then
8400 if test -n "$ac_tool_prefix"; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8402 $as_echo_n "checking for file... " >&6; }
8403 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8404 $as_echo_n "(cached) " >&6
8405 else
8406 case $MAGIC_CMD in
8407 [\\/*] | ?:[\\/]*)
8408 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8409 ;;
8410 *)
8411 lt_save_MAGIC_CMD="$MAGIC_CMD"
8412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8413 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8414 for ac_dir in $ac_dummy; do
8415 IFS="$lt_save_ifs"
8416 test -z "$ac_dir" && ac_dir=.
8417 if test -f $ac_dir/file; then
8418 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8419 if test -n "$file_magic_test_file"; then
8420 case $deplibs_check_method in
8421 "file_magic "*)
8422 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8423 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8424 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8425 $EGREP "$file_magic_regex" > /dev/null; then
8426 :
8427 else
8428 cat <<_LT_EOF 1>&2
8429
8430 *** Warning: the command libtool uses to detect shared libraries,
8431 *** $file_magic_cmd, produces output that libtool cannot recognize.
8432 *** The result is that libtool may fail to recognize shared libraries
8433 *** as such. This will affect the creation of libtool libraries that
8434 *** depend on shared libraries, but programs linked with such libtool
8435 *** libraries will work regardless of this problem. Nevertheless, you
8436 *** may want to report the problem to your system manager and/or to
8437 *** bug-libtool@gnu.org
8438
8439 _LT_EOF
8440 fi ;;
8441 esac
8442 fi
8443 break
8444 fi
8445 done
8446 IFS="$lt_save_ifs"
8447 MAGIC_CMD="$lt_save_MAGIC_CMD"
8448 ;;
8449 esac
8450 fi
8451
8452 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8453 if test -n "$MAGIC_CMD"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8455 $as_echo "$MAGIC_CMD" >&6; }
8456 else
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8459 fi
8460
8461
8462 else
8463 MAGIC_CMD=:
8464 fi
8465 fi
8466
8467 fi
8468 ;;
8469 esac
8470
8471 # Use C for the default configuration in the libtool script
8472
8473 lt_save_CC="$CC"
8474 ac_ext=c
8475 ac_cpp='$CPP $CPPFLAGS'
8476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8479
8480
8481 # Source file extension for C test sources.
8482 ac_ext=c
8483
8484 # Object file extension for compiled C test sources.
8485 objext=o
8486 objext=$objext
8487
8488 # Code to be used in simple compile tests
8489 lt_simple_compile_test_code="int some_variable = 0;"
8490
8491 # Code to be used in simple link tests
8492 lt_simple_link_test_code='int main(){return(0);}'
8493
8494
8495
8496
8497
8498
8499
8500 # If no C compiler was specified, use CC.
8501 LTCC=${LTCC-"$CC"}
8502
8503 # If no C compiler flags were specified, use CFLAGS.
8504 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8505
8506 # Allow CC to be a program name with arguments.
8507 compiler=$CC
8508
8509 # Save the default compiler, since it gets overwritten when the other
8510 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8511 compiler_DEFAULT=$CC
8512
8513 # save warnings/boilerplate of simple test code
8514 ac_outfile=conftest.$ac_objext
8515 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8516 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8517 _lt_compiler_boilerplate=`cat conftest.err`
8518 $RM conftest*
8519
8520 ac_outfile=conftest.$ac_objext
8521 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8522 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8523 _lt_linker_boilerplate=`cat conftest.err`
8524 $RM -r conftest*
8525
8526
8527 ## CAVEAT EMPTOR:
8528 ## There is no encapsulation within the following macros, do not change
8529 ## the running order or otherwise move them around unless you know exactly
8530 ## what you are doing...
8531 if test -n "$compiler"; then
8532
8533 lt_prog_compiler_no_builtin_flag=
8534
8535 if test "$GCC" = yes; then
8536 case $cc_basename in
8537 nvcc*)
8538 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8539 *)
8540 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8541 esac
8542
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8544 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8545 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8546 $as_echo_n "(cached) " >&6
8547 else
8548 lt_cv_prog_compiler_rtti_exceptions=no
8549 ac_outfile=conftest.$ac_objext
8550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8551 lt_compiler_flag="-fno-rtti -fno-exceptions"
8552 # Insert the option either (1) after the last *FLAGS variable, or
8553 # (2) before a word containing "conftest.", or (3) at the end.
8554 # Note that $ac_compile itself does not contain backslashes and begins
8555 # with a dollar sign (not a hyphen), so the echo should work correctly.
8556 # The option is referenced via a variable to avoid confusing sed.
8557 lt_compile=`echo "$ac_compile" | $SED \
8558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8560 -e 's:$: $lt_compiler_flag:'`
8561 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8562 (eval "$lt_compile" 2>conftest.err)
8563 ac_status=$?
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 if (exit $ac_status) && test -s "$ac_outfile"; then
8567 # The compiler can only warn and ignore the option if not recognized
8568 # So say no if there are warnings other than the usual output.
8569 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8570 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8571 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8572 lt_cv_prog_compiler_rtti_exceptions=yes
8573 fi
8574 fi
8575 $RM conftest*
8576
8577 fi
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8579 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8580
8581 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8582 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8583 else
8584 :
8585 fi
8586
8587 fi
8588
8589
8590
8591
8592
8593
8594 lt_prog_compiler_wl=
8595 lt_prog_compiler_pic=
8596 lt_prog_compiler_static=
8597
8598
8599 if test "$GCC" = yes; then
8600 lt_prog_compiler_wl='-Wl,'
8601 lt_prog_compiler_static='-static'
8602
8603 case $host_os in
8604 aix*)
8605 # All AIX code is PIC.
8606 if test "$host_cpu" = ia64; then
8607 # AIX 5 now supports IA64 processor
8608 lt_prog_compiler_static='-Bstatic'
8609 fi
8610 ;;
8611
8612 amigaos*)
8613 case $host_cpu in
8614 powerpc)
8615 # see comment about AmigaOS4 .so support
8616 lt_prog_compiler_pic='-fPIC'
8617 ;;
8618 m68k)
8619 # FIXME: we need at least 68020 code to build shared libraries, but
8620 # adding the `-m68020' flag to GCC prevents building anything better,
8621 # like `-m68040'.
8622 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8623 ;;
8624 esac
8625 ;;
8626
8627 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8628 # PIC is the default for these OSes.
8629 ;;
8630
8631 mingw* | cygwin* | pw32* | os2* | cegcc*)
8632 # This hack is so that the source file can tell whether it is being
8633 # built for inclusion in a dll (and should export symbols for example).
8634 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8635 # (--disable-auto-import) libraries
8636 lt_prog_compiler_pic='-DDLL_EXPORT'
8637 ;;
8638
8639 darwin* | rhapsody*)
8640 # PIC is the default on this platform
8641 # Common symbols not allowed in MH_DYLIB files
8642 lt_prog_compiler_pic='-fno-common'
8643 ;;
8644
8645 haiku*)
8646 # PIC is the default for Haiku.
8647 # The "-static" flag exists, but is broken.
8648 lt_prog_compiler_static=
8649 ;;
8650
8651 hpux*)
8652 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8653 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8654 # sets the default TLS model and affects inlining.
8655 case $host_cpu in
8656 hppa*64*)
8657 # +Z the default
8658 ;;
8659 *)
8660 lt_prog_compiler_pic='-fPIC'
8661 ;;
8662 esac
8663 ;;
8664
8665 interix[3-9]*)
8666 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8667 # Instead, we relocate shared libraries at runtime.
8668 ;;
8669
8670 msdosdjgpp*)
8671 # Just because we use GCC doesn't mean we suddenly get shared libraries
8672 # on systems that don't support them.
8673 lt_prog_compiler_can_build_shared=no
8674 enable_shared=no
8675 ;;
8676
8677 *nto* | *qnx*)
8678 # QNX uses GNU C++, but need to define -shared option too, otherwise
8679 # it will coredump.
8680 lt_prog_compiler_pic='-fPIC -shared'
8681 ;;
8682
8683 sysv4*MP*)
8684 if test -d /usr/nec; then
8685 lt_prog_compiler_pic=-Kconform_pic
8686 fi
8687 ;;
8688
8689 *)
8690 lt_prog_compiler_pic='-fPIC'
8691 ;;
8692 esac
8693
8694 case $cc_basename in
8695 nvcc*) # Cuda Compiler Driver 2.2
8696 lt_prog_compiler_wl='-Xlinker '
8697 lt_prog_compiler_pic='-Xcompiler -fPIC'
8698 ;;
8699 esac
8700 else
8701 # PORTME Check for flag to pass linker flags through the system compiler.
8702 case $host_os in
8703 aix*)
8704 lt_prog_compiler_wl='-Wl,'
8705 if test "$host_cpu" = ia64; then
8706 # AIX 5 now supports IA64 processor
8707 lt_prog_compiler_static='-Bstatic'
8708 else
8709 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8710 fi
8711 ;;
8712
8713 mingw* | cygwin* | pw32* | os2* | cegcc*)
8714 # This hack is so that the source file can tell whether it is being
8715 # built for inclusion in a dll (and should export symbols for example).
8716 lt_prog_compiler_pic='-DDLL_EXPORT'
8717 ;;
8718
8719 hpux9* | hpux10* | hpux11*)
8720 lt_prog_compiler_wl='-Wl,'
8721 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8722 # not for PA HP-UX.
8723 case $host_cpu in
8724 hppa*64*|ia64*)
8725 # +Z the default
8726 ;;
8727 *)
8728 lt_prog_compiler_pic='+Z'
8729 ;;
8730 esac
8731 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8732 lt_prog_compiler_static='${wl}-a ${wl}archive'
8733 ;;
8734
8735 irix5* | irix6* | nonstopux*)
8736 lt_prog_compiler_wl='-Wl,'
8737 # PIC (with -KPIC) is the default.
8738 lt_prog_compiler_static='-non_shared'
8739 ;;
8740
8741 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8742 case $cc_basename in
8743 # old Intel for x86_64 which still supported -KPIC.
8744 ecc*)
8745 lt_prog_compiler_wl='-Wl,'
8746 lt_prog_compiler_pic='-KPIC'
8747 lt_prog_compiler_static='-static'
8748 ;;
8749 # icc used to be incompatible with GCC.
8750 # ICC 10 doesn't accept -KPIC any more.
8751 icc* | ifort*)
8752 lt_prog_compiler_wl='-Wl,'
8753 lt_prog_compiler_pic='-fPIC'
8754 lt_prog_compiler_static='-static'
8755 ;;
8756 # Lahey Fortran 8.1.
8757 lf95*)
8758 lt_prog_compiler_wl='-Wl,'
8759 lt_prog_compiler_pic='--shared'
8760 lt_prog_compiler_static='--static'
8761 ;;
8762 nagfor*)
8763 # NAG Fortran compiler
8764 lt_prog_compiler_wl='-Wl,-Wl,,'
8765 lt_prog_compiler_pic='-PIC'
8766 lt_prog_compiler_static='-Bstatic'
8767 ;;
8768 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8769 # Portland Group compilers (*not* the Pentium gcc compiler,
8770 # which looks to be a dead project)
8771 lt_prog_compiler_wl='-Wl,'
8772 lt_prog_compiler_pic='-fpic'
8773 lt_prog_compiler_static='-Bstatic'
8774 ;;
8775 ccc*)
8776 lt_prog_compiler_wl='-Wl,'
8777 # All Alpha code is PIC.
8778 lt_prog_compiler_static='-non_shared'
8779 ;;
8780 xl* | bgxl* | bgf* | mpixl*)
8781 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8782 lt_prog_compiler_wl='-Wl,'
8783 lt_prog_compiler_pic='-qpic'
8784 lt_prog_compiler_static='-qstaticlink'
8785 ;;
8786 *)
8787 case `$CC -V 2>&1 | sed 5q` in
8788 *Sun\ F* | *Sun*Fortran*)
8789 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8790 lt_prog_compiler_pic='-KPIC'
8791 lt_prog_compiler_static='-Bstatic'
8792 lt_prog_compiler_wl=''
8793 ;;
8794 *Sun\ C*)
8795 # Sun C 5.9
8796 lt_prog_compiler_pic='-KPIC'
8797 lt_prog_compiler_static='-Bstatic'
8798 lt_prog_compiler_wl='-Wl,'
8799 ;;
8800 esac
8801 ;;
8802 esac
8803 ;;
8804
8805 newsos6)
8806 lt_prog_compiler_pic='-KPIC'
8807 lt_prog_compiler_static='-Bstatic'
8808 ;;
8809
8810 *nto* | *qnx*)
8811 # QNX uses GNU C++, but need to define -shared option too, otherwise
8812 # it will coredump.
8813 lt_prog_compiler_pic='-fPIC -shared'
8814 ;;
8815
8816 osf3* | osf4* | osf5*)
8817 lt_prog_compiler_wl='-Wl,'
8818 # All OSF/1 code is PIC.
8819 lt_prog_compiler_static='-non_shared'
8820 ;;
8821
8822 rdos*)
8823 lt_prog_compiler_static='-non_shared'
8824 ;;
8825
8826 solaris*)
8827 lt_prog_compiler_pic='-KPIC'
8828 lt_prog_compiler_static='-Bstatic'
8829 case $cc_basename in
8830 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8831 lt_prog_compiler_wl='-Qoption ld ';;
8832 *)
8833 lt_prog_compiler_wl='-Wl,';;
8834 esac
8835 ;;
8836
8837 sunos4*)
8838 lt_prog_compiler_wl='-Qoption ld '
8839 lt_prog_compiler_pic='-PIC'
8840 lt_prog_compiler_static='-Bstatic'
8841 ;;
8842
8843 sysv4 | sysv4.2uw2* | sysv4.3*)
8844 lt_prog_compiler_wl='-Wl,'
8845 lt_prog_compiler_pic='-KPIC'
8846 lt_prog_compiler_static='-Bstatic'
8847 ;;
8848
8849 sysv4*MP*)
8850 if test -d /usr/nec ;then
8851 lt_prog_compiler_pic='-Kconform_pic'
8852 lt_prog_compiler_static='-Bstatic'
8853 fi
8854 ;;
8855
8856 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8857 lt_prog_compiler_wl='-Wl,'
8858 lt_prog_compiler_pic='-KPIC'
8859 lt_prog_compiler_static='-Bstatic'
8860 ;;
8861
8862 unicos*)
8863 lt_prog_compiler_wl='-Wl,'
8864 lt_prog_compiler_can_build_shared=no
8865 ;;
8866
8867 uts4*)
8868 lt_prog_compiler_pic='-pic'
8869 lt_prog_compiler_static='-Bstatic'
8870 ;;
8871
8872 *)
8873 lt_prog_compiler_can_build_shared=no
8874 ;;
8875 esac
8876 fi
8877
8878 case $host_os in
8879 # For platforms which do not support PIC, -DPIC is meaningless:
8880 *djgpp*)
8881 lt_prog_compiler_pic=
8882 ;;
8883 *)
8884 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8885 ;;
8886 esac
8887
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8889 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8890 if ${lt_cv_prog_compiler_pic+:} false; then :
8891 $as_echo_n "(cached) " >&6
8892 else
8893 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8894 fi
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8896 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8897 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8898
8899 #
8900 # Check to make sure the PIC flag actually works.
8901 #
8902 if test -n "$lt_prog_compiler_pic"; then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8904 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8905 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8906 $as_echo_n "(cached) " >&6
8907 else
8908 lt_cv_prog_compiler_pic_works=no
8909 ac_outfile=conftest.$ac_objext
8910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8911 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8912 # Insert the option either (1) after the last *FLAGS variable, or
8913 # (2) before a word containing "conftest.", or (3) at the end.
8914 # Note that $ac_compile itself does not contain backslashes and begins
8915 # with a dollar sign (not a hyphen), so the echo should work correctly.
8916 # The option is referenced via a variable to avoid confusing sed.
8917 lt_compile=`echo "$ac_compile" | $SED \
8918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8920 -e 's:$: $lt_compiler_flag:'`
8921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8922 (eval "$lt_compile" 2>conftest.err)
8923 ac_status=$?
8924 cat conftest.err >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 if (exit $ac_status) && test -s "$ac_outfile"; then
8927 # The compiler can only warn and ignore the option if not recognized
8928 # So say no if there are warnings other than the usual output.
8929 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8930 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8931 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8932 lt_cv_prog_compiler_pic_works=yes
8933 fi
8934 fi
8935 $RM conftest*
8936
8937 fi
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8939 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8940
8941 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8942 case $lt_prog_compiler_pic in
8943 "" | " "*) ;;
8944 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8945 esac
8946 else
8947 lt_prog_compiler_pic=
8948 lt_prog_compiler_can_build_shared=no
8949 fi
8950
8951 fi
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963 #
8964 # Check to make sure the static flag actually works.
8965 #
8966 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8968 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8969 if ${lt_cv_prog_compiler_static_works+:} false; then :
8970 $as_echo_n "(cached) " >&6
8971 else
8972 lt_cv_prog_compiler_static_works=no
8973 save_LDFLAGS="$LDFLAGS"
8974 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8975 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8976 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8977 # The linker can only warn and ignore the option if not recognized
8978 # So say no if there are warnings
8979 if test -s conftest.err; then
8980 # Append any errors to the config.log.
8981 cat conftest.err 1>&5
8982 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8984 if diff conftest.exp conftest.er2 >/dev/null; then
8985 lt_cv_prog_compiler_static_works=yes
8986 fi
8987 else
8988 lt_cv_prog_compiler_static_works=yes
8989 fi
8990 fi
8991 $RM -r conftest*
8992 LDFLAGS="$save_LDFLAGS"
8993
8994 fi
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8996 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8997
8998 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8999 :
9000 else
9001 lt_prog_compiler_static=
9002 fi
9003
9004
9005
9006
9007
9008
9009
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9011 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9012 if ${lt_cv_prog_compiler_c_o+:} false; then :
9013 $as_echo_n "(cached) " >&6
9014 else
9015 lt_cv_prog_compiler_c_o=no
9016 $RM -r conftest 2>/dev/null
9017 mkdir conftest
9018 cd conftest
9019 mkdir out
9020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9021
9022 lt_compiler_flag="-o out/conftest2.$ac_objext"
9023 # Insert the option either (1) after the last *FLAGS variable, or
9024 # (2) before a word containing "conftest.", or (3) at the end.
9025 # Note that $ac_compile itself does not contain backslashes and begins
9026 # with a dollar sign (not a hyphen), so the echo should work correctly.
9027 lt_compile=`echo "$ac_compile" | $SED \
9028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9030 -e 's:$: $lt_compiler_flag:'`
9031 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9032 (eval "$lt_compile" 2>out/conftest.err)
9033 ac_status=$?
9034 cat out/conftest.err >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9037 then
9038 # The compiler can only warn and ignore the option if not recognized
9039 # So say no if there are warnings
9040 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9041 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9042 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9043 lt_cv_prog_compiler_c_o=yes
9044 fi
9045 fi
9046 chmod u+w . 2>&5
9047 $RM conftest*
9048 # SGI C++ compiler will create directory out/ii_files/ for
9049 # template instantiation
9050 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9051 $RM out/* && rmdir out
9052 cd ..
9053 $RM -r conftest
9054 $RM conftest*
9055
9056 fi
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9058 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9059
9060
9061
9062
9063
9064
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9066 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9067 if ${lt_cv_prog_compiler_c_o+:} false; then :
9068 $as_echo_n "(cached) " >&6
9069 else
9070 lt_cv_prog_compiler_c_o=no
9071 $RM -r conftest 2>/dev/null
9072 mkdir conftest
9073 cd conftest
9074 mkdir out
9075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9076
9077 lt_compiler_flag="-o out/conftest2.$ac_objext"
9078 # Insert the option either (1) after the last *FLAGS variable, or
9079 # (2) before a word containing "conftest.", or (3) at the end.
9080 # Note that $ac_compile itself does not contain backslashes and begins
9081 # with a dollar sign (not a hyphen), so the echo should work correctly.
9082 lt_compile=`echo "$ac_compile" | $SED \
9083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9085 -e 's:$: $lt_compiler_flag:'`
9086 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9087 (eval "$lt_compile" 2>out/conftest.err)
9088 ac_status=$?
9089 cat out/conftest.err >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9092 then
9093 # The compiler can only warn and ignore the option if not recognized
9094 # So say no if there are warnings
9095 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9096 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9097 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9098 lt_cv_prog_compiler_c_o=yes
9099 fi
9100 fi
9101 chmod u+w . 2>&5
9102 $RM conftest*
9103 # SGI C++ compiler will create directory out/ii_files/ for
9104 # template instantiation
9105 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9106 $RM out/* && rmdir out
9107 cd ..
9108 $RM -r conftest
9109 $RM conftest*
9110
9111 fi
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9113 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9114
9115
9116
9117
9118 hard_links="nottested"
9119 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9120 # do not overwrite the value of need_locks provided by the user
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9122 $as_echo_n "checking if we can lock with hard links... " >&6; }
9123 hard_links=yes
9124 $RM conftest*
9125 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9126 touch conftest.a
9127 ln conftest.a conftest.b 2>&5 || hard_links=no
9128 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9130 $as_echo "$hard_links" >&6; }
9131 if test "$hard_links" = no; then
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9133 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9134 need_locks=warn
9135 fi
9136 else
9137 need_locks=no
9138 fi
9139
9140
9141
9142
9143
9144
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9146 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9147
9148 runpath_var=
9149 allow_undefined_flag=
9150 always_export_symbols=no
9151 archive_cmds=
9152 archive_expsym_cmds=
9153 compiler_needs_object=no
9154 enable_shared_with_static_runtimes=no
9155 export_dynamic_flag_spec=
9156 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9157 hardcode_automatic=no
9158 hardcode_direct=no
9159 hardcode_direct_absolute=no
9160 hardcode_libdir_flag_spec=
9161 hardcode_libdir_flag_spec_ld=
9162 hardcode_libdir_separator=
9163 hardcode_minus_L=no
9164 hardcode_shlibpath_var=unsupported
9165 inherit_rpath=no
9166 link_all_deplibs=unknown
9167 module_cmds=
9168 module_expsym_cmds=
9169 old_archive_from_new_cmds=
9170 old_archive_from_expsyms_cmds=
9171 thread_safe_flag_spec=
9172 whole_archive_flag_spec=
9173 # include_expsyms should be a list of space-separated symbols to be *always*
9174 # included in the symbol list
9175 include_expsyms=
9176 # exclude_expsyms can be an extended regexp of symbols to exclude
9177 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9178 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9179 # as well as any symbol that contains `d'.
9180 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9181 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9182 # platforms (ab)use it in PIC code, but their linkers get confused if
9183 # the symbol is explicitly referenced. Since portable code cannot
9184 # rely on this symbol name, it's probably fine to never include it in
9185 # preloaded symbol tables.
9186 # Exclude shared library initialization/finalization symbols.
9187 extract_expsyms_cmds=
9188
9189 case $host_os in
9190 cygwin* | mingw* | pw32* | cegcc*)
9191 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9192 # When not using gcc, we currently assume that we are using
9193 # Microsoft Visual C++.
9194 if test "$GCC" != yes; then
9195 with_gnu_ld=no
9196 fi
9197 ;;
9198 interix*)
9199 # we just hope/assume this is gcc and not c89 (= MSVC++)
9200 with_gnu_ld=yes
9201 ;;
9202 openbsd*)
9203 with_gnu_ld=no
9204 ;;
9205 esac
9206
9207 ld_shlibs=yes
9208
9209 # On some targets, GNU ld is compatible enough with the native linker
9210 # that we're better off using the native interface for both.
9211 lt_use_gnu_ld_interface=no
9212 if test "$with_gnu_ld" = yes; then
9213 case $host_os in
9214 aix*)
9215 # The AIX port of GNU ld has always aspired to compatibility
9216 # with the native linker. However, as the warning in the GNU ld
9217 # block says, versions before 2.19.5* couldn't really create working
9218 # shared libraries, regardless of the interface used.
9219 case `$LD -v 2>&1` in
9220 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9221 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9222 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9223 *)
9224 lt_use_gnu_ld_interface=yes
9225 ;;
9226 esac
9227 ;;
9228 *)
9229 lt_use_gnu_ld_interface=yes
9230 ;;
9231 esac
9232 fi
9233
9234 if test "$lt_use_gnu_ld_interface" = yes; then
9235 # If archive_cmds runs LD, not CC, wlarc should be empty
9236 wlarc='${wl}'
9237
9238 # Set some defaults for GNU ld with shared library support. These
9239 # are reset later if shared libraries are not supported. Putting them
9240 # here allows them to be overridden if necessary.
9241 runpath_var=LD_RUN_PATH
9242 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9243 export_dynamic_flag_spec='${wl}--export-dynamic'
9244 # ancient GNU ld didn't support --whole-archive et. al.
9245 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9246 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9247 else
9248 whole_archive_flag_spec=
9249 fi
9250 supports_anon_versioning=no
9251 case `$LD -v 2>&1` in
9252 *GNU\ gold*) supports_anon_versioning=yes ;;
9253 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9254 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9255 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9256 *\ 2.11.*) ;; # other 2.11 versions
9257 *) supports_anon_versioning=yes ;;
9258 esac
9259
9260 # See if GNU ld supports shared libraries.
9261 case $host_os in
9262 aix[3-9]*)
9263 # On AIX/PPC, the GNU linker is very broken
9264 if test "$host_cpu" != ia64; then
9265 ld_shlibs=no
9266 cat <<_LT_EOF 1>&2
9267
9268 *** Warning: the GNU linker, at least up to release 2.19, is reported
9269 *** to be unable to reliably create shared libraries on AIX.
9270 *** Therefore, libtool is disabling shared libraries support. If you
9271 *** really care for shared libraries, you may want to install binutils
9272 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9273 *** You will then need to restart the configuration process.
9274
9275 _LT_EOF
9276 fi
9277 ;;
9278
9279 amigaos*)
9280 case $host_cpu in
9281 powerpc)
9282 # see comment about AmigaOS4 .so support
9283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9284 archive_expsym_cmds=''
9285 ;;
9286 m68k)
9287 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)'
9288 hardcode_libdir_flag_spec='-L$libdir'
9289 hardcode_minus_L=yes
9290 ;;
9291 esac
9292 ;;
9293
9294 beos*)
9295 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9296 allow_undefined_flag=unsupported
9297 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9298 # support --undefined. This deserves some investigation. FIXME
9299 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9300 else
9301 ld_shlibs=no
9302 fi
9303 ;;
9304
9305 cygwin* | mingw* | pw32* | cegcc*)
9306 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9307 # as there is no search path for DLLs.
9308 hardcode_libdir_flag_spec='-L$libdir'
9309 export_dynamic_flag_spec='${wl}--export-all-symbols'
9310 allow_undefined_flag=unsupported
9311 always_export_symbols=no
9312 enable_shared_with_static_runtimes=yes
9313 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9314 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9315
9316 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9318 # If the export-symbols file already is a .def file (1st line
9319 # is EXPORTS), use it as is; otherwise, prepend...
9320 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9321 cp $export_symbols $output_objdir/$soname.def;
9322 else
9323 echo EXPORTS > $output_objdir/$soname.def;
9324 cat $export_symbols >> $output_objdir/$soname.def;
9325 fi~
9326 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9327 else
9328 ld_shlibs=no
9329 fi
9330 ;;
9331
9332 haiku*)
9333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9334 link_all_deplibs=yes
9335 ;;
9336
9337 interix[3-9]*)
9338 hardcode_direct=no
9339 hardcode_shlibpath_var=no
9340 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9341 export_dynamic_flag_spec='${wl}-E'
9342 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9343 # Instead, shared libraries are loaded at an image base (0x10000000 by
9344 # default) and relocated if they conflict, which is a slow very memory
9345 # consuming and fragmenting process. To avoid this, we pick a random,
9346 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9347 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9348 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9349 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'
9350 ;;
9351
9352 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9353 tmp_diet=no
9354 if test "$host_os" = linux-dietlibc; then
9355 case $cc_basename in
9356 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9357 esac
9358 fi
9359 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9360 && test "$tmp_diet" = no
9361 then
9362 tmp_addflag=' $pic_flag'
9363 tmp_sharedflag='-shared'
9364 case $cc_basename,$host_cpu in
9365 pgcc*) # Portland Group C compiler
9366 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9367 tmp_addflag=' $pic_flag'
9368 ;;
9369 pgf77* | pgf90* | pgf95* | pgfortran*)
9370 # Portland Group f77 and f90 compilers
9371 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9372 tmp_addflag=' $pic_flag -Mnomain' ;;
9373 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9374 tmp_addflag=' -i_dynamic' ;;
9375 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9376 tmp_addflag=' -i_dynamic -nofor_main' ;;
9377 ifc* | ifort*) # Intel Fortran compiler
9378 tmp_addflag=' -nofor_main' ;;
9379 lf95*) # Lahey Fortran 8.1
9380 whole_archive_flag_spec=
9381 tmp_sharedflag='--shared' ;;
9382 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9383 tmp_sharedflag='-qmkshrobj'
9384 tmp_addflag= ;;
9385 nvcc*) # Cuda Compiler Driver 2.2
9386 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9387 compiler_needs_object=yes
9388 ;;
9389 esac
9390 case `$CC -V 2>&1 | sed 5q` in
9391 *Sun\ C*) # Sun C 5.9
9392 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9393 compiler_needs_object=yes
9394 tmp_sharedflag='-G' ;;
9395 *Sun\ F*) # Sun Fortran 8.3
9396 tmp_sharedflag='-G' ;;
9397 esac
9398 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9399
9400 if test "x$supports_anon_versioning" = xyes; then
9401 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9402 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9403 echo "local: *; };" >> $output_objdir/$libname.ver~
9404 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9405 fi
9406
9407 case $cc_basename in
9408 xlf* | bgf* | bgxlf* | mpixlf*)
9409 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9410 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9411 hardcode_libdir_flag_spec=
9412 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9413 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9414 if test "x$supports_anon_versioning" = xyes; then
9415 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9416 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9417 echo "local: *; };" >> $output_objdir/$libname.ver~
9418 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9419 fi
9420 ;;
9421 esac
9422 else
9423 ld_shlibs=no
9424 fi
9425 ;;
9426
9427 netbsd*)
9428 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9429 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9430 wlarc=
9431 else
9432 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9433 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9434 fi
9435 ;;
9436
9437 solaris*)
9438 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9439 ld_shlibs=no
9440 cat <<_LT_EOF 1>&2
9441
9442 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9443 *** create shared libraries on Solaris systems. Therefore, libtool
9444 *** is disabling shared libraries support. We urge you to upgrade GNU
9445 *** binutils to release 2.9.1 or newer. Another option is to modify
9446 *** your PATH or compiler configuration so that the native linker is
9447 *** used, and then restart.
9448
9449 _LT_EOF
9450 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9451 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9452 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9453 else
9454 ld_shlibs=no
9455 fi
9456 ;;
9457
9458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9459 case `$LD -v 2>&1` in
9460 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9461 ld_shlibs=no
9462 cat <<_LT_EOF 1>&2
9463
9464 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9465 *** reliably create shared libraries on SCO systems. Therefore, libtool
9466 *** is disabling shared libraries support. We urge you to upgrade GNU
9467 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9468 *** your PATH or compiler configuration so that the native linker is
9469 *** used, and then restart.
9470
9471 _LT_EOF
9472 ;;
9473 *)
9474 # For security reasons, it is highly recommended that you always
9475 # use absolute paths for naming shared libraries, and exclude the
9476 # DT_RUNPATH tag from executables and libraries. But doing so
9477 # requires that you compile everything twice, which is a pain.
9478 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9479 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9481 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9482 else
9483 ld_shlibs=no
9484 fi
9485 ;;
9486 esac
9487 ;;
9488
9489 sunos4*)
9490 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9491 wlarc=
9492 hardcode_direct=yes
9493 hardcode_shlibpath_var=no
9494 ;;
9495
9496 *)
9497 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9498 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9499 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9500 else
9501 ld_shlibs=no
9502 fi
9503 ;;
9504 esac
9505
9506 if test "$ld_shlibs" = no; then
9507 runpath_var=
9508 hardcode_libdir_flag_spec=
9509 export_dynamic_flag_spec=
9510 whole_archive_flag_spec=
9511 fi
9512 else
9513 # PORTME fill in a description of your system's linker (not GNU ld)
9514 case $host_os in
9515 aix3*)
9516 allow_undefined_flag=unsupported
9517 always_export_symbols=yes
9518 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'
9519 # Note: this linker hardcodes the directories in LIBPATH if there
9520 # are no directories specified by -L.
9521 hardcode_minus_L=yes
9522 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9523 # Neither direct hardcoding nor static linking is supported with a
9524 # broken collect2.
9525 hardcode_direct=unsupported
9526 fi
9527 ;;
9528
9529 aix[4-9]*)
9530 if test "$host_cpu" = ia64; then
9531 # On IA64, the linker does run time linking by default, so we don't
9532 # have to do anything special.
9533 aix_use_runtimelinking=no
9534 exp_sym_flag='-Bexport'
9535 no_entry_flag=""
9536 else
9537 # If we're using GNU nm, then we don't want the "-C" option.
9538 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9539 # Also, AIX nm treats weak defined symbols like other global
9540 # defined symbols, whereas GNU nm marks them as "W".
9541 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9542 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9543 else
9544 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'
9545 fi
9546 aix_use_runtimelinking=no
9547
9548 # Test if we are trying to use run time linking or normal
9549 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9550 # need to do runtime linking.
9551 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9552 for ld_flag in $LDFLAGS; do
9553 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9554 aix_use_runtimelinking=yes
9555 break
9556 fi
9557 done
9558 ;;
9559 esac
9560
9561 exp_sym_flag='-bexport'
9562 no_entry_flag='-bnoentry'
9563 fi
9564
9565 # When large executables or shared objects are built, AIX ld can
9566 # have problems creating the table of contents. If linking a library
9567 # or program results in "error TOC overflow" add -mminimal-toc to
9568 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9569 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9570
9571 archive_cmds=''
9572 hardcode_direct=yes
9573 hardcode_direct_absolute=yes
9574 hardcode_libdir_separator=':'
9575 link_all_deplibs=yes
9576 file_list_spec='${wl}-f,'
9577
9578 if test "$GCC" = yes; then
9579 case $host_os in aix4.[012]|aix4.[012].*)
9580 # We only want to do this on AIX 4.2 and lower, the check
9581 # below for broken collect2 doesn't work under 4.3+
9582 collect2name=`${CC} -print-prog-name=collect2`
9583 if test -f "$collect2name" &&
9584 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9585 then
9586 # We have reworked collect2
9587 :
9588 else
9589 # We have old collect2
9590 hardcode_direct=unsupported
9591 # It fails to find uninstalled libraries when the uninstalled
9592 # path is not listed in the libpath. Setting hardcode_minus_L
9593 # to unsupported forces relinking
9594 hardcode_minus_L=yes
9595 hardcode_libdir_flag_spec='-L$libdir'
9596 hardcode_libdir_separator=
9597 fi
9598 ;;
9599 esac
9600 shared_flag='-shared'
9601 if test "$aix_use_runtimelinking" = yes; then
9602 shared_flag="$shared_flag "'${wl}-G'
9603 fi
9604 else
9605 # not using gcc
9606 if test "$host_cpu" = ia64; then
9607 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9608 # chokes on -Wl,-G. The following line is correct:
9609 shared_flag='-G'
9610 else
9611 if test "$aix_use_runtimelinking" = yes; then
9612 shared_flag='${wl}-G'
9613 else
9614 shared_flag='${wl}-bM:SRE'
9615 fi
9616 fi
9617 fi
9618
9619 export_dynamic_flag_spec='${wl}-bexpall'
9620 # It seems that -bexpall does not export symbols beginning with
9621 # underscore (_), so it is better to generate a list of symbols to export.
9622 always_export_symbols=yes
9623 if test "$aix_use_runtimelinking" = yes; then
9624 # Warning - without using the other runtime loading flags (-brtl),
9625 # -berok will link without error, but may produce a broken library.
9626 allow_undefined_flag='-berok'
9627 # Determine the default libpath from the value encoded in an
9628 # empty executable.
9629 if test "${lt_cv_aix_libpath+set}" = set; then
9630 aix_libpath=$lt_cv_aix_libpath
9631 else
9632 if ${lt_cv_aix_libpath_+:} false; then :
9633 $as_echo_n "(cached) " >&6
9634 else
9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h. */
9637
9638 int
9639 main ()
9640 {
9641
9642 ;
9643 return 0;
9644 }
9645 _ACEOF
9646 if ac_fn_c_try_link "$LINENO"; then :
9647
9648 lt_aix_libpath_sed='
9649 /Import File Strings/,/^$/ {
9650 /^0/ {
9651 s/^0 *\([^ ]*\) *$/\1/
9652 p
9653 }
9654 }'
9655 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9656 # Check for a 64-bit object if we didn't find anything.
9657 if test -z "$lt_cv_aix_libpath_"; then
9658 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9659 fi
9660 fi
9661 rm -f core conftest.err conftest.$ac_objext \
9662 conftest$ac_exeext conftest.$ac_ext
9663 if test -z "$lt_cv_aix_libpath_"; then
9664 lt_cv_aix_libpath_="/usr/lib:/lib"
9665 fi
9666
9667 fi
9668
9669 aix_libpath=$lt_cv_aix_libpath_
9670 fi
9671
9672 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9673 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9674 else
9675 if test "$host_cpu" = ia64; then
9676 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9677 allow_undefined_flag="-z nodefs"
9678 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"
9679 else
9680 # Determine the default libpath from the value encoded in an
9681 # empty executable.
9682 if test "${lt_cv_aix_libpath+set}" = set; then
9683 aix_libpath=$lt_cv_aix_libpath
9684 else
9685 if ${lt_cv_aix_libpath_+:} false; then :
9686 $as_echo_n "(cached) " >&6
9687 else
9688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9689 /* end confdefs.h. */
9690
9691 int
9692 main ()
9693 {
9694
9695 ;
9696 return 0;
9697 }
9698 _ACEOF
9699 if ac_fn_c_try_link "$LINENO"; then :
9700
9701 lt_aix_libpath_sed='
9702 /Import File Strings/,/^$/ {
9703 /^0/ {
9704 s/^0 *\([^ ]*\) *$/\1/
9705 p
9706 }
9707 }'
9708 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9709 # Check for a 64-bit object if we didn't find anything.
9710 if test -z "$lt_cv_aix_libpath_"; then
9711 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9712 fi
9713 fi
9714 rm -f core conftest.err conftest.$ac_objext \
9715 conftest$ac_exeext conftest.$ac_ext
9716 if test -z "$lt_cv_aix_libpath_"; then
9717 lt_cv_aix_libpath_="/usr/lib:/lib"
9718 fi
9719
9720 fi
9721
9722 aix_libpath=$lt_cv_aix_libpath_
9723 fi
9724
9725 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9726 # Warning - without using the other run time loading flags,
9727 # -berok will link without error, but may produce a broken library.
9728 no_undefined_flag=' ${wl}-bernotok'
9729 allow_undefined_flag=' ${wl}-berok'
9730 if test "$with_gnu_ld" = yes; then
9731 # We only use this code for GNU lds that support --whole-archive.
9732 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9733 else
9734 # Exported symbols can be pulled into shared objects from archives
9735 whole_archive_flag_spec='$convenience'
9736 fi
9737 archive_cmds_need_lc=yes
9738 # This is similar to how AIX traditionally builds its shared libraries.
9739 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'
9740 fi
9741 fi
9742 ;;
9743
9744 amigaos*)
9745 case $host_cpu in
9746 powerpc)
9747 # see comment about AmigaOS4 .so support
9748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9749 archive_expsym_cmds=''
9750 ;;
9751 m68k)
9752 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)'
9753 hardcode_libdir_flag_spec='-L$libdir'
9754 hardcode_minus_L=yes
9755 ;;
9756 esac
9757 ;;
9758
9759 bsdi[45]*)
9760 export_dynamic_flag_spec=-rdynamic
9761 ;;
9762
9763 cygwin* | mingw* | pw32* | cegcc*)
9764 # When not using gcc, we currently assume that we are using
9765 # Microsoft Visual C++.
9766 # hardcode_libdir_flag_spec is actually meaningless, as there is
9767 # no search path for DLLs.
9768 case $cc_basename in
9769 cl*)
9770 # Native MSVC
9771 hardcode_libdir_flag_spec=' '
9772 allow_undefined_flag=unsupported
9773 always_export_symbols=yes
9774 file_list_spec='@'
9775 # Tell ltmain to make .lib files, not .a files.
9776 libext=lib
9777 # Tell ltmain to make .dll files, not .so files.
9778 shrext_cmds=".dll"
9779 # FIXME: Setting linknames here is a bad hack.
9780 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9781 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9782 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9783 else
9784 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9785 fi~
9786 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9787 linknames='
9788 # The linker will not automatically build a static lib if we build a DLL.
9789 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9790 enable_shared_with_static_runtimes=yes
9791 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9792 # Don't use ranlib
9793 old_postinstall_cmds='chmod 644 $oldlib'
9794 postlink_cmds='lt_outputfile="@OUTPUT@"~
9795 lt_tool_outputfile="@TOOL_OUTPUT@"~
9796 case $lt_outputfile in
9797 *.exe|*.EXE) ;;
9798 *)
9799 lt_outputfile="$lt_outputfile.exe"
9800 lt_tool_outputfile="$lt_tool_outputfile.exe"
9801 ;;
9802 esac~
9803 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9804 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9805 $RM "$lt_outputfile.manifest";
9806 fi'
9807 ;;
9808 *)
9809 # Assume MSVC wrapper
9810 hardcode_libdir_flag_spec=' '
9811 allow_undefined_flag=unsupported
9812 # Tell ltmain to make .lib files, not .a files.
9813 libext=lib
9814 # Tell ltmain to make .dll files, not .so files.
9815 shrext_cmds=".dll"
9816 # FIXME: Setting linknames here is a bad hack.
9817 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9818 # The linker will automatically build a .lib file if we build a DLL.
9819 old_archive_from_new_cmds='true'
9820 # FIXME: Should let the user specify the lib program.
9821 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9822 enable_shared_with_static_runtimes=yes
9823 ;;
9824 esac
9825 ;;
9826
9827 darwin* | rhapsody*)
9828
9829
9830 archive_cmds_need_lc=no
9831 hardcode_direct=no
9832 hardcode_automatic=yes
9833 hardcode_shlibpath_var=unsupported
9834 if test "$lt_cv_ld_force_load" = "yes"; then
9835 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9836 else
9837 whole_archive_flag_spec=''
9838 fi
9839 link_all_deplibs=yes
9840 allow_undefined_flag="$_lt_dar_allow_undefined"
9841 case $cc_basename in
9842 ifort*) _lt_dar_can_shared=yes ;;
9843 *) _lt_dar_can_shared=$GCC ;;
9844 esac
9845 if test "$_lt_dar_can_shared" = "yes"; then
9846 output_verbose_link_cmd=func_echo_all
9847 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9848 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9849 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9850 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9851
9852 else
9853 ld_shlibs=no
9854 fi
9855
9856 ;;
9857
9858 dgux*)
9859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9860 hardcode_libdir_flag_spec='-L$libdir'
9861 hardcode_shlibpath_var=no
9862 ;;
9863
9864 freebsd1*)
9865 ld_shlibs=no
9866 ;;
9867
9868 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9869 # support. Future versions do this automatically, but an explicit c++rt0.o
9870 # does not break anything, and helps significantly (at the cost of a little
9871 # extra space).
9872 freebsd2.2*)
9873 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9874 hardcode_libdir_flag_spec='-R$libdir'
9875 hardcode_direct=yes
9876 hardcode_shlibpath_var=no
9877 ;;
9878
9879 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9880 freebsd2*)
9881 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9882 hardcode_direct=yes
9883 hardcode_minus_L=yes
9884 hardcode_shlibpath_var=no
9885 ;;
9886
9887 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9888 freebsd* | dragonfly*)
9889 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9890 hardcode_libdir_flag_spec='-R$libdir'
9891 hardcode_direct=yes
9892 hardcode_shlibpath_var=no
9893 ;;
9894
9895 hpux9*)
9896 if test "$GCC" = yes; then
9897 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9898 else
9899 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'
9900 fi
9901 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9902 hardcode_libdir_separator=:
9903 hardcode_direct=yes
9904
9905 # hardcode_minus_L: Not really in the search PATH,
9906 # but as the default location of the library.
9907 hardcode_minus_L=yes
9908 export_dynamic_flag_spec='${wl}-E'
9909 ;;
9910
9911 hpux10*)
9912 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9913 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9914 else
9915 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9916 fi
9917 if test "$with_gnu_ld" = no; then
9918 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9919 hardcode_libdir_flag_spec_ld='+b $libdir'
9920 hardcode_libdir_separator=:
9921 hardcode_direct=yes
9922 hardcode_direct_absolute=yes
9923 export_dynamic_flag_spec='${wl}-E'
9924 # hardcode_minus_L: Not really in the search PATH,
9925 # but as the default location of the library.
9926 hardcode_minus_L=yes
9927 fi
9928 ;;
9929
9930 hpux11*)
9931 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9932 case $host_cpu in
9933 hppa*64*)
9934 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9935 ;;
9936 ia64*)
9937 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9938 ;;
9939 *)
9940 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9941 ;;
9942 esac
9943 else
9944 case $host_cpu in
9945 hppa*64*)
9946 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9947 ;;
9948 ia64*)
9949 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9950 ;;
9951 *)
9952
9953 # Older versions of the 11.00 compiler do not understand -b yet
9954 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9956 $as_echo_n "checking if $CC understands -b... " >&6; }
9957 if ${lt_cv_prog_compiler__b+:} false; then :
9958 $as_echo_n "(cached) " >&6
9959 else
9960 lt_cv_prog_compiler__b=no
9961 save_LDFLAGS="$LDFLAGS"
9962 LDFLAGS="$LDFLAGS -b"
9963 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9964 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9965 # The linker can only warn and ignore the option if not recognized
9966 # So say no if there are warnings
9967 if test -s conftest.err; then
9968 # Append any errors to the config.log.
9969 cat conftest.err 1>&5
9970 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9971 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9972 if diff conftest.exp conftest.er2 >/dev/null; then
9973 lt_cv_prog_compiler__b=yes
9974 fi
9975 else
9976 lt_cv_prog_compiler__b=yes
9977 fi
9978 fi
9979 $RM -r conftest*
9980 LDFLAGS="$save_LDFLAGS"
9981
9982 fi
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9984 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9985
9986 if test x"$lt_cv_prog_compiler__b" = xyes; then
9987 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9988 else
9989 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9990 fi
9991
9992 ;;
9993 esac
9994 fi
9995 if test "$with_gnu_ld" = no; then
9996 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9997 hardcode_libdir_separator=:
9998
9999 case $host_cpu in
10000 hppa*64*|ia64*)
10001 hardcode_direct=no
10002 hardcode_shlibpath_var=no
10003 ;;
10004 *)
10005 hardcode_direct=yes
10006 hardcode_direct_absolute=yes
10007 export_dynamic_flag_spec='${wl}-E'
10008
10009 # hardcode_minus_L: Not really in the search PATH,
10010 # but as the default location of the library.
10011 hardcode_minus_L=yes
10012 ;;
10013 esac
10014 fi
10015 ;;
10016
10017 irix5* | irix6* | nonstopux*)
10018 if test "$GCC" = yes; then
10019 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10020 # Try to use the -exported_symbol ld option, if it does not
10021 # work, assume that -exports_file does not work either and
10022 # implicitly export all symbols.
10023 # This should be the same for all languages, so no per-tag cache variable.
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10025 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10026 if ${lt_cv_irix_exported_symbol+:} false; then :
10027 $as_echo_n "(cached) " >&6
10028 else
10029 save_LDFLAGS="$LDFLAGS"
10030 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032 /* end confdefs.h. */
10033 int foo (void) { return 0; }
10034 _ACEOF
10035 if ac_fn_c_try_link "$LINENO"; then :
10036 lt_cv_irix_exported_symbol=yes
10037 else
10038 lt_cv_irix_exported_symbol=no
10039 fi
10040 rm -f core conftest.err conftest.$ac_objext \
10041 conftest$ac_exeext conftest.$ac_ext
10042 LDFLAGS="$save_LDFLAGS"
10043 fi
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10045 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10046 if test "$lt_cv_irix_exported_symbol" = yes; then
10047 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10048 fi
10049 else
10050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10051 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10052 fi
10053 archive_cmds_need_lc='no'
10054 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10055 hardcode_libdir_separator=:
10056 inherit_rpath=yes
10057 link_all_deplibs=yes
10058 ;;
10059
10060 netbsd*)
10061 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10062 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10063 else
10064 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10065 fi
10066 hardcode_libdir_flag_spec='-R$libdir'
10067 hardcode_direct=yes
10068 hardcode_shlibpath_var=no
10069 ;;
10070
10071 newsos6)
10072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10073 hardcode_direct=yes
10074 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10075 hardcode_libdir_separator=:
10076 hardcode_shlibpath_var=no
10077 ;;
10078
10079 *nto* | *qnx*)
10080 ;;
10081
10082 openbsd*)
10083 if test -f /usr/libexec/ld.so; then
10084 hardcode_direct=yes
10085 hardcode_shlibpath_var=no
10086 hardcode_direct_absolute=yes
10087 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10088 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10089 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10090 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10091 export_dynamic_flag_spec='${wl}-E'
10092 else
10093 case $host_os in
10094 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10095 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10096 hardcode_libdir_flag_spec='-R$libdir'
10097 ;;
10098 *)
10099 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10100 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10101 ;;
10102 esac
10103 fi
10104 else
10105 ld_shlibs=no
10106 fi
10107 ;;
10108
10109 os2*)
10110 hardcode_libdir_flag_spec='-L$libdir'
10111 hardcode_minus_L=yes
10112 allow_undefined_flag=unsupported
10113 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'
10114 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10115 ;;
10116
10117 osf3*)
10118 if test "$GCC" = yes; then
10119 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10120 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10121 else
10122 allow_undefined_flag=' -expect_unresolved \*'
10123 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10124 fi
10125 archive_cmds_need_lc='no'
10126 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10127 hardcode_libdir_separator=:
10128 ;;
10129
10130 osf4* | osf5*) # as osf3* with the addition of -msym flag
10131 if test "$GCC" = yes; then
10132 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10133 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10135 else
10136 allow_undefined_flag=' -expect_unresolved \*'
10137 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10138 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10139 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10140
10141 # Both c and cxx compiler support -rpath directly
10142 hardcode_libdir_flag_spec='-rpath $libdir'
10143 fi
10144 archive_cmds_need_lc='no'
10145 hardcode_libdir_separator=:
10146 ;;
10147
10148 solaris*)
10149 no_undefined_flag=' -z defs'
10150 if test "$GCC" = yes; then
10151 wlarc='${wl}'
10152 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10153 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10154 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10155 else
10156 case `$CC -V 2>&1` in
10157 *"Compilers 5.0"*)
10158 wlarc=''
10159 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10160 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10161 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10162 ;;
10163 *)
10164 wlarc='${wl}'
10165 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10166 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10167 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10168 ;;
10169 esac
10170 fi
10171 hardcode_libdir_flag_spec='-R$libdir'
10172 hardcode_shlibpath_var=no
10173 case $host_os in
10174 solaris2.[0-5] | solaris2.[0-5].*) ;;
10175 *)
10176 # The compiler driver will combine and reorder linker options,
10177 # but understands `-z linker_flag'. GCC discards it without `$wl',
10178 # but is careful enough not to reorder.
10179 # Supported since Solaris 2.6 (maybe 2.5.1?)
10180 if test "$GCC" = yes; then
10181 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10182 else
10183 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10184 fi
10185 ;;
10186 esac
10187 link_all_deplibs=yes
10188 ;;
10189
10190 sunos4*)
10191 if test "x$host_vendor" = xsequent; then
10192 # Use $CC to link under sequent, because it throws in some extra .o
10193 # files that make .init and .fini sections work.
10194 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10195 else
10196 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10197 fi
10198 hardcode_libdir_flag_spec='-L$libdir'
10199 hardcode_direct=yes
10200 hardcode_minus_L=yes
10201 hardcode_shlibpath_var=no
10202 ;;
10203
10204 sysv4)
10205 case $host_vendor in
10206 sni)
10207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10208 hardcode_direct=yes # is this really true???
10209 ;;
10210 siemens)
10211 ## LD is ld it makes a PLAMLIB
10212 ## CC just makes a GrossModule.
10213 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10214 reload_cmds='$CC -r -o $output$reload_objs'
10215 hardcode_direct=no
10216 ;;
10217 motorola)
10218 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10219 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10220 ;;
10221 esac
10222 runpath_var='LD_RUN_PATH'
10223 hardcode_shlibpath_var=no
10224 ;;
10225
10226 sysv4.3*)
10227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10228 hardcode_shlibpath_var=no
10229 export_dynamic_flag_spec='-Bexport'
10230 ;;
10231
10232 sysv4*MP*)
10233 if test -d /usr/nec; then
10234 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10235 hardcode_shlibpath_var=no
10236 runpath_var=LD_RUN_PATH
10237 hardcode_runpath_var=yes
10238 ld_shlibs=yes
10239 fi
10240 ;;
10241
10242 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10243 no_undefined_flag='${wl}-z,text'
10244 archive_cmds_need_lc=no
10245 hardcode_shlibpath_var=no
10246 runpath_var='LD_RUN_PATH'
10247
10248 if test "$GCC" = yes; then
10249 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10250 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10251 else
10252 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10253 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10254 fi
10255 ;;
10256
10257 sysv5* | sco3.2v5* | sco5v6*)
10258 # Note: We can NOT use -z defs as we might desire, because we do not
10259 # link with -lc, and that would cause any symbols used from libc to
10260 # always be unresolved, which means just about no library would
10261 # ever link correctly. If we're not using GNU ld we use -z text
10262 # though, which does catch some bad symbols but isn't as heavy-handed
10263 # as -z defs.
10264 no_undefined_flag='${wl}-z,text'
10265 allow_undefined_flag='${wl}-z,nodefs'
10266 archive_cmds_need_lc=no
10267 hardcode_shlibpath_var=no
10268 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10269 hardcode_libdir_separator=':'
10270 link_all_deplibs=yes
10271 export_dynamic_flag_spec='${wl}-Bexport'
10272 runpath_var='LD_RUN_PATH'
10273
10274 if test "$GCC" = yes; then
10275 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10276 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10277 else
10278 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10279 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10280 fi
10281 ;;
10282
10283 uts4*)
10284 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10285 hardcode_libdir_flag_spec='-L$libdir'
10286 hardcode_shlibpath_var=no
10287 ;;
10288
10289 *)
10290 ld_shlibs=no
10291 ;;
10292 esac
10293
10294 if test x$host_vendor = xsni; then
10295 case $host in
10296 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10297 export_dynamic_flag_spec='${wl}-Blargedynsym'
10298 ;;
10299 esac
10300 fi
10301 fi
10302
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10304 $as_echo "$ld_shlibs" >&6; }
10305 test "$ld_shlibs" = no && can_build_shared=no
10306
10307 with_gnu_ld=$with_gnu_ld
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323 #
10324 # Do we need to explicitly link libc?
10325 #
10326 case "x$archive_cmds_need_lc" in
10327 x|xyes)
10328 # Assume -lc should be added
10329 archive_cmds_need_lc=yes
10330
10331 if test "$enable_shared" = yes && test "$GCC" = yes; then
10332 case $archive_cmds in
10333 *'~'*)
10334 # FIXME: we may have to deal with multi-command sequences.
10335 ;;
10336 '$CC '*)
10337 # Test whether the compiler implicitly links with -lc since on some
10338 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10339 # to ld, don't add -lc before -lgcc.
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10341 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10342 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10343 $as_echo_n "(cached) " >&6
10344 else
10345 $RM conftest*
10346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10347
10348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10349 (eval $ac_compile) 2>&5
10350 ac_status=$?
10351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10352 test $ac_status = 0; } 2>conftest.err; then
10353 soname=conftest
10354 lib=conftest
10355 libobjs=conftest.$ac_objext
10356 deplibs=
10357 wl=$lt_prog_compiler_wl
10358 pic_flag=$lt_prog_compiler_pic
10359 compiler_flags=-v
10360 linker_flags=-v
10361 verstring=
10362 output_objdir=.
10363 libname=conftest
10364 lt_save_allow_undefined_flag=$allow_undefined_flag
10365 allow_undefined_flag=
10366 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10367 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10368 ac_status=$?
10369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10370 test $ac_status = 0; }
10371 then
10372 lt_cv_archive_cmds_need_lc=no
10373 else
10374 lt_cv_archive_cmds_need_lc=yes
10375 fi
10376 allow_undefined_flag=$lt_save_allow_undefined_flag
10377 else
10378 cat conftest.err 1>&5
10379 fi
10380 $RM conftest*
10381
10382 fi
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10384 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10385 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10386 ;;
10387 esac
10388 fi
10389 ;;
10390 esac
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10549 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10550
10551 if test "$GCC" = yes; then
10552 case $host_os in
10553 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10554 *) lt_awk_arg="/^libraries:/" ;;
10555 esac
10556 case $host_os in
10557 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10558 *) lt_sed_strip_eq="s,=/,/,g" ;;
10559 esac
10560 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10561 case $lt_search_path_spec in
10562 *\;*)
10563 # if the path contains ";" then we assume it to be the separator
10564 # otherwise default to the standard path separator (i.e. ":") - it is
10565 # assumed that no part of a normal pathname contains ";" but that should
10566 # okay in the real world where ";" in dirpaths is itself problematic.
10567 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10568 ;;
10569 *)
10570 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10571 ;;
10572 esac
10573 # Ok, now we have the path, separated by spaces, we can step through it
10574 # and add multilib dir if necessary.
10575 lt_tmp_lt_search_path_spec=
10576 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10577 for lt_sys_path in $lt_search_path_spec; do
10578 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10579 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10580 else
10581 test -d "$lt_sys_path" && \
10582 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10583 fi
10584 done
10585 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10586 BEGIN {RS=" "; FS="/|\n";} {
10587 lt_foo="";
10588 lt_count=0;
10589 for (lt_i = NF; lt_i > 0; lt_i--) {
10590 if ($lt_i != "" && $lt_i != ".") {
10591 if ($lt_i == "..") {
10592 lt_count++;
10593 } else {
10594 if (lt_count == 0) {
10595 lt_foo="/" $lt_i lt_foo;
10596 } else {
10597 lt_count--;
10598 }
10599 }
10600 }
10601 }
10602 if (lt_foo != "") { lt_freq[lt_foo]++; }
10603 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10604 }'`
10605 # AWK program above erroneously prepends '/' to C:/dos/paths
10606 # for these hosts.
10607 case $host_os in
10608 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10609 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10610 esac
10611 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10612 else
10613 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10614 fi
10615 library_names_spec=
10616 libname_spec='lib$name'
10617 soname_spec=
10618 shrext_cmds=".so"
10619 postinstall_cmds=
10620 postuninstall_cmds=
10621 finish_cmds=
10622 finish_eval=
10623 shlibpath_var=
10624 shlibpath_overrides_runpath=unknown
10625 version_type=none
10626 dynamic_linker="$host_os ld.so"
10627 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10628 need_lib_prefix=unknown
10629 hardcode_into_libs=no
10630
10631 # when you set need_version to no, make sure it does not cause -set_version
10632 # flags to be left without arguments
10633 need_version=unknown
10634
10635 case $host_os in
10636 aix3*)
10637 version_type=linux
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10639 shlibpath_var=LIBPATH
10640
10641 # AIX 3 has no versioning support, so we append a major version to the name.
10642 soname_spec='${libname}${release}${shared_ext}$major'
10643 ;;
10644
10645 aix[4-9]*)
10646 version_type=linux
10647 need_lib_prefix=no
10648 need_version=no
10649 hardcode_into_libs=yes
10650 if test "$host_cpu" = ia64; then
10651 # AIX 5 supports IA64
10652 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10653 shlibpath_var=LD_LIBRARY_PATH
10654 else
10655 # With GCC up to 2.95.x, collect2 would create an import file
10656 # for dependence libraries. The import file would start with
10657 # the line `#! .'. This would cause the generated library to
10658 # depend on `.', always an invalid library. This was fixed in
10659 # development snapshots of GCC prior to 3.0.
10660 case $host_os in
10661 aix4 | aix4.[01] | aix4.[01].*)
10662 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10663 echo ' yes '
10664 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10665 :
10666 else
10667 can_build_shared=no
10668 fi
10669 ;;
10670 esac
10671 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10672 # soname into executable. Probably we can add versioning support to
10673 # collect2, so additional links can be useful in future.
10674 if test "$aix_use_runtimelinking" = yes; then
10675 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10676 # instead of lib<name>.a to let people know that these are not
10677 # typical AIX shared libraries.
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679 else
10680 # We preserve .a as extension for shared libraries through AIX4.2
10681 # and later when we are not doing run time linking.
10682 library_names_spec='${libname}${release}.a $libname.a'
10683 soname_spec='${libname}${release}${shared_ext}$major'
10684 fi
10685 shlibpath_var=LIBPATH
10686 fi
10687 ;;
10688
10689 amigaos*)
10690 case $host_cpu in
10691 powerpc)
10692 # Since July 2007 AmigaOS4 officially supports .so libraries.
10693 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10695 ;;
10696 m68k)
10697 library_names_spec='$libname.ixlibrary $libname.a'
10698 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10699 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10700 ;;
10701 esac
10702 ;;
10703
10704 beos*)
10705 library_names_spec='${libname}${shared_ext}'
10706 dynamic_linker="$host_os ld.so"
10707 shlibpath_var=LIBRARY_PATH
10708 ;;
10709
10710 bsdi[45]*)
10711 version_type=linux
10712 need_version=no
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10714 soname_spec='${libname}${release}${shared_ext}$major'
10715 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10716 shlibpath_var=LD_LIBRARY_PATH
10717 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10718 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10719 # the default ld.so.conf also contains /usr/contrib/lib and
10720 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10721 # libtool to hard-code these into programs
10722 ;;
10723
10724 cygwin* | mingw* | pw32* | cegcc*)
10725 version_type=windows
10726 shrext_cmds=".dll"
10727 need_version=no
10728 need_lib_prefix=no
10729
10730 case $GCC,$cc_basename in
10731 yes,*)
10732 # gcc
10733 library_names_spec='$libname.dll.a'
10734 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10735 postinstall_cmds='base_file=`basename \${file}`~
10736 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10737 dldir=$destdir/`dirname \$dlpath`~
10738 test -d \$dldir || mkdir -p \$dldir~
10739 $install_prog $dir/$dlname \$dldir/$dlname~
10740 chmod a+x \$dldir/$dlname~
10741 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10742 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10743 fi'
10744 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10745 dlpath=$dir/\$dldll~
10746 $RM \$dlpath'
10747 shlibpath_overrides_runpath=yes
10748
10749 case $host_os in
10750 cygwin*)
10751 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10752 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10753
10754 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10755 ;;
10756 mingw* | cegcc*)
10757 # MinGW DLLs use traditional 'lib' prefix
10758 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10759 ;;
10760 pw32*)
10761 # pw32 DLLs use 'pw' prefix rather than 'lib'
10762 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10763 ;;
10764 esac
10765 dynamic_linker='Win32 ld.exe'
10766 ;;
10767
10768 *,cl*)
10769 # Native MSVC
10770 libname_spec='$name'
10771 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10772 library_names_spec='${libname}.dll.lib'
10773
10774 case $build_os in
10775 mingw*)
10776 sys_lib_search_path_spec=
10777 lt_save_ifs=$IFS
10778 IFS=';'
10779 for lt_path in $LIB
10780 do
10781 IFS=$lt_save_ifs
10782 # Let DOS variable expansion print the short 8.3 style file name.
10783 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10784 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10785 done
10786 IFS=$lt_save_ifs
10787 # Convert to MSYS style.
10788 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10789 ;;
10790 cygwin*)
10791 # Convert to unix form, then to dos form, then back to unix form
10792 # but this time dos style (no spaces!) so that the unix form looks
10793 # like /cygdrive/c/PROGRA~1:/cygdr...
10794 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10795 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10796 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10797 ;;
10798 *)
10799 sys_lib_search_path_spec="$LIB"
10800 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10801 # It is most probably a Windows format PATH.
10802 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10803 else
10804 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10805 fi
10806 # FIXME: find the short name or the path components, as spaces are
10807 # common. (e.g. "Program Files" -> "PROGRA~1")
10808 ;;
10809 esac
10810
10811 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10812 postinstall_cmds='base_file=`basename \${file}`~
10813 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10814 dldir=$destdir/`dirname \$dlpath`~
10815 test -d \$dldir || mkdir -p \$dldir~
10816 $install_prog $dir/$dlname \$dldir/$dlname'
10817 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10818 dlpath=$dir/\$dldll~
10819 $RM \$dlpath'
10820 shlibpath_overrides_runpath=yes
10821 dynamic_linker='Win32 link.exe'
10822 ;;
10823
10824 *)
10825 # Assume MSVC wrapper
10826 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10827 dynamic_linker='Win32 ld.exe'
10828 ;;
10829 esac
10830 # FIXME: first we should search . and the directory the executable is in
10831 shlibpath_var=PATH
10832 ;;
10833
10834 darwin* | rhapsody*)
10835 dynamic_linker="$host_os dyld"
10836 version_type=darwin
10837 need_lib_prefix=no
10838 need_version=no
10839 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10840 soname_spec='${libname}${release}${major}$shared_ext'
10841 shlibpath_overrides_runpath=yes
10842 shlibpath_var=DYLD_LIBRARY_PATH
10843 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10844
10845 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10846 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10847 ;;
10848
10849 dgux*)
10850 version_type=linux
10851 need_lib_prefix=no
10852 need_version=no
10853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10854 soname_spec='${libname}${release}${shared_ext}$major'
10855 shlibpath_var=LD_LIBRARY_PATH
10856 ;;
10857
10858 freebsd1*)
10859 dynamic_linker=no
10860 ;;
10861
10862 freebsd* | dragonfly*)
10863 # DragonFly does not have aout. When/if they implement a new
10864 # versioning mechanism, adjust this.
10865 if test -x /usr/bin/objformat; then
10866 objformat=`/usr/bin/objformat`
10867 else
10868 case $host_os in
10869 freebsd[123]*) objformat=aout ;;
10870 *) objformat=elf ;;
10871 esac
10872 fi
10873 version_type=freebsd-$objformat
10874 case $version_type in
10875 freebsd-elf*)
10876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10877 need_version=no
10878 need_lib_prefix=no
10879 ;;
10880 freebsd-*)
10881 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10882 need_version=yes
10883 ;;
10884 esac
10885 shlibpath_var=LD_LIBRARY_PATH
10886 case $host_os in
10887 freebsd2*)
10888 shlibpath_overrides_runpath=yes
10889 ;;
10890 freebsd3.[01]* | freebsdelf3.[01]*)
10891 shlibpath_overrides_runpath=yes
10892 hardcode_into_libs=yes
10893 ;;
10894 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10895 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10896 shlibpath_overrides_runpath=no
10897 hardcode_into_libs=yes
10898 ;;
10899 *) # from 4.6 on, and DragonFly
10900 shlibpath_overrides_runpath=yes
10901 hardcode_into_libs=yes
10902 ;;
10903 esac
10904 ;;
10905
10906 gnu*)
10907 version_type=linux
10908 need_lib_prefix=no
10909 need_version=no
10910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10911 soname_spec='${libname}${release}${shared_ext}$major'
10912 shlibpath_var=LD_LIBRARY_PATH
10913 hardcode_into_libs=yes
10914 ;;
10915
10916 haiku*)
10917 version_type=linux
10918 need_lib_prefix=no
10919 need_version=no
10920 dynamic_linker="$host_os runtime_loader"
10921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10922 soname_spec='${libname}${release}${shared_ext}$major'
10923 shlibpath_var=LIBRARY_PATH
10924 shlibpath_overrides_runpath=yes
10925 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10926 hardcode_into_libs=yes
10927 ;;
10928
10929 hpux9* | hpux10* | hpux11*)
10930 # Give a soname corresponding to the major version so that dld.sl refuses to
10931 # link against other versions.
10932 version_type=sunos
10933 need_lib_prefix=no
10934 need_version=no
10935 case $host_cpu in
10936 ia64*)
10937 shrext_cmds='.so'
10938 hardcode_into_libs=yes
10939 dynamic_linker="$host_os dld.so"
10940 shlibpath_var=LD_LIBRARY_PATH
10941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943 soname_spec='${libname}${release}${shared_ext}$major'
10944 if test "X$HPUX_IA64_MODE" = X32; then
10945 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10946 else
10947 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10948 fi
10949 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10950 ;;
10951 hppa*64*)
10952 shrext_cmds='.sl'
10953 hardcode_into_libs=yes
10954 dynamic_linker="$host_os dld.sl"
10955 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10956 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10958 soname_spec='${libname}${release}${shared_ext}$major'
10959 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10961 ;;
10962 *)
10963 shrext_cmds='.sl'
10964 dynamic_linker="$host_os dld.sl"
10965 shlibpath_var=SHLIB_PATH
10966 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968 soname_spec='${libname}${release}${shared_ext}$major'
10969 ;;
10970 esac
10971 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10972 postinstall_cmds='chmod 555 $lib'
10973 # or fails outright, so override atomically:
10974 install_override_mode=555
10975 ;;
10976
10977 interix[3-9]*)
10978 version_type=linux
10979 need_lib_prefix=no
10980 need_version=no
10981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10982 soname_spec='${libname}${release}${shared_ext}$major'
10983 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10984 shlibpath_var=LD_LIBRARY_PATH
10985 shlibpath_overrides_runpath=no
10986 hardcode_into_libs=yes
10987 ;;
10988
10989 irix5* | irix6* | nonstopux*)
10990 case $host_os in
10991 nonstopux*) version_type=nonstopux ;;
10992 *)
10993 if test "$lt_cv_prog_gnu_ld" = yes; then
10994 version_type=linux
10995 else
10996 version_type=irix
10997 fi ;;
10998 esac
10999 need_lib_prefix=no
11000 need_version=no
11001 soname_spec='${libname}${release}${shared_ext}$major'
11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11003 case $host_os in
11004 irix5* | nonstopux*)
11005 libsuff= shlibsuff=
11006 ;;
11007 *)
11008 case $LD in # libtool.m4 will add one of these switches to LD
11009 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11010 libsuff= shlibsuff= libmagic=32-bit;;
11011 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11012 libsuff=32 shlibsuff=N32 libmagic=N32;;
11013 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11014 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11015 *) libsuff= shlibsuff= libmagic=never-match;;
11016 esac
11017 ;;
11018 esac
11019 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11020 shlibpath_overrides_runpath=no
11021 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11022 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11023 hardcode_into_libs=yes
11024 ;;
11025
11026 # No shared lib support for Linux oldld, aout, or coff.
11027 linux*oldld* | linux*aout* | linux*coff*)
11028 dynamic_linker=no
11029 ;;
11030
11031 # This must be Linux ELF.
11032 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11033 version_type=linux
11034 need_lib_prefix=no
11035 need_version=no
11036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11037 soname_spec='${libname}${release}${shared_ext}$major'
11038 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11039 shlibpath_var=LD_LIBRARY_PATH
11040 shlibpath_overrides_runpath=no
11041
11042 # Some binutils ld are patched to set DT_RUNPATH
11043 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11044 $as_echo_n "(cached) " >&6
11045 else
11046 lt_cv_shlibpath_overrides_runpath=no
11047 save_LDFLAGS=$LDFLAGS
11048 save_libdir=$libdir
11049 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11050 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h. */
11053
11054 int
11055 main ()
11056 {
11057
11058 ;
11059 return 0;
11060 }
11061 _ACEOF
11062 if ac_fn_c_try_link "$LINENO"; then :
11063 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11064 lt_cv_shlibpath_overrides_runpath=yes
11065 fi
11066 fi
11067 rm -f core conftest.err conftest.$ac_objext \
11068 conftest$ac_exeext conftest.$ac_ext
11069 LDFLAGS=$save_LDFLAGS
11070 libdir=$save_libdir
11071
11072 fi
11073
11074 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11075
11076 # This implies no fast_install, which is unacceptable.
11077 # Some rework will be needed to allow for fast_install
11078 # before this can be enabled.
11079 hardcode_into_libs=yes
11080
11081 # Append ld.so.conf contents to the search path
11082 if test -f /etc/ld.so.conf; then
11083 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11084 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11085 fi
11086
11087 # We used to test for /lib/ld.so.1 and disable shared libraries on
11088 # powerpc, because MkLinux only supported shared libraries with the
11089 # GNU dynamic linker. Since this was broken with cross compilers,
11090 # most powerpc-linux boxes support dynamic linking these days and
11091 # people can always --disable-shared, the test was removed, and we
11092 # assume the GNU/Linux dynamic linker is in use.
11093 dynamic_linker='GNU/Linux ld.so'
11094 ;;
11095
11096 netbsd*)
11097 version_type=sunos
11098 need_lib_prefix=no
11099 need_version=no
11100 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11103 dynamic_linker='NetBSD (a.out) ld.so'
11104 else
11105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11106 soname_spec='${libname}${release}${shared_ext}$major'
11107 dynamic_linker='NetBSD ld.elf_so'
11108 fi
11109 shlibpath_var=LD_LIBRARY_PATH
11110 shlibpath_overrides_runpath=yes
11111 hardcode_into_libs=yes
11112 ;;
11113
11114 newsos6)
11115 version_type=linux
11116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11117 shlibpath_var=LD_LIBRARY_PATH
11118 shlibpath_overrides_runpath=yes
11119 ;;
11120
11121 *nto* | *qnx*)
11122 version_type=qnx
11123 need_lib_prefix=no
11124 need_version=no
11125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11126 soname_spec='${libname}${release}${shared_ext}$major'
11127 shlibpath_var=LD_LIBRARY_PATH
11128 shlibpath_overrides_runpath=no
11129 hardcode_into_libs=yes
11130 dynamic_linker='ldqnx.so'
11131 ;;
11132
11133 openbsd*)
11134 version_type=sunos
11135 sys_lib_dlsearch_path_spec="/usr/lib"
11136 need_lib_prefix=no
11137 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11138 case $host_os in
11139 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11140 *) need_version=no ;;
11141 esac
11142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11144 shlibpath_var=LD_LIBRARY_PATH
11145 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11146 case $host_os in
11147 openbsd2.[89] | openbsd2.[89].*)
11148 shlibpath_overrides_runpath=no
11149 ;;
11150 *)
11151 shlibpath_overrides_runpath=yes
11152 ;;
11153 esac
11154 else
11155 shlibpath_overrides_runpath=yes
11156 fi
11157 ;;
11158
11159 os2*)
11160 libname_spec='$name'
11161 shrext_cmds=".dll"
11162 need_lib_prefix=no
11163 library_names_spec='$libname${shared_ext} $libname.a'
11164 dynamic_linker='OS/2 ld.exe'
11165 shlibpath_var=LIBPATH
11166 ;;
11167
11168 osf3* | osf4* | osf5*)
11169 version_type=osf
11170 need_lib_prefix=no
11171 need_version=no
11172 soname_spec='${libname}${release}${shared_ext}$major'
11173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11174 shlibpath_var=LD_LIBRARY_PATH
11175 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11176 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11177 ;;
11178
11179 rdos*)
11180 dynamic_linker=no
11181 ;;
11182
11183 solaris*)
11184 version_type=linux
11185 need_lib_prefix=no
11186 need_version=no
11187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11188 soname_spec='${libname}${release}${shared_ext}$major'
11189 shlibpath_var=LD_LIBRARY_PATH
11190 shlibpath_overrides_runpath=yes
11191 hardcode_into_libs=yes
11192 # ldd complains unless libraries are executable
11193 postinstall_cmds='chmod +x $lib'
11194 ;;
11195
11196 sunos4*)
11197 version_type=sunos
11198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11199 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11200 shlibpath_var=LD_LIBRARY_PATH
11201 shlibpath_overrides_runpath=yes
11202 if test "$with_gnu_ld" = yes; then
11203 need_lib_prefix=no
11204 fi
11205 need_version=yes
11206 ;;
11207
11208 sysv4 | sysv4.3*)
11209 version_type=linux
11210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11211 soname_spec='${libname}${release}${shared_ext}$major'
11212 shlibpath_var=LD_LIBRARY_PATH
11213 case $host_vendor in
11214 sni)
11215 shlibpath_overrides_runpath=no
11216 need_lib_prefix=no
11217 runpath_var=LD_RUN_PATH
11218 ;;
11219 siemens)
11220 need_lib_prefix=no
11221 ;;
11222 motorola)
11223 need_lib_prefix=no
11224 need_version=no
11225 shlibpath_overrides_runpath=no
11226 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11227 ;;
11228 esac
11229 ;;
11230
11231 sysv4*MP*)
11232 if test -d /usr/nec ;then
11233 version_type=linux
11234 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11235 soname_spec='$libname${shared_ext}.$major'
11236 shlibpath_var=LD_LIBRARY_PATH
11237 fi
11238 ;;
11239
11240 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11241 version_type=freebsd-elf
11242 need_lib_prefix=no
11243 need_version=no
11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11245 soname_spec='${libname}${release}${shared_ext}$major'
11246 shlibpath_var=LD_LIBRARY_PATH
11247 shlibpath_overrides_runpath=yes
11248 hardcode_into_libs=yes
11249 if test "$with_gnu_ld" = yes; then
11250 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11251 else
11252 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11253 case $host_os in
11254 sco3.2v5*)
11255 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11256 ;;
11257 esac
11258 fi
11259 sys_lib_dlsearch_path_spec='/usr/lib'
11260 ;;
11261
11262 tpf*)
11263 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11264 version_type=linux
11265 need_lib_prefix=no
11266 need_version=no
11267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11268 shlibpath_var=LD_LIBRARY_PATH
11269 shlibpath_overrides_runpath=no
11270 hardcode_into_libs=yes
11271 ;;
11272
11273 uts4*)
11274 version_type=linux
11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11276 soname_spec='${libname}${release}${shared_ext}$major'
11277 shlibpath_var=LD_LIBRARY_PATH
11278 ;;
11279
11280 *)
11281 dynamic_linker=no
11282 ;;
11283 esac
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11285 $as_echo "$dynamic_linker" >&6; }
11286 test "$dynamic_linker" = no && can_build_shared=no
11287
11288 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11289 if test "$GCC" = yes; then
11290 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11291 fi
11292
11293 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11294 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11295 fi
11296 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11297 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11298 fi
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11392 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11393 hardcode_action=
11394 if test -n "$hardcode_libdir_flag_spec" ||
11395 test -n "$runpath_var" ||
11396 test "X$hardcode_automatic" = "Xyes" ; then
11397
11398 # We can hardcode non-existent directories.
11399 if test "$hardcode_direct" != no &&
11400 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11401 # have to relink, otherwise we might link with an installed library
11402 # when we should be linking with a yet-to-be-installed one
11403 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11404 test "$hardcode_minus_L" != no; then
11405 # Linking always hardcodes the temporary library directory.
11406 hardcode_action=relink
11407 else
11408 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11409 hardcode_action=immediate
11410 fi
11411 else
11412 # We cannot hardcode anything, or else we can only hardcode existing
11413 # directories.
11414 hardcode_action=unsupported
11415 fi
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11417 $as_echo "$hardcode_action" >&6; }
11418
11419 if test "$hardcode_action" = relink ||
11420 test "$inherit_rpath" = yes; then
11421 # Fast installation is not supported
11422 enable_fast_install=no
11423 elif test "$shlibpath_overrides_runpath" = yes ||
11424 test "$enable_shared" = no; then
11425 # Fast installation is not necessary
11426 enable_fast_install=needless
11427 fi
11428
11429
11430
11431
11432
11433
11434 if test "x$enable_dlopen" != xyes; then
11435 enable_dlopen=unknown
11436 enable_dlopen_self=unknown
11437 enable_dlopen_self_static=unknown
11438 else
11439 lt_cv_dlopen=no
11440 lt_cv_dlopen_libs=
11441
11442 case $host_os in
11443 beos*)
11444 lt_cv_dlopen="load_add_on"
11445 lt_cv_dlopen_libs=
11446 lt_cv_dlopen_self=yes
11447 ;;
11448
11449 mingw* | pw32* | cegcc*)
11450 lt_cv_dlopen="LoadLibrary"
11451 lt_cv_dlopen_libs=
11452 ;;
11453
11454 cygwin*)
11455 lt_cv_dlopen="dlopen"
11456 lt_cv_dlopen_libs=
11457 ;;
11458
11459 darwin*)
11460 # if libdl is installed we need to link against it
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11462 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11463 if ${ac_cv_lib_dl_dlopen+:} false; then :
11464 $as_echo_n "(cached) " >&6
11465 else
11466 ac_check_lib_save_LIBS=$LIBS
11467 LIBS="-ldl $LIBS"
11468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11469 /* end confdefs.h. */
11470
11471 /* Override any GCC internal prototype to avoid an error.
11472 Use char because int might match the return type of a GCC
11473 builtin and then its argument prototype would still apply. */
11474 #ifdef __cplusplus
11475 extern "C"
11476 #endif
11477 char dlopen ();
11478 int
11479 main ()
11480 {
11481 return dlopen ();
11482 ;
11483 return 0;
11484 }
11485 _ACEOF
11486 if ac_fn_c_try_link "$LINENO"; then :
11487 ac_cv_lib_dl_dlopen=yes
11488 else
11489 ac_cv_lib_dl_dlopen=no
11490 fi
11491 rm -f core conftest.err conftest.$ac_objext \
11492 conftest$ac_exeext conftest.$ac_ext
11493 LIBS=$ac_check_lib_save_LIBS
11494 fi
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11496 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11497 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11498 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11499 else
11500
11501 lt_cv_dlopen="dyld"
11502 lt_cv_dlopen_libs=
11503 lt_cv_dlopen_self=yes
11504
11505 fi
11506
11507 ;;
11508
11509 *)
11510 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11511 if test "x$ac_cv_func_shl_load" = xyes; then :
11512 lt_cv_dlopen="shl_load"
11513 else
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11515 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11516 if ${ac_cv_lib_dld_shl_load+:} false; then :
11517 $as_echo_n "(cached) " >&6
11518 else
11519 ac_check_lib_save_LIBS=$LIBS
11520 LIBS="-ldld $LIBS"
11521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11522 /* end confdefs.h. */
11523
11524 /* Override any GCC internal prototype to avoid an error.
11525 Use char because int might match the return type of a GCC
11526 builtin and then its argument prototype would still apply. */
11527 #ifdef __cplusplus
11528 extern "C"
11529 #endif
11530 char shl_load ();
11531 int
11532 main ()
11533 {
11534 return shl_load ();
11535 ;
11536 return 0;
11537 }
11538 _ACEOF
11539 if ac_fn_c_try_link "$LINENO"; then :
11540 ac_cv_lib_dld_shl_load=yes
11541 else
11542 ac_cv_lib_dld_shl_load=no
11543 fi
11544 rm -f core conftest.err conftest.$ac_objext \
11545 conftest$ac_exeext conftest.$ac_ext
11546 LIBS=$ac_check_lib_save_LIBS
11547 fi
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11549 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11550 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11551 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11552 else
11553 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11554 if test "x$ac_cv_func_dlopen" = xyes; then :
11555 lt_cv_dlopen="dlopen"
11556 else
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11558 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11559 if ${ac_cv_lib_dl_dlopen+:} false; then :
11560 $as_echo_n "(cached) " >&6
11561 else
11562 ac_check_lib_save_LIBS=$LIBS
11563 LIBS="-ldl $LIBS"
11564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11565 /* end confdefs.h. */
11566
11567 /* Override any GCC internal prototype to avoid an error.
11568 Use char because int might match the return type of a GCC
11569 builtin and then its argument prototype would still apply. */
11570 #ifdef __cplusplus
11571 extern "C"
11572 #endif
11573 char dlopen ();
11574 int
11575 main ()
11576 {
11577 return dlopen ();
11578 ;
11579 return 0;
11580 }
11581 _ACEOF
11582 if ac_fn_c_try_link "$LINENO"; then :
11583 ac_cv_lib_dl_dlopen=yes
11584 else
11585 ac_cv_lib_dl_dlopen=no
11586 fi
11587 rm -f core conftest.err conftest.$ac_objext \
11588 conftest$ac_exeext conftest.$ac_ext
11589 LIBS=$ac_check_lib_save_LIBS
11590 fi
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11592 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11593 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11594 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11595 else
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11597 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11598 if ${ac_cv_lib_svld_dlopen+:} false; then :
11599 $as_echo_n "(cached) " >&6
11600 else
11601 ac_check_lib_save_LIBS=$LIBS
11602 LIBS="-lsvld $LIBS"
11603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11604 /* end confdefs.h. */
11605
11606 /* Override any GCC internal prototype to avoid an error.
11607 Use char because int might match the return type of a GCC
11608 builtin and then its argument prototype would still apply. */
11609 #ifdef __cplusplus
11610 extern "C"
11611 #endif
11612 char dlopen ();
11613 int
11614 main ()
11615 {
11616 return dlopen ();
11617 ;
11618 return 0;
11619 }
11620 _ACEOF
11621 if ac_fn_c_try_link "$LINENO"; then :
11622 ac_cv_lib_svld_dlopen=yes
11623 else
11624 ac_cv_lib_svld_dlopen=no
11625 fi
11626 rm -f core conftest.err conftest.$ac_objext \
11627 conftest$ac_exeext conftest.$ac_ext
11628 LIBS=$ac_check_lib_save_LIBS
11629 fi
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11631 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11632 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11633 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11634 else
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11636 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11637 if ${ac_cv_lib_dld_dld_link+:} false; then :
11638 $as_echo_n "(cached) " >&6
11639 else
11640 ac_check_lib_save_LIBS=$LIBS
11641 LIBS="-ldld $LIBS"
11642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11643 /* end confdefs.h. */
11644
11645 /* Override any GCC internal prototype to avoid an error.
11646 Use char because int might match the return type of a GCC
11647 builtin and then its argument prototype would still apply. */
11648 #ifdef __cplusplus
11649 extern "C"
11650 #endif
11651 char dld_link ();
11652 int
11653 main ()
11654 {
11655 return dld_link ();
11656 ;
11657 return 0;
11658 }
11659 _ACEOF
11660 if ac_fn_c_try_link "$LINENO"; then :
11661 ac_cv_lib_dld_dld_link=yes
11662 else
11663 ac_cv_lib_dld_dld_link=no
11664 fi
11665 rm -f core conftest.err conftest.$ac_objext \
11666 conftest$ac_exeext conftest.$ac_ext
11667 LIBS=$ac_check_lib_save_LIBS
11668 fi
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11670 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11671 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11672 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11673 fi
11674
11675
11676 fi
11677
11678
11679 fi
11680
11681
11682 fi
11683
11684
11685 fi
11686
11687
11688 fi
11689
11690 ;;
11691 esac
11692
11693 if test "x$lt_cv_dlopen" != xno; then
11694 enable_dlopen=yes
11695 else
11696 enable_dlopen=no
11697 fi
11698
11699 case $lt_cv_dlopen in
11700 dlopen)
11701 save_CPPFLAGS="$CPPFLAGS"
11702 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11703
11704 save_LDFLAGS="$LDFLAGS"
11705 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11706
11707 save_LIBS="$LIBS"
11708 LIBS="$lt_cv_dlopen_libs $LIBS"
11709
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11711 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11712 if ${lt_cv_dlopen_self+:} false; then :
11713 $as_echo_n "(cached) " >&6
11714 else
11715 if test "$cross_compiling" = yes; then :
11716 lt_cv_dlopen_self=cross
11717 else
11718 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11719 lt_status=$lt_dlunknown
11720 cat > conftest.$ac_ext <<_LT_EOF
11721 #line $LINENO "configure"
11722 #include "confdefs.h"
11723
11724 #if HAVE_DLFCN_H
11725 #include <dlfcn.h>
11726 #endif
11727
11728 #include <stdio.h>
11729
11730 #ifdef RTLD_GLOBAL
11731 # define LT_DLGLOBAL RTLD_GLOBAL
11732 #else
11733 # ifdef DL_GLOBAL
11734 # define LT_DLGLOBAL DL_GLOBAL
11735 # else
11736 # define LT_DLGLOBAL 0
11737 # endif
11738 #endif
11739
11740 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11741 find out it does not work in some platform. */
11742 #ifndef LT_DLLAZY_OR_NOW
11743 # ifdef RTLD_LAZY
11744 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11745 # else
11746 # ifdef DL_LAZY
11747 # define LT_DLLAZY_OR_NOW DL_LAZY
11748 # else
11749 # ifdef RTLD_NOW
11750 # define LT_DLLAZY_OR_NOW RTLD_NOW
11751 # else
11752 # ifdef DL_NOW
11753 # define LT_DLLAZY_OR_NOW DL_NOW
11754 # else
11755 # define LT_DLLAZY_OR_NOW 0
11756 # endif
11757 # endif
11758 # endif
11759 # endif
11760 #endif
11761
11762 /* When -fvisbility=hidden is used, assume the code has been annotated
11763 correspondingly for the symbols needed. */
11764 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11765 int fnord () __attribute__((visibility("default")));
11766 #endif
11767
11768 int fnord () { return 42; }
11769 int main ()
11770 {
11771 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11772 int status = $lt_dlunknown;
11773
11774 if (self)
11775 {
11776 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11777 else
11778 {
11779 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11780 else puts (dlerror ());
11781 }
11782 /* dlclose (self); */
11783 }
11784 else
11785 puts (dlerror ());
11786
11787 return status;
11788 }
11789 _LT_EOF
11790 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11791 (eval $ac_link) 2>&5
11792 ac_status=$?
11793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11794 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11795 (./conftest; exit; ) >&5 2>/dev/null
11796 lt_status=$?
11797 case x$lt_status in
11798 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11799 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11800 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11801 esac
11802 else :
11803 # compilation failed
11804 lt_cv_dlopen_self=no
11805 fi
11806 fi
11807 rm -fr conftest*
11808
11809
11810 fi
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11812 $as_echo "$lt_cv_dlopen_self" >&6; }
11813
11814 if test "x$lt_cv_dlopen_self" = xyes; then
11815 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11817 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11818 if ${lt_cv_dlopen_self_static+:} false; then :
11819 $as_echo_n "(cached) " >&6
11820 else
11821 if test "$cross_compiling" = yes; then :
11822 lt_cv_dlopen_self_static=cross
11823 else
11824 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11825 lt_status=$lt_dlunknown
11826 cat > conftest.$ac_ext <<_LT_EOF
11827 #line $LINENO "configure"
11828 #include "confdefs.h"
11829
11830 #if HAVE_DLFCN_H
11831 #include <dlfcn.h>
11832 #endif
11833
11834 #include <stdio.h>
11835
11836 #ifdef RTLD_GLOBAL
11837 # define LT_DLGLOBAL RTLD_GLOBAL
11838 #else
11839 # ifdef DL_GLOBAL
11840 # define LT_DLGLOBAL DL_GLOBAL
11841 # else
11842 # define LT_DLGLOBAL 0
11843 # endif
11844 #endif
11845
11846 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11847 find out it does not work in some platform. */
11848 #ifndef LT_DLLAZY_OR_NOW
11849 # ifdef RTLD_LAZY
11850 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11851 # else
11852 # ifdef DL_LAZY
11853 # define LT_DLLAZY_OR_NOW DL_LAZY
11854 # else
11855 # ifdef RTLD_NOW
11856 # define LT_DLLAZY_OR_NOW RTLD_NOW
11857 # else
11858 # ifdef DL_NOW
11859 # define LT_DLLAZY_OR_NOW DL_NOW
11860 # else
11861 # define LT_DLLAZY_OR_NOW 0
11862 # endif
11863 # endif
11864 # endif
11865 # endif
11866 #endif
11867
11868 /* When -fvisbility=hidden is used, assume the code has been annotated
11869 correspondingly for the symbols needed. */
11870 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11871 int fnord () __attribute__((visibility("default")));
11872 #endif
11873
11874 int fnord () { return 42; }
11875 int main ()
11876 {
11877 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11878 int status = $lt_dlunknown;
11879
11880 if (self)
11881 {
11882 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11883 else
11884 {
11885 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11886 else puts (dlerror ());
11887 }
11888 /* dlclose (self); */
11889 }
11890 else
11891 puts (dlerror ());
11892
11893 return status;
11894 }
11895 _LT_EOF
11896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11897 (eval $ac_link) 2>&5
11898 ac_status=$?
11899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11900 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11901 (./conftest; exit; ) >&5 2>/dev/null
11902 lt_status=$?
11903 case x$lt_status in
11904 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11905 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11906 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11907 esac
11908 else :
11909 # compilation failed
11910 lt_cv_dlopen_self_static=no
11911 fi
11912 fi
11913 rm -fr conftest*
11914
11915
11916 fi
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11918 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11919 fi
11920
11921 CPPFLAGS="$save_CPPFLAGS"
11922 LDFLAGS="$save_LDFLAGS"
11923 LIBS="$save_LIBS"
11924 ;;
11925 esac
11926
11927 case $lt_cv_dlopen_self in
11928 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11929 *) enable_dlopen_self=unknown ;;
11930 esac
11931
11932 case $lt_cv_dlopen_self_static in
11933 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11934 *) enable_dlopen_self_static=unknown ;;
11935 esac
11936 fi
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954 striplib=
11955 old_striplib=
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11957 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11958 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11959 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11960 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11962 $as_echo "yes" >&6; }
11963 else
11964 # FIXME - insert some real tests, host_os isn't really good enough
11965 case $host_os in
11966 darwin*)
11967 if test -n "$STRIP" ; then
11968 striplib="$STRIP -x"
11969 old_striplib="$STRIP -S"
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11971 $as_echo "yes" >&6; }
11972 else
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974 $as_echo "no" >&6; }
11975 fi
11976 ;;
11977 *)
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979 $as_echo "no" >&6; }
11980 ;;
11981 esac
11982 fi
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995 # Report which library types will actually be built
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11997 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11999 $as_echo "$can_build_shared" >&6; }
12000
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12002 $as_echo_n "checking whether to build shared libraries... " >&6; }
12003 test "$can_build_shared" = "no" && enable_shared=no
12004
12005 # On AIX, shared libraries and static libraries use the same namespace, and
12006 # are all built from PIC.
12007 case $host_os in
12008 aix3*)
12009 test "$enable_shared" = yes && enable_static=no
12010 if test -n "$RANLIB"; then
12011 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12012 postinstall_cmds='$RANLIB $lib'
12013 fi
12014 ;;
12015
12016 aix[4-9]*)
12017 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12018 test "$enable_shared" = yes && enable_static=no
12019 fi
12020 ;;
12021 esac
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12023 $as_echo "$enable_shared" >&6; }
12024
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12026 $as_echo_n "checking whether to build static libraries... " >&6; }
12027 # Make sure either enable_shared or enable_static is yes.
12028 test "$enable_shared" = yes || enable_static=yes
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12030 $as_echo "$enable_static" >&6; }
12031
12032
12033
12034
12035 fi
12036 ac_ext=c
12037 ac_cpp='$CPP $CPPFLAGS'
12038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12041
12042 CC="$lt_save_CC"
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056 ac_config_commands="$ac_config_commands libtool"
12057
12058
12059
12060
12061 # Only expand once:
12062
12063
12064
12065
12066
12067 if test "$enable_libevent_regress" = "yes"; then
12068 BUILD_REGRESS_TRUE=
12069 BUILD_REGRESS_FALSE='#'
12070 else
12071 BUILD_REGRESS_TRUE='#'
12072 BUILD_REGRESS_FALSE=
12073 fi
12074
12075
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
12077 $as_echo_n "checking for library containing inet_ntoa... " >&6; }
12078 if ${ac_cv_search_inet_ntoa+:} false; then :
12079 $as_echo_n "(cached) " >&6
12080 else
12081 ac_func_search_save_LIBS=$LIBS
12082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083 /* end confdefs.h. */
12084
12085 /* Override any GCC internal prototype to avoid an error.
12086 Use char because int might match the return type of a GCC
12087 builtin and then its argument prototype would still apply. */
12088 #ifdef __cplusplus
12089 extern "C"
12090 #endif
12091 char inet_ntoa ();
12092 int
12093 main ()
12094 {
12095 return inet_ntoa ();
12096 ;
12097 return 0;
12098 }
12099 _ACEOF
12100 for ac_lib in '' nsl; do
12101 if test -z "$ac_lib"; then
12102 ac_res="none required"
12103 else
12104 ac_res=-l$ac_lib
12105 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12106 fi
12107 if ac_fn_c_try_link "$LINENO"; then :
12108 ac_cv_search_inet_ntoa=$ac_res
12109 fi
12110 rm -f core conftest.err conftest.$ac_objext \
12111 conftest$ac_exeext
12112 if ${ac_cv_search_inet_ntoa+:} false; then :
12113 break
12114 fi
12115 done
12116 if ${ac_cv_search_inet_ntoa+:} false; then :
12117
12118 else
12119 ac_cv_search_inet_ntoa=no
12120 fi
12121 rm conftest.$ac_ext
12122 LIBS=$ac_func_search_save_LIBS
12123 fi
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
12125 $as_echo "$ac_cv_search_inet_ntoa" >&6; }
12126 ac_res=$ac_cv_search_inet_ntoa
12127 if test "$ac_res" != no; then :
12128 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12129
12130 fi
12131
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12133 $as_echo_n "checking for library containing socket... " >&6; }
12134 if ${ac_cv_search_socket+:} false; then :
12135 $as_echo_n "(cached) " >&6
12136 else
12137 ac_func_search_save_LIBS=$LIBS
12138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12139 /* end confdefs.h. */
12140
12141 /* Override any GCC internal prototype to avoid an error.
12142 Use char because int might match the return type of a GCC
12143 builtin and then its argument prototype would still apply. */
12144 #ifdef __cplusplus
12145 extern "C"
12146 #endif
12147 char socket ();
12148 int
12149 main ()
12150 {
12151 return socket ();
12152 ;
12153 return 0;
12154 }
12155 _ACEOF
12156 for ac_lib in '' socket; do
12157 if test -z "$ac_lib"; then
12158 ac_res="none required"
12159 else
12160 ac_res=-l$ac_lib
12161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12162 fi
12163 if ac_fn_c_try_link "$LINENO"; then :
12164 ac_cv_search_socket=$ac_res
12165 fi
12166 rm -f core conftest.err conftest.$ac_objext \
12167 conftest$ac_exeext
12168 if ${ac_cv_search_socket+:} false; then :
12169 break
12170 fi
12171 done
12172 if ${ac_cv_search_socket+:} false; then :
12173
12174 else
12175 ac_cv_search_socket=no
12176 fi
12177 rm conftest.$ac_ext
12178 LIBS=$ac_func_search_save_LIBS
12179 fi
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12181 $as_echo "$ac_cv_search_socket" >&6; }
12182 ac_res=$ac_cv_search_socket
12183 if test "$ac_res" != no; then :
12184 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12185
12186 fi
12187
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
12189 $as_echo_n "checking for library containing inet_aton... " >&6; }
12190 if ${ac_cv_search_inet_aton+:} false; then :
12191 $as_echo_n "(cached) " >&6
12192 else
12193 ac_func_search_save_LIBS=$LIBS
12194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12195 /* end confdefs.h. */
12196
12197 /* Override any GCC internal prototype to avoid an error.
12198 Use char because int might match the return type of a GCC
12199 builtin and then its argument prototype would still apply. */
12200 #ifdef __cplusplus
12201 extern "C"
12202 #endif
12203 char inet_aton ();
12204 int
12205 main ()
12206 {
12207 return inet_aton ();
12208 ;
12209 return 0;
12210 }
12211 _ACEOF
12212 for ac_lib in '' resolv; do
12213 if test -z "$ac_lib"; then
12214 ac_res="none required"
12215 else
12216 ac_res=-l$ac_lib
12217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12218 fi
12219 if ac_fn_c_try_link "$LINENO"; then :
12220 ac_cv_search_inet_aton=$ac_res
12221 fi
12222 rm -f core conftest.err conftest.$ac_objext \
12223 conftest$ac_exeext
12224 if ${ac_cv_search_inet_aton+:} false; then :
12225 break
12226 fi
12227 done
12228 if ${ac_cv_search_inet_aton+:} false; then :
12229
12230 else
12231 ac_cv_search_inet_aton=no
12232 fi
12233 rm conftest.$ac_ext
12234 LIBS=$ac_func_search_save_LIBS
12235 fi
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
12237 $as_echo "$ac_cv_search_inet_aton" >&6; }
12238 ac_res=$ac_cv_search_inet_aton
12239 if test "$ac_res" != no; then :
12240 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12241
12242 fi
12243
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
12245 $as_echo_n "checking for library containing clock_gettime... " >&6; }
12246 if ${ac_cv_search_clock_gettime+:} false; then :
12247 $as_echo_n "(cached) " >&6
12248 else
12249 ac_func_search_save_LIBS=$LIBS
12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h. */
12252
12253 /* Override any GCC internal prototype to avoid an error.
12254 Use char because int might match the return type of a GCC
12255 builtin and then its argument prototype would still apply. */
12256 #ifdef __cplusplus
12257 extern "C"
12258 #endif
12259 char clock_gettime ();
12260 int
12261 main ()
12262 {
12263 return clock_gettime ();
12264 ;
12265 return 0;
12266 }
12267 _ACEOF
12268 for ac_lib in '' rt; do
12269 if test -z "$ac_lib"; then
12270 ac_res="none required"
12271 else
12272 ac_res=-l$ac_lib
12273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12274 fi
12275 if ac_fn_c_try_link "$LINENO"; then :
12276 ac_cv_search_clock_gettime=$ac_res
12277 fi
12278 rm -f core conftest.err conftest.$ac_objext \
12279 conftest$ac_exeext
12280 if ${ac_cv_search_clock_gettime+:} false; then :
12281 break
12282 fi
12283 done
12284 if ${ac_cv_search_clock_gettime+:} false; then :
12285
12286 else
12287 ac_cv_search_clock_gettime=no
12288 fi
12289 rm conftest.$ac_ext
12290 LIBS=$ac_func_search_save_LIBS
12291 fi
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
12293 $as_echo "$ac_cv_search_clock_gettime" >&6; }
12294 ac_res=$ac_cv_search_clock_gettime
12295 if test "$ac_res" != no; then :
12296 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12297
12298 fi
12299
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
12301 $as_echo_n "checking for library containing sendfile... " >&6; }
12302 if ${ac_cv_search_sendfile+:} false; then :
12303 $as_echo_n "(cached) " >&6
12304 else
12305 ac_func_search_save_LIBS=$LIBS
12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h. */
12308
12309 /* Override any GCC internal prototype to avoid an error.
12310 Use char because int might match the return type of a GCC
12311 builtin and then its argument prototype would still apply. */
12312 #ifdef __cplusplus
12313 extern "C"
12314 #endif
12315 char sendfile ();
12316 int
12317 main ()
12318 {
12319 return sendfile ();
12320 ;
12321 return 0;
12322 }
12323 _ACEOF
12324 for ac_lib in '' sendfile; do
12325 if test -z "$ac_lib"; then
12326 ac_res="none required"
12327 else
12328 ac_res=-l$ac_lib
12329 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12330 fi
12331 if ac_fn_c_try_link "$LINENO"; then :
12332 ac_cv_search_sendfile=$ac_res
12333 fi
12334 rm -f core conftest.err conftest.$ac_objext \
12335 conftest$ac_exeext
12336 if ${ac_cv_search_sendfile+:} false; then :
12337 break
12338 fi
12339 done
12340 if ${ac_cv_search_sendfile+:} false; then :
12341
12342 else
12343 ac_cv_search_sendfile=no
12344 fi
12345 rm conftest.$ac_ext
12346 LIBS=$ac_func_search_save_LIBS
12347 fi
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
12349 $as_echo "$ac_cv_search_sendfile" >&6; }
12350 ac_res=$ac_cv_search_sendfile
12351 if test "$ac_res" != no; then :
12352 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12353
12354 fi
12355
12356
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
12358 $as_echo_n "checking for WIN32... " >&6; }
12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h. */
12361
12362 int
12363 main ()
12364 {
12365
12366 #ifndef _WIN32
12367 die horribly
12368 #endif
12369
12370 ;
12371 return 0;
12372 }
12373 _ACEOF
12374 if ac_fn_c_try_compile "$LINENO"; then :
12375 bwin32=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12376 $as_echo "yes" >&6; }
12377 else
12378 bwin32=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12379 $as_echo "no" >&6; }
12380 fi
12381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12382
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
12384 $as_echo_n "checking for CYGWIN... " >&6; }
12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h. */
12387
12388 int
12389 main ()
12390 {
12391
12392 #ifndef __CYGWIN__
12393 die horribly
12394 #endif
12395
12396 ;
12397 return 0;
12398 }
12399 _ACEOF
12400 if ac_fn_c_try_compile "$LINENO"; then :
12401 cygwin=true; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12402 $as_echo "yes" >&6; }
12403 else
12404 cygwin=false; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405 $as_echo "no" >&6; }
12406 fi
12407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12408
12409 for ac_header in zlib.h
12410 do :
12411 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12412 if test "x$ac_cv_header_zlib_h" = xyes; then :
12413 cat >>confdefs.h <<_ACEOF
12414 #define HAVE_ZLIB_H 1
12415 _ACEOF
12416
12417 fi
12418
12419 done
12420
12421
12422 if test "x$ac_cv_header_zlib_h" = "xyes"; then
12423 save_LIBS="$LIBS"
12424 LIBS=""
12425 ZLIB_LIBS=""
12426 have_zlib=no
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
12428 $as_echo_n "checking for library containing inflateEnd... " >&6; }
12429 if ${ac_cv_search_inflateEnd+:} false; then :
12430 $as_echo_n "(cached) " >&6
12431 else
12432 ac_func_search_save_LIBS=$LIBS
12433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h. */
12435
12436 /* Override any GCC internal prototype to avoid an error.
12437 Use char because int might match the return type of a GCC
12438 builtin and then its argument prototype would still apply. */
12439 #ifdef __cplusplus
12440 extern "C"
12441 #endif
12442 char inflateEnd ();
12443 int
12444 main ()
12445 {
12446 return inflateEnd ();
12447 ;
12448 return 0;
12449 }
12450 _ACEOF
12451 for ac_lib in '' z; do
12452 if test -z "$ac_lib"; then
12453 ac_res="none required"
12454 else
12455 ac_res=-l$ac_lib
12456 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12457 fi
12458 if ac_fn_c_try_link "$LINENO"; then :
12459 ac_cv_search_inflateEnd=$ac_res
12460 fi
12461 rm -f core conftest.err conftest.$ac_objext \
12462 conftest$ac_exeext
12463 if ${ac_cv_search_inflateEnd+:} false; then :
12464 break
12465 fi
12466 done
12467 if ${ac_cv_search_inflateEnd+:} false; then :
12468
12469 else
12470 ac_cv_search_inflateEnd=no
12471 fi
12472 rm conftest.$ac_ext
12473 LIBS=$ac_func_search_save_LIBS
12474 fi
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
12476 $as_echo "$ac_cv_search_inflateEnd" >&6; }
12477 ac_res=$ac_cv_search_inflateEnd
12478 if test "$ac_res" != no; then :
12479 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12480 have_zlib=yes
12481 ZLIB_LIBS="$LIBS"
12482
12483 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12484
12485 fi
12486
12487 LIBS="$save_LIBS"
12488
12489 fi
12490 if test "$have_zlib" = "yes"; then
12491 ZLIB_REGRESS_TRUE=
12492 ZLIB_REGRESS_FALSE='#'
12493 else
12494 ZLIB_REGRESS_TRUE='#'
12495 ZLIB_REGRESS_FALSE=
12496 fi
12497
12498
12499 if test "$bwin32" = true; then
12500 EV_LIB_WS32=-lws2_32
12501 EV_LIB_GDI=-lgdi32
12502 else
12503 EV_LIB_WS32=
12504 EV_LIB_GDI=
12505 fi
12506
12507
12508
12509
12510 # Check whether --enable-largefile was given.
12511 if test "${enable_largefile+set}" = set; then :
12512 enableval=$enable_largefile;
12513 fi
12514
12515 if test "$enable_largefile" != no; then
12516
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12518 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12519 if ${ac_cv_sys_largefile_CC+:} false; then :
12520 $as_echo_n "(cached) " >&6
12521 else
12522 ac_cv_sys_largefile_CC=no
12523 if test "$GCC" != yes; then
12524 ac_save_CC=$CC
12525 while :; do
12526 # IRIX 6.2 and later do not support large files by default,
12527 # so use the C compiler's -n32 option if that helps.
12528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12529 /* end confdefs.h. */
12530 #include <sys/types.h>
12531 /* Check that off_t can represent 2**63 - 1 correctly.
12532 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12533 since some C++ compilers masquerading as C compilers
12534 incorrectly reject 9223372036854775807. */
12535 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12536 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12537 && LARGE_OFF_T % 2147483647 == 1)
12538 ? 1 : -1];
12539 int
12540 main ()
12541 {
12542
12543 ;
12544 return 0;
12545 }
12546 _ACEOF
12547 if ac_fn_c_try_compile "$LINENO"; then :
12548 break
12549 fi
12550 rm -f core conftest.err conftest.$ac_objext
12551 CC="$CC -n32"
12552 if ac_fn_c_try_compile "$LINENO"; then :
12553 ac_cv_sys_largefile_CC=' -n32'; break
12554 fi
12555 rm -f core conftest.err conftest.$ac_objext
12556 break
12557 done
12558 CC=$ac_save_CC
12559 rm -f conftest.$ac_ext
12560 fi
12561 fi
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12563 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12564 if test "$ac_cv_sys_largefile_CC" != no; then
12565 CC=$CC$ac_cv_sys_largefile_CC
12566 fi
12567
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12569 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12570 if ${ac_cv_sys_file_offset_bits+:} false; then :
12571 $as_echo_n "(cached) " >&6
12572 else
12573 while :; do
12574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575 /* end confdefs.h. */
12576 #include <sys/types.h>
12577 /* Check that off_t can represent 2**63 - 1 correctly.
12578 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12579 since some C++ compilers masquerading as C compilers
12580 incorrectly reject 9223372036854775807. */
12581 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12582 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12583 && LARGE_OFF_T % 2147483647 == 1)
12584 ? 1 : -1];
12585 int
12586 main ()
12587 {
12588
12589 ;
12590 return 0;
12591 }
12592 _ACEOF
12593 if ac_fn_c_try_compile "$LINENO"; then :
12594 ac_cv_sys_file_offset_bits=no; break
12595 fi
12596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h. */
12599 #define _FILE_OFFSET_BITS 64
12600 #include <sys/types.h>
12601 /* Check that off_t can represent 2**63 - 1 correctly.
12602 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12603 since some C++ compilers masquerading as C compilers
12604 incorrectly reject 9223372036854775807. */
12605 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12606 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12607 && LARGE_OFF_T % 2147483647 == 1)
12608 ? 1 : -1];
12609 int
12610 main ()
12611 {
12612
12613 ;
12614 return 0;
12615 }
12616 _ACEOF
12617 if ac_fn_c_try_compile "$LINENO"; then :
12618 ac_cv_sys_file_offset_bits=64; break
12619 fi
12620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12621 ac_cv_sys_file_offset_bits=unknown
12622 break
12623 done
12624 fi
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12626 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12627 case $ac_cv_sys_file_offset_bits in #(
12628 no | unknown) ;;
12629 *)
12630 cat >>confdefs.h <<_ACEOF
12631 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12632 _ACEOF
12633 ;;
12634 esac
12635 rm -rf conftest*
12636 if test $ac_cv_sys_file_offset_bits = unknown; then
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12638 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12639 if ${ac_cv_sys_large_files+:} false; then :
12640 $as_echo_n "(cached) " >&6
12641 else
12642 while :; do
12643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12644 /* end confdefs.h. */
12645 #include <sys/types.h>
12646 /* Check that off_t can represent 2**63 - 1 correctly.
12647 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12648 since some C++ compilers masquerading as C compilers
12649 incorrectly reject 9223372036854775807. */
12650 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12651 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12652 && LARGE_OFF_T % 2147483647 == 1)
12653 ? 1 : -1];
12654 int
12655 main ()
12656 {
12657
12658 ;
12659 return 0;
12660 }
12661 _ACEOF
12662 if ac_fn_c_try_compile "$LINENO"; then :
12663 ac_cv_sys_large_files=no; break
12664 fi
12665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12667 /* end confdefs.h. */
12668 #define _LARGE_FILES 1
12669 #include <sys/types.h>
12670 /* Check that off_t can represent 2**63 - 1 correctly.
12671 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12672 since some C++ compilers masquerading as C compilers
12673 incorrectly reject 9223372036854775807. */
12674 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12675 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12676 && LARGE_OFF_T % 2147483647 == 1)
12677 ? 1 : -1];
12678 int
12679 main ()
12680 {
12681
12682 ;
12683 return 0;
12684 }
12685 _ACEOF
12686 if ac_fn_c_try_compile "$LINENO"; then :
12687 ac_cv_sys_large_files=1; break
12688 fi
12689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12690 ac_cv_sys_large_files=unknown
12691 break
12692 done
12693 fi
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12695 $as_echo "$ac_cv_sys_large_files" >&6; }
12696 case $ac_cv_sys_large_files in #(
12697 no | unknown) ;;
12698 *)
12699 cat >>confdefs.h <<_ACEOF
12700 #define _LARGE_FILES $ac_cv_sys_large_files
12701 _ACEOF
12702 ;;
12703 esac
12704 rm -rf conftest*
12705 fi
12706 fi
12707
12708
12709
12710
12711 ntp_pkgconfig_min_version='0.15.0'
12712 if test -n "$ac_tool_prefix"; then
12713 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12714 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12716 $as_echo_n "checking for $ac_word... " >&6; }
12717 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12718 $as_echo_n "(cached) " >&6
12719 else
12720 case $PKG_CONFIG in
12721 [\\/]* | ?:[\\/]*)
12722 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12723 ;;
12724 *)
12725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12726 for as_dir in $PATH
12727 do
12728 IFS=$as_save_IFS
12729 test -z "$as_dir" && as_dir=.
12730 for ac_exec_ext in '' $ac_executable_extensions; do
12731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12732 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12734 break 2
12735 fi
12736 done
12737 done
12738 IFS=$as_save_IFS
12739
12740 ;;
12741 esac
12742 fi
12743 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12744 if test -n "$PKG_CONFIG"; then
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12746 $as_echo "$PKG_CONFIG" >&6; }
12747 else
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749 $as_echo "no" >&6; }
12750 fi
12751
12752
12753 fi
12754 if test -z "$ac_cv_path_PKG_CONFIG"; then
12755 ac_pt_PKG_CONFIG=$PKG_CONFIG
12756 # Extract the first word of "pkg-config", so it can be a program name with args.
12757 set dummy pkg-config; ac_word=$2
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12759 $as_echo_n "checking for $ac_word... " >&6; }
12760 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12761 $as_echo_n "(cached) " >&6
12762 else
12763 case $ac_pt_PKG_CONFIG in
12764 [\\/]* | ?:[\\/]*)
12765 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12766 ;;
12767 *)
12768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12769 for as_dir in $PATH
12770 do
12771 IFS=$as_save_IFS
12772 test -z "$as_dir" && as_dir=.
12773 for ac_exec_ext in '' $ac_executable_extensions; do
12774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12775 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12777 break 2
12778 fi
12779 done
12780 done
12781 IFS=$as_save_IFS
12782
12783 ;;
12784 esac
12785 fi
12786 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12787 if test -n "$ac_pt_PKG_CONFIG"; then
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12789 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12790 else
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12792 $as_echo "no" >&6; }
12793 fi
12794
12795 if test "x$ac_pt_PKG_CONFIG" = x; then
12796 PKG_CONFIG=""
12797 else
12798 case $cross_compiling:$ac_tool_warned in
12799 yes:)
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12802 ac_tool_warned=yes ;;
12803 esac
12804 PKG_CONFIG=$ac_pt_PKG_CONFIG
12805 fi
12806 else
12807 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12808 fi
12809
12810 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
12811 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
12812
12813 case "$PKG_CONFIG" in
12814 /*)
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
12816 $as_echo_n "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
12817 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12819 $as_echo "yes" >&6; }
12820 else
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822 $as_echo "no" >&6; }
12823 PKG_CONFIG=""
12824 fi
12825 ;;
12826 esac
12827
12828
12829
12830
12831 case "$enable_openssl" in
12832 yes)
12833 have_openssl=no
12834 case "$PKG_CONFIG" in
12835 '')
12836 ;;
12837 *)
12838 OPENSSL_LIBS=`$PKG_CONFIG --libs openssl 2>/dev/null`
12839 case "$OPENSSL_LIBS" in
12840 '') ;;
12841 *) OPENSSL_LIBS="$OPENSSL_LIBS $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
12842 have_openssl=yes
12843 ;;
12844 esac
12845 OPENSSL_INCS=`$PKG_CONFIG --cflags openssl 2>/dev/null`
12846 ;;
12847 esac
12848 case "$have_openssl" in
12849 yes) ;;
12850 *)
12851 save_LIBS="$LIBS"
12852 LIBS=""
12853 OPENSSL_LIBS=""
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
12855 $as_echo_n "checking for library containing SSL_new... " >&6; }
12856 if ${ac_cv_search_SSL_new+:} false; then :
12857 $as_echo_n "(cached) " >&6
12858 else
12859 ac_func_search_save_LIBS=$LIBS
12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h. */
12862
12863 /* Override any GCC internal prototype to avoid an error.
12864 Use char because int might match the return type of a GCC
12865 builtin and then its argument prototype would still apply. */
12866 #ifdef __cplusplus
12867 extern "C"
12868 #endif
12869 char SSL_new ();
12870 int
12871 main ()
12872 {
12873 return SSL_new ();
12874 ;
12875 return 0;
12876 }
12877 _ACEOF
12878 for ac_lib in '' ssl; do
12879 if test -z "$ac_lib"; then
12880 ac_res="none required"
12881 else
12882 ac_res=-l$ac_lib
12883 LIBS="-l$ac_lib -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
12884 fi
12885 if ac_fn_c_try_link "$LINENO"; then :
12886 ac_cv_search_SSL_new=$ac_res
12887 fi
12888 rm -f core conftest.err conftest.$ac_objext \
12889 conftest$ac_exeext
12890 if ${ac_cv_search_SSL_new+:} false; then :
12891 break
12892 fi
12893 done
12894 if ${ac_cv_search_SSL_new+:} false; then :
12895
12896 else
12897 ac_cv_search_SSL_new=no
12898 fi
12899 rm conftest.$ac_ext
12900 LIBS=$ac_func_search_save_LIBS
12901 fi
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
12903 $as_echo "$ac_cv_search_SSL_new" >&6; }
12904 ac_res=$ac_cv_search_SSL_new
12905 if test "$ac_res" != no; then :
12906 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12907 have_openssl=yes
12908 OPENSSL_LIBS="$LIBS -lcrypto $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
12909 else
12910 have_openssl=no
12911 fi
12912
12913 LIBS="$save_LIBS"
12914 ;;
12915 esac
12916
12917
12918 case "$have_openssl" in
12919 yes)
12920 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
12921 ;;
12922 esac
12923 ;;
12924 esac
12925
12926 # check if we have and should use openssl
12927 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
12928 OPENSSL_TRUE=
12929 OPENSSL_FALSE='#'
12930 else
12931 OPENSSL_TRUE='#'
12932 OPENSSL_FALSE=
12933 fi
12934
12935
12936
12937 for ac_header in \
12938 arpa/inet.h \
12939 fcntl.h \
12940 ifaddrs.h \
12941 mach/mach_time.h \
12942 netdb.h \
12943 netinet/in.h \
12944 netinet/in6.h \
12945 netinet/tcp.h \
12946 poll.h \
12947 port.h \
12948 stdarg.h \
12949 stddef.h \
12950 sys/devpoll.h \
12951 sys/epoll.h \
12952 sys/event.h \
12953 sys/eventfd.h \
12954 sys/ioctl.h \
12955 sys/mman.h \
12956 sys/param.h \
12957 sys/queue.h \
12958 sys/resource.h \
12959 sys/select.h \
12960 sys/sendfile.h \
12961 sys/socket.h \
12962 sys/stat.h \
12963 sys/time.h \
12964 sys/timerfd.h \
12965 sys/uio.h \
12966 sys/wait.h \
12967
12968 do :
12969 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12970 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12971 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12972 cat >>confdefs.h <<_ACEOF
12973 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12974 _ACEOF
12975
12976 fi
12977
12978 done
12979
12980
12981 for ac_header in sys/sysctl.h
12982 do :
12983 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
12984 #ifdef HAVE_SYS_PARAM_H
12985 #include <sys/param.h>
12986 #endif
12987
12988 "
12989 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
12990 cat >>confdefs.h <<_ACEOF
12991 #define HAVE_SYS_SYSCTL_H 1
12992 _ACEOF
12993
12994 fi
12995
12996 done
12997
12998 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
13000 $as_echo_n "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
13001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13002 /* end confdefs.h. */
13003
13004 #include <sys/queue.h>
13005 #ifdef TAILQ_FOREACH
13006 yes
13007 #endif
13008
13009 _ACEOF
13010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13011 $EGREP "yes" >/dev/null 2>&1; then :
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13013 $as_echo "yes" >&6; }
13014
13015 $as_echo "#define HAVE_TAILQFOREACH 1" >>confdefs.h
13016
13017 else
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13019 $as_echo "no" >&6; }
13020
13021 fi
13022 rm -f conftest*
13023
13024 fi
13025
13026 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
13028 $as_echo_n "checking for timeradd in sys/time.h... " >&6; }
13029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13030 /* end confdefs.h. */
13031
13032 #include <sys/time.h>
13033 #ifdef timeradd
13034 yes
13035 #endif
13036
13037 _ACEOF
13038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13039 $EGREP "yes" >/dev/null 2>&1; then :
13040
13041 $as_echo "#define HAVE_TIMERADD 1" >>confdefs.h
13042
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13044 $as_echo "yes" >&6; }
13045 else
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13047 $as_echo "no" >&6; }
13048
13049 fi
13050 rm -f conftest*
13051
13052 fi
13053
13054 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
13056 $as_echo_n "checking for timercmp in sys/time.h... " >&6; }
13057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13058 /* end confdefs.h. */
13059
13060 #include <sys/time.h>
13061 #ifdef timercmp
13062 yes
13063 #endif
13064
13065 _ACEOF
13066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13067 $EGREP "yes" >/dev/null 2>&1; then :
13068
13069 $as_echo "#define HAVE_TIMERCMP 1" >>confdefs.h
13070
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13072 $as_echo "yes" >&6; }
13073 else
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13075 $as_echo "no" >&6; }
13076
13077 fi
13078 rm -f conftest*
13079
13080 fi
13081
13082 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
13084 $as_echo_n "checking for timerclear in sys/time.h... " >&6; }
13085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086 /* end confdefs.h. */
13087
13088 #include <sys/time.h>
13089 #ifdef timerclear
13090 yes
13091 #endif
13092
13093 _ACEOF
13094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13095 $EGREP "yes" >/dev/null 2>&1; then :
13096
13097 $as_echo "#define HAVE_TIMERCLEAR 1" >>confdefs.h
13098
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13100 $as_echo "yes" >&6; }
13101 else
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13103 $as_echo "no" >&6; }
13104
13105 fi
13106 rm -f conftest*
13107
13108 fi
13109
13110 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
13112 $as_echo_n "checking for timerisset in sys/time.h... " >&6; }
13113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114 /* end confdefs.h. */
13115
13116 #include <sys/time.h>
13117 #ifdef timerisset
13118 yes
13119 #endif
13120
13121 _ACEOF
13122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13123 $EGREP "yes" >/dev/null 2>&1; then :
13124
13125 $as_echo "#define HAVE_TIMERISSET 1" >>confdefs.h
13126
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13128 $as_echo "yes" >&6; }
13129 else
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13131 $as_echo "no" >&6; }
13132
13133 fi
13134 rm -f conftest*
13135
13136 fi
13137
13138 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
13139 ac_fn_c_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
13140 #include <sys/sysctl.h>
13141
13142 "
13143 if test "x$ac_cv_have_decl_CTL_KERN" = xyes; then :
13144 ac_have_decl=1
13145 else
13146 ac_have_decl=0
13147 fi
13148
13149 cat >>confdefs.h <<_ACEOF
13150 #define HAVE_DECL_CTL_KERN $ac_have_decl
13151 _ACEOF
13152 ac_fn_c_check_decl "$LINENO" "KERN_RANDOM" "ac_cv_have_decl_KERN_RANDOM" "#include <sys/types.h>
13153 #include <sys/sysctl.h>
13154
13155 "
13156 if test "x$ac_cv_have_decl_KERN_RANDOM" = xyes; then :
13157 ac_have_decl=1
13158 else
13159 ac_have_decl=0
13160 fi
13161
13162 cat >>confdefs.h <<_ACEOF
13163 #define HAVE_DECL_KERN_RANDOM $ac_have_decl
13164 _ACEOF
13165 ac_fn_c_check_decl "$LINENO" "RANDOM_UUID" "ac_cv_have_decl_RANDOM_UUID" "#include <sys/types.h>
13166 #include <sys/sysctl.h>
13167
13168 "
13169 if test "x$ac_cv_have_decl_RANDOM_UUID" = xyes; then :
13170 ac_have_decl=1
13171 else
13172 ac_have_decl=0
13173 fi
13174
13175 cat >>confdefs.h <<_ACEOF
13176 #define HAVE_DECL_RANDOM_UUID $ac_have_decl
13177 _ACEOF
13178 ac_fn_c_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
13179 #include <sys/sysctl.h>
13180
13181 "
13182 if test "x$ac_cv_have_decl_KERN_ARND" = xyes; then :
13183 ac_have_decl=1
13184 else
13185 ac_have_decl=0
13186 fi
13187
13188 cat >>confdefs.h <<_ACEOF
13189 #define HAVE_DECL_KERN_ARND $ac_have_decl
13190 _ACEOF
13191
13192 fi
13193
13194 if test x$bwin32 = xtrue; then
13195 BUILD_WIN32_TRUE=
13196 BUILD_WIN32_FALSE='#'
13197 else
13198 BUILD_WIN32_TRUE='#'
13199 BUILD_WIN32_FALSE=
13200 fi
13201
13202 if test x$cygwin = xtrue; then
13203 BUILD_CYGWIN_TRUE=
13204 BUILD_CYGWIN_FALSE='#'
13205 else
13206 BUILD_CYGWIN_TRUE='#'
13207 BUILD_CYGWIN_FALSE=
13208 fi
13209
13210 if test x$bwin32 = xtrue || test x$cygwin = xtrue; then
13211 BUILD_WITH_NO_UNDEFINED_TRUE=
13212 BUILD_WITH_NO_UNDEFINED_FALSE='#'
13213 else
13214 BUILD_WITH_NO_UNDEFINED_TRUE='#'
13215 BUILD_WITH_NO_UNDEFINED_FALSE=
13216 fi
13217
13218
13219 if test x$bwin32 = xtrue; then
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getservbyname" >&5
13221 $as_echo_n "checking for library containing getservbyname... " >&6; }
13222 if ${ac_cv_search_getservbyname+:} false; then :
13223 $as_echo_n "(cached) " >&6
13224 else
13225 ac_func_search_save_LIBS=$LIBS
13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227 /* end confdefs.h. */
13228
13229 /* Override any GCC internal prototype to avoid an error.
13230 Use char because int might match the return type of a GCC
13231 builtin and then its argument prototype would still apply. */
13232 #ifdef __cplusplus
13233 extern "C"
13234 #endif
13235 char getservbyname ();
13236 int
13237 main ()
13238 {
13239 return getservbyname ();
13240 ;
13241 return 0;
13242 }
13243 _ACEOF
13244 for ac_lib in '' ws2_32; do
13245 if test -z "$ac_lib"; then
13246 ac_res="none required"
13247 else
13248 ac_res=-l$ac_lib
13249 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13250 fi
13251 if ac_fn_c_try_link "$LINENO"; then :
13252 ac_cv_search_getservbyname=$ac_res
13253 fi
13254 rm -f core conftest.err conftest.$ac_objext \
13255 conftest$ac_exeext
13256 if ${ac_cv_search_getservbyname+:} false; then :
13257 break
13258 fi
13259 done
13260 if ${ac_cv_search_getservbyname+:} false; then :
13261
13262 else
13263 ac_cv_search_getservbyname=no
13264 fi
13265 rm conftest.$ac_ext
13266 LIBS=$ac_func_search_save_LIBS
13267 fi
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getservbyname" >&5
13269 $as_echo "$ac_cv_search_getservbyname" >&6; }
13270 ac_res=$ac_cv_search_getservbyname
13271 if test "$ac_res" != no; then :
13272 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13273
13274 fi
13275
13276 fi
13277
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13279 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13280 if ${ac_cv_c_const+:} false; then :
13281 $as_echo_n "(cached) " >&6
13282 else
13283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13285
13286 int
13287 main ()
13288 {
13289 /* FIXME: Include the comments suggested by Paul. */
13290 #ifndef __cplusplus
13291 /* Ultrix mips cc rejects this. */
13292 typedef int charset[2];
13293 const charset cs;
13294 /* SunOS 4.1.1 cc rejects this. */
13295 char const *const *pcpcc;
13296 char **ppc;
13297 /* NEC SVR4.0.2 mips cc rejects this. */
13298 struct point {int x, y;};
13299 static struct point const zero = {0,0};
13300 /* AIX XL C 1.02.0.0 rejects this.
13301 It does not let you subtract one const X* pointer from another in
13302 an arm of an if-expression whose if-part is not a constant
13303 expression */
13304 const char *g = "string";
13305 pcpcc = &g + (g ? g-g : 0);
13306 /* HPUX 7.0 cc rejects these. */
13307 ++pcpcc;
13308 ppc = (char**) pcpcc;
13309 pcpcc = (char const *const *) ppc;
13310 { /* SCO 3.2v4 cc rejects this. */
13311 char *t;
13312 char const *s = 0 ? (char *) 0 : (char const *) 0;
13313
13314 *t++ = 0;
13315 if (s) return 0;
13316 }
13317 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13318 int x[] = {25, 17};
13319 const int *foo = &x[0];
13320 ++foo;
13321 }
13322 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13323 typedef const int *iptr;
13324 iptr p = 0;
13325 ++p;
13326 }
13327 { /* AIX XL C 1.02.0.0 rejects this saying
13328 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13329 struct s { int j; const int *ap[3]; };
13330 struct s *b; b->j = 5;
13331 }
13332 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13333 const int foo = 10;
13334 if (!foo) return 0;
13335 }
13336 return !cs[0] && !zero.x;
13337 #endif
13338
13339 ;
13340 return 0;
13341 }
13342 _ACEOF
13343 if ac_fn_c_try_compile "$LINENO"; then :
13344 ac_cv_c_const=yes
13345 else
13346 ac_cv_c_const=no
13347 fi
13348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13349 fi
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13351 $as_echo "$ac_cv_c_const" >&6; }
13352 if test $ac_cv_c_const = no; then
13353
13354 $as_echo "#define const /**/" >>confdefs.h
13355
13356 fi
13357
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13359 $as_echo_n "checking for inline... " >&6; }
13360 if ${ac_cv_c_inline+:} false; then :
13361 $as_echo_n "(cached) " >&6
13362 else
13363 ac_cv_c_inline=no
13364 for ac_kw in inline __inline__ __inline; do
13365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13366 /* end confdefs.h. */
13367 #ifndef __cplusplus
13368 typedef int foo_t;
13369 static $ac_kw foo_t static_foo () {return 0; }
13370 $ac_kw foo_t foo () {return 0; }
13371 #endif
13372
13373 _ACEOF
13374 if ac_fn_c_try_compile "$LINENO"; then :
13375 ac_cv_c_inline=$ac_kw
13376 fi
13377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378 test "$ac_cv_c_inline" != no && break
13379 done
13380
13381 fi
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13383 $as_echo "$ac_cv_c_inline" >&6; }
13384
13385 case $ac_cv_c_inline in
13386 inline | yes) ;;
13387 *)
13388 case $ac_cv_c_inline in
13389 no) ac_val=;;
13390 *) ac_val=$ac_cv_c_inline;;
13391 esac
13392 cat >>confdefs.h <<_ACEOF
13393 #ifndef __cplusplus
13394 #define inline $ac_val
13395 #endif
13396 _ACEOF
13397 ;;
13398 esac
13399
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13401 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13402 if ${ac_cv_header_time+:} false; then :
13403 $as_echo_n "(cached) " >&6
13404 else
13405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13406 /* end confdefs.h. */
13407 #include <sys/types.h>
13408 #include <sys/time.h>
13409 #include <time.h>
13410
13411 int
13412 main ()
13413 {
13414 if ((struct tm *) 0)
13415 return 0;
13416 ;
13417 return 0;
13418 }
13419 _ACEOF
13420 if ac_fn_c_try_compile "$LINENO"; then :
13421 ac_cv_header_time=yes
13422 else
13423 ac_cv_header_time=no
13424 fi
13425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13426 fi
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13428 $as_echo "$ac_cv_header_time" >&6; }
13429 if test $ac_cv_header_time = yes; then
13430
13431 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13432
13433 fi
13434
13435
13436 for ac_func in \
13437 accept4 \
13438 arc4random \
13439 arc4random_buf \
13440 clock_gettime \
13441 eventfd \
13442 epoll_create1 \
13443 fcntl \
13444 getegid \
13445 geteuid \
13446 getifaddrs \
13447 getnameinfo \
13448 getprotobynumber \
13449 gettimeofday \
13450 inet_aton \
13451 inet_ntop \
13452 inet_pton \
13453 issetugid \
13454 mach_absolute_time \
13455 mmap \
13456 nanosleep \
13457 pipe \
13458 pipe2 \
13459 putenv \
13460 sendfile \
13461 setenv \
13462 setrlimit \
13463 sigaction \
13464 signal \
13465 splice \
13466 strlcpy \
13467 strsep \
13468 strtok_r \
13469 strtoll \
13470 sysctl \
13471 timerfd_create \
13472 umask \
13473 unsetenv \
13474 usleep \
13475 vasprintf \
13476
13477 do :
13478 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13479 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13480 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13481 cat >>confdefs.h <<_ACEOF
13482 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13483 _ACEOF
13484
13485 fi
13486 done
13487
13488
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
13490 $as_echo_n "checking for getaddrinfo... " >&6; }
13491 if ${libevent_cv_getaddrinfo+:} false; then :
13492 $as_echo_n "(cached) " >&6
13493 else
13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h. */
13496
13497 #ifdef HAVE_NETDB_H
13498 #include <netdb.h>
13499 #endif
13500
13501 int
13502 main ()
13503 {
13504
13505 getaddrinfo;
13506
13507
13508 ;
13509 return 0;
13510 }
13511 _ACEOF
13512 if ac_fn_c_try_link "$LINENO"; then :
13513 libevent_cv_getaddrinfo=yes
13514 else
13515 libevent_cv_getaddrinfo=no
13516
13517 fi
13518 rm -f core conftest.err conftest.$ac_objext \
13519 conftest$ac_exeext conftest.$ac_ext
13520
13521 fi
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
13523 $as_echo "$libevent_cv_getaddrinfo" >&6; }
13524 if test "$libevent_cv_getaddrinfo" = "yes" ; then
13525
13526 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
13527
13528 else
13529
13530 for ac_func in getservbyname
13531 do :
13532 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
13533 if test "x$ac_cv_func_getservbyname" = xyes; then :
13534 cat >>confdefs.h <<_ACEOF
13535 #define HAVE_GETSERVBYNAME 1
13536 _ACEOF
13537
13538 fi
13539 done
13540
13541 # Check for gethostbyname_r in all its glorious incompatible versions.
13542 # (This is cut-and-pasted from Tor, which based its logic on
13543 # Python's configure.in.)
13544
13545
13546 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
13547 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
13548
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
13550 $as_echo_n "checking how many arguments gethostbyname_r() wants... " >&6; }
13551 OLD_CFLAGS=$CFLAGS
13552 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
13553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13554 /* end confdefs.h. */
13555
13556 #include <netdb.h>
13557
13558 int
13559 main ()
13560 {
13561
13562 char *cp1, *cp2;
13563 struct hostent *h1, *h2;
13564 int i1, i2;
13565 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
13566
13567 ;
13568 return 0;
13569 }
13570 _ACEOF
13571 if ac_fn_c_try_compile "$LINENO"; then :
13572
13573 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13574
13575
13576 $as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
13577
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6" >&5
13579 $as_echo "6" >&6; }
13580
13581 else
13582
13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h. */
13585
13586 #include <netdb.h>
13587
13588 int
13589 main ()
13590 {
13591
13592 char *cp1, *cp2;
13593 struct hostent *h1;
13594 int i1, i2;
13595 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
13596
13597 ;
13598 return 0;
13599 }
13600 _ACEOF
13601 if ac_fn_c_try_compile "$LINENO"; then :
13602
13603 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13604
13605
13606 $as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
13607
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 5" >&5
13609 $as_echo "5" >&6; }
13610
13611 else
13612
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h. */
13615
13616 #include <netdb.h>
13617
13618 int
13619 main ()
13620 {
13621
13622 char *cp1;
13623 struct hostent *h1;
13624 struct hostent_data hd;
13625 (void) gethostbyname_r(cp1,h1,&hd);
13626
13627 ;
13628 return 0;
13629 }
13630 _ACEOF
13631 if ac_fn_c_try_compile "$LINENO"; then :
13632
13633 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
13634
13635
13636 $as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
13637
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 3" >&5
13639 $as_echo "3" >&6; }
13640
13641 else
13642
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 0" >&5
13644 $as_echo "0" >&6; }
13645
13646 fi
13647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13648
13649 fi
13650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13651
13652 fi
13653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13654 CFLAGS=$OLD_CFLAGS
13655
13656 fi
13657
13658
13659 fi
13660
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
13662 $as_echo_n "checking for F_SETFD in fcntl.h... " >&6; }
13663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13664 /* end confdefs.h. */
13665
13666 #define _GNU_SOURCE
13667 #include <fcntl.h>
13668 #ifdef F_SETFD
13669 yes
13670 #endif
13671
13672 _ACEOF
13673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13674 $EGREP "yes" >/dev/null 2>&1; then :
13675
13676 $as_echo "#define HAVE_SETFD 1" >>confdefs.h
13677
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13679 $as_echo "yes" >&6; }
13680 else
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13682 $as_echo "no" >&6; }
13683 fi
13684 rm -f conftest*
13685
13686
13687 needsignal=no
13688 haveselect=no
13689 if test x$bwin32 != xtrue; then
13690 for ac_func in select
13691 do :
13692 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
13693 if test "x$ac_cv_func_select" = xyes; then :
13694 cat >>confdefs.h <<_ACEOF
13695 #define HAVE_SELECT 1
13696 _ACEOF
13697 haveselect=yes
13698 fi
13699 done
13700
13701 if test "x$haveselect" = "xyes" ; then
13702 needsignal=yes
13703 fi
13704 fi
13705 if test "x$haveselect" = "xyes"; then
13706 SELECT_BACKEND_TRUE=
13707 SELECT_BACKEND_FALSE='#'
13708 else
13709 SELECT_BACKEND_TRUE='#'
13710 SELECT_BACKEND_FALSE=
13711 fi
13712
13713
13714 havepoll=no
13715 for ac_func in poll
13716 do :
13717 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
13718 if test "x$ac_cv_func_poll" = xyes; then :
13719 cat >>confdefs.h <<_ACEOF
13720 #define HAVE_POLL 1
13721 _ACEOF
13722 havepoll=yes
13723 fi
13724 done
13725
13726 if test "x$havepoll" = "xyes" ; then
13727 needsignal=yes
13728 fi
13729 if test "x$havepoll" = "xyes"; then
13730 POLL_BACKEND_TRUE=
13731 POLL_BACKEND_FALSE='#'
13732 else
13733 POLL_BACKEND_TRUE='#'
13734 POLL_BACKEND_FALSE=
13735 fi
13736
13737
13738 havedevpoll=no
13739 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13740
13741 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
13742
13743 fi
13744 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
13745 DEVPOLL_BACKEND_TRUE=
13746 DEVPOLL_BACKEND_FALSE='#'
13747 else
13748 DEVPOLL_BACKEND_TRUE='#'
13749 DEVPOLL_BACKEND_FALSE=
13750 fi
13751
13752
13753 havekqueue=no
13754 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
13755 for ac_func in kqueue
13756 do :
13757 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
13758 if test "x$ac_cv_func_kqueue" = xyes; then :
13759 cat >>confdefs.h <<_ACEOF
13760 #define HAVE_KQUEUE 1
13761 _ACEOF
13762 havekqueue=yes
13763 fi
13764 done
13765
13766 if test "x$havekqueue" = "xyes" ; then
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
13768 $as_echo_n "checking for working kqueue... " >&6; }
13769 if test "$cross_compiling" = yes; then :
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13771 $as_echo "no" >&6; }
13772 else
13773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13774 /* end confdefs.h. */
13775 #include <sys/types.h>
13776 #include <sys/time.h>
13777 #include <sys/event.h>
13778 #include <stdio.h>
13779 #include <unistd.h>
13780 #include <fcntl.h>
13781
13782 int
13783 main(int argc, char **argv)
13784 {
13785 int kq;
13786 int n;
13787 int fd[2];
13788 struct kevent ev;
13789 struct timespec ts;
13790 char buf[8000];
13791
13792 if (pipe(fd) == -1)
13793 exit(1);
13794 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
13795 exit(1);
13796
13797 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
13798 ;
13799
13800 if ((kq = kqueue()) == -1)
13801 exit(1);
13802
13803 memset(&ev, 0, sizeof(ev));
13804 ev.ident = fd[1];
13805 ev.filter = EVFILT_WRITE;
13806 ev.flags = EV_ADD | EV_ENABLE;
13807 n = kevent(kq, &ev, 1, NULL, 0, NULL);
13808 if (n == -1)
13809 exit(1);
13810
13811 read(fd[0], buf, sizeof(buf));
13812
13813 ts.tv_sec = 0;
13814 ts.tv_nsec = 0;
13815 n = kevent(kq, NULL, 0, &ev, 1, &ts);
13816 if (n == -1 || n == 0)
13817 exit(1);
13818
13819 exit(0);
13820 }
13821 _ACEOF
13822 if ac_fn_c_try_run "$LINENO"; then :
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13824 $as_echo "yes" >&6; }
13825
13826 $as_echo "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
13827
13828 havekqueue=yes
13829
13830 else
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13832 $as_echo "no" >&6; }
13833 fi
13834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13835 conftest.$ac_objext conftest.beam conftest.$ac_ext
13836 fi
13837
13838 fi
13839 fi
13840 if test "x$havekqueue" = "xyes"; then
13841 KQUEUE_BACKEND_TRUE=
13842 KQUEUE_BACKEND_FALSE='#'
13843 else
13844 KQUEUE_BACKEND_TRUE='#'
13845 KQUEUE_BACKEND_FALSE=
13846 fi
13847
13848
13849 haveepollsyscall=no
13850 haveepoll=no
13851 for ac_func in epoll_ctl
13852 do :
13853 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
13854 if test "x$ac_cv_func_epoll_ctl" = xyes; then :
13855 cat >>confdefs.h <<_ACEOF
13856 #define HAVE_EPOLL_CTL 1
13857 _ACEOF
13858 haveepoll=yes
13859 fi
13860 done
13861
13862 if test "x$haveepoll" = "xyes" ; then
13863
13864 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13865
13866 needsignal=yes
13867 fi
13868 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
13869 if test "x$haveepoll" = "xno" ; then
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
13871 $as_echo_n "checking for epoll system call... " >&6; }
13872 if test "$cross_compiling" = yes; then :
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13874 $as_echo "no" >&6; }
13875 else
13876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13877 /* end confdefs.h. */
13878 #include <stdint.h>
13879 #include <sys/param.h>
13880 #include <sys/types.h>
13881 #include <sys/syscall.h>
13882 #include <sys/epoll.h>
13883 #include <unistd.h>
13884
13885 int
13886 epoll_create(int size)
13887 {
13888 return (syscall(__NR_epoll_create, size));
13889 }
13890
13891 int
13892 main(int argc, char **argv)
13893 {
13894 int epfd;
13895
13896 epfd = epoll_create(256);
13897 exit (epfd == -1 ? 1 : 0);
13898 }
13899 _ACEOF
13900 if ac_fn_c_try_run "$LINENO"; then :
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13902 $as_echo "yes" >&6; }
13903
13904 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
13905
13906 needsignal=yes
13907 have_epoll=yes
13908 case " $LIBOBJS " in
13909 *" epoll_sub.$ac_objext "* ) ;;
13910 *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
13911 ;;
13912 esac
13913
13914
13915 else
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13917 $as_echo "no" >&6; }
13918 fi
13919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13920 conftest.$ac_objext conftest.beam conftest.$ac_ext
13921 fi
13922
13923 fi
13924 fi
13925 if test "x$haveepoll" = "xyes"; then
13926 EPOLL_BACKEND_TRUE=
13927 EPOLL_BACKEND_FALSE='#'
13928 else
13929 EPOLL_BACKEND_TRUE='#'
13930 EPOLL_BACKEND_FALSE=
13931 fi
13932
13933
13934 haveeventports=no
13935 for ac_func in port_create
13936 do :
13937 ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
13938 if test "x$ac_cv_func_port_create" = xyes; then :
13939 cat >>confdefs.h <<_ACEOF
13940 #define HAVE_PORT_CREATE 1
13941 _ACEOF
13942 haveeventports=yes
13943 fi
13944 done
13945
13946 if test "x$haveeventports" = "xyes" ; then
13947
13948 $as_echo "#define HAVE_EVENT_PORTS 1" >>confdefs.h
13949
13950 needsignal=yes
13951 fi
13952 if test "x$haveeventports" = "xyes"; then
13953 EVPORT_BACKEND_TRUE=
13954 EVPORT_BACKEND_FALSE='#'
13955 else
13956 EVPORT_BACKEND_TRUE='#'
13957 EVPORT_BACKEND_FALSE=
13958 fi
13959
13960
13961 if test "x$bwin32" = "xtrue"; then
13962 needsignal=yes
13963 fi
13964
13965 if test "x$needsignal" = "xyes"; then
13966 SIGNAL_SUPPORT_TRUE=
13967 SIGNAL_SUPPORT_FALSE='#'
13968 else
13969 SIGNAL_SUPPORT_TRUE='#'
13970 SIGNAL_SUPPORT_FALSE=
13971 fi
13972
13973
13974 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13975 if test "x$ac_cv_type_pid_t" = xyes; then :
13976
13977 else
13978
13979 cat >>confdefs.h <<_ACEOF
13980 #define pid_t int
13981 _ACEOF
13982
13983 fi
13984
13985 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13986 if test "x$ac_cv_type_size_t" = xyes; then :
13987
13988 else
13989
13990 cat >>confdefs.h <<_ACEOF
13991 #define size_t unsigned int
13992 _ACEOF
13993
13994 fi
13995
13996 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13997 if test "x$ac_cv_type_ssize_t" = xyes; then :
13998
13999 else
14000
14001 cat >>confdefs.h <<_ACEOF
14002 #define ssize_t int
14003 _ACEOF
14004
14005 fi
14006
14007
14008 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
14009 #include <stdint.h>
14010 #elif defined(HAVE_INTTYPES_H)
14011 #include <inttypes.h>
14012 #endif
14013 #ifdef HAVE_SYS_TYPES_H
14014 #include <sys/types.h>
14015 #endif
14016 "
14017 if test "x$ac_cv_type_uint64_t" = xyes; then :
14018
14019 cat >>confdefs.h <<_ACEOF
14020 #define HAVE_UINT64_T 1
14021 _ACEOF
14022
14023
14024 fi
14025 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
14026 #include <stdint.h>
14027 #elif defined(HAVE_INTTYPES_H)
14028 #include <inttypes.h>
14029 #endif
14030 #ifdef HAVE_SYS_TYPES_H
14031 #include <sys/types.h>
14032 #endif
14033 "
14034 if test "x$ac_cv_type_uint32_t" = xyes; then :
14035
14036 cat >>confdefs.h <<_ACEOF
14037 #define HAVE_UINT32_T 1
14038 _ACEOF
14039
14040
14041 fi
14042 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
14043 #include <stdint.h>
14044 #elif defined(HAVE_INTTYPES_H)
14045 #include <inttypes.h>
14046 #endif
14047 #ifdef HAVE_SYS_TYPES_H
14048 #include <sys/types.h>
14049 #endif
14050 "
14051 if test "x$ac_cv_type_uint16_t" = xyes; then :
14052
14053 cat >>confdefs.h <<_ACEOF
14054 #define HAVE_UINT16_T 1
14055 _ACEOF
14056
14057
14058 fi
14059 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
14060 #include <stdint.h>
14061 #elif defined(HAVE_INTTYPES_H)
14062 #include <inttypes.h>
14063 #endif
14064 #ifdef HAVE_SYS_TYPES_H
14065 #include <sys/types.h>
14066 #endif
14067 "
14068 if test "x$ac_cv_type_uint8_t" = xyes; then :
14069
14070 cat >>confdefs.h <<_ACEOF
14071 #define HAVE_UINT8_T 1
14072 _ACEOF
14073
14074
14075 fi
14076 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
14077 #include <stdint.h>
14078 #elif defined(HAVE_INTTYPES_H)
14079 #include <inttypes.h>
14080 #endif
14081 #ifdef HAVE_SYS_TYPES_H
14082 #include <sys/types.h>
14083 #endif
14084 "
14085 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14086
14087 cat >>confdefs.h <<_ACEOF
14088 #define HAVE_UINTPTR_T 1
14089 _ACEOF
14090
14091
14092 fi
14093
14094
14095 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
14096 #include <sys/types.h>
14097 #endif
14098 #ifdef HAVE_SYS_SELECT_H
14099 #include <sys/select.h>
14100 #endif
14101 "
14102 if test "x$ac_cv_type_fd_mask" = xyes; then :
14103
14104 cat >>confdefs.h <<_ACEOF
14105 #define HAVE_FD_MASK 1
14106 _ACEOF
14107
14108
14109 fi
14110
14111
14112 # The cast to long int works around a bug in the HP C Compiler
14113 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14114 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14115 # This bug is HP SR number 8606223364.
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
14117 $as_echo_n "checking size of long long... " >&6; }
14118 if ${ac_cv_sizeof_long_long+:} false; then :
14119 $as_echo_n "(cached) " >&6
14120 else
14121 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
14122
14123 else
14124 if test "$ac_cv_type_long_long" = yes; then
14125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14127 as_fn_error 77 "cannot compute sizeof (long long)
14128 See \`config.log' for more details" "$LINENO" 5; }
14129 else
14130 ac_cv_sizeof_long_long=0
14131 fi
14132 fi
14133
14134 fi
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
14136 $as_echo "$ac_cv_sizeof_long_long" >&6; }
14137
14138
14139
14140 cat >>confdefs.h <<_ACEOF
14141 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14142 _ACEOF
14143
14144
14145 # The cast to long int works around a bug in the HP C Compiler
14146 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14147 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14148 # This bug is HP SR number 8606223364.
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14150 $as_echo_n "checking size of long... " >&6; }
14151 if ${ac_cv_sizeof_long+:} false; then :
14152 $as_echo_n "(cached) " >&6
14153 else
14154 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14155
14156 else
14157 if test "$ac_cv_type_long" = yes; then
14158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14160 as_fn_error 77 "cannot compute sizeof (long)
14161 See \`config.log' for more details" "$LINENO" 5; }
14162 else
14163 ac_cv_sizeof_long=0
14164 fi
14165 fi
14166
14167 fi
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14169 $as_echo "$ac_cv_sizeof_long" >&6; }
14170
14171
14172
14173 cat >>confdefs.h <<_ACEOF
14174 #define SIZEOF_LONG $ac_cv_sizeof_long
14175 _ACEOF
14176
14177
14178 # The cast to long int works around a bug in the HP C Compiler
14179 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14180 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14181 # This bug is HP SR number 8606223364.
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14183 $as_echo_n "checking size of int... " >&6; }
14184 if ${ac_cv_sizeof_int+:} false; then :
14185 $as_echo_n "(cached) " >&6
14186 else
14187 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14188
14189 else
14190 if test "$ac_cv_type_int" = yes; then
14191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14193 as_fn_error 77 "cannot compute sizeof (int)
14194 See \`config.log' for more details" "$LINENO" 5; }
14195 else
14196 ac_cv_sizeof_int=0
14197 fi
14198 fi
14199
14200 fi
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14202 $as_echo "$ac_cv_sizeof_int" >&6; }
14203
14204
14205
14206 cat >>confdefs.h <<_ACEOF
14207 #define SIZEOF_INT $ac_cv_sizeof_int
14208 _ACEOF
14209
14210
14211 # The cast to long int works around a bug in the HP C Compiler
14212 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14213 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14214 # This bug is HP SR number 8606223364.
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14216 $as_echo_n "checking size of short... " >&6; }
14217 if ${ac_cv_sizeof_short+:} false; then :
14218 $as_echo_n "(cached) " >&6
14219 else
14220 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14221
14222 else
14223 if test "$ac_cv_type_short" = yes; then
14224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14226 as_fn_error 77 "cannot compute sizeof (short)
14227 See \`config.log' for more details" "$LINENO" 5; }
14228 else
14229 ac_cv_sizeof_short=0
14230 fi
14231 fi
14232
14233 fi
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14235 $as_echo "$ac_cv_sizeof_short" >&6; }
14236
14237
14238
14239 cat >>confdefs.h <<_ACEOF
14240 #define SIZEOF_SHORT $ac_cv_sizeof_short
14241 _ACEOF
14242
14243
14244 # The cast to long int works around a bug in the HP C Compiler
14245 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14246 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14247 # This bug is HP SR number 8606223364.
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14249 $as_echo_n "checking size of size_t... " >&6; }
14250 if ${ac_cv_sizeof_size_t+:} false; then :
14251 $as_echo_n "(cached) " >&6
14252 else
14253 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14254
14255 else
14256 if test "$ac_cv_type_size_t" = yes; then
14257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14259 as_fn_error 77 "cannot compute sizeof (size_t)
14260 See \`config.log' for more details" "$LINENO" 5; }
14261 else
14262 ac_cv_sizeof_size_t=0
14263 fi
14264 fi
14265
14266 fi
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14268 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14269
14270
14271
14272 cat >>confdefs.h <<_ACEOF
14273 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14274 _ACEOF
14275
14276
14277 # The cast to long int works around a bug in the HP C Compiler
14278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14280 # This bug is HP SR number 8606223364.
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14282 $as_echo_n "checking size of void *... " >&6; }
14283 if ${ac_cv_sizeof_void_p+:} false; then :
14284 $as_echo_n "(cached) " >&6
14285 else
14286 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
14287
14288 else
14289 if test "$ac_cv_type_void_p" = yes; then
14290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14292 as_fn_error 77 "cannot compute sizeof (void *)
14293 See \`config.log' for more details" "$LINENO" 5; }
14294 else
14295 ac_cv_sizeof_void_p=0
14296 fi
14297 fi
14298
14299 fi
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
14301 $as_echo "$ac_cv_sizeof_void_p" >&6; }
14302
14303
14304
14305 cat >>confdefs.h <<_ACEOF
14306 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14307 _ACEOF
14308
14309
14310 # The cast to long int works around a bug in the HP C Compiler
14311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14312 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14313 # This bug is HP SR number 8606223364.
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
14315 $as_echo_n "checking size of off_t... " >&6; }
14316 if ${ac_cv_sizeof_off_t+:} false; then :
14317 $as_echo_n "(cached) " >&6
14318 else
14319 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
14320
14321 else
14322 if test "$ac_cv_type_off_t" = yes; then
14323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14325 as_fn_error 77 "cannot compute sizeof (off_t)
14326 See \`config.log' for more details" "$LINENO" 5; }
14327 else
14328 ac_cv_sizeof_off_t=0
14329 fi
14330 fi
14331
14332 fi
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
14334 $as_echo "$ac_cv_sizeof_off_t" >&6; }
14335
14336
14337
14338 cat >>confdefs.h <<_ACEOF
14339 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
14340 _ACEOF
14341
14342
14343
14344 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE
14345 #include <sys/types.h>
14346 #ifdef HAVE_NETINET_IN_H
14347 #include <netinet/in.h>
14348 #endif
14349 #ifdef HAVE_NETINET_IN6_H
14350 #include <netinet/in6.h>
14351 #endif
14352 #ifdef HAVE_SYS_SOCKET_H
14353 #include <sys/socket.h>
14354 #endif
14355 #ifdef HAVE_NETDB_H
14356 #include <netdb.h>
14357 #endif
14358 #ifdef _WIN32
14359 #define WIN32_WINNT 0x400
14360 #define _WIN32_WINNT 0x400
14361 #define WIN32_LEAN_AND_MEAN
14362 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14363 #include <winsock.h>
14364 #else
14365 #include <winsock2.h>
14366 #include <ws2tcpip.h>
14367 #endif
14368 #endif
14369
14370 "
14371 if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
14372
14373 cat >>confdefs.h <<_ACEOF
14374 #define HAVE_STRUCT_IN6_ADDR 1
14375 _ACEOF
14376
14377
14378 fi
14379 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE
14380 #include <sys/types.h>
14381 #ifdef HAVE_NETINET_IN_H
14382 #include <netinet/in.h>
14383 #endif
14384 #ifdef HAVE_NETINET_IN6_H
14385 #include <netinet/in6.h>
14386 #endif
14387 #ifdef HAVE_SYS_SOCKET_H
14388 #include <sys/socket.h>
14389 #endif
14390 #ifdef HAVE_NETDB_H
14391 #include <netdb.h>
14392 #endif
14393 #ifdef _WIN32
14394 #define WIN32_WINNT 0x400
14395 #define _WIN32_WINNT 0x400
14396 #define WIN32_LEAN_AND_MEAN
14397 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14398 #include <winsock.h>
14399 #else
14400 #include <winsock2.h>
14401 #include <ws2tcpip.h>
14402 #endif
14403 #endif
14404
14405 "
14406 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
14407
14408 cat >>confdefs.h <<_ACEOF
14409 #define HAVE_STRUCT_SOCKADDR_IN6 1
14410 _ACEOF
14411
14412
14413 fi
14414 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE
14415 #include <sys/types.h>
14416 #ifdef HAVE_NETINET_IN_H
14417 #include <netinet/in.h>
14418 #endif
14419 #ifdef HAVE_NETINET_IN6_H
14420 #include <netinet/in6.h>
14421 #endif
14422 #ifdef HAVE_SYS_SOCKET_H
14423 #include <sys/socket.h>
14424 #endif
14425 #ifdef HAVE_NETDB_H
14426 #include <netdb.h>
14427 #endif
14428 #ifdef _WIN32
14429 #define WIN32_WINNT 0x400
14430 #define _WIN32_WINNT 0x400
14431 #define WIN32_LEAN_AND_MEAN
14432 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14433 #include <winsock.h>
14434 #else
14435 #include <winsock2.h>
14436 #include <ws2tcpip.h>
14437 #endif
14438 #endif
14439
14440 "
14441 if test "x$ac_cv_type_sa_family_t" = xyes; then :
14442
14443 cat >>confdefs.h <<_ACEOF
14444 #define HAVE_SA_FAMILY_T 1
14445 _ACEOF
14446
14447
14448 fi
14449 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE
14450 #include <sys/types.h>
14451 #ifdef HAVE_NETINET_IN_H
14452 #include <netinet/in.h>
14453 #endif
14454 #ifdef HAVE_NETINET_IN6_H
14455 #include <netinet/in6.h>
14456 #endif
14457 #ifdef HAVE_SYS_SOCKET_H
14458 #include <sys/socket.h>
14459 #endif
14460 #ifdef HAVE_NETDB_H
14461 #include <netdb.h>
14462 #endif
14463 #ifdef _WIN32
14464 #define WIN32_WINNT 0x400
14465 #define _WIN32_WINNT 0x400
14466 #define WIN32_LEAN_AND_MEAN
14467 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14468 #include <winsock.h>
14469 #else
14470 #include <winsock2.h>
14471 #include <ws2tcpip.h>
14472 #endif
14473 #endif
14474
14475 "
14476 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
14477
14478 cat >>confdefs.h <<_ACEOF
14479 #define HAVE_STRUCT_ADDRINFO 1
14480 _ACEOF
14481
14482
14483 fi
14484 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE
14485 #include <sys/types.h>
14486 #ifdef HAVE_NETINET_IN_H
14487 #include <netinet/in.h>
14488 #endif
14489 #ifdef HAVE_NETINET_IN6_H
14490 #include <netinet/in6.h>
14491 #endif
14492 #ifdef HAVE_SYS_SOCKET_H
14493 #include <sys/socket.h>
14494 #endif
14495 #ifdef HAVE_NETDB_H
14496 #include <netdb.h>
14497 #endif
14498 #ifdef _WIN32
14499 #define WIN32_WINNT 0x400
14500 #define _WIN32_WINNT 0x400
14501 #define WIN32_LEAN_AND_MEAN
14502 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14503 #include <winsock.h>
14504 #else
14505 #include <winsock2.h>
14506 #include <ws2tcpip.h>
14507 #endif
14508 #endif
14509
14510 "
14511 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
14512
14513 cat >>confdefs.h <<_ACEOF
14514 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14515 _ACEOF
14516
14517
14518 fi
14519
14520 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
14521 #ifdef HAVE_NETINET_IN_H
14522 #include <netinet/in.h>
14523 #endif
14524 #ifdef HAVE_NETINET_IN6_H
14525 #include <netinet/in6.h>
14526 #endif
14527 #ifdef HAVE_SYS_SOCKET_H
14528 #include <sys/socket.h>
14529 #endif
14530 #ifdef _WIN32
14531 #define WIN32_WINNT 0x400
14532 #define _WIN32_WINNT 0x400
14533 #define WIN32_LEAN_AND_MEAN
14534 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14535 #include <winsock.h>
14536 #else
14537 #include <winsock2.h>
14538 #include <ws2tcpip.h>
14539 #endif
14540 #endif
14541
14542 "
14543 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes; then :
14544
14545 cat >>confdefs.h <<_ACEOF
14546 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1
14547 _ACEOF
14548
14549
14550 fi
14551 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
14552 #ifdef HAVE_NETINET_IN_H
14553 #include <netinet/in.h>
14554 #endif
14555 #ifdef HAVE_NETINET_IN6_H
14556 #include <netinet/in6.h>
14557 #endif
14558 #ifdef HAVE_SYS_SOCKET_H
14559 #include <sys/socket.h>
14560 #endif
14561 #ifdef _WIN32
14562 #define WIN32_WINNT 0x400
14563 #define _WIN32_WINNT 0x400
14564 #define WIN32_LEAN_AND_MEAN
14565 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14566 #include <winsock.h>
14567 #else
14568 #include <winsock2.h>
14569 #include <ws2tcpip.h>
14570 #endif
14571 #endif
14572
14573 "
14574 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes; then :
14575
14576 cat >>confdefs.h <<_ACEOF
14577 #define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1
14578 _ACEOF
14579
14580
14581 fi
14582 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
14583 #ifdef HAVE_NETINET_IN_H
14584 #include <netinet/in.h>
14585 #endif
14586 #ifdef HAVE_NETINET_IN6_H
14587 #include <netinet/in6.h>
14588 #endif
14589 #ifdef HAVE_SYS_SOCKET_H
14590 #include <sys/socket.h>
14591 #endif
14592 #ifdef _WIN32
14593 #define WIN32_WINNT 0x400
14594 #define _WIN32_WINNT 0x400
14595 #define WIN32_LEAN_AND_MEAN
14596 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14597 #include <winsock.h>
14598 #else
14599 #include <winsock2.h>
14600 #include <ws2tcpip.h>
14601 #endif
14602 #endif
14603
14604 "
14605 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
14606
14607 cat >>confdefs.h <<_ACEOF
14608 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
14609 _ACEOF
14610
14611
14612 fi
14613 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
14614 #ifdef HAVE_NETINET_IN_H
14615 #include <netinet/in.h>
14616 #endif
14617 #ifdef HAVE_NETINET_IN6_H
14618 #include <netinet/in6.h>
14619 #endif
14620 #ifdef HAVE_SYS_SOCKET_H
14621 #include <sys/socket.h>
14622 #endif
14623 #ifdef _WIN32
14624 #define WIN32_WINNT 0x400
14625 #define _WIN32_WINNT 0x400
14626 #define WIN32_LEAN_AND_MEAN
14627 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14628 #include <winsock.h>
14629 #else
14630 #include <winsock2.h>
14631 #include <ws2tcpip.h>
14632 #endif
14633 #endif
14634
14635 "
14636 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes; then :
14637
14638 cat >>confdefs.h <<_ACEOF
14639 #define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1
14640 _ACEOF
14641
14642
14643 fi
14644 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
14645 #ifdef HAVE_NETINET_IN_H
14646 #include <netinet/in.h>
14647 #endif
14648 #ifdef HAVE_NETINET_IN6_H
14649 #include <netinet/in6.h>
14650 #endif
14651 #ifdef HAVE_SYS_SOCKET_H
14652 #include <sys/socket.h>
14653 #endif
14654 #ifdef _WIN32
14655 #define WIN32_WINNT 0x400
14656 #define _WIN32_WINNT 0x400
14657 #define WIN32_LEAN_AND_MEAN
14658 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14659 #include <winsock.h>
14660 #else
14661 #include <winsock2.h>
14662 #include <ws2tcpip.h>
14663 #endif
14664 #endif
14665
14666 "
14667 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes; then :
14668
14669 cat >>confdefs.h <<_ACEOF
14670 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14671 _ACEOF
14672
14673
14674 fi
14675 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
14676 #ifdef HAVE_NETINET_IN_H
14677 #include <netinet/in.h>
14678 #endif
14679 #ifdef HAVE_NETINET_IN6_H
14680 #include <netinet/in6.h>
14681 #endif
14682 #ifdef HAVE_SYS_SOCKET_H
14683 #include <sys/socket.h>
14684 #endif
14685 #ifdef _WIN32
14686 #define WIN32_WINNT 0x400
14687 #define _WIN32_WINNT 0x400
14688 #define WIN32_LEAN_AND_MEAN
14689 #if defined(_MSC_VER) && (_MSC_VER < 1300)
14690 #include <winsock.h>
14691 #else
14692 #include <winsock2.h>
14693 #include <ws2tcpip.h>
14694 #endif
14695 #endif
14696
14697 "
14698 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes; then :
14699
14700 cat >>confdefs.h <<_ACEOF
14701 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14702 _ACEOF
14703
14704
14705 fi
14706
14707
14708 ac_fn_c_check_type "$LINENO" "struct so_linger" "ac_cv_type_struct_so_linger" "
14709 #ifdef HAVE_SYS_SOCKET_H
14710 #include <sys/socket.h>
14711 #endif
14712
14713 "
14714 if test "x$ac_cv_type_struct_so_linger" = xyes; then :
14715
14716 cat >>confdefs.h <<_ACEOF
14717 #define HAVE_STRUCT_SO_LINGER 1
14718 _ACEOF
14719
14720 #define HAVE_SO_LINGER
14721 fi
14722
14723
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
14725 $as_echo_n "checking for socklen_t... " >&6; }
14726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14727 /* end confdefs.h. */
14728
14729 #include <sys/types.h>
14730 #include <sys/socket.h>
14731 int
14732 main ()
14733 {
14734 socklen_t x;
14735 ;
14736 return 0;
14737 }
14738 _ACEOF
14739 if ac_fn_c_try_compile "$LINENO"; then :
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14741 $as_echo "yes" >&6; }
14742 else
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14744 $as_echo "no" >&6; }
14745
14746 $as_echo "#define socklen_t unsigned int" >>confdefs.h
14747
14748
14749 fi
14750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14751
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
14753 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
14754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14756
14757 int
14758 main ()
14759 {
14760 const char *cp = __func__;
14761 ;
14762 return 0;
14763 }
14764 _ACEOF
14765 if ac_fn_c_try_compile "$LINENO"; then :
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14767 $as_echo "yes" >&6; }
14768 else
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14770 $as_echo "no" >&6; }
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
14772 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
14773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h. */
14775
14776 int
14777 main ()
14778 {
14779 const char *cp = __FUNCTION__;
14780 ;
14781 return 0;
14782 }
14783 _ACEOF
14784 if ac_fn_c_try_compile "$LINENO"; then :
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14786 $as_echo "yes" >&6; }
14787
14788 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
14789
14790 else
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14792 $as_echo "no" >&6; }
14793
14794 $as_echo "#define __func__ __FILE__" >>confdefs.h
14795
14796 fi
14797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14798 fi
14799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14800
14801
14802 # check if we can compile with pthreads
14803 have_pthreads=no
14804 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
14805
14806
14807
14808 ac_ext=c
14809 ac_cpp='$CPP $CPPFLAGS'
14810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14813
14814 # OpenLDAP --with-threads
14815
14816 # Check whether --with-threads was given.
14817 if test "${with_threads+set}" = set; then :
14818 withval=$with_threads;
14819 ol_arg=invalid
14820 for ol_val in auto nt posix mach pth lwp yes no manual ; do
14821 if test "$withval" = "$ol_val" ; then
14822 ol_arg="$ol_val"
14823 fi
14824 done
14825 if test "$ol_arg" = "invalid" ; then
14826 as_fn_error $? "bad value $withval for --with-threads" "$LINENO" 5
14827 fi
14828 ol_with_threads="$ol_arg"
14829
14830 else
14831 ol_with_threads="auto"
14832 fi
14833 # end --with-threads
14834
14835
14836 case "$ol_with_threads$host" in
14837 auto*-*-solaris2.[0-6])
14838 ol_with_threads=no
14839 ;;
14840 esac
14841
14842
14843 ol_aix_threads=no
14844 case "$host" in
14845 *-*-aix*) if test -z "$CC" ; then
14846 case "$ol_with_threads" in
14847 auto | yes | posix) ol_aix_threads=yes ;;
14848 esac
14849 fi
14850 ;;
14851 esac
14852
14853 if test $ol_aix_threads = yes ; then
14854 if test -z "${CC}" ; then
14855 for ac_prog in cc_r xlc_r cc
14856 do
14857 # Extract the first word of "$ac_prog", so it can be a program name with args.
14858 set dummy $ac_prog; ac_word=$2
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14860 $as_echo_n "checking for $ac_word... " >&6; }
14861 if ${ac_cv_prog_CC+:} false; then :
14862 $as_echo_n "(cached) " >&6
14863 else
14864 if test -n "$CC"; then
14865 ac_cv_prog_CC="$CC" # Let the user override the test.
14866 else
14867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14868 for as_dir in $PATH
14869 do
14870 IFS=$as_save_IFS
14871 test -z "$as_dir" && as_dir=.
14872 for ac_exec_ext in '' $ac_executable_extensions; do
14873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14874 ac_cv_prog_CC="$ac_prog"
14875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14876 break 2
14877 fi
14878 done
14879 done
14880 IFS=$as_save_IFS
14881
14882 fi
14883 fi
14884 CC=$ac_cv_prog_CC
14885 if test -n "$CC"; then
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14887 $as_echo "$CC" >&6; }
14888 else
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14890 $as_echo "no" >&6; }
14891 fi
14892
14893
14894 test -n "$CC" && break
14895 done
14896
14897
14898 if test "$CC" = cc ; then
14899 if test $ol_with_threads != auto ; then
14900 as_fn_error $? "--with-threads requires cc_r (or other suitable compiler) on AIX" "$LINENO" 5
14901 else
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling threads, no cc_r on AIX" >&5
14903 $as_echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
14904 fi
14905 ol_with_threads=no
14906 fi
14907 fi
14908
14909 case ${CC} in cc_r | xlc_r)
14910 ol_with_threads=posix
14911 ol_cv_pthread_create=yes
14912 ;;
14913 esac
14914 fi
14915
14916 ol_link_threads=no
14917 ol_with_yielding_select=${ol_with_yielding_select-auto}
14918
14919 case $ol_with_threads in auto | yes | nt)
14920
14921
14922 ac_fn_c_check_func "$LINENO" "_beginthread" "ac_cv_func__beginthread"
14923 if test "x$ac_cv_func__beginthread" = xyes; then :
14924
14925 fi
14926
14927
14928 if test $ac_cv_func__beginthread = yes ; then
14929
14930 $as_echo "#define HAVE_NT_THREADS 1" >>confdefs.h
14931
14932 ol_cv_nt_threads=yes
14933 fi
14934
14935
14936 if test "$ol_cv_nt_threads" = yes ; then
14937 ol_link_threads=nt
14938 ol_with_threads=found
14939 ol_with_yielding_select=yes
14940
14941
14942 $as_echo "#define HAVE_NT_SERVICE_MANAGER 1" >>confdefs.h
14943
14944
14945 $as_echo "#define HAVE_NT_EVENT_LOG 1" >>confdefs.h
14946
14947 fi
14948
14949 if test $ol_with_threads = nt ; then
14950 as_fn_error $? "could not locate NT Threads" "$LINENO" 5
14951 fi
14952 ;;
14953 esac
14954
14955 case $ol_with_threads in auto | yes | posix)
14956
14957 for ac_header in pthread.h
14958 do :
14959 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14960 if test "x$ac_cv_header_pthread_h" = xyes; then :
14961 cat >>confdefs.h <<_ACEOF
14962 #define HAVE_PTHREAD_H 1
14963 _ACEOF
14964
14965 fi
14966
14967 done
14968
14969
14970 if test $ac_cv_header_pthread_h = yes ; then
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX thread version" >&5
14972 $as_echo_n "checking POSIX thread version... " >&6; }
14973 if ${ol_cv_pthread_version+:} false; then :
14974 $as_echo_n "(cached) " >&6
14975 else
14976
14977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14978 /* end confdefs.h. */
14979
14980 # include <pthread.h>
14981
14982 int
14983 main ()
14984 {
14985
14986 int i = PTHREAD_CREATE_JOINABLE;
14987
14988 ;
14989 return 0;
14990 }
14991 _ACEOF
14992 if ac_fn_c_try_compile "$LINENO"; then :
14993
14994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14995 /* end confdefs.h. */
14996 #include <pthread.h>
14997
14998 _ACEOF
14999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15000 $EGREP "pthread_detach" >/dev/null 2>&1; then :
15001 ol_cv_pthread_version=10
15002 else
15003 ol_cv_pthread_version=8
15004 fi
15005 rm -f conftest*
15006
15007 else
15008
15009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15010 /* end confdefs.h. */
15011
15012 # include <pthread.h>
15013 # ifdef PTHREAD_CREATE_UNDETACHED
15014 draft7
15015 # endif
15016
15017 _ACEOF
15018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15019 $EGREP "draft7" >/dev/null 2>&1; then :
15020 ol_cv_pthread_version=7
15021 else
15022
15023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15024 /* end confdefs.h. */
15025 #include <pthread.h>
15026
15027 _ACEOF
15028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15029 $EGREP "pthread_attr_init" >/dev/null 2>&1; then :
15030 ol_cv_pthread_version=6
15031 else
15032
15033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15034 /* end confdefs.h. */
15035
15036 # include <pthread.h>
15037 #ifdef PTHREAD_MUTEX_INITIALIZER
15038 draft5
15039 #endif
15040
15041 _ACEOF
15042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15043 $EGREP "draft5" >/dev/null 2>&1; then :
15044 ol_cv_pthread_version=5
15045 else
15046 ol_cv_pthread_version=4
15047 fi
15048 rm -f conftest*
15049
15050 fi
15051 rm -f conftest*
15052
15053 fi
15054 rm -f conftest*
15055
15056 fi
15057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15058
15059 fi
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_version" >&5
15061 $as_echo "$ol_cv_pthread_version" >&6; }
15062
15063
15064 if test $ol_cv_pthread_version != 0 ; then
15065
15066 cat >>confdefs.h <<_ACEOF
15067 #define HAVE_PTHREADS $ol_cv_pthread_version
15068 _ACEOF
15069
15070 else
15071 as_fn_error $? "unknown pthread version" "$LINENO" 5
15072 fi
15073
15074 # consider threads found
15075 ol_with_threads=found
15076
15077
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
15079 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
15080 if ${ol_cv_header_linux_threads+:} false; then :
15081 $as_echo_n "(cached) " >&6
15082 else
15083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15084 /* end confdefs.h. */
15085 #include <pthread.h>
15086 _ACEOF
15087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15088 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
15089 ol_cv_header_linux_threads=yes
15090 else
15091 ol_cv_header_linux_threads=no
15092 fi
15093 rm -f conftest*
15094
15095
15096 fi
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
15098 $as_echo "$ol_cv_header_linux_threads" >&6; }
15099 if test $ol_cv_header_linux_threads = yes; then
15100
15101 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
15102
15103 fi
15104
15105
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU Pth pthread.h" >&5
15107 $as_echo_n "checking for GNU Pth pthread.h... " >&6; }
15108 if ${ol_cv_header_gnu_pth_pthread_h+:} false; then :
15109 $as_echo_n "(cached) " >&6
15110 else
15111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15112 /* end confdefs.h. */
15113 #include <pthread.h>
15114 #ifdef _POSIX_THREAD_IS_GNU_PTH
15115 __gnu_pth__;
15116 #endif
15117
15118 _ACEOF
15119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15120 $EGREP "__gnu_pth__" >/dev/null 2>&1; then :
15121 ol_cv_header_gnu_pth_pthread_h=yes
15122 else
15123 ol_cv_header_gnu_pth_pthread_h=no
15124 fi
15125 rm -f conftest*
15126
15127
15128 fi
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_gnu_pth_pthread_h" >&5
15130 $as_echo "$ol_cv_header_gnu_pth_pthread_h" >&6; }
15131
15132
15133 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
15134 for ac_header in sched.h
15135 do :
15136 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
15137 if test "x$ac_cv_header_sched_h" = xyes; then :
15138 cat >>confdefs.h <<_ACEOF
15139 #define HAVE_SCHED_H 1
15140 _ACEOF
15141
15142 fi
15143
15144 done
15145
15146 fi
15147
15148
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in default libraries" >&5
15150 $as_echo_n "checking for pthread_create in default libraries... " >&6; }
15151 if ${ol_cv_pthread_create+:} false; then :
15152 $as_echo_n "(cached) " >&6
15153 else
15154
15155 if test "$cross_compiling" = yes; then :
15156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157 /* end confdefs.h. */
15158
15159 /* pthread test headers */
15160 #include <pthread.h>
15161 #if HAVE_PTHREADS < 7
15162 #include <errno.h>
15163 #endif
15164 #ifndef NULL
15165 #define NULL (void*)0
15166 #endif
15167
15168 static void *task(p)
15169 void *p;
15170 {
15171 return (void *) (p == NULL);
15172 }
15173
15174 int
15175 main ()
15176 {
15177
15178 /* pthread test function */
15179 #ifndef PTHREAD_CREATE_DETACHED
15180 #define PTHREAD_CREATE_DETACHED 1
15181 #endif
15182 pthread_t t;
15183 int status;
15184 int detach = PTHREAD_CREATE_DETACHED;
15185
15186 #if HAVE_PTHREADS > 4
15187 /* Final pthreads */
15188 pthread_attr_t attr;
15189
15190 status = pthread_attr_init(&attr);
15191 if( status ) return status;
15192
15193 #if HAVE_PTHREADS < 7
15194 status = pthread_attr_setdetachstate(&attr, &detach);
15195 if( status < 0 ) status = errno;
15196 #else
15197 status = pthread_attr_setdetachstate(&attr, detach);
15198 #endif
15199 if( status ) return status;
15200 status = pthread_create( &t, &attr, task, NULL );
15201 #if HAVE_PTHREADS < 7
15202 if( status < 0 ) status = errno;
15203 #endif
15204 if( status ) return status;
15205 #else
15206 /* Draft 4 pthreads */
15207 status = pthread_create( &t, pthread_attr_default, task, NULL );
15208 if( status ) return errno;
15209
15210 /* give thread a chance to complete */
15211 /* it should remain joinable and hence detachable */
15212 sleep( 1 );
15213
15214 status = pthread_detach( &t );
15215 if( status ) return errno;
15216 #endif
15217
15218 #ifdef HAVE_LINUX_THREADS
15219 pthread_kill_other_threads_np();
15220 #endif
15221
15222 return 0;
15223
15224 ;
15225 return 0;
15226 }
15227 _ACEOF
15228 if ac_fn_c_try_link "$LINENO"; then :
15229 ol_cv_pthread_create=yes
15230 else
15231 ol_cv_pthread_create=no
15232 fi
15233 rm -f core conftest.err conftest.$ac_objext \
15234 conftest$ac_exeext conftest.$ac_ext
15235 else
15236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15237 /* end confdefs.h. */
15238
15239
15240 /* pthread test headers */
15241 #include <pthread.h>
15242 #if HAVE_PTHREADS < 7
15243 #include <errno.h>
15244 #endif
15245 #ifndef NULL
15246 #define NULL (void*)0
15247 #endif
15248
15249 static void *task(p)
15250 void *p;
15251 {
15252 return (void *) (p == NULL);
15253 }
15254
15255
15256 int main(argc, argv)
15257 int argc;
15258 char **argv;
15259 {
15260
15261 /* pthread test function */
15262 #ifndef PTHREAD_CREATE_DETACHED
15263 #define PTHREAD_CREATE_DETACHED 1
15264 #endif
15265 pthread_t t;
15266 int status;
15267 int detach = PTHREAD_CREATE_DETACHED;
15268
15269 #if HAVE_PTHREADS > 4
15270 /* Final pthreads */
15271 pthread_attr_t attr;
15272
15273 status = pthread_attr_init(&attr);
15274 if( status ) return status;
15275
15276 #if HAVE_PTHREADS < 7
15277 status = pthread_attr_setdetachstate(&attr, &detach);
15278 if( status < 0 ) status = errno;
15279 #else
15280 status = pthread_attr_setdetachstate(&attr, detach);
15281 #endif
15282 if( status ) return status;
15283 status = pthread_create( &t, &attr, task, NULL );
15284 #if HAVE_PTHREADS < 7
15285 if( status < 0 ) status = errno;
15286 #endif
15287 if( status ) return status;
15288 #else
15289 /* Draft 4 pthreads */
15290 status = pthread_create( &t, pthread_attr_default, task, NULL );
15291 if( status ) return errno;
15292
15293 /* give thread a chance to complete */
15294 /* it should remain joinable and hence detachable */
15295 sleep( 1 );
15296
15297 status = pthread_detach( &t );
15298 if( status ) return errno;
15299 #endif
15300
15301 #ifdef HAVE_LINUX_THREADS
15302 pthread_kill_other_threads_np();
15303 #endif
15304
15305 return 0;
15306
15307 }
15308
15309 _ACEOF
15310 if ac_fn_c_try_run "$LINENO"; then :
15311 ol_cv_pthread_create=yes
15312 else
15313 ol_cv_pthread_create=no
15314 fi
15315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15316 conftest.$ac_objext conftest.beam conftest.$ac_ext
15317 fi
15318
15319 fi
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create" >&5
15321 $as_echo "$ol_cv_pthread_create" >&6; }
15322
15323 if test $ol_cv_pthread_create != no ; then
15324 ol_link_threads=posix
15325 ol_link_pthreads=""
15326 fi
15327
15328 # Pthread try link: -kthread (ol_cv_pthread_kthread)
15329 if test "$ol_link_threads" = no ; then
15330 # try -kthread
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -kthread" >&5
15332 $as_echo_n "checking for pthread link with -kthread... " >&6; }
15333 if ${ol_cv_pthread_kthread+:} false; then :
15334 $as_echo_n "(cached) " >&6
15335 else
15336
15337 # save the flags
15338 ol_LIBS="$LIBS"
15339 LIBS="-kthread $LIBS"
15340
15341 if test "$cross_compiling" = yes; then :
15342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15343 /* end confdefs.h. */
15344
15345 /* pthread test headers */
15346 #include <pthread.h>
15347 #if HAVE_PTHREADS < 7
15348 #include <errno.h>
15349 #endif
15350 #ifndef NULL
15351 #define NULL (void*)0
15352 #endif
15353
15354 static void *task(p)
15355 void *p;
15356 {
15357 return (void *) (p == NULL);
15358 }
15359
15360 int
15361 main ()
15362 {
15363
15364 /* pthread test function */
15365 #ifndef PTHREAD_CREATE_DETACHED
15366 #define PTHREAD_CREATE_DETACHED 1
15367 #endif
15368 pthread_t t;
15369 int status;
15370 int detach = PTHREAD_CREATE_DETACHED;
15371
15372 #if HAVE_PTHREADS > 4
15373 /* Final pthreads */
15374 pthread_attr_t attr;
15375
15376 status = pthread_attr_init(&attr);
15377 if( status ) return status;
15378
15379 #if HAVE_PTHREADS < 7
15380 status = pthread_attr_setdetachstate(&attr, &detach);
15381 if( status < 0 ) status = errno;
15382 #else
15383 status = pthread_attr_setdetachstate(&attr, detach);
15384 #endif
15385 if( status ) return status;
15386 status = pthread_create( &t, &attr, task, NULL );
15387 #if HAVE_PTHREADS < 7
15388 if( status < 0 ) status = errno;
15389 #endif
15390 if( status ) return status;
15391 #else
15392 /* Draft 4 pthreads */
15393 status = pthread_create( &t, pthread_attr_default, task, NULL );
15394 if( status ) return errno;
15395
15396 /* give thread a chance to complete */
15397 /* it should remain joinable and hence detachable */
15398 sleep( 1 );
15399
15400 status = pthread_detach( &t );
15401 if( status ) return errno;
15402 #endif
15403
15404 #ifdef HAVE_LINUX_THREADS
15405 pthread_kill_other_threads_np();
15406 #endif
15407
15408 return 0;
15409
15410 ;
15411 return 0;
15412 }
15413 _ACEOF
15414 if ac_fn_c_try_link "$LINENO"; then :
15415 ol_cv_pthread_kthread=yes
15416 else
15417 ol_cv_pthread_kthread=no
15418 fi
15419 rm -f core conftest.err conftest.$ac_objext \
15420 conftest$ac_exeext conftest.$ac_ext
15421 else
15422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15423 /* end confdefs.h. */
15424
15425
15426 /* pthread test headers */
15427 #include <pthread.h>
15428 #if HAVE_PTHREADS < 7
15429 #include <errno.h>
15430 #endif
15431 #ifndef NULL
15432 #define NULL (void*)0
15433 #endif
15434
15435 static void *task(p)
15436 void *p;
15437 {
15438 return (void *) (p == NULL);
15439 }
15440
15441
15442 int main(argc, argv)
15443 int argc;
15444 char **argv;
15445 {
15446
15447 /* pthread test function */
15448 #ifndef PTHREAD_CREATE_DETACHED
15449 #define PTHREAD_CREATE_DETACHED 1
15450 #endif
15451 pthread_t t;
15452 int status;
15453 int detach = PTHREAD_CREATE_DETACHED;
15454
15455 #if HAVE_PTHREADS > 4
15456 /* Final pthreads */
15457 pthread_attr_t attr;
15458
15459 status = pthread_attr_init(&attr);
15460 if( status ) return status;
15461
15462 #if HAVE_PTHREADS < 7
15463 status = pthread_attr_setdetachstate(&attr, &detach);
15464 if( status < 0 ) status = errno;
15465 #else
15466 status = pthread_attr_setdetachstate(&attr, detach);
15467 #endif
15468 if( status ) return status;
15469 status = pthread_create( &t, &attr, task, NULL );
15470 #if HAVE_PTHREADS < 7
15471 if( status < 0 ) status = errno;
15472 #endif
15473 if( status ) return status;
15474 #else
15475 /* Draft 4 pthreads */
15476 status = pthread_create( &t, pthread_attr_default, task, NULL );
15477 if( status ) return errno;
15478
15479 /* give thread a chance to complete */
15480 /* it should remain joinable and hence detachable */
15481 sleep( 1 );
15482
15483 status = pthread_detach( &t );
15484 if( status ) return errno;
15485 #endif
15486
15487 #ifdef HAVE_LINUX_THREADS
15488 pthread_kill_other_threads_np();
15489 #endif
15490
15491 return 0;
15492
15493 }
15494
15495 _ACEOF
15496 if ac_fn_c_try_run "$LINENO"; then :
15497 ol_cv_pthread_kthread=yes
15498 else
15499 ol_cv_pthread_kthread=no
15500 fi
15501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15502 conftest.$ac_objext conftest.beam conftest.$ac_ext
15503 fi
15504
15505
15506 # restore the LIBS
15507 LIBS="$ol_LIBS"
15508
15509 fi
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_kthread" >&5
15511 $as_echo "$ol_cv_pthread_kthread" >&6; }
15512
15513 if test $ol_cv_pthread_kthread = yes ; then
15514 ol_link_pthreads="-kthread"
15515 ol_link_threads=posix
15516 fi
15517 fi
15518
15519 # Pthread try link: -pthread (ol_cv_pthread_pthread)
15520 if test "$ol_link_threads" = no ; then
15521 # try -pthread
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthread" >&5
15523 $as_echo_n "checking for pthread link with -pthread... " >&6; }
15524 if ${ol_cv_pthread_pthread+:} false; then :
15525 $as_echo_n "(cached) " >&6
15526 else
15527
15528 # save the flags
15529 ol_LIBS="$LIBS"
15530 LIBS="-pthread $LIBS"
15531
15532 if test "$cross_compiling" = yes; then :
15533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15534 /* end confdefs.h. */
15535
15536 /* pthread test headers */
15537 #include <pthread.h>
15538 #if HAVE_PTHREADS < 7
15539 #include <errno.h>
15540 #endif
15541 #ifndef NULL
15542 #define NULL (void*)0
15543 #endif
15544
15545 static void *task(p)
15546 void *p;
15547 {
15548 return (void *) (p == NULL);
15549 }
15550
15551 int
15552 main ()
15553 {
15554
15555 /* pthread test function */
15556 #ifndef PTHREAD_CREATE_DETACHED
15557 #define PTHREAD_CREATE_DETACHED 1
15558 #endif
15559 pthread_t t;
15560 int status;
15561 int detach = PTHREAD_CREATE_DETACHED;
15562
15563 #if HAVE_PTHREADS > 4
15564 /* Final pthreads */
15565 pthread_attr_t attr;
15566
15567 status = pthread_attr_init(&attr);
15568 if( status ) return status;
15569
15570 #if HAVE_PTHREADS < 7
15571 status = pthread_attr_setdetachstate(&attr, &detach);
15572 if( status < 0 ) status = errno;
15573 #else
15574 status = pthread_attr_setdetachstate(&attr, detach);
15575 #endif
15576 if( status ) return status;
15577 status = pthread_create( &t, &attr, task, NULL );
15578 #if HAVE_PTHREADS < 7
15579 if( status < 0 ) status = errno;
15580 #endif
15581 if( status ) return status;
15582 #else
15583 /* Draft 4 pthreads */
15584 status = pthread_create( &t, pthread_attr_default, task, NULL );
15585 if( status ) return errno;
15586
15587 /* give thread a chance to complete */
15588 /* it should remain joinable and hence detachable */
15589 sleep( 1 );
15590
15591 status = pthread_detach( &t );
15592 if( status ) return errno;
15593 #endif
15594
15595 #ifdef HAVE_LINUX_THREADS
15596 pthread_kill_other_threads_np();
15597 #endif
15598
15599 return 0;
15600
15601 ;
15602 return 0;
15603 }
15604 _ACEOF
15605 if ac_fn_c_try_link "$LINENO"; then :
15606 ol_cv_pthread_pthread=yes
15607 else
15608 ol_cv_pthread_pthread=no
15609 fi
15610 rm -f core conftest.err conftest.$ac_objext \
15611 conftest$ac_exeext conftest.$ac_ext
15612 else
15613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15614 /* end confdefs.h. */
15615
15616
15617 /* pthread test headers */
15618 #include <pthread.h>
15619 #if HAVE_PTHREADS < 7
15620 #include <errno.h>
15621 #endif
15622 #ifndef NULL
15623 #define NULL (void*)0
15624 #endif
15625
15626 static void *task(p)
15627 void *p;
15628 {
15629 return (void *) (p == NULL);
15630 }
15631
15632
15633 int main(argc, argv)
15634 int argc;
15635 char **argv;
15636 {
15637
15638 /* pthread test function */
15639 #ifndef PTHREAD_CREATE_DETACHED
15640 #define PTHREAD_CREATE_DETACHED 1
15641 #endif
15642 pthread_t t;
15643 int status;
15644 int detach = PTHREAD_CREATE_DETACHED;
15645
15646 #if HAVE_PTHREADS > 4
15647 /* Final pthreads */
15648 pthread_attr_t attr;
15649
15650 status = pthread_attr_init(&attr);
15651 if( status ) return status;
15652
15653 #if HAVE_PTHREADS < 7
15654 status = pthread_attr_setdetachstate(&attr, &detach);
15655 if( status < 0 ) status = errno;
15656 #else
15657 status = pthread_attr_setdetachstate(&attr, detach);
15658 #endif
15659 if( status ) return status;
15660 status = pthread_create( &t, &attr, task, NULL );
15661 #if HAVE_PTHREADS < 7
15662 if( status < 0 ) status = errno;
15663 #endif
15664 if( status ) return status;
15665 #else
15666 /* Draft 4 pthreads */
15667 status = pthread_create( &t, pthread_attr_default, task, NULL );
15668 if( status ) return errno;
15669
15670 /* give thread a chance to complete */
15671 /* it should remain joinable and hence detachable */
15672 sleep( 1 );
15673
15674 status = pthread_detach( &t );
15675 if( status ) return errno;
15676 #endif
15677
15678 #ifdef HAVE_LINUX_THREADS
15679 pthread_kill_other_threads_np();
15680 #endif
15681
15682 return 0;
15683
15684 }
15685
15686 _ACEOF
15687 if ac_fn_c_try_run "$LINENO"; then :
15688 ol_cv_pthread_pthread=yes
15689 else
15690 ol_cv_pthread_pthread=no
15691 fi
15692 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15693 conftest.$ac_objext conftest.beam conftest.$ac_ext
15694 fi
15695
15696
15697 # restore the LIBS
15698 LIBS="$ol_LIBS"
15699
15700 fi
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthread" >&5
15702 $as_echo "$ol_cv_pthread_pthread" >&6; }
15703
15704 if test $ol_cv_pthread_pthread = yes ; then
15705 ol_link_pthreads="-pthread"
15706 ol_link_threads=posix
15707 fi
15708 fi
15709
15710 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
15711 if test "$ol_link_threads" = no ; then
15712 # try -pthreads
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -pthreads" >&5
15714 $as_echo_n "checking for pthread link with -pthreads... " >&6; }
15715 if ${ol_cv_pthread_pthreads+:} false; then :
15716 $as_echo_n "(cached) " >&6
15717 else
15718
15719 # save the flags
15720 ol_LIBS="$LIBS"
15721 LIBS="-pthreads $LIBS"
15722
15723 if test "$cross_compiling" = yes; then :
15724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15725 /* end confdefs.h. */
15726
15727 /* pthread test headers */
15728 #include <pthread.h>
15729 #if HAVE_PTHREADS < 7
15730 #include <errno.h>
15731 #endif
15732 #ifndef NULL
15733 #define NULL (void*)0
15734 #endif
15735
15736 static void *task(p)
15737 void *p;
15738 {
15739 return (void *) (p == NULL);
15740 }
15741
15742 int
15743 main ()
15744 {
15745
15746 /* pthread test function */
15747 #ifndef PTHREAD_CREATE_DETACHED
15748 #define PTHREAD_CREATE_DETACHED 1
15749 #endif
15750 pthread_t t;
15751 int status;
15752 int detach = PTHREAD_CREATE_DETACHED;
15753
15754 #if HAVE_PTHREADS > 4
15755 /* Final pthreads */
15756 pthread_attr_t attr;
15757
15758 status = pthread_attr_init(&attr);
15759 if( status ) return status;
15760
15761 #if HAVE_PTHREADS < 7
15762 status = pthread_attr_setdetachstate(&attr, &detach);
15763 if( status < 0 ) status = errno;
15764 #else
15765 status = pthread_attr_setdetachstate(&attr, detach);
15766 #endif
15767 if( status ) return status;
15768 status = pthread_create( &t, &attr, task, NULL );
15769 #if HAVE_PTHREADS < 7
15770 if( status < 0 ) status = errno;
15771 #endif
15772 if( status ) return status;
15773 #else
15774 /* Draft 4 pthreads */
15775 status = pthread_create( &t, pthread_attr_default, task, NULL );
15776 if( status ) return errno;
15777
15778 /* give thread a chance to complete */
15779 /* it should remain joinable and hence detachable */
15780 sleep( 1 );
15781
15782 status = pthread_detach( &t );
15783 if( status ) return errno;
15784 #endif
15785
15786 #ifdef HAVE_LINUX_THREADS
15787 pthread_kill_other_threads_np();
15788 #endif
15789
15790 return 0;
15791
15792 ;
15793 return 0;
15794 }
15795 _ACEOF
15796 if ac_fn_c_try_link "$LINENO"; then :
15797 ol_cv_pthread_pthreads=yes
15798 else
15799 ol_cv_pthread_pthreads=no
15800 fi
15801 rm -f core conftest.err conftest.$ac_objext \
15802 conftest$ac_exeext conftest.$ac_ext
15803 else
15804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15805 /* end confdefs.h. */
15806
15807
15808 /* pthread test headers */
15809 #include <pthread.h>
15810 #if HAVE_PTHREADS < 7
15811 #include <errno.h>
15812 #endif
15813 #ifndef NULL
15814 #define NULL (void*)0
15815 #endif
15816
15817 static void *task(p)
15818 void *p;
15819 {
15820 return (void *) (p == NULL);
15821 }
15822
15823
15824 int main(argc, argv)
15825 int argc;
15826 char **argv;
15827 {
15828
15829 /* pthread test function */
15830 #ifndef PTHREAD_CREATE_DETACHED
15831 #define PTHREAD_CREATE_DETACHED 1
15832 #endif
15833 pthread_t t;
15834 int status;
15835 int detach = PTHREAD_CREATE_DETACHED;
15836
15837 #if HAVE_PTHREADS > 4
15838 /* Final pthreads */
15839 pthread_attr_t attr;
15840
15841 status = pthread_attr_init(&attr);
15842 if( status ) return status;
15843
15844 #if HAVE_PTHREADS < 7
15845 status = pthread_attr_setdetachstate(&attr, &detach);
15846 if( status < 0 ) status = errno;
15847 #else
15848 status = pthread_attr_setdetachstate(&attr, detach);
15849 #endif
15850 if( status ) return status;
15851 status = pthread_create( &t, &attr, task, NULL );
15852 #if HAVE_PTHREADS < 7
15853 if( status < 0 ) status = errno;
15854 #endif
15855 if( status ) return status;
15856 #else
15857 /* Draft 4 pthreads */
15858 status = pthread_create( &t, pthread_attr_default, task, NULL );
15859 if( status ) return errno;
15860
15861 /* give thread a chance to complete */
15862 /* it should remain joinable and hence detachable */
15863 sleep( 1 );
15864
15865 status = pthread_detach( &t );
15866 if( status ) return errno;
15867 #endif
15868
15869 #ifdef HAVE_LINUX_THREADS
15870 pthread_kill_other_threads_np();
15871 #endif
15872
15873 return 0;
15874
15875 }
15876
15877 _ACEOF
15878 if ac_fn_c_try_run "$LINENO"; then :
15879 ol_cv_pthread_pthreads=yes
15880 else
15881 ol_cv_pthread_pthreads=no
15882 fi
15883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15884 conftest.$ac_objext conftest.beam conftest.$ac_ext
15885 fi
15886
15887
15888 # restore the LIBS
15889 LIBS="$ol_LIBS"
15890
15891 fi
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_pthreads" >&5
15893 $as_echo "$ol_cv_pthread_pthreads" >&6; }
15894
15895 if test $ol_cv_pthread_pthreads = yes ; then
15896 ol_link_pthreads="-pthreads"
15897 ol_link_threads=posix
15898 fi
15899 fi
15900
15901 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
15902 if test "$ol_link_threads" = no ; then
15903 # try -mthreads
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -mthreads" >&5
15905 $as_echo_n "checking for pthread link with -mthreads... " >&6; }
15906 if ${ol_cv_pthread_mthreads+:} false; then :
15907 $as_echo_n "(cached) " >&6
15908 else
15909
15910 # save the flags
15911 ol_LIBS="$LIBS"
15912 LIBS="-mthreads $LIBS"
15913
15914 if test "$cross_compiling" = yes; then :
15915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15916 /* end confdefs.h. */
15917
15918 /* pthread test headers */
15919 #include <pthread.h>
15920 #if HAVE_PTHREADS < 7
15921 #include <errno.h>
15922 #endif
15923 #ifndef NULL
15924 #define NULL (void*)0
15925 #endif
15926
15927 static void *task(p)
15928 void *p;
15929 {
15930 return (void *) (p == NULL);
15931 }
15932
15933 int
15934 main ()
15935 {
15936
15937 /* pthread test function */
15938 #ifndef PTHREAD_CREATE_DETACHED
15939 #define PTHREAD_CREATE_DETACHED 1
15940 #endif
15941 pthread_t t;
15942 int status;
15943 int detach = PTHREAD_CREATE_DETACHED;
15944
15945 #if HAVE_PTHREADS > 4
15946 /* Final pthreads */
15947 pthread_attr_t attr;
15948
15949 status = pthread_attr_init(&attr);
15950 if( status ) return status;
15951
15952 #if HAVE_PTHREADS < 7
15953 status = pthread_attr_setdetachstate(&attr, &detach);
15954 if( status < 0 ) status = errno;
15955 #else
15956 status = pthread_attr_setdetachstate(&attr, detach);
15957 #endif
15958 if( status ) return status;
15959 status = pthread_create( &t, &attr, task, NULL );
15960 #if HAVE_PTHREADS < 7
15961 if( status < 0 ) status = errno;
15962 #endif
15963 if( status ) return status;
15964 #else
15965 /* Draft 4 pthreads */
15966 status = pthread_create( &t, pthread_attr_default, task, NULL );
15967 if( status ) return errno;
15968
15969 /* give thread a chance to complete */
15970 /* it should remain joinable and hence detachable */
15971 sleep( 1 );
15972
15973 status = pthread_detach( &t );
15974 if( status ) return errno;
15975 #endif
15976
15977 #ifdef HAVE_LINUX_THREADS
15978 pthread_kill_other_threads_np();
15979 #endif
15980
15981 return 0;
15982
15983 ;
15984 return 0;
15985 }
15986 _ACEOF
15987 if ac_fn_c_try_link "$LINENO"; then :
15988 ol_cv_pthread_mthreads=yes
15989 else
15990 ol_cv_pthread_mthreads=no
15991 fi
15992 rm -f core conftest.err conftest.$ac_objext \
15993 conftest$ac_exeext conftest.$ac_ext
15994 else
15995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15996 /* end confdefs.h. */
15997
15998
15999 /* pthread test headers */
16000 #include <pthread.h>
16001 #if HAVE_PTHREADS < 7
16002 #include <errno.h>
16003 #endif
16004 #ifndef NULL
16005 #define NULL (void*)0
16006 #endif
16007
16008 static void *task(p)
16009 void *p;
16010 {
16011 return (void *) (p == NULL);
16012 }
16013
16014
16015 int main(argc, argv)
16016 int argc;
16017 char **argv;
16018 {
16019
16020 /* pthread test function */
16021 #ifndef PTHREAD_CREATE_DETACHED
16022 #define PTHREAD_CREATE_DETACHED 1
16023 #endif
16024 pthread_t t;
16025 int status;
16026 int detach = PTHREAD_CREATE_DETACHED;
16027
16028 #if HAVE_PTHREADS > 4
16029 /* Final pthreads */
16030 pthread_attr_t attr;
16031
16032 status = pthread_attr_init(&attr);
16033 if( status ) return status;
16034
16035 #if HAVE_PTHREADS < 7
16036 status = pthread_attr_setdetachstate(&attr, &detach);
16037 if( status < 0 ) status = errno;
16038 #else
16039 status = pthread_attr_setdetachstate(&attr, detach);
16040 #endif
16041 if( status ) return status;
16042 status = pthread_create( &t, &attr, task, NULL );
16043 #if HAVE_PTHREADS < 7
16044 if( status < 0 ) status = errno;
16045 #endif
16046 if( status ) return status;
16047 #else
16048 /* Draft 4 pthreads */
16049 status = pthread_create( &t, pthread_attr_default, task, NULL );
16050 if( status ) return errno;
16051
16052 /* give thread a chance to complete */
16053 /* it should remain joinable and hence detachable */
16054 sleep( 1 );
16055
16056 status = pthread_detach( &t );
16057 if( status ) return errno;
16058 #endif
16059
16060 #ifdef HAVE_LINUX_THREADS
16061 pthread_kill_other_threads_np();
16062 #endif
16063
16064 return 0;
16065
16066 }
16067
16068 _ACEOF
16069 if ac_fn_c_try_run "$LINENO"; then :
16070 ol_cv_pthread_mthreads=yes
16071 else
16072 ol_cv_pthread_mthreads=no
16073 fi
16074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16075 conftest.$ac_objext conftest.beam conftest.$ac_ext
16076 fi
16077
16078
16079 # restore the LIBS
16080 LIBS="$ol_LIBS"
16081
16082 fi
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_mthreads" >&5
16084 $as_echo "$ol_cv_pthread_mthreads" >&6; }
16085
16086 if test $ol_cv_pthread_mthreads = yes ; then
16087 ol_link_pthreads="-mthreads"
16088 ol_link_threads=posix
16089 fi
16090 fi
16091
16092 # Pthread try link: -thread (ol_cv_pthread_thread)
16093 if test "$ol_link_threads" = no ; then
16094 # try -thread
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -thread" >&5
16096 $as_echo_n "checking for pthread link with -thread... " >&6; }
16097 if ${ol_cv_pthread_thread+:} false; then :
16098 $as_echo_n "(cached) " >&6
16099 else
16100
16101 # save the flags
16102 ol_LIBS="$LIBS"
16103 LIBS="-thread $LIBS"
16104
16105 if test "$cross_compiling" = yes; then :
16106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16107 /* end confdefs.h. */
16108
16109 /* pthread test headers */
16110 #include <pthread.h>
16111 #if HAVE_PTHREADS < 7
16112 #include <errno.h>
16113 #endif
16114 #ifndef NULL
16115 #define NULL (void*)0
16116 #endif
16117
16118 static void *task(p)
16119 void *p;
16120 {
16121 return (void *) (p == NULL);
16122 }
16123
16124 int
16125 main ()
16126 {
16127
16128 /* pthread test function */
16129 #ifndef PTHREAD_CREATE_DETACHED
16130 #define PTHREAD_CREATE_DETACHED 1
16131 #endif
16132 pthread_t t;
16133 int status;
16134 int detach = PTHREAD_CREATE_DETACHED;
16135
16136 #if HAVE_PTHREADS > 4
16137 /* Final pthreads */
16138 pthread_attr_t attr;
16139
16140 status = pthread_attr_init(&attr);
16141 if( status ) return status;
16142
16143 #if HAVE_PTHREADS < 7
16144 status = pthread_attr_setdetachstate(&attr, &detach);
16145 if( status < 0 ) status = errno;
16146 #else
16147 status = pthread_attr_setdetachstate(&attr, detach);
16148 #endif
16149 if( status ) return status;
16150 status = pthread_create( &t, &attr, task, NULL );
16151 #if HAVE_PTHREADS < 7
16152 if( status < 0 ) status = errno;
16153 #endif
16154 if( status ) return status;
16155 #else
16156 /* Draft 4 pthreads */
16157 status = pthread_create( &t, pthread_attr_default, task, NULL );
16158 if( status ) return errno;
16159
16160 /* give thread a chance to complete */
16161 /* it should remain joinable and hence detachable */
16162 sleep( 1 );
16163
16164 status = pthread_detach( &t );
16165 if( status ) return errno;
16166 #endif
16167
16168 #ifdef HAVE_LINUX_THREADS
16169 pthread_kill_other_threads_np();
16170 #endif
16171
16172 return 0;
16173
16174 ;
16175 return 0;
16176 }
16177 _ACEOF
16178 if ac_fn_c_try_link "$LINENO"; then :
16179 ol_cv_pthread_thread=yes
16180 else
16181 ol_cv_pthread_thread=no
16182 fi
16183 rm -f core conftest.err conftest.$ac_objext \
16184 conftest$ac_exeext conftest.$ac_ext
16185 else
16186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187 /* end confdefs.h. */
16188
16189
16190 /* pthread test headers */
16191 #include <pthread.h>
16192 #if HAVE_PTHREADS < 7
16193 #include <errno.h>
16194 #endif
16195 #ifndef NULL
16196 #define NULL (void*)0
16197 #endif
16198
16199 static void *task(p)
16200 void *p;
16201 {
16202 return (void *) (p == NULL);
16203 }
16204
16205
16206 int main(argc, argv)
16207 int argc;
16208 char **argv;
16209 {
16210
16211 /* pthread test function */
16212 #ifndef PTHREAD_CREATE_DETACHED
16213 #define PTHREAD_CREATE_DETACHED 1
16214 #endif
16215 pthread_t t;
16216 int status;
16217 int detach = PTHREAD_CREATE_DETACHED;
16218
16219 #if HAVE_PTHREADS > 4
16220 /* Final pthreads */
16221 pthread_attr_t attr;
16222
16223 status = pthread_attr_init(&attr);
16224 if( status ) return status;
16225
16226 #if HAVE_PTHREADS < 7
16227 status = pthread_attr_setdetachstate(&attr, &detach);
16228 if( status < 0 ) status = errno;
16229 #else
16230 status = pthread_attr_setdetachstate(&attr, detach);
16231 #endif
16232 if( status ) return status;
16233 status = pthread_create( &t, &attr, task, NULL );
16234 #if HAVE_PTHREADS < 7
16235 if( status < 0 ) status = errno;
16236 #endif
16237 if( status ) return status;
16238 #else
16239 /* Draft 4 pthreads */
16240 status = pthread_create( &t, pthread_attr_default, task, NULL );
16241 if( status ) return errno;
16242
16243 /* give thread a chance to complete */
16244 /* it should remain joinable and hence detachable */
16245 sleep( 1 );
16246
16247 status = pthread_detach( &t );
16248 if( status ) return errno;
16249 #endif
16250
16251 #ifdef HAVE_LINUX_THREADS
16252 pthread_kill_other_threads_np();
16253 #endif
16254
16255 return 0;
16256
16257 }
16258
16259 _ACEOF
16260 if ac_fn_c_try_run "$LINENO"; then :
16261 ol_cv_pthread_thread=yes
16262 else
16263 ol_cv_pthread_thread=no
16264 fi
16265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16266 conftest.$ac_objext conftest.beam conftest.$ac_ext
16267 fi
16268
16269
16270 # restore the LIBS
16271 LIBS="$ol_LIBS"
16272
16273 fi
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_thread" >&5
16275 $as_echo "$ol_cv_pthread_thread" >&6; }
16276
16277 if test $ol_cv_pthread_thread = yes ; then
16278 ol_link_pthreads="-thread"
16279 ol_link_threads=posix
16280 fi
16281 fi
16282
16283
16284 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
16285 if test "$ol_link_threads" = no ; then
16286 # try -lpthread -lmach -lexc -lc_r
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
16288 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc -lc_r... " >&6; }
16289 if ${ol_cv_pthread_lpthread_lmach_lexc_lc_r+:} false; then :
16290 $as_echo_n "(cached) " >&6
16291 else
16292
16293 # save the flags
16294 ol_LIBS="$LIBS"
16295 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
16296
16297 if test "$cross_compiling" = yes; then :
16298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16299 /* end confdefs.h. */
16300
16301 /* pthread test headers */
16302 #include <pthread.h>
16303 #if HAVE_PTHREADS < 7
16304 #include <errno.h>
16305 #endif
16306 #ifndef NULL
16307 #define NULL (void*)0
16308 #endif
16309
16310 static void *task(p)
16311 void *p;
16312 {
16313 return (void *) (p == NULL);
16314 }
16315
16316 int
16317 main ()
16318 {
16319
16320 /* pthread test function */
16321 #ifndef PTHREAD_CREATE_DETACHED
16322 #define PTHREAD_CREATE_DETACHED 1
16323 #endif
16324 pthread_t t;
16325 int status;
16326 int detach = PTHREAD_CREATE_DETACHED;
16327
16328 #if HAVE_PTHREADS > 4
16329 /* Final pthreads */
16330 pthread_attr_t attr;
16331
16332 status = pthread_attr_init(&attr);
16333 if( status ) return status;
16334
16335 #if HAVE_PTHREADS < 7
16336 status = pthread_attr_setdetachstate(&attr, &detach);
16337 if( status < 0 ) status = errno;
16338 #else
16339 status = pthread_attr_setdetachstate(&attr, detach);
16340 #endif
16341 if( status ) return status;
16342 status = pthread_create( &t, &attr, task, NULL );
16343 #if HAVE_PTHREADS < 7
16344 if( status < 0 ) status = errno;
16345 #endif
16346 if( status ) return status;
16347 #else
16348 /* Draft 4 pthreads */
16349 status = pthread_create( &t, pthread_attr_default, task, NULL );
16350 if( status ) return errno;
16351
16352 /* give thread a chance to complete */
16353 /* it should remain joinable and hence detachable */
16354 sleep( 1 );
16355
16356 status = pthread_detach( &t );
16357 if( status ) return errno;
16358 #endif
16359
16360 #ifdef HAVE_LINUX_THREADS
16361 pthread_kill_other_threads_np();
16362 #endif
16363
16364 return 0;
16365
16366 ;
16367 return 0;
16368 }
16369 _ACEOF
16370 if ac_fn_c_try_link "$LINENO"; then :
16371 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
16372 else
16373 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
16374 fi
16375 rm -f core conftest.err conftest.$ac_objext \
16376 conftest$ac_exeext conftest.$ac_ext
16377 else
16378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16379 /* end confdefs.h. */
16380
16381
16382 /* pthread test headers */
16383 #include <pthread.h>
16384 #if HAVE_PTHREADS < 7
16385 #include <errno.h>
16386 #endif
16387 #ifndef NULL
16388 #define NULL (void*)0
16389 #endif
16390
16391 static void *task(p)
16392 void *p;
16393 {
16394 return (void *) (p == NULL);
16395 }
16396
16397
16398 int main(argc, argv)
16399 int argc;
16400 char **argv;
16401 {
16402
16403 /* pthread test function */
16404 #ifndef PTHREAD_CREATE_DETACHED
16405 #define PTHREAD_CREATE_DETACHED 1
16406 #endif
16407 pthread_t t;
16408 int status;
16409 int detach = PTHREAD_CREATE_DETACHED;
16410
16411 #if HAVE_PTHREADS > 4
16412 /* Final pthreads */
16413 pthread_attr_t attr;
16414
16415 status = pthread_attr_init(&attr);
16416 if( status ) return status;
16417
16418 #if HAVE_PTHREADS < 7
16419 status = pthread_attr_setdetachstate(&attr, &detach);
16420 if( status < 0 ) status = errno;
16421 #else
16422 status = pthread_attr_setdetachstate(&attr, detach);
16423 #endif
16424 if( status ) return status;
16425 status = pthread_create( &t, &attr, task, NULL );
16426 #if HAVE_PTHREADS < 7
16427 if( status < 0 ) status = errno;
16428 #endif
16429 if( status ) return status;
16430 #else
16431 /* Draft 4 pthreads */
16432 status = pthread_create( &t, pthread_attr_default, task, NULL );
16433 if( status ) return errno;
16434
16435 /* give thread a chance to complete */
16436 /* it should remain joinable and hence detachable */
16437 sleep( 1 );
16438
16439 status = pthread_detach( &t );
16440 if( status ) return errno;
16441 #endif
16442
16443 #ifdef HAVE_LINUX_THREADS
16444 pthread_kill_other_threads_np();
16445 #endif
16446
16447 return 0;
16448
16449 }
16450
16451 _ACEOF
16452 if ac_fn_c_try_run "$LINENO"; then :
16453 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
16454 else
16455 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
16456 fi
16457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16458 conftest.$ac_objext conftest.beam conftest.$ac_ext
16459 fi
16460
16461
16462 # restore the LIBS
16463 LIBS="$ol_LIBS"
16464
16465 fi
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
16467 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
16468
16469 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
16470 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
16471 ol_link_threads=posix
16472 fi
16473 fi
16474
16475 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
16476 if test "$ol_link_threads" = no ; then
16477 # try -lpthread -lmach -lexc
16478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -lmach -lexc" >&5
16479 $as_echo_n "checking for pthread link with -lpthread -lmach -lexc... " >&6; }
16480 if ${ol_cv_pthread_lpthread_lmach_lexc+:} false; then :
16481 $as_echo_n "(cached) " >&6
16482 else
16483
16484 # save the flags
16485 ol_LIBS="$LIBS"
16486 LIBS="-lpthread -lmach -lexc $LIBS"
16487
16488 if test "$cross_compiling" = yes; then :
16489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16490 /* end confdefs.h. */
16491
16492 /* pthread test headers */
16493 #include <pthread.h>
16494 #if HAVE_PTHREADS < 7
16495 #include <errno.h>
16496 #endif
16497 #ifndef NULL
16498 #define NULL (void*)0
16499 #endif
16500
16501 static void *task(p)
16502 void *p;
16503 {
16504 return (void *) (p == NULL);
16505 }
16506
16507 int
16508 main ()
16509 {
16510
16511 /* pthread test function */
16512 #ifndef PTHREAD_CREATE_DETACHED
16513 #define PTHREAD_CREATE_DETACHED 1
16514 #endif
16515 pthread_t t;
16516 int status;
16517 int detach = PTHREAD_CREATE_DETACHED;
16518
16519 #if HAVE_PTHREADS > 4
16520 /* Final pthreads */
16521 pthread_attr_t attr;
16522
16523 status = pthread_attr_init(&attr);
16524 if( status ) return status;
16525
16526 #if HAVE_PTHREADS < 7
16527 status = pthread_attr_setdetachstate(&attr, &detach);
16528 if( status < 0 ) status = errno;
16529 #else
16530 status = pthread_attr_setdetachstate(&attr, detach);
16531 #endif
16532 if( status ) return status;
16533 status = pthread_create( &t, &attr, task, NULL );
16534 #if HAVE_PTHREADS < 7
16535 if( status < 0 ) status = errno;
16536 #endif
16537 if( status ) return status;
16538 #else
16539 /* Draft 4 pthreads */
16540 status = pthread_create( &t, pthread_attr_default, task, NULL );
16541 if( status ) return errno;
16542
16543 /* give thread a chance to complete */
16544 /* it should remain joinable and hence detachable */
16545 sleep( 1 );
16546
16547 status = pthread_detach( &t );
16548 if( status ) return errno;
16549 #endif
16550
16551 #ifdef HAVE_LINUX_THREADS
16552 pthread_kill_other_threads_np();
16553 #endif
16554
16555 return 0;
16556
16557 ;
16558 return 0;
16559 }
16560 _ACEOF
16561 if ac_fn_c_try_link "$LINENO"; then :
16562 ol_cv_pthread_lpthread_lmach_lexc=yes
16563 else
16564 ol_cv_pthread_lpthread_lmach_lexc=no
16565 fi
16566 rm -f core conftest.err conftest.$ac_objext \
16567 conftest$ac_exeext conftest.$ac_ext
16568 else
16569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16570 /* end confdefs.h. */
16571
16572
16573 /* pthread test headers */
16574 #include <pthread.h>
16575 #if HAVE_PTHREADS < 7
16576 #include <errno.h>
16577 #endif
16578 #ifndef NULL
16579 #define NULL (void*)0
16580 #endif
16581
16582 static void *task(p)
16583 void *p;
16584 {
16585 return (void *) (p == NULL);
16586 }
16587
16588
16589 int main(argc, argv)
16590 int argc;
16591 char **argv;
16592 {
16593
16594 /* pthread test function */
16595 #ifndef PTHREAD_CREATE_DETACHED
16596 #define PTHREAD_CREATE_DETACHED 1
16597 #endif
16598 pthread_t t;
16599 int status;
16600 int detach = PTHREAD_CREATE_DETACHED;
16601
16602 #if HAVE_PTHREADS > 4
16603 /* Final pthreads */
16604 pthread_attr_t attr;
16605
16606 status = pthread_attr_init(&attr);
16607 if( status ) return status;
16608
16609 #if HAVE_PTHREADS < 7
16610 status = pthread_attr_setdetachstate(&attr, &detach);
16611 if( status < 0 ) status = errno;
16612 #else
16613 status = pthread_attr_setdetachstate(&attr, detach);
16614 #endif
16615 if( status ) return status;
16616 status = pthread_create( &t, &attr, task, NULL );
16617 #if HAVE_PTHREADS < 7
16618 if( status < 0 ) status = errno;
16619 #endif
16620 if( status ) return status;
16621 #else
16622 /* Draft 4 pthreads */
16623 status = pthread_create( &t, pthread_attr_default, task, NULL );
16624 if( status ) return errno;
16625
16626 /* give thread a chance to complete */
16627 /* it should remain joinable and hence detachable */
16628 sleep( 1 );
16629
16630 status = pthread_detach( &t );
16631 if( status ) return errno;
16632 #endif
16633
16634 #ifdef HAVE_LINUX_THREADS
16635 pthread_kill_other_threads_np();
16636 #endif
16637
16638 return 0;
16639
16640 }
16641
16642 _ACEOF
16643 if ac_fn_c_try_run "$LINENO"; then :
16644 ol_cv_pthread_lpthread_lmach_lexc=yes
16645 else
16646 ol_cv_pthread_lpthread_lmach_lexc=no
16647 fi
16648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16649 conftest.$ac_objext conftest.beam conftest.$ac_ext
16650 fi
16651
16652
16653 # restore the LIBS
16654 LIBS="$ol_LIBS"
16655
16656 fi
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
16658 $as_echo "$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
16659
16660 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
16661 ol_link_pthreads="-lpthread -lmach -lexc"
16662 ol_link_threads=posix
16663 fi
16664 fi
16665
16666
16667 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
16668 if test "$ol_link_threads" = no ; then
16669 # try -lpthread -Wl,-woff,85
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread -Wl,-woff,85" >&5
16671 $as_echo_n "checking for pthread link with -lpthread -Wl,-woff,85... " >&6; }
16672 if ${ol_cv_pthread_lib_lpthread_woff+:} false; then :
16673 $as_echo_n "(cached) " >&6
16674 else
16675
16676 # save the flags
16677 ol_LIBS="$LIBS"
16678 LIBS="-lpthread -Wl,-woff,85 $LIBS"
16679
16680 if test "$cross_compiling" = yes; then :
16681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16682 /* end confdefs.h. */
16683
16684 /* pthread test headers */
16685 #include <pthread.h>
16686 #if HAVE_PTHREADS < 7
16687 #include <errno.h>
16688 #endif
16689 #ifndef NULL
16690 #define NULL (void*)0
16691 #endif
16692
16693 static void *task(p)
16694 void *p;
16695 {
16696 return (void *) (p == NULL);
16697 }
16698
16699 int
16700 main ()
16701 {
16702
16703 /* pthread test function */
16704 #ifndef PTHREAD_CREATE_DETACHED
16705 #define PTHREAD_CREATE_DETACHED 1
16706 #endif
16707 pthread_t t;
16708 int status;
16709 int detach = PTHREAD_CREATE_DETACHED;
16710
16711 #if HAVE_PTHREADS > 4
16712 /* Final pthreads */
16713 pthread_attr_t attr;
16714
16715 status = pthread_attr_init(&attr);
16716 if( status ) return status;
16717
16718 #if HAVE_PTHREADS < 7
16719 status = pthread_attr_setdetachstate(&attr, &detach);
16720 if( status < 0 ) status = errno;
16721 #else
16722 status = pthread_attr_setdetachstate(&attr, detach);
16723 #endif
16724 if( status ) return status;
16725 status = pthread_create( &t, &attr, task, NULL );
16726 #if HAVE_PTHREADS < 7
16727 if( status < 0 ) status = errno;
16728 #endif
16729 if( status ) return status;
16730 #else
16731 /* Draft 4 pthreads */
16732 status = pthread_create( &t, pthread_attr_default, task, NULL );
16733 if( status ) return errno;
16734
16735 /* give thread a chance to complete */
16736 /* it should remain joinable and hence detachable */
16737 sleep( 1 );
16738
16739 status = pthread_detach( &t );
16740 if( status ) return errno;
16741 #endif
16742
16743 #ifdef HAVE_LINUX_THREADS
16744 pthread_kill_other_threads_np();
16745 #endif
16746
16747 return 0;
16748
16749 ;
16750 return 0;
16751 }
16752 _ACEOF
16753 if ac_fn_c_try_link "$LINENO"; then :
16754 ol_cv_pthread_lib_lpthread_woff=yes
16755 else
16756 ol_cv_pthread_lib_lpthread_woff=no
16757 fi
16758 rm -f core conftest.err conftest.$ac_objext \
16759 conftest$ac_exeext conftest.$ac_ext
16760 else
16761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16762 /* end confdefs.h. */
16763
16764
16765 /* pthread test headers */
16766 #include <pthread.h>
16767 #if HAVE_PTHREADS < 7
16768 #include <errno.h>
16769 #endif
16770 #ifndef NULL
16771 #define NULL (void*)0
16772 #endif
16773
16774 static void *task(p)
16775 void *p;
16776 {
16777 return (void *) (p == NULL);
16778 }
16779
16780
16781 int main(argc, argv)
16782 int argc;
16783 char **argv;
16784 {
16785
16786 /* pthread test function */
16787 #ifndef PTHREAD_CREATE_DETACHED
16788 #define PTHREAD_CREATE_DETACHED 1
16789 #endif
16790 pthread_t t;
16791 int status;
16792 int detach = PTHREAD_CREATE_DETACHED;
16793
16794 #if HAVE_PTHREADS > 4
16795 /* Final pthreads */
16796 pthread_attr_t attr;
16797
16798 status = pthread_attr_init(&attr);
16799 if( status ) return status;
16800
16801 #if HAVE_PTHREADS < 7
16802 status = pthread_attr_setdetachstate(&attr, &detach);
16803 if( status < 0 ) status = errno;
16804 #else
16805 status = pthread_attr_setdetachstate(&attr, detach);
16806 #endif
16807 if( status ) return status;
16808 status = pthread_create( &t, &attr, task, NULL );
16809 #if HAVE_PTHREADS < 7
16810 if( status < 0 ) status = errno;
16811 #endif
16812 if( status ) return status;
16813 #else
16814 /* Draft 4 pthreads */
16815 status = pthread_create( &t, pthread_attr_default, task, NULL );
16816 if( status ) return errno;
16817
16818 /* give thread a chance to complete */
16819 /* it should remain joinable and hence detachable */
16820 sleep( 1 );
16821
16822 status = pthread_detach( &t );
16823 if( status ) return errno;
16824 #endif
16825
16826 #ifdef HAVE_LINUX_THREADS
16827 pthread_kill_other_threads_np();
16828 #endif
16829
16830 return 0;
16831
16832 }
16833
16834 _ACEOF
16835 if ac_fn_c_try_run "$LINENO"; then :
16836 ol_cv_pthread_lib_lpthread_woff=yes
16837 else
16838 ol_cv_pthread_lib_lpthread_woff=no
16839 fi
16840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16841 conftest.$ac_objext conftest.beam conftest.$ac_ext
16842 fi
16843
16844
16845 # restore the LIBS
16846 LIBS="$ol_LIBS"
16847
16848 fi
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthread_woff" >&5
16850 $as_echo "$ol_cv_pthread_lib_lpthread_woff" >&6; }
16851
16852 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
16853 ol_link_pthreads="-lpthread -Wl,-woff,85"
16854 ol_link_threads=posix
16855 fi
16856 fi
16857
16858
16859 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
16860 if test "$ol_link_threads" = no ; then
16861 # try -lpthread
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthread" >&5
16863 $as_echo_n "checking for pthread link with -lpthread... " >&6; }
16864 if ${ol_cv_pthread_lpthread+:} false; then :
16865 $as_echo_n "(cached) " >&6
16866 else
16867
16868 # save the flags
16869 ol_LIBS="$LIBS"
16870 LIBS="-lpthread $LIBS"
16871
16872 if test "$cross_compiling" = yes; then :
16873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16874 /* end confdefs.h. */
16875
16876 /* pthread test headers */
16877 #include <pthread.h>
16878 #if HAVE_PTHREADS < 7
16879 #include <errno.h>
16880 #endif
16881 #ifndef NULL
16882 #define NULL (void*)0
16883 #endif
16884
16885 static void *task(p)
16886 void *p;
16887 {
16888 return (void *) (p == NULL);
16889 }
16890
16891 int
16892 main ()
16893 {
16894
16895 /* pthread test function */
16896 #ifndef PTHREAD_CREATE_DETACHED
16897 #define PTHREAD_CREATE_DETACHED 1
16898 #endif
16899 pthread_t t;
16900 int status;
16901 int detach = PTHREAD_CREATE_DETACHED;
16902
16903 #if HAVE_PTHREADS > 4
16904 /* Final pthreads */
16905 pthread_attr_t attr;
16906
16907 status = pthread_attr_init(&attr);
16908 if( status ) return status;
16909
16910 #if HAVE_PTHREADS < 7
16911 status = pthread_attr_setdetachstate(&attr, &detach);
16912 if( status < 0 ) status = errno;
16913 #else
16914 status = pthread_attr_setdetachstate(&attr, detach);
16915 #endif
16916 if( status ) return status;
16917 status = pthread_create( &t, &attr, task, NULL );
16918 #if HAVE_PTHREADS < 7
16919 if( status < 0 ) status = errno;
16920 #endif
16921 if( status ) return status;
16922 #else
16923 /* Draft 4 pthreads */
16924 status = pthread_create( &t, pthread_attr_default, task, NULL );
16925 if( status ) return errno;
16926
16927 /* give thread a chance to complete */
16928 /* it should remain joinable and hence detachable */
16929 sleep( 1 );
16930
16931 status = pthread_detach( &t );
16932 if( status ) return errno;
16933 #endif
16934
16935 #ifdef HAVE_LINUX_THREADS
16936 pthread_kill_other_threads_np();
16937 #endif
16938
16939 return 0;
16940
16941 ;
16942 return 0;
16943 }
16944 _ACEOF
16945 if ac_fn_c_try_link "$LINENO"; then :
16946 ol_cv_pthread_lpthread=yes
16947 else
16948 ol_cv_pthread_lpthread=no
16949 fi
16950 rm -f core conftest.err conftest.$ac_objext \
16951 conftest$ac_exeext conftest.$ac_ext
16952 else
16953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16954 /* end confdefs.h. */
16955
16956
16957 /* pthread test headers */
16958 #include <pthread.h>
16959 #if HAVE_PTHREADS < 7
16960 #include <errno.h>
16961 #endif
16962 #ifndef NULL
16963 #define NULL (void*)0
16964 #endif
16965
16966 static void *task(p)
16967 void *p;
16968 {
16969 return (void *) (p == NULL);
16970 }
16971
16972
16973 int main(argc, argv)
16974 int argc;
16975 char **argv;
16976 {
16977
16978 /* pthread test function */
16979 #ifndef PTHREAD_CREATE_DETACHED
16980 #define PTHREAD_CREATE_DETACHED 1
16981 #endif
16982 pthread_t t;
16983 int status;
16984 int detach = PTHREAD_CREATE_DETACHED;
16985
16986 #if HAVE_PTHREADS > 4
16987 /* Final pthreads */
16988 pthread_attr_t attr;
16989
16990 status = pthread_attr_init(&attr);
16991 if( status ) return status;
16992
16993 #if HAVE_PTHREADS < 7
16994 status = pthread_attr_setdetachstate(&attr, &detach);
16995 if( status < 0 ) status = errno;
16996 #else
16997 status = pthread_attr_setdetachstate(&attr, detach);
16998 #endif
16999 if( status ) return status;
17000 status = pthread_create( &t, &attr, task, NULL );
17001 #if HAVE_PTHREADS < 7
17002 if( status < 0 ) status = errno;
17003 #endif
17004 if( status ) return status;
17005 #else
17006 /* Draft 4 pthreads */
17007 status = pthread_create( &t, pthread_attr_default, task, NULL );
17008 if( status ) return errno;
17009
17010 /* give thread a chance to complete */
17011 /* it should remain joinable and hence detachable */
17012 sleep( 1 );
17013
17014 status = pthread_detach( &t );
17015 if( status ) return errno;
17016 #endif
17017
17018 #ifdef HAVE_LINUX_THREADS
17019 pthread_kill_other_threads_np();
17020 #endif
17021
17022 return 0;
17023
17024 }
17025
17026 _ACEOF
17027 if ac_fn_c_try_run "$LINENO"; then :
17028 ol_cv_pthread_lpthread=yes
17029 else
17030 ol_cv_pthread_lpthread=no
17031 fi
17032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17033 conftest.$ac_objext conftest.beam conftest.$ac_ext
17034 fi
17035
17036
17037 # restore the LIBS
17038 LIBS="$ol_LIBS"
17039
17040 fi
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthread" >&5
17042 $as_echo "$ol_cv_pthread_lpthread" >&6; }
17043
17044 if test $ol_cv_pthread_lpthread = yes ; then
17045 ol_link_pthreads="-lpthread"
17046 ol_link_threads=posix
17047 fi
17048 fi
17049
17050 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
17051 if test "$ol_link_threads" = no ; then
17052 # try -lc_r
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lc_r" >&5
17054 $as_echo_n "checking for pthread link with -lc_r... " >&6; }
17055 if ${ol_cv_pthread_lc_r+:} false; then :
17056 $as_echo_n "(cached) " >&6
17057 else
17058
17059 # save the flags
17060 ol_LIBS="$LIBS"
17061 LIBS="-lc_r $LIBS"
17062
17063 if test "$cross_compiling" = yes; then :
17064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17065 /* end confdefs.h. */
17066
17067 /* pthread test headers */
17068 #include <pthread.h>
17069 #if HAVE_PTHREADS < 7
17070 #include <errno.h>
17071 #endif
17072 #ifndef NULL
17073 #define NULL (void*)0
17074 #endif
17075
17076 static void *task(p)
17077 void *p;
17078 {
17079 return (void *) (p == NULL);
17080 }
17081
17082 int
17083 main ()
17084 {
17085
17086 /* pthread test function */
17087 #ifndef PTHREAD_CREATE_DETACHED
17088 #define PTHREAD_CREATE_DETACHED 1
17089 #endif
17090 pthread_t t;
17091 int status;
17092 int detach = PTHREAD_CREATE_DETACHED;
17093
17094 #if HAVE_PTHREADS > 4
17095 /* Final pthreads */
17096 pthread_attr_t attr;
17097
17098 status = pthread_attr_init(&attr);
17099 if( status ) return status;
17100
17101 #if HAVE_PTHREADS < 7
17102 status = pthread_attr_setdetachstate(&attr, &detach);
17103 if( status < 0 ) status = errno;
17104 #else
17105 status = pthread_attr_setdetachstate(&attr, detach);
17106 #endif
17107 if( status ) return status;
17108 status = pthread_create( &t, &attr, task, NULL );
17109 #if HAVE_PTHREADS < 7
17110 if( status < 0 ) status = errno;
17111 #endif
17112 if( status ) return status;
17113 #else
17114 /* Draft 4 pthreads */
17115 status = pthread_create( &t, pthread_attr_default, task, NULL );
17116 if( status ) return errno;
17117
17118 /* give thread a chance to complete */
17119 /* it should remain joinable and hence detachable */
17120 sleep( 1 );
17121
17122 status = pthread_detach( &t );
17123 if( status ) return errno;
17124 #endif
17125
17126 #ifdef HAVE_LINUX_THREADS
17127 pthread_kill_other_threads_np();
17128 #endif
17129
17130 return 0;
17131
17132 ;
17133 return 0;
17134 }
17135 _ACEOF
17136 if ac_fn_c_try_link "$LINENO"; then :
17137 ol_cv_pthread_lc_r=yes
17138 else
17139 ol_cv_pthread_lc_r=no
17140 fi
17141 rm -f core conftest.err conftest.$ac_objext \
17142 conftest$ac_exeext conftest.$ac_ext
17143 else
17144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17145 /* end confdefs.h. */
17146
17147
17148 /* pthread test headers */
17149 #include <pthread.h>
17150 #if HAVE_PTHREADS < 7
17151 #include <errno.h>
17152 #endif
17153 #ifndef NULL
17154 #define NULL (void*)0
17155 #endif
17156
17157 static void *task(p)
17158 void *p;
17159 {
17160 return (void *) (p == NULL);
17161 }
17162
17163
17164 int main(argc, argv)
17165 int argc;
17166 char **argv;
17167 {
17168
17169 /* pthread test function */
17170 #ifndef PTHREAD_CREATE_DETACHED
17171 #define PTHREAD_CREATE_DETACHED 1
17172 #endif
17173 pthread_t t;
17174 int status;
17175 int detach = PTHREAD_CREATE_DETACHED;
17176
17177 #if HAVE_PTHREADS > 4
17178 /* Final pthreads */
17179 pthread_attr_t attr;
17180
17181 status = pthread_attr_init(&attr);
17182 if( status ) return status;
17183
17184 #if HAVE_PTHREADS < 7
17185 status = pthread_attr_setdetachstate(&attr, &detach);
17186 if( status < 0 ) status = errno;
17187 #else
17188 status = pthread_attr_setdetachstate(&attr, detach);
17189 #endif
17190 if( status ) return status;
17191 status = pthread_create( &t, &attr, task, NULL );
17192 #if HAVE_PTHREADS < 7
17193 if( status < 0 ) status = errno;
17194 #endif
17195 if( status ) return status;
17196 #else
17197 /* Draft 4 pthreads */
17198 status = pthread_create( &t, pthread_attr_default, task, NULL );
17199 if( status ) return errno;
17200
17201 /* give thread a chance to complete */
17202 /* it should remain joinable and hence detachable */
17203 sleep( 1 );
17204
17205 status = pthread_detach( &t );
17206 if( status ) return errno;
17207 #endif
17208
17209 #ifdef HAVE_LINUX_THREADS
17210 pthread_kill_other_threads_np();
17211 #endif
17212
17213 return 0;
17214
17215 }
17216
17217 _ACEOF
17218 if ac_fn_c_try_run "$LINENO"; then :
17219 ol_cv_pthread_lc_r=yes
17220 else
17221 ol_cv_pthread_lc_r=no
17222 fi
17223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17224 conftest.$ac_objext conftest.beam conftest.$ac_ext
17225 fi
17226
17227
17228 # restore the LIBS
17229 LIBS="$ol_LIBS"
17230
17231 fi
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lc_r" >&5
17233 $as_echo "$ol_cv_pthread_lc_r" >&6; }
17234
17235 if test $ol_cv_pthread_lc_r = yes ; then
17236 ol_link_pthreads="-lc_r"
17237 ol_link_threads=posix
17238 fi
17239 fi
17240
17241
17242 # Pthread try link: -threads (ol_cv_pthread_threads)
17243 if test "$ol_link_threads" = no ; then
17244 # try -threads
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -threads" >&5
17246 $as_echo_n "checking for pthread link with -threads... " >&6; }
17247 if ${ol_cv_pthread_threads+:} false; then :
17248 $as_echo_n "(cached) " >&6
17249 else
17250
17251 # save the flags
17252 ol_LIBS="$LIBS"
17253 LIBS="-threads $LIBS"
17254
17255 if test "$cross_compiling" = yes; then :
17256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17257 /* end confdefs.h. */
17258
17259 /* pthread test headers */
17260 #include <pthread.h>
17261 #if HAVE_PTHREADS < 7
17262 #include <errno.h>
17263 #endif
17264 #ifndef NULL
17265 #define NULL (void*)0
17266 #endif
17267
17268 static void *task(p)
17269 void *p;
17270 {
17271 return (void *) (p == NULL);
17272 }
17273
17274 int
17275 main ()
17276 {
17277
17278 /* pthread test function */
17279 #ifndef PTHREAD_CREATE_DETACHED
17280 #define PTHREAD_CREATE_DETACHED 1
17281 #endif
17282 pthread_t t;
17283 int status;
17284 int detach = PTHREAD_CREATE_DETACHED;
17285
17286 #if HAVE_PTHREADS > 4
17287 /* Final pthreads */
17288 pthread_attr_t attr;
17289
17290 status = pthread_attr_init(&attr);
17291 if( status ) return status;
17292
17293 #if HAVE_PTHREADS < 7
17294 status = pthread_attr_setdetachstate(&attr, &detach);
17295 if( status < 0 ) status = errno;
17296 #else
17297 status = pthread_attr_setdetachstate(&attr, detach);
17298 #endif
17299 if( status ) return status;
17300 status = pthread_create( &t, &attr, task, NULL );
17301 #if HAVE_PTHREADS < 7
17302 if( status < 0 ) status = errno;
17303 #endif
17304 if( status ) return status;
17305 #else
17306 /* Draft 4 pthreads */
17307 status = pthread_create( &t, pthread_attr_default, task, NULL );
17308 if( status ) return errno;
17309
17310 /* give thread a chance to complete */
17311 /* it should remain joinable and hence detachable */
17312 sleep( 1 );
17313
17314 status = pthread_detach( &t );
17315 if( status ) return errno;
17316 #endif
17317
17318 #ifdef HAVE_LINUX_THREADS
17319 pthread_kill_other_threads_np();
17320 #endif
17321
17322 return 0;
17323
17324 ;
17325 return 0;
17326 }
17327 _ACEOF
17328 if ac_fn_c_try_link "$LINENO"; then :
17329 ol_cv_pthread_threads=yes
17330 else
17331 ol_cv_pthread_threads=no
17332 fi
17333 rm -f core conftest.err conftest.$ac_objext \
17334 conftest$ac_exeext conftest.$ac_ext
17335 else
17336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17337 /* end confdefs.h. */
17338
17339
17340 /* pthread test headers */
17341 #include <pthread.h>
17342 #if HAVE_PTHREADS < 7
17343 #include <errno.h>
17344 #endif
17345 #ifndef NULL
17346 #define NULL (void*)0
17347 #endif
17348
17349 static void *task(p)
17350 void *p;
17351 {
17352 return (void *) (p == NULL);
17353 }
17354
17355
17356 int main(argc, argv)
17357 int argc;
17358 char **argv;
17359 {
17360
17361 /* pthread test function */
17362 #ifndef PTHREAD_CREATE_DETACHED
17363 #define PTHREAD_CREATE_DETACHED 1
17364 #endif
17365 pthread_t t;
17366 int status;
17367 int detach = PTHREAD_CREATE_DETACHED;
17368
17369 #if HAVE_PTHREADS > 4
17370 /* Final pthreads */
17371 pthread_attr_t attr;
17372
17373 status = pthread_attr_init(&attr);
17374 if( status ) return status;
17375
17376 #if HAVE_PTHREADS < 7
17377 status = pthread_attr_setdetachstate(&attr, &detach);
17378 if( status < 0 ) status = errno;
17379 #else
17380 status = pthread_attr_setdetachstate(&attr, detach);
17381 #endif
17382 if( status ) return status;
17383 status = pthread_create( &t, &attr, task, NULL );
17384 #if HAVE_PTHREADS < 7
17385 if( status < 0 ) status = errno;
17386 #endif
17387 if( status ) return status;
17388 #else
17389 /* Draft 4 pthreads */
17390 status = pthread_create( &t, pthread_attr_default, task, NULL );
17391 if( status ) return errno;
17392
17393 /* give thread a chance to complete */
17394 /* it should remain joinable and hence detachable */
17395 sleep( 1 );
17396
17397 status = pthread_detach( &t );
17398 if( status ) return errno;
17399 #endif
17400
17401 #ifdef HAVE_LINUX_THREADS
17402 pthread_kill_other_threads_np();
17403 #endif
17404
17405 return 0;
17406
17407 }
17408
17409 _ACEOF
17410 if ac_fn_c_try_run "$LINENO"; then :
17411 ol_cv_pthread_threads=yes
17412 else
17413 ol_cv_pthread_threads=no
17414 fi
17415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17416 conftest.$ac_objext conftest.beam conftest.$ac_ext
17417 fi
17418
17419
17420 # restore the LIBS
17421 LIBS="$ol_LIBS"
17422
17423 fi
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_threads" >&5
17425 $as_echo "$ol_cv_pthread_threads" >&6; }
17426
17427 if test $ol_cv_pthread_threads = yes ; then
17428 ol_link_pthreads="-threads"
17429 ol_link_threads=posix
17430 fi
17431 fi
17432
17433
17434 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
17435 if test "$ol_link_threads" = no ; then
17436 # try -lpthreads -lmach -lexc -lc_r
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
17438 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r... " >&6; }
17439 if ${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+:} false; then :
17440 $as_echo_n "(cached) " >&6
17441 else
17442
17443 # save the flags
17444 ol_LIBS="$LIBS"
17445 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
17446
17447 if test "$cross_compiling" = yes; then :
17448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17449 /* end confdefs.h. */
17450
17451 /* pthread test headers */
17452 #include <pthread.h>
17453 #if HAVE_PTHREADS < 7
17454 #include <errno.h>
17455 #endif
17456 #ifndef NULL
17457 #define NULL (void*)0
17458 #endif
17459
17460 static void *task(p)
17461 void *p;
17462 {
17463 return (void *) (p == NULL);
17464 }
17465
17466 int
17467 main ()
17468 {
17469
17470 /* pthread test function */
17471 #ifndef PTHREAD_CREATE_DETACHED
17472 #define PTHREAD_CREATE_DETACHED 1
17473 #endif
17474 pthread_t t;
17475 int status;
17476 int detach = PTHREAD_CREATE_DETACHED;
17477
17478 #if HAVE_PTHREADS > 4
17479 /* Final pthreads */
17480 pthread_attr_t attr;
17481
17482 status = pthread_attr_init(&attr);
17483 if( status ) return status;
17484
17485 #if HAVE_PTHREADS < 7
17486 status = pthread_attr_setdetachstate(&attr, &detach);
17487 if( status < 0 ) status = errno;
17488 #else
17489 status = pthread_attr_setdetachstate(&attr, detach);
17490 #endif
17491 if( status ) return status;
17492 status = pthread_create( &t, &attr, task, NULL );
17493 #if HAVE_PTHREADS < 7
17494 if( status < 0 ) status = errno;
17495 #endif
17496 if( status ) return status;
17497 #else
17498 /* Draft 4 pthreads */
17499 status = pthread_create( &t, pthread_attr_default, task, NULL );
17500 if( status ) return errno;
17501
17502 /* give thread a chance to complete */
17503 /* it should remain joinable and hence detachable */
17504 sleep( 1 );
17505
17506 status = pthread_detach( &t );
17507 if( status ) return errno;
17508 #endif
17509
17510 #ifdef HAVE_LINUX_THREADS
17511 pthread_kill_other_threads_np();
17512 #endif
17513
17514 return 0;
17515
17516 ;
17517 return 0;
17518 }
17519 _ACEOF
17520 if ac_fn_c_try_link "$LINENO"; then :
17521 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
17522 else
17523 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
17524 fi
17525 rm -f core conftest.err conftest.$ac_objext \
17526 conftest$ac_exeext conftest.$ac_ext
17527 else
17528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17529 /* end confdefs.h. */
17530
17531
17532 /* pthread test headers */
17533 #include <pthread.h>
17534 #if HAVE_PTHREADS < 7
17535 #include <errno.h>
17536 #endif
17537 #ifndef NULL
17538 #define NULL (void*)0
17539 #endif
17540
17541 static void *task(p)
17542 void *p;
17543 {
17544 return (void *) (p == NULL);
17545 }
17546
17547
17548 int main(argc, argv)
17549 int argc;
17550 char **argv;
17551 {
17552
17553 /* pthread test function */
17554 #ifndef PTHREAD_CREATE_DETACHED
17555 #define PTHREAD_CREATE_DETACHED 1
17556 #endif
17557 pthread_t t;
17558 int status;
17559 int detach = PTHREAD_CREATE_DETACHED;
17560
17561 #if HAVE_PTHREADS > 4
17562 /* Final pthreads */
17563 pthread_attr_t attr;
17564
17565 status = pthread_attr_init(&attr);
17566 if( status ) return status;
17567
17568 #if HAVE_PTHREADS < 7
17569 status = pthread_attr_setdetachstate(&attr, &detach);
17570 if( status < 0 ) status = errno;
17571 #else
17572 status = pthread_attr_setdetachstate(&attr, detach);
17573 #endif
17574 if( status ) return status;
17575 status = pthread_create( &t, &attr, task, NULL );
17576 #if HAVE_PTHREADS < 7
17577 if( status < 0 ) status = errno;
17578 #endif
17579 if( status ) return status;
17580 #else
17581 /* Draft 4 pthreads */
17582 status = pthread_create( &t, pthread_attr_default, task, NULL );
17583 if( status ) return errno;
17584
17585 /* give thread a chance to complete */
17586 /* it should remain joinable and hence detachable */
17587 sleep( 1 );
17588
17589 status = pthread_detach( &t );
17590 if( status ) return errno;
17591 #endif
17592
17593 #ifdef HAVE_LINUX_THREADS
17594 pthread_kill_other_threads_np();
17595 #endif
17596
17597 return 0;
17598
17599 }
17600
17601 _ACEOF
17602 if ac_fn_c_try_run "$LINENO"; then :
17603 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
17604 else
17605 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
17606 fi
17607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17608 conftest.$ac_objext conftest.beam conftest.$ac_ext
17609 fi
17610
17611
17612 # restore the LIBS
17613 LIBS="$ol_LIBS"
17614
17615 fi
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
17617 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
17618
17619 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
17620 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
17621 ol_link_threads=posix
17622 fi
17623 fi
17624
17625 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
17626 if test "$ol_link_threads" = no ; then
17627 # try -lpthreads -lmach -lexc
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lmach -lexc" >&5
17629 $as_echo_n "checking for pthread link with -lpthreads -lmach -lexc... " >&6; }
17630 if ${ol_cv_pthread_lpthreads_lmach_lexc+:} false; then :
17631 $as_echo_n "(cached) " >&6
17632 else
17633
17634 # save the flags
17635 ol_LIBS="$LIBS"
17636 LIBS="-lpthreads -lmach -lexc $LIBS"
17637
17638 if test "$cross_compiling" = yes; then :
17639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17640 /* end confdefs.h. */
17641
17642 /* pthread test headers */
17643 #include <pthread.h>
17644 #if HAVE_PTHREADS < 7
17645 #include <errno.h>
17646 #endif
17647 #ifndef NULL
17648 #define NULL (void*)0
17649 #endif
17650
17651 static void *task(p)
17652 void *p;
17653 {
17654 return (void *) (p == NULL);
17655 }
17656
17657 int
17658 main ()
17659 {
17660
17661 /* pthread test function */
17662 #ifndef PTHREAD_CREATE_DETACHED
17663 #define PTHREAD_CREATE_DETACHED 1
17664 #endif
17665 pthread_t t;
17666 int status;
17667 int detach = PTHREAD_CREATE_DETACHED;
17668
17669 #if HAVE_PTHREADS > 4
17670 /* Final pthreads */
17671 pthread_attr_t attr;
17672
17673 status = pthread_attr_init(&attr);
17674 if( status ) return status;
17675
17676 #if HAVE_PTHREADS < 7
17677 status = pthread_attr_setdetachstate(&attr, &detach);
17678 if( status < 0 ) status = errno;
17679 #else
17680 status = pthread_attr_setdetachstate(&attr, detach);
17681 #endif
17682 if( status ) return status;
17683 status = pthread_create( &t, &attr, task, NULL );
17684 #if HAVE_PTHREADS < 7
17685 if( status < 0 ) status = errno;
17686 #endif
17687 if( status ) return status;
17688 #else
17689 /* Draft 4 pthreads */
17690 status = pthread_create( &t, pthread_attr_default, task, NULL );
17691 if( status ) return errno;
17692
17693 /* give thread a chance to complete */
17694 /* it should remain joinable and hence detachable */
17695 sleep( 1 );
17696
17697 status = pthread_detach( &t );
17698 if( status ) return errno;
17699 #endif
17700
17701 #ifdef HAVE_LINUX_THREADS
17702 pthread_kill_other_threads_np();
17703 #endif
17704
17705 return 0;
17706
17707 ;
17708 return 0;
17709 }
17710 _ACEOF
17711 if ac_fn_c_try_link "$LINENO"; then :
17712 ol_cv_pthread_lpthreads_lmach_lexc=yes
17713 else
17714 ol_cv_pthread_lpthreads_lmach_lexc=no
17715 fi
17716 rm -f core conftest.err conftest.$ac_objext \
17717 conftest$ac_exeext conftest.$ac_ext
17718 else
17719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17720 /* end confdefs.h. */
17721
17722
17723 /* pthread test headers */
17724 #include <pthread.h>
17725 #if HAVE_PTHREADS < 7
17726 #include <errno.h>
17727 #endif
17728 #ifndef NULL
17729 #define NULL (void*)0
17730 #endif
17731
17732 static void *task(p)
17733 void *p;
17734 {
17735 return (void *) (p == NULL);
17736 }
17737
17738
17739 int main(argc, argv)
17740 int argc;
17741 char **argv;
17742 {
17743
17744 /* pthread test function */
17745 #ifndef PTHREAD_CREATE_DETACHED
17746 #define PTHREAD_CREATE_DETACHED 1
17747 #endif
17748 pthread_t t;
17749 int status;
17750 int detach = PTHREAD_CREATE_DETACHED;
17751
17752 #if HAVE_PTHREADS > 4
17753 /* Final pthreads */
17754 pthread_attr_t attr;
17755
17756 status = pthread_attr_init(&attr);
17757 if( status ) return status;
17758
17759 #if HAVE_PTHREADS < 7
17760 status = pthread_attr_setdetachstate(&attr, &detach);
17761 if( status < 0 ) status = errno;
17762 #else
17763 status = pthread_attr_setdetachstate(&attr, detach);
17764 #endif
17765 if( status ) return status;
17766 status = pthread_create( &t, &attr, task, NULL );
17767 #if HAVE_PTHREADS < 7
17768 if( status < 0 ) status = errno;
17769 #endif
17770 if( status ) return status;
17771 #else
17772 /* Draft 4 pthreads */
17773 status = pthread_create( &t, pthread_attr_default, task, NULL );
17774 if( status ) return errno;
17775
17776 /* give thread a chance to complete */
17777 /* it should remain joinable and hence detachable */
17778 sleep( 1 );
17779
17780 status = pthread_detach( &t );
17781 if( status ) return errno;
17782 #endif
17783
17784 #ifdef HAVE_LINUX_THREADS
17785 pthread_kill_other_threads_np();
17786 #endif
17787
17788 return 0;
17789
17790 }
17791
17792 _ACEOF
17793 if ac_fn_c_try_run "$LINENO"; then :
17794 ol_cv_pthread_lpthreads_lmach_lexc=yes
17795 else
17796 ol_cv_pthread_lpthreads_lmach_lexc=no
17797 fi
17798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17799 conftest.$ac_objext conftest.beam conftest.$ac_ext
17800 fi
17801
17802
17803 # restore the LIBS
17804 LIBS="$ol_LIBS"
17805
17806 fi
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
17808 $as_echo "$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
17809
17810 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
17811 ol_link_pthreads="-lpthreads -lmach -lexc"
17812 ol_link_threads=posix
17813 fi
17814 fi
17815
17816 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
17817 if test "$ol_link_threads" = no ; then
17818 # try -lpthreads -lexc
17819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads -lexc" >&5
17820 $as_echo_n "checking for pthread link with -lpthreads -lexc... " >&6; }
17821 if ${ol_cv_pthread_lpthreads_lexc+:} false; then :
17822 $as_echo_n "(cached) " >&6
17823 else
17824
17825 # save the flags
17826 ol_LIBS="$LIBS"
17827 LIBS="-lpthreads -lexc $LIBS"
17828
17829 if test "$cross_compiling" = yes; then :
17830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17831 /* end confdefs.h. */
17832
17833 /* pthread test headers */
17834 #include <pthread.h>
17835 #if HAVE_PTHREADS < 7
17836 #include <errno.h>
17837 #endif
17838 #ifndef NULL
17839 #define NULL (void*)0
17840 #endif
17841
17842 static void *task(p)
17843 void *p;
17844 {
17845 return (void *) (p == NULL);
17846 }
17847
17848 int
17849 main ()
17850 {
17851
17852 /* pthread test function */
17853 #ifndef PTHREAD_CREATE_DETACHED
17854 #define PTHREAD_CREATE_DETACHED 1
17855 #endif
17856 pthread_t t;
17857 int status;
17858 int detach = PTHREAD_CREATE_DETACHED;
17859
17860 #if HAVE_PTHREADS > 4
17861 /* Final pthreads */
17862 pthread_attr_t attr;
17863
17864 status = pthread_attr_init(&attr);
17865 if( status ) return status;
17866
17867 #if HAVE_PTHREADS < 7
17868 status = pthread_attr_setdetachstate(&attr, &detach);
17869 if( status < 0 ) status = errno;
17870 #else
17871 status = pthread_attr_setdetachstate(&attr, detach);
17872 #endif
17873 if( status ) return status;
17874 status = pthread_create( &t, &attr, task, NULL );
17875 #if HAVE_PTHREADS < 7
17876 if( status < 0 ) status = errno;
17877 #endif
17878 if( status ) return status;
17879 #else
17880 /* Draft 4 pthreads */
17881 status = pthread_create( &t, pthread_attr_default, task, NULL );
17882 if( status ) return errno;
17883
17884 /* give thread a chance to complete */
17885 /* it should remain joinable and hence detachable */
17886 sleep( 1 );
17887
17888 status = pthread_detach( &t );
17889 if( status ) return errno;
17890 #endif
17891
17892 #ifdef HAVE_LINUX_THREADS
17893 pthread_kill_other_threads_np();
17894 #endif
17895
17896 return 0;
17897
17898 ;
17899 return 0;
17900 }
17901 _ACEOF
17902 if ac_fn_c_try_link "$LINENO"; then :
17903 ol_cv_pthread_lpthreads_lexc=yes
17904 else
17905 ol_cv_pthread_lpthreads_lexc=no
17906 fi
17907 rm -f core conftest.err conftest.$ac_objext \
17908 conftest$ac_exeext conftest.$ac_ext
17909 else
17910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17911 /* end confdefs.h. */
17912
17913
17914 /* pthread test headers */
17915 #include <pthread.h>
17916 #if HAVE_PTHREADS < 7
17917 #include <errno.h>
17918 #endif
17919 #ifndef NULL
17920 #define NULL (void*)0
17921 #endif
17922
17923 static void *task(p)
17924 void *p;
17925 {
17926 return (void *) (p == NULL);
17927 }
17928
17929
17930 int main(argc, argv)
17931 int argc;
17932 char **argv;
17933 {
17934
17935 /* pthread test function */
17936 #ifndef PTHREAD_CREATE_DETACHED
17937 #define PTHREAD_CREATE_DETACHED 1
17938 #endif
17939 pthread_t t;
17940 int status;
17941 int detach = PTHREAD_CREATE_DETACHED;
17942
17943 #if HAVE_PTHREADS > 4
17944 /* Final pthreads */
17945 pthread_attr_t attr;
17946
17947 status = pthread_attr_init(&attr);
17948 if( status ) return status;
17949
17950 #if HAVE_PTHREADS < 7
17951 status = pthread_attr_setdetachstate(&attr, &detach);
17952 if( status < 0 ) status = errno;
17953 #else
17954 status = pthread_attr_setdetachstate(&attr, detach);
17955 #endif
17956 if( status ) return status;
17957 status = pthread_create( &t, &attr, task, NULL );
17958 #if HAVE_PTHREADS < 7
17959 if( status < 0 ) status = errno;
17960 #endif
17961 if( status ) return status;
17962 #else
17963 /* Draft 4 pthreads */
17964 status = pthread_create( &t, pthread_attr_default, task, NULL );
17965 if( status ) return errno;
17966
17967 /* give thread a chance to complete */
17968 /* it should remain joinable and hence detachable */
17969 sleep( 1 );
17970
17971 status = pthread_detach( &t );
17972 if( status ) return errno;
17973 #endif
17974
17975 #ifdef HAVE_LINUX_THREADS
17976 pthread_kill_other_threads_np();
17977 #endif
17978
17979 return 0;
17980
17981 }
17982
17983 _ACEOF
17984 if ac_fn_c_try_run "$LINENO"; then :
17985 ol_cv_pthread_lpthreads_lexc=yes
17986 else
17987 ol_cv_pthread_lpthreads_lexc=no
17988 fi
17989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17990 conftest.$ac_objext conftest.beam conftest.$ac_ext
17991 fi
17992
17993
17994 # restore the LIBS
17995 LIBS="$ol_LIBS"
17996
17997 fi
17998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lpthreads_lexc" >&5
17999 $as_echo "$ol_cv_pthread_lpthreads_lexc" >&6; }
18000
18001 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
18002 ol_link_pthreads="-lpthreads -lexc"
18003 ol_link_threads=posix
18004 fi
18005 fi
18006
18007
18008 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
18009 if test "$ol_link_threads" = no ; then
18010 # try -lpthreads
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread link with -lpthreads" >&5
18012 $as_echo_n "checking for pthread link with -lpthreads... " >&6; }
18013 if ${ol_cv_pthread_lib_lpthreads+:} false; then :
18014 $as_echo_n "(cached) " >&6
18015 else
18016
18017 # save the flags
18018 ol_LIBS="$LIBS"
18019 LIBS="-lpthreads $LIBS"
18020
18021 if test "$cross_compiling" = yes; then :
18022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18023 /* end confdefs.h. */
18024
18025 /* pthread test headers */
18026 #include <pthread.h>
18027 #if HAVE_PTHREADS < 7
18028 #include <errno.h>
18029 #endif
18030 #ifndef NULL
18031 #define NULL (void*)0
18032 #endif
18033
18034 static void *task(p)
18035 void *p;
18036 {
18037 return (void *) (p == NULL);
18038 }
18039
18040 int
18041 main ()
18042 {
18043
18044 /* pthread test function */
18045 #ifndef PTHREAD_CREATE_DETACHED
18046 #define PTHREAD_CREATE_DETACHED 1
18047 #endif
18048 pthread_t t;
18049 int status;
18050 int detach = PTHREAD_CREATE_DETACHED;
18051
18052 #if HAVE_PTHREADS > 4
18053 /* Final pthreads */
18054 pthread_attr_t attr;
18055
18056 status = pthread_attr_init(&attr);
18057 if( status ) return status;
18058
18059 #if HAVE_PTHREADS < 7
18060 status = pthread_attr_setdetachstate(&attr, &detach);
18061 if( status < 0 ) status = errno;
18062 #else
18063 status = pthread_attr_setdetachstate(&attr, detach);
18064 #endif
18065 if( status ) return status;
18066 status = pthread_create( &t, &attr, task, NULL );
18067 #if HAVE_PTHREADS < 7
18068 if( status < 0 ) status = errno;
18069 #endif
18070 if( status ) return status;
18071 #else
18072 /* Draft 4 pthreads */
18073 status = pthread_create( &t, pthread_attr_default, task, NULL );
18074 if( status ) return errno;
18075
18076 /* give thread a chance to complete */
18077 /* it should remain joinable and hence detachable */
18078 sleep( 1 );
18079
18080 status = pthread_detach( &t );
18081 if( status ) return errno;
18082 #endif
18083
18084 #ifdef HAVE_LINUX_THREADS
18085 pthread_kill_other_threads_np();
18086 #endif
18087
18088 return 0;
18089
18090 ;
18091 return 0;
18092 }
18093 _ACEOF
18094 if ac_fn_c_try_link "$LINENO"; then :
18095 ol_cv_pthread_lib_lpthreads=yes
18096 else
18097 ol_cv_pthread_lib_lpthreads=no
18098 fi
18099 rm -f core conftest.err conftest.$ac_objext \
18100 conftest$ac_exeext conftest.$ac_ext
18101 else
18102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18103 /* end confdefs.h. */
18104
18105
18106 /* pthread test headers */
18107 #include <pthread.h>
18108 #if HAVE_PTHREADS < 7
18109 #include <errno.h>
18110 #endif
18111 #ifndef NULL
18112 #define NULL (void*)0
18113 #endif
18114
18115 static void *task(p)
18116 void *p;
18117 {
18118 return (void *) (p == NULL);
18119 }
18120
18121
18122 int main(argc, argv)
18123 int argc;
18124 char **argv;
18125 {
18126
18127 /* pthread test function */
18128 #ifndef PTHREAD_CREATE_DETACHED
18129 #define PTHREAD_CREATE_DETACHED 1
18130 #endif
18131 pthread_t t;
18132 int status;
18133 int detach = PTHREAD_CREATE_DETACHED;
18134
18135 #if HAVE_PTHREADS > 4
18136 /* Final pthreads */
18137 pthread_attr_t attr;
18138
18139 status = pthread_attr_init(&attr);
18140 if( status ) return status;
18141
18142 #if HAVE_PTHREADS < 7
18143 status = pthread_attr_setdetachstate(&attr, &detach);
18144 if( status < 0 ) status = errno;
18145 #else
18146 status = pthread_attr_setdetachstate(&attr, detach);
18147 #endif
18148 if( status ) return status;
18149 status = pthread_create( &t, &attr, task, NULL );
18150 #if HAVE_PTHREADS < 7
18151 if( status < 0 ) status = errno;
18152 #endif
18153 if( status ) return status;
18154 #else
18155 /* Draft 4 pthreads */
18156 status = pthread_create( &t, pthread_attr_default, task, NULL );
18157 if( status ) return errno;
18158
18159 /* give thread a chance to complete */
18160 /* it should remain joinable and hence detachable */
18161 sleep( 1 );
18162
18163 status = pthread_detach( &t );
18164 if( status ) return errno;
18165 #endif
18166
18167 #ifdef HAVE_LINUX_THREADS
18168 pthread_kill_other_threads_np();
18169 #endif
18170
18171 return 0;
18172
18173 }
18174
18175 _ACEOF
18176 if ac_fn_c_try_run "$LINENO"; then :
18177 ol_cv_pthread_lib_lpthreads=yes
18178 else
18179 ol_cv_pthread_lib_lpthreads=no
18180 fi
18181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18182 conftest.$ac_objext conftest.beam conftest.$ac_ext
18183 fi
18184
18185
18186 # restore the LIBS
18187 LIBS="$ol_LIBS"
18188
18189 fi
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_lib_lpthreads" >&5
18191 $as_echo "$ol_cv_pthread_lib_lpthreads" >&6; }
18192
18193 if test $ol_cv_pthread_lib_lpthreads = yes ; then
18194 ol_link_pthreads="-lpthreads"
18195 ol_link_threads=posix
18196 fi
18197 fi
18198
18199
18200 if test $ol_link_threads != no ; then
18201 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
18202
18203 save_CPPFLAGS="$CPPFLAGS"
18204 save_LIBS="$LIBS"
18205 LIBS="$LTHREAD_LIBS $LIBS"
18206
18207 for ac_func in sched_yield pthread_yield thr_yield
18208 do :
18209 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18210 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18211 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18212 cat >>confdefs.h <<_ACEOF
18213 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18214 _ACEOF
18215
18216 fi
18217 done
18218
18219
18220 if test $ac_cv_func_sched_yield = no &&
18221 test $ac_cv_func_pthread_yield = no &&
18222 test $ac_cv_func_thr_yield = no ; then
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
18224 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
18225 if ${ac_cv_lib_rt_sched_yield+:} false; then :
18226 $as_echo_n "(cached) " >&6
18227 else
18228 ac_check_lib_save_LIBS=$LIBS
18229 LIBS="-lrt $LIBS"
18230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18231 /* end confdefs.h. */
18232
18233 /* Override any GCC internal prototype to avoid an error.
18234 Use char because int might match the return type of a GCC
18235 builtin and then its argument prototype would still apply. */
18236 #ifdef __cplusplus
18237 extern "C"
18238 #endif
18239 char sched_yield ();
18240 int
18241 main ()
18242 {
18243 return sched_yield ();
18244 ;
18245 return 0;
18246 }
18247 _ACEOF
18248 if ac_fn_c_try_link "$LINENO"; then :
18249 ac_cv_lib_rt_sched_yield=yes
18250 else
18251 ac_cv_lib_rt_sched_yield=no
18252 fi
18253 rm -f core conftest.err conftest.$ac_objext \
18254 conftest$ac_exeext conftest.$ac_ext
18255 LIBS=$ac_check_lib_save_LIBS
18256 fi
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
18258 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
18259 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
18260 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
18261
18262 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
18263
18264 ac_cv_func_sched_yield=yes
18265 else
18266 ac_cv_func_sched_yield=no
18267 fi
18268
18269 fi
18270 if test $ac_cv_func_sched_yield = no &&
18271 test $ac_cv_func_pthread_yield = no &&
18272 test "$ac_cv_func_thr_yield" = no ; then
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not locate sched_yield() or pthread_yield()" >&5
18274 $as_echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
18275 fi
18276
18277 for ac_func in pthread_kill
18278 do :
18279 ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
18280 if test "x$ac_cv_func_pthread_kill" = xyes; then :
18281 cat >>confdefs.h <<_ACEOF
18282 #define HAVE_PTHREAD_KILL 1
18283 _ACEOF
18284
18285 fi
18286 done
18287
18288
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy with <pthread.h>" >&5
18290 $as_echo_n "checking for pthread_rwlock_destroy with <pthread.h>... " >&6; }
18291 if ${ol_cv_func_pthread_rwlock_destroy+:} false; then :
18292 $as_echo_n "(cached) " >&6
18293 else
18294
18295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18296 /* end confdefs.h. */
18297
18298 #include <pthread.h>
18299 pthread_rwlock_t rwlock;
18300
18301 int
18302 main ()
18303 {
18304 pthread_rwlock_destroy(&rwlock);
18305 ;
18306 return 0;
18307 }
18308 _ACEOF
18309 if ac_fn_c_try_link "$LINENO"; then :
18310 ol_cv_func_pthread_rwlock_destroy=yes
18311 else
18312 ol_cv_func_pthread_rwlock_destroy=no
18313 fi
18314 rm -f core conftest.err conftest.$ac_objext \
18315 conftest$ac_exeext conftest.$ac_ext
18316
18317 fi
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_rwlock_destroy" >&5
18319 $as_echo "$ol_cv_func_pthread_rwlock_destroy" >&6; }
18320 if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
18321
18322 $as_echo "#define HAVE_PTHREAD_RWLOCK_DESTROY 1" >>confdefs.h
18323
18324 fi
18325
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_detach with <pthread.h>" >&5
18327 $as_echo_n "checking for pthread_detach with <pthread.h>... " >&6; }
18328 if ${ol_cv_func_pthread_detach+:} false; then :
18329 $as_echo_n "(cached) " >&6
18330 else
18331
18332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18333 /* end confdefs.h. */
18334
18335 #include <pthread.h>
18336 #ifndef NULL
18337 #define NULL (void*)0
18338 #endif
18339
18340 int
18341 main ()
18342 {
18343 pthread_detach(NULL);
18344 ;
18345 return 0;
18346 }
18347 _ACEOF
18348 if ac_fn_c_try_link "$LINENO"; then :
18349 ol_cv_func_pthread_detach=yes
18350 else
18351 ol_cv_func_pthread_detach=no
18352 fi
18353 rm -f core conftest.err conftest.$ac_objext \
18354 conftest$ac_exeext conftest.$ac_ext
18355
18356 fi
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_func_pthread_detach" >&5
18358 $as_echo "$ol_cv_func_pthread_detach" >&6; }
18359
18360 if test $ol_cv_func_pthread_detach = no ; then
18361 as_fn_error $? "could not locate pthread_detach()" "$LINENO" 5
18362 fi
18363
18364
18365 $as_echo "#define HAVE_PTHREAD_DETACH 1" >>confdefs.h
18366
18367
18368 for ac_func in \
18369 pthread_setconcurrency \
18370 pthread_getconcurrency \
18371 thr_setconcurrency \
18372 thr_getconcurrency \
18373
18374 do :
18375 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18376 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18377 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18378 cat >>confdefs.h <<_ACEOF
18379 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18380 _ACEOF
18381
18382 fi
18383 done
18384
18385
18386
18387 for ac_func in pthread_kill_other_threads_np
18388 do :
18389 ac_fn_c_check_func "$LINENO" "pthread_kill_other_threads_np" "ac_cv_func_pthread_kill_other_threads_np"
18390 if test "x$ac_cv_func_pthread_kill_other_threads_np" = xyes; then :
18391 cat >>confdefs.h <<_ACEOF
18392 #define HAVE_PTHREAD_KILL_OTHER_THREADS_NP 1
18393 _ACEOF
18394
18395 fi
18396 done
18397
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads implementation" >&5
18399 $as_echo_n "checking for LinuxThreads implementation... " >&6; }
18400 if ${ol_cv_sys_linux_threads+:} false; then :
18401 $as_echo_n "(cached) " >&6
18402 else
18403 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
18404 fi
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_sys_linux_threads" >&5
18406 $as_echo "$ol_cv_sys_linux_threads" >&6; }
18407
18408
18409
18410
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads consistency" >&5
18412 $as_echo_n "checking for LinuxThreads consistency... " >&6; }
18413 if ${ol_cv_linux_threads+:} false; then :
18414 $as_echo_n "(cached) " >&6
18415 else
18416
18417 if test $ol_cv_header_linux_threads = yes &&
18418 test $ol_cv_sys_linux_threads = yes; then
18419 ol_cv_linux_threads=yes
18420 elif test $ol_cv_header_linux_threads = no &&
18421 test $ol_cv_sys_linux_threads = no; then
18422 ol_cv_linux_threads=no
18423 else
18424 ol_cv_linux_threads=error
18425 fi
18426
18427 fi
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_linux_threads" >&5
18429 $as_echo "$ol_cv_linux_threads" >&6; }
18430
18431
18432 if test $ol_cv_linux_threads = error; then
18433 as_fn_error $? "LinuxThreads header/library mismatch" "$LINENO" 5;
18434 fi
18435
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthread_create() works" >&5
18437 $as_echo_n "checking if pthread_create() works... " >&6; }
18438 if ${ol_cv_pthread_create_works+:} false; then :
18439 $as_echo_n "(cached) " >&6
18440 else
18441
18442 if test "$cross_compiling" = yes; then :
18443 ol_cv_pthread_create_works=yes
18444 else
18445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446 /* end confdefs.h. */
18447
18448
18449 /* pthread test headers */
18450 #include <pthread.h>
18451 #if HAVE_PTHREADS < 7
18452 #include <errno.h>
18453 #endif
18454 #ifndef NULL
18455 #define NULL (void*)0
18456 #endif
18457
18458 static void *task(p)
18459 void *p;
18460 {
18461 return (void *) (p == NULL);
18462 }
18463
18464
18465 int main(argc, argv)
18466 int argc;
18467 char **argv;
18468 {
18469
18470 /* pthread test function */
18471 #ifndef PTHREAD_CREATE_DETACHED
18472 #define PTHREAD_CREATE_DETACHED 1
18473 #endif
18474 pthread_t t;
18475 int status;
18476 int detach = PTHREAD_CREATE_DETACHED;
18477
18478 #if HAVE_PTHREADS > 4
18479 /* Final pthreads */
18480 pthread_attr_t attr;
18481
18482 status = pthread_attr_init(&attr);
18483 if( status ) return status;
18484
18485 #if HAVE_PTHREADS < 7
18486 status = pthread_attr_setdetachstate(&attr, &detach);
18487 if( status < 0 ) status = errno;
18488 #else
18489 status = pthread_attr_setdetachstate(&attr, detach);
18490 #endif
18491 if( status ) return status;
18492 status = pthread_create( &t, &attr, task, NULL );
18493 #if HAVE_PTHREADS < 7
18494 if( status < 0 ) status = errno;
18495 #endif
18496 if( status ) return status;
18497 #else
18498 /* Draft 4 pthreads */
18499 status = pthread_create( &t, pthread_attr_default, task, NULL );
18500 if( status ) return errno;
18501
18502 /* give thread a chance to complete */
18503 /* it should remain joinable and hence detachable */
18504 sleep( 1 );
18505
18506 status = pthread_detach( &t );
18507 if( status ) return errno;
18508 #endif
18509
18510 #ifdef HAVE_LINUX_THREADS
18511 pthread_kill_other_threads_np();
18512 #endif
18513
18514 return 0;
18515
18516 }
18517
18518 _ACEOF
18519 if ac_fn_c_try_run "$LINENO"; then :
18520 ol_cv_pthread_create_works=yes
18521 else
18522 ol_cv_pthread_create_works=no
18523 fi
18524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18525 conftest.$ac_objext conftest.beam conftest.$ac_ext
18526 fi
18527
18528 fi
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_create_works" >&5
18530 $as_echo "$ol_cv_pthread_create_works" >&6; }
18531
18532 if test $ol_cv_pthread_create_works = no ; then
18533 as_fn_error $? "pthread_create is not usable, check environment settings" "$LINENO" 5
18534 fi
18535
18536 ol_replace_broken_yield=no
18537
18538 if test $ol_replace_broken_yield = yes ; then
18539
18540 $as_echo "#define REPLACE_BROKEN_YIELD 1" >>confdefs.h
18541
18542 fi
18543
18544 if test x$ol_with_yielding_select = xauto ; then
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if select yields when using pthreads" >&5
18546 $as_echo_n "checking if select yields when using pthreads... " >&6; }
18547 if ${ol_cv_pthread_select_yields+:} false; then :
18548 $as_echo_n "(cached) " >&6
18549 else
18550
18551 if test "$cross_compiling" = yes; then :
18552 ol_cv_pthread_select_yields=cross
18553 else
18554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18555 /* end confdefs.h. */
18556
18557 #include <sys/types.h>
18558 #include <sys/time.h>
18559 #include <unistd.h>
18560 #include <pthread.h>
18561 #ifndef NULL
18562 #define NULL (void*) 0
18563 #endif
18564
18565 static int fildes[2];
18566
18567 static void *task(p)
18568 void *p;
18569 {
18570 int i;
18571 struct timeval tv;
18572
18573 fd_set rfds;
18574
18575 tv.tv_sec=10;
18576 tv.tv_usec=0;
18577
18578 FD_ZERO(&rfds);
18579 FD_SET(fildes[0], &rfds);
18580
18581 /* we're not interested in any fds */
18582 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
18583
18584 if(i < 0) {
18585 perror("select");
18586 exit(10);
18587 }
18588
18589 exit(0); /* if we exit here, the select blocked the whole process */
18590 }
18591
18592 int main(argc, argv)
18593 int argc;
18594 char **argv;
18595 {
18596 pthread_t t;
18597
18598 /* create a pipe to select */
18599 if(pipe(&fildes[0])) {
18600 perror("select");
18601 exit(1);
18602 }
18603
18604 #ifdef HAVE_PTHREAD_SETCONCURRENCY
18605 (void) pthread_setconcurrency(2);
18606 #else
18607 #ifdef HAVE_THR_SETCONCURRENCY
18608 /* Set Solaris LWP concurrency to 2 */
18609 thr_setconcurrency(2);
18610 #endif
18611 #endif
18612
18613 #if HAVE_PTHREADS < 6
18614 pthread_create(&t, pthread_attr_default, task, NULL);
18615 #else
18616 pthread_create(&t, NULL, task, NULL);
18617 #endif
18618
18619 /* make sure task runs first */
18620 #ifdef HAVE_THR_YIELD
18621 thr_yield();
18622 #elif defined( HAVE_SCHED_YIELD )
18623 sched_yield();
18624 #elif defined( HAVE_PTHREAD_YIELD )
18625 pthread_yield();
18626 #endif
18627
18628 exit(2);
18629 }
18630 _ACEOF
18631 if ac_fn_c_try_run "$LINENO"; then :
18632 ol_cv_pthread_select_yields=no
18633 else
18634 ol_cv_pthread_select_yields=yes
18635 fi
18636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18637 conftest.$ac_objext conftest.beam conftest.$ac_ext
18638 fi
18639
18640 fi
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_pthread_select_yields" >&5
18642 $as_echo "$ol_cv_pthread_select_yields" >&6; }
18643
18644 if test $ol_cv_pthread_select_yields = cross ; then
18645 as_fn_error $? "crossing compiling: use --with-yielding_select=yes|no|manual" "$LINENO" 5
18646 fi
18647
18648 if test $ol_cv_pthread_select_yields = yes ; then
18649 ol_with_yielding_select=yes
18650 fi
18651 fi
18652
18653 CPPFLAGS="$save_CPPFLAGS"
18654 LIBS="$save_LIBS"
18655 else
18656 as_fn_error $? "could not locate usable POSIX Threads" "$LINENO" 5
18657 fi
18658 fi
18659
18660 if test $ol_with_threads = posix ; then
18661 as_fn_error $? "could not locate POSIX Threads" "$LINENO" 5
18662 fi
18663 ;;
18664 esac
18665
18666 case $ol_with_threads in auto | yes | mach)
18667
18668 for ac_header in mach/cthreads.h cthreads.h
18669 do :
18670 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18671 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18672 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18673 cat >>confdefs.h <<_ACEOF
18674 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18675 _ACEOF
18676
18677 fi
18678
18679 done
18680
18681 if test $ac_cv_header_mach_cthreads_h = yes ; then
18682 ol_with_threads=found
18683
18684 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
18685 if test "x$ac_cv_func_cthread_fork" = xyes; then :
18686 ol_link_threads=yes
18687 fi
18688
18689
18690 if test $ol_link_threads = no ; then
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cthread_fork with -all_load" >&5
18692 $as_echo_n "checking for cthread_fork with -all_load... " >&6; }
18693 if ${ol_cv_cthread_all_load+:} false; then :
18694 $as_echo_n "(cached) " >&6
18695 else
18696
18697 save_LIBS="$LIBS"
18698 LIBS="-all_load $LIBS"
18699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18700 /* end confdefs.h. */
18701 #include <mach/cthreads.h>
18702 int
18703 main ()
18704 {
18705
18706 cthread_fork((void *)0, (void *)0);
18707
18708 ;
18709 return 0;
18710 }
18711 _ACEOF
18712 if ac_fn_c_try_link "$LINENO"; then :
18713 ol_cv_cthread_all_load=yes
18714 else
18715 ol_cv_cthread_all_load=no
18716 fi
18717 rm -f core conftest.err conftest.$ac_objext \
18718 conftest$ac_exeext conftest.$ac_ext
18719 LIBS="$save_LIBS"
18720
18721 fi
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_cthread_all_load" >&5
18723 $as_echo "$ol_cv_cthread_all_load" >&6; }
18724
18725 if test $ol_cv_cthread_all_load = yes ; then
18726 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
18727 ol_link_threads=mach
18728 ol_with_threads=found
18729 fi
18730 fi
18731
18732 elif test $ac_cv_header_cthreads_h = yes ; then
18733
18734 ol_with_threads=found
18735
18736 save_LIBS="$LIBS"
18737 LIBS="$LIBS -lthreads"
18738 ac_fn_c_check_func "$LINENO" "cthread_fork" "ac_cv_func_cthread_fork"
18739 if test "x$ac_cv_func_cthread_fork" = xyes; then :
18740 ol_link_threads=yes
18741 fi
18742
18743 LIBS="$save_LIBS"
18744
18745 if test $ol_link_threads = yes ; then
18746 LTHREAD_LIBS="-lthreads"
18747 ol_link_threads=mach
18748 ol_with_threads=found
18749 else
18750 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
18751 fi
18752
18753 elif test $ol_with_threads = mach ; then
18754 as_fn_error $? "could not locate Mach CThreads" "$LINENO" 5
18755 fi
18756
18757 if test $ol_link_threads = mach ; then
18758
18759 $as_echo "#define HAVE_MACH_CTHREADS 1" >>confdefs.h
18760
18761 elif test $ol_with_threads = found ; then
18762 as_fn_error $? "could not link with Mach CThreads" "$LINENO" 5
18763 fi
18764 ;;
18765 esac
18766
18767 case $ol_with_threads in auto | yes | pth)
18768
18769 for ac_header in pth.h
18770 do :
18771 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
18772 if test "x$ac_cv_header_pth_h" = xyes; then :
18773 cat >>confdefs.h <<_ACEOF
18774 #define HAVE_PTH_H 1
18775 _ACEOF
18776
18777 fi
18778
18779 done
18780
18781
18782 if test $ac_cv_header_pth_h = yes ; then
18783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pth_version in -lpth" >&5
18784 $as_echo_n "checking for pth_version in -lpth... " >&6; }
18785 if ${ac_cv_lib_pth_pth_version+:} false; then :
18786 $as_echo_n "(cached) " >&6
18787 else
18788 ac_check_lib_save_LIBS=$LIBS
18789 LIBS="-lpth $LIBS"
18790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18791 /* end confdefs.h. */
18792
18793 /* Override any GCC internal prototype to avoid an error.
18794 Use char because int might match the return type of a GCC
18795 builtin and then its argument prototype would still apply. */
18796 #ifdef __cplusplus
18797 extern "C"
18798 #endif
18799 char pth_version ();
18800 int
18801 main ()
18802 {
18803 return pth_version ();
18804 ;
18805 return 0;
18806 }
18807 _ACEOF
18808 if ac_fn_c_try_link "$LINENO"; then :
18809 ac_cv_lib_pth_pth_version=yes
18810 else
18811 ac_cv_lib_pth_pth_version=no
18812 fi
18813 rm -f core conftest.err conftest.$ac_objext \
18814 conftest$ac_exeext conftest.$ac_ext
18815 LIBS=$ac_check_lib_save_LIBS
18816 fi
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pth_pth_version" >&5
18818 $as_echo "$ac_cv_lib_pth_pth_version" >&6; }
18819 if test "x$ac_cv_lib_pth_pth_version" = xyes; then :
18820 have_pth=yes
18821 else
18822 have_pth=no
18823 fi
18824
18825
18826 if test $have_pth = yes ; then
18827
18828 $as_echo "#define HAVE_GNU_PTH 1" >>confdefs.h
18829
18830 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
18831 ol_link_threads=pth
18832 ol_with_threads=found
18833
18834 if test x$ol_with_yielding_select = xauto ; then
18835 ol_with_yielding_select=yes
18836 fi
18837 fi
18838 fi
18839 ;;
18840 esac
18841
18842 case $ol_with_threads in auto | yes | lwp)
18843
18844 for ac_header in thread.h synch.h
18845 do :
18846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18847 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18848 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18849 cat >>confdefs.h <<_ACEOF
18850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18851 _ACEOF
18852
18853 fi
18854
18855 done
18856
18857 if test $ac_cv_header_thread_h = yes &&
18858 test $ac_cv_header_synch_h = yes ; then
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5
18860 $as_echo_n "checking for thr_create in -lthread... " >&6; }
18861 if ${ac_cv_lib_thread_thr_create+:} false; then :
18862 $as_echo_n "(cached) " >&6
18863 else
18864 ac_check_lib_save_LIBS=$LIBS
18865 LIBS="-lthread $LIBS"
18866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18867 /* end confdefs.h. */
18868
18869 /* Override any GCC internal prototype to avoid an error.
18870 Use char because int might match the return type of a GCC
18871 builtin and then its argument prototype would still apply. */
18872 #ifdef __cplusplus
18873 extern "C"
18874 #endif
18875 char thr_create ();
18876 int
18877 main ()
18878 {
18879 return thr_create ();
18880 ;
18881 return 0;
18882 }
18883 _ACEOF
18884 if ac_fn_c_try_link "$LINENO"; then :
18885 ac_cv_lib_thread_thr_create=yes
18886 else
18887 ac_cv_lib_thread_thr_create=no
18888 fi
18889 rm -f core conftest.err conftest.$ac_objext \
18890 conftest$ac_exeext conftest.$ac_ext
18891 LIBS=$ac_check_lib_save_LIBS
18892 fi
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5
18894 $as_echo "$ac_cv_lib_thread_thr_create" >&6; }
18895 if test "x$ac_cv_lib_thread_thr_create" = xyes; then :
18896 have_thr=yes
18897 else
18898 have_thr=no
18899 fi
18900
18901
18902 if test $have_thr = yes ; then
18903
18904 $as_echo "#define HAVE_THR 1" >>confdefs.h
18905
18906 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
18907 ol_link_threads=thr
18908
18909 if test x$ol_with_yielding_select = xauto ; then
18910 ol_with_yielding_select=yes
18911 fi
18912
18913 for ac_func in \
18914 thr_setconcurrency \
18915 thr_getconcurrency \
18916
18917 do :
18918 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18919 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18920 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18921 cat >>confdefs.h <<_ACEOF
18922 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18923 _ACEOF
18924
18925 fi
18926 done
18927
18928 fi
18929 fi
18930
18931 for ac_header in lwp/lwp.h
18932 do :
18933 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
18934 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
18935 cat >>confdefs.h <<_ACEOF
18936 #define HAVE_LWP_LWP_H 1
18937 _ACEOF
18938
18939 fi
18940
18941 done
18942
18943 if test $ac_cv_header_lwp_lwp_h = yes ; then
18944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwp_create in -llwp" >&5
18945 $as_echo_n "checking for lwp_create in -llwp... " >&6; }
18946 if ${ac_cv_lib_lwp_lwp_create+:} false; then :
18947 $as_echo_n "(cached) " >&6
18948 else
18949 ac_check_lib_save_LIBS=$LIBS
18950 LIBS="-llwp $LIBS"
18951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18952 /* end confdefs.h. */
18953
18954 /* Override any GCC internal prototype to avoid an error.
18955 Use char because int might match the return type of a GCC
18956 builtin and then its argument prototype would still apply. */
18957 #ifdef __cplusplus
18958 extern "C"
18959 #endif
18960 char lwp_create ();
18961 int
18962 main ()
18963 {
18964 return lwp_create ();
18965 ;
18966 return 0;
18967 }
18968 _ACEOF
18969 if ac_fn_c_try_link "$LINENO"; then :
18970 ac_cv_lib_lwp_lwp_create=yes
18971 else
18972 ac_cv_lib_lwp_lwp_create=no
18973 fi
18974 rm -f core conftest.err conftest.$ac_objext \
18975 conftest$ac_exeext conftest.$ac_ext
18976 LIBS=$ac_check_lib_save_LIBS
18977 fi
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lwp_lwp_create" >&5
18979 $as_echo "$ac_cv_lib_lwp_lwp_create" >&6; }
18980 if test "x$ac_cv_lib_lwp_lwp_create" = xyes; then :
18981 have_lwp=yes
18982 else
18983 have_lwp=no
18984 fi
18985
18986
18987 if test $have_lwp = yes ; then
18988
18989 $as_echo "#define HAVE_LWP 1" >>confdefs.h
18990
18991 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
18992 ol_link_threads=lwp
18993
18994 if test x$ol_with_yielding_select = xauto ; then
18995 ol_with_yielding_select=no
18996 fi
18997 fi
18998 fi
18999 ;;
19000 esac
19001
19002 if test $ol_with_yielding_select = yes ; then
19003
19004 $as_echo "#define HAVE_YIELDING_SELECT 1" >>confdefs.h
19005
19006 fi
19007
19008 if test $ol_with_threads = manual ; then
19009 ol_link_threads=yes
19010
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: thread defines and link options must be set manually" >&5
19012 $as_echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
19013
19014 for ac_header in pthread.h sched.h
19015 do :
19016 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19017 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19018 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19019 cat >>confdefs.h <<_ACEOF
19020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19021 _ACEOF
19022
19023 fi
19024
19025 done
19026
19027 for ac_func in sched_yield pthread_yield
19028 do :
19029 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19030 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19031 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19032 cat >>confdefs.h <<_ACEOF
19033 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19034 _ACEOF
19035
19036 fi
19037 done
19038
19039
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LinuxThreads pthread.h" >&5
19041 $as_echo_n "checking for LinuxThreads pthread.h... " >&6; }
19042 if ${ol_cv_header_linux_threads+:} false; then :
19043 $as_echo_n "(cached) " >&6
19044 else
19045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19046 /* end confdefs.h. */
19047 #include <pthread.h>
19048 _ACEOF
19049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19050 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then :
19051 ol_cv_header_linux_threads=yes
19052 else
19053 ol_cv_header_linux_threads=no
19054 fi
19055 rm -f conftest*
19056
19057
19058 fi
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_header_linux_threads" >&5
19060 $as_echo "$ol_cv_header_linux_threads" >&6; }
19061 if test $ol_cv_header_linux_threads = yes; then
19062
19063 $as_echo "#define HAVE_LINUX_THREADS 1" >>confdefs.h
19064
19065 fi
19066
19067
19068 for ac_header in mach/cthreads.h
19069 do :
19070 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default"
19071 if test "x$ac_cv_header_mach_cthreads_h" = xyes; then :
19072 cat >>confdefs.h <<_ACEOF
19073 #define HAVE_MACH_CTHREADS_H 1
19074 _ACEOF
19075
19076 fi
19077
19078 done
19079
19080 for ac_header in lwp/lwp.h
19081 do :
19082 ac_fn_c_check_header_mongrel "$LINENO" "lwp/lwp.h" "ac_cv_header_lwp_lwp_h" "$ac_includes_default"
19083 if test "x$ac_cv_header_lwp_lwp_h" = xyes; then :
19084 cat >>confdefs.h <<_ACEOF
19085 #define HAVE_LWP_LWP_H 1
19086 _ACEOF
19087
19088 fi
19089
19090 done
19091
19092 for ac_header in thread.h synch.h
19093 do :
19094 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19095 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19096 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19097 cat >>confdefs.h <<_ACEOF
19098 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19099 _ACEOF
19100
19101 fi
19102
19103 done
19104
19105 fi
19106
19107 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
19108
19109 $as_echo "#define REENTRANT 1" >>confdefs.h
19110
19111
19112 $as_echo "#define _REENTRANT 1" >>confdefs.h
19113
19114
19115 $as_echo "#define THREAD_SAFE 1" >>confdefs.h
19116
19117
19118 $as_echo "#define _THREAD_SAFE 1" >>confdefs.h
19119
19120
19121 $as_echo "#define THREADSAFE 1" >>confdefs.h
19122
19123
19124 $as_echo "#define _THREADSAFE 1" >>confdefs.h
19125
19126
19127 $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h
19128
19129
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific errno" >&5
19131 $as_echo_n "checking for thread specific errno... " >&6; }
19132 if ${ol_cv_errno_thread_specific+:} false; then :
19133 $as_echo_n "(cached) " >&6
19134 else
19135
19136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19137 /* end confdefs.h. */
19138 #include <errno.h>
19139 int
19140 main ()
19141 {
19142 errno = 0;
19143 ;
19144 return 0;
19145 }
19146 _ACEOF
19147 if ac_fn_c_try_link "$LINENO"; then :
19148 ol_cv_errno_thread_specific=yes
19149 else
19150 ol_cv_errno_thread_specific=no
19151 fi
19152 rm -f core conftest.err conftest.$ac_objext \
19153 conftest$ac_exeext conftest.$ac_ext
19154
19155 fi
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_errno_thread_specific" >&5
19157 $as_echo "$ol_cv_errno_thread_specific" >&6; }
19158
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread specific h_errno" >&5
19160 $as_echo_n "checking for thread specific h_errno... " >&6; }
19161 if ${ol_cv_h_errno_thread_specific+:} false; then :
19162 $as_echo_n "(cached) " >&6
19163 else
19164
19165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19166 /* end confdefs.h. */
19167 #include <netdb.h>
19168 int
19169 main ()
19170 {
19171 h_errno = 0;
19172 ;
19173 return 0;
19174 }
19175 _ACEOF
19176 if ac_fn_c_try_link "$LINENO"; then :
19177 ol_cv_h_errno_thread_specific=yes
19178 else
19179 ol_cv_h_errno_thread_specific=no
19180 fi
19181 rm -f core conftest.err conftest.$ac_objext \
19182 conftest$ac_exeext conftest.$ac_ext
19183
19184 fi
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ol_cv_h_errno_thread_specific" >&5
19186 $as_echo "$ol_cv_h_errno_thread_specific" >&6; }
19187
19188 if test $ol_cv_errno_thread_specific != yes ||
19189 test $ol_cv_h_errno_thread_specific != yes ; then
19190 LIBS="$LTHREAD_LIBS $LIBS"
19191 LTHREAD_LIBS=""
19192 fi
19193
19194 fi
19195
19196 if test $ol_link_threads = no ; then
19197 if test $ol_with_threads = yes ; then
19198 as_fn_error $? "no suitable thread support" "$LINENO" 5
19199 fi
19200
19201 if test $ol_with_threads = auto ; then
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no suitable thread support, disabling threads" >&5
19203 $as_echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
19204 ol_with_threads=no
19205 fi
19206
19207
19208 $as_echo "#define NO_THREADS 1" >>confdefs.h
19209
19210 LTHREAD_LIBS=""
19211 BUILD_THREAD=no
19212 else
19213 BUILD_THREAD=yes
19214 fi
19215
19216 if test $ol_link_threads != no ; then
19217
19218 $as_echo "#define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1" >>confdefs.h
19219
19220 fi
19221
19222 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19223 case "$ol_with_threads" in
19224 no)
19225 ol_pthread_ok=no
19226
19227 ;;
19228 *)
19229
19230 have_pthreads=yes
19231 PTHREAD_LIBS="$LTHREAD_LIBS"
19232 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19233 # The cast to long int works around a bug in the HP C Compiler
19234 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19235 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19236 # This bug is HP SR number 8606223364.
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
19238 $as_echo_n "checking size of pthread_t... " >&6; }
19239 if ${ac_cv_sizeof_pthread_t+:} false; then :
19240 $as_echo_n "(cached) " >&6
19241 else
19242 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
19243 $ac_includes_default
19244 #include <pthread.h>
19245
19246
19247 "; then :
19248
19249 else
19250 if test "$ac_cv_type_pthread_t" = yes; then
19251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19253 as_fn_error 77 "cannot compute sizeof (pthread_t)
19254 See \`config.log' for more details" "$LINENO" 5; }
19255 else
19256 ac_cv_sizeof_pthread_t=0
19257 fi
19258 fi
19259
19260 fi
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
19262 $as_echo "$ac_cv_sizeof_pthread_t" >&6; }
19263
19264
19265
19266 cat >>confdefs.h <<_ACEOF
19267 #define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t
19268 _ACEOF
19269
19270
19271
19272 ;;
19273 esac
19274
19275 ac_ext=c
19276 ac_cpp='$CPP $CPPFLAGS'
19277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19280
19281
19282 fi
19283
19284
19285 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
19286 PTHREADS_TRUE=
19287 PTHREADS_FALSE='#'
19288 else
19289 PTHREADS_TRUE='#'
19290 PTHREADS_FALSE=
19291 fi
19292
19293
19294 # check if we should compile locking into the library
19295 if test x$enable_thread_support = xno; then
19296
19297 $as_echo "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
19298
19299 fi
19300
19301 # check if we should hard-code the mm functions.
19302 if test x$enable_malloc_replacement = xno; then
19303
19304 $as_echo "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
19305
19306 fi
19307
19308 # check if we should hard-code debugging out
19309 if test x$enable_debug_mode = xno; then
19310
19311 $as_echo "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
19312
19313 fi
19314
19315 # check if we should enable verbose debugging
19316 if test x$enable_verbose_debug = xyes; then
19317 CFLAGS="$CFLAGS -DUSE_DEBUG"
19318 fi
19319
19320 # check if we have and should use openssl
19321 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
19322 OPENSSL_TRUE=
19323 OPENSSL_FALSE='#'
19324 else
19325 OPENSSL_TRUE='#'
19326 OPENSSL_FALSE=
19327 fi
19328
19329
19330 # Add some more warnings which we use in development but not in the
19331 # released versions. (Some relevant gcc versions can't handle these.)
19332 if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then
19333
19334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19335 /* end confdefs.h. */
19336
19337 int
19338 main ()
19339 {
19340
19341 #if !defined(__GNUC__) || (__GNUC__ < 4)
19342 #error
19343 #endif
19344 ;
19345 return 0;
19346 }
19347 _ACEOF
19348 if ac_fn_c_try_compile "$LINENO"; then :
19349 have_gcc4=yes
19350 else
19351 have_gcc4=no
19352 fi
19353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19354
19355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19356 /* end confdefs.h. */
19357
19358 int
19359 main ()
19360 {
19361
19362 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
19363 #error
19364 #endif
19365 ;
19366 return 0;
19367 }
19368 _ACEOF
19369 if ac_fn_c_try_compile "$LINENO"; then :
19370 have_gcc42=yes
19371 else
19372 have_gcc42=no
19373 fi
19374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19375
19376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19377 /* end confdefs.h. */
19378
19379 int
19380 main ()
19381 {
19382
19383 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
19384 #error
19385 #endif
19386 ;
19387 return 0;
19388 }
19389 _ACEOF
19390 if ac_fn_c_try_compile "$LINENO"; then :
19391 have_gcc45=yes
19392 else
19393 have_gcc45=no
19394 fi
19395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19396
19397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19398 /* end confdefs.h. */
19399
19400 int
19401 main ()
19402 {
19403
19404 #if !defined(__clang__)
19405 #error
19406 #endif
19407 ;
19408 return 0;
19409 }
19410 _ACEOF
19411 if ac_fn_c_try_compile "$LINENO"; then :
19412 have_clang=yes
19413 else
19414 have_clang=no
19415 fi
19416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19417
19418 CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wchar-subscripts -Wcomment -Wformat -Wwrite-strings -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wbad-function-cast -Wswitch-enum"
19419 if test x$enable_gcc_warnings = xyes; then
19420 CFLAGS="$CFLAGS -Werror"
19421 fi
19422
19423 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
19424
19425 if test x$have_gcc4 = xyes ; then
19426 # These warnings break gcc 3.3.5 and work on gcc 4.0.2
19427 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
19428 #CFLAGS="$CFLAGS -Wold-style-definition"
19429 fi
19430
19431 if test x$have_gcc42 = xyes ; then
19432 # These warnings break gcc 4.0.2 and work on gcc 4.2
19433 CFLAGS="$CFLAGS -Waddress"
19434 fi
19435
19436 if test x$have_gcc42 = xyes && test x$have_clang = xno; then
19437 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
19438 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
19439 fi
19440
19441 if test x$have_gcc45 = xyes ; then
19442 # These warnings work on gcc 4.5
19443 CFLAGS="$CFLAGS -Wlogical-op"
19444 fi
19445
19446 if test x$have_clang = xyes; then
19447 # Disable the unused-function warnings, because these trigger
19448 # for minheap-internal.h related code.
19449 CFLAGS="$CFLAGS -Wno-unused-function"
19450 fi
19451
19452 ##This will break the world on some 64-bit architectures
19453 # CFLAGS="$CFLAGS -Winline"
19454
19455 fi
19456
19457 LIBEVENT_GC_SECTIONS=
19458 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
19460 $as_echo_n "checking if linker supports omitting unused code and data... " >&6; }
19461 if ${libevent_cv_gc_sections_runs+:} false; then :
19462 $as_echo_n "(cached) " >&6
19463 else
19464
19465 origCFLAGS="$CFLAGS"
19466 CFLAGS="$CFLAGS -Wl,--gc-sections"
19467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19468 /* end confdefs.h. */
19469
19470 #include <stdlib.h>
19471 #include <stdio.h>
19472
19473 int
19474 main ()
19475 {
19476
19477 FILE * fpC;
19478 char buf[32];
19479 size_t cch;
19480 int read_success_once;
19481
19482 fpC = fopen("conftest.c", "r");
19483 if (NULL == fpC)
19484 exit(1);
19485 do {
19486 cch = fread(buf, sizeof(buf), 1, fpC);
19487 read_success_once |= (0 != cch);
19488 } while (0 != cch);
19489 if (!read_success_once)
19490 exit(2);
19491 if (!feof(fpC))
19492 exit(3);
19493 if (0 != fclose(fpC))
19494 exit(4);
19495
19496 exit(EXIT_SUCCESS);
19497
19498
19499 ;
19500 return 0;
19501 }
19502 _ACEOF
19503 if ac_fn_c_try_link "$LINENO"; then :
19504
19505 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
19506 libevent_cv_gc_sections_runs=no
19507 else
19508 libevent_cv_gc_sections_runs=no
19509 ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
19510 fi
19511
19512 else
19513 libevent_cv_gc_sections_runs=no
19514
19515 fi
19516 rm -f core conftest.err conftest.$ac_objext \
19517 conftest$ac_exeext conftest.$ac_ext
19518 CFLAGS="$origCFLAGS"
19519 { origCFLAGS=; unset origCFLAGS;}
19520
19521
19522 fi
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
19524 $as_echo "$libevent_cv_gc_sections_runs" >&6; }
19525 case "$libevent_cv_gc_sections_runs" in
19526 yes)
19527 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
19528 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
19529 ;;
19530 esac
19531 fi
19532
19533
19534 if test "$enable_libevent_install" = "yes"; then
19535 INSTALL_LIBEVENT_TRUE=
19536 INSTALL_LIBEVENT_FALSE='#'
19537 else
19538 INSTALL_LIBEVENT_TRUE='#'
19539 INSTALL_LIBEVENT_FALSE=
19540 fi
19541
19542
19543 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc"
19544
19545 ac_config_files="$ac_config_files Makefile"
19546
19547 cat >confcache <<\_ACEOF
19548 # This file is a shell script that caches the results of configure
19549 # tests run on this system so they can be shared between configure
19550 # scripts and configure runs, see configure's option --config-cache.
19551 # It is not useful on other systems. If it contains results you don't
19552 # want to keep, you may remove or edit it.
19553 #
19554 # config.status only pays attention to the cache file if you give it
19555 # the --recheck option to rerun configure.
19556 #
19557 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19558 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19559 # following values.
19560
19561 _ACEOF
19562
19563 # The following way of writing the cache mishandles newlines in values,
19564 # but we know of no workaround that is simple, portable, and efficient.
19565 # So, we kill variables containing newlines.
19566 # Ultrix sh set writes to stderr and can't be redirected directly,
19567 # and sets the high bit in the cache file unless we assign to the vars.
19568 (
19569 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19570 eval ac_val=\$$ac_var
19571 case $ac_val in #(
19572 *${as_nl}*)
19573 case $ac_var in #(
19574 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19575 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19576 esac
19577 case $ac_var in #(
19578 _ | IFS | as_nl) ;; #(
19579 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19580 *) { eval $ac_var=; unset $ac_var;} ;;
19581 esac ;;
19582 esac
19583 done
19584
19585 (set) 2>&1 |
19586 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19587 *${as_nl}ac_space=\ *)
19588 # `set' does not quote correctly, so add quotes: double-quote
19589 # substitution turns \\\\ into \\, and sed turns \\ into \.
19590 sed -n \
19591 "s/'/'\\\\''/g;
19592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19593 ;; #(
19594 *)
19595 # `set' quotes correctly as required by POSIX, so do not add quotes.
19596 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19597 ;;
19598 esac |
19599 sort
19600 ) |
19601 sed '
19602 /^ac_cv_env_/b end
19603 t clear
19604 :clear
19605 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19606 t end
19607 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19608 :end' >>confcache
19609 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19610 if test -w "$cache_file"; then
19611 if test "x$cache_file" != "x/dev/null"; then
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19613 $as_echo "$as_me: updating cache $cache_file" >&6;}
19614 if test ! -f "$cache_file" || test -h "$cache_file"; then
19615 cat confcache >"$cache_file"
19616 else
19617 case $cache_file in #(
19618 */* | ?:*)
19619 mv -f confcache "$cache_file"$$ &&
19620 mv -f "$cache_file"$$ "$cache_file" ;; #(
19621 *)
19622 mv -f confcache "$cache_file" ;;
19623 esac
19624 fi
19625 fi
19626 else
19627 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19628 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19629 fi
19630 fi
19631 rm -f confcache
19632
19633 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19634 # Let make expand exec_prefix.
19635 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19636
19637 DEFS=-DHAVE_CONFIG_H
19638
19639 ac_libobjs=
19640 ac_ltlibobjs=
19641 U=
19642 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19643 # 1. Remove the extension, and $U if already installed.
19644 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19645 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19646 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19647 # will be set to the directory where LIBOBJS objects are built.
19648 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19649 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19650 done
19651 LIBOBJS=$ac_libobjs
19652
19653 LTLIBOBJS=$ac_ltlibobjs
19654
19655
19656 if test -n "$EXEEXT"; then
19657 am__EXEEXT_TRUE=
19658 am__EXEEXT_FALSE='#'
19659 else
19660 am__EXEEXT_TRUE='#'
19661 am__EXEEXT_FALSE=
19662 fi
19663
19664 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19665 as_fn_error $? "conditional \"AMDEP\" was never defined.
19666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19667 fi
19668 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19669 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19671 fi
19672 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
19673 as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
19674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19675 fi
19676 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
19677 as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
19678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19679 fi
19680 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
19681 as_fn_error $? "conditional \"OPENSSL\" was never defined.
19682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19683 fi
19684 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
19685 as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
19686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19687 fi
19688 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
19689 as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
19690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19691 fi
19692 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
19693 as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
19694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19695 fi
19696 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
19697 as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
19698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19699 fi
19700 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
19701 as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
19702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19703 fi
19704 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
19705 as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
19706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19707 fi
19708 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
19709 as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
19710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19711 fi
19712 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
19713 as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
19714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19715 fi
19716 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
19717 as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
19718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19719 fi
19720 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
19721 as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
19722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19723 fi
19724 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
19725 as_fn_error $? "conditional \"PTHREADS\" was never defined.
19726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19727 fi
19728 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
19729 as_fn_error $? "conditional \"OPENSSL\" was never defined.
19730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19731 fi
19732 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
19733 as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
19734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19735 fi
19736
19737 : "${CONFIG_STATUS=./config.status}"
19738 ac_write_fail=0
19739 ac_clean_files_save=$ac_clean_files
19740 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19742 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19743 as_write_fail=0
19744 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19745 #! $SHELL
19746 # Generated by $as_me.
19747 # Run this file to recreate the current configuration.
19748 # Compiler output produced by configure, useful for debugging
19749 # configure, is in config.log if it exists.
19750
19751 debug=false
19752 ac_cs_recheck=false
19753 ac_cs_silent=false
19754
19755 SHELL=\${CONFIG_SHELL-$SHELL}
19756 export SHELL
19757 _ASEOF
19758 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19759 ## -------------------- ##
19760 ## M4sh Initialization. ##
19761 ## -------------------- ##
19762
19763 # Be more Bourne compatible
19764 DUALCASE=1; export DUALCASE # for MKS sh
19765 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19766 emulate sh
19767 NULLCMD=:
19768 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19769 # is contrary to our usage. Disable this feature.
19770 alias -g '${1+"$@"}'='"$@"'
19771 setopt NO_GLOB_SUBST
19772 else
19773 case `(set -o) 2>/dev/null` in #(
19774 *posix*) :
19775 set -o posix ;; #(
19776 *) :
19777 ;;
19778 esac
19779 fi
19780
19781
19782 as_nl='
19783 '
19784 export as_nl
19785 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19786 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19787 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19788 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19789 # Prefer a ksh shell builtin over an external printf program on Solaris,
19790 # but without wasting forks for bash or zsh.
19791 if test -z "$BASH_VERSION$ZSH_VERSION" \
19792 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19793 as_echo='print -r --'
19794 as_echo_n='print -rn --'
19795 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19796 as_echo='printf %s\n'
19797 as_echo_n='printf %s'
19798 else
19799 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19800 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19801 as_echo_n='/usr/ucb/echo -n'
19802 else
19803 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19804 as_echo_n_body='eval
19805 arg=$1;
19806 case $arg in #(
19807 *"$as_nl"*)
19808 expr "X$arg" : "X\\(.*\\)$as_nl";
19809 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19810 esac;
19811 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19812 '
19813 export as_echo_n_body
19814 as_echo_n='sh -c $as_echo_n_body as_echo'
19815 fi
19816 export as_echo_body
19817 as_echo='sh -c $as_echo_body as_echo'
19818 fi
19819
19820 # The user is always right.
19821 if test "${PATH_SEPARATOR+set}" != set; then
19822 PATH_SEPARATOR=:
19823 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19824 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19825 PATH_SEPARATOR=';'
19826 }
19827 fi
19828
19829
19830 # IFS
19831 # We need space, tab and new line, in precisely that order. Quoting is
19832 # there to prevent editors from complaining about space-tab.
19833 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19834 # splitting by setting IFS to empty value.)
19835 IFS=" "" $as_nl"
19836
19837 # Find who we are. Look in the path if we contain no directory separator.
19838 as_myself=
19839 case $0 in #((
19840 *[\\/]* ) as_myself=$0 ;;
19841 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19842 for as_dir in $PATH
19843 do
19844 IFS=$as_save_IFS
19845 test -z "$as_dir" && as_dir=.
19846 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19847 done
19848 IFS=$as_save_IFS
19849
19850 ;;
19851 esac
19852 # We did not find ourselves, most probably we were run as `sh COMMAND'
19853 # in which case we are not to be found in the path.
19854 if test "x$as_myself" = x; then
19855 as_myself=$0
19856 fi
19857 if test ! -f "$as_myself"; then
19858 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19859 exit 1
19860 fi
19861
19862 # Unset variables that we do not need and which cause bugs (e.g. in
19863 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19864 # suppresses any "Segmentation fault" message there. '((' could
19865 # trigger a bug in pdksh 5.2.14.
19866 for as_var in BASH_ENV ENV MAIL MAILPATH
19867 do eval test x\${$as_var+set} = xset \
19868 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19869 done
19870 PS1='$ '
19871 PS2='> '
19872 PS4='+ '
19873
19874 # NLS nuisances.
19875 LC_ALL=C
19876 export LC_ALL
19877 LANGUAGE=C
19878 export LANGUAGE
19879
19880 # CDPATH.
19881 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19882
19883
19884 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19885 # ----------------------------------------
19886 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19887 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19888 # script with STATUS, using 1 if that was 0.
19889 as_fn_error ()
19890 {
19891 as_status=$1; test $as_status -eq 0 && as_status=1
19892 if test "$4"; then
19893 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19894 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19895 fi
19896 $as_echo "$as_me: error: $2" >&2
19897 as_fn_exit $as_status
19898 } # as_fn_error
19899
19900
19901 # as_fn_set_status STATUS
19902 # -----------------------
19903 # Set $? to STATUS, without forking.
19904 as_fn_set_status ()
19905 {
19906 return $1
19907 } # as_fn_set_status
19908
19909 # as_fn_exit STATUS
19910 # -----------------
19911 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19912 as_fn_exit ()
19913 {
19914 set +e
19915 as_fn_set_status $1
19916 exit $1
19917 } # as_fn_exit
19918
19919 # as_fn_unset VAR
19920 # ---------------
19921 # Portably unset VAR.
19922 as_fn_unset ()
19923 {
19924 { eval $1=; unset $1;}
19925 }
19926 as_unset=as_fn_unset
19927 # as_fn_append VAR VALUE
19928 # ----------------------
19929 # Append the text in VALUE to the end of the definition contained in VAR. Take
19930 # advantage of any shell optimizations that allow amortized linear growth over
19931 # repeated appends, instead of the typical quadratic growth present in naive
19932 # implementations.
19933 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19934 eval 'as_fn_append ()
19935 {
19936 eval $1+=\$2
19937 }'
19938 else
19939 as_fn_append ()
19940 {
19941 eval $1=\$$1\$2
19942 }
19943 fi # as_fn_append
19944
19945 # as_fn_arith ARG...
19946 # ------------------
19947 # Perform arithmetic evaluation on the ARGs, and store the result in the
19948 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19949 # must be portable across $(()) and expr.
19950 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19951 eval 'as_fn_arith ()
19952 {
19953 as_val=$(( $* ))
19954 }'
19955 else
19956 as_fn_arith ()
19957 {
19958 as_val=`expr "$@" || test $? -eq 1`
19959 }
19960 fi # as_fn_arith
19961
19962
19963 if expr a : '\(a\)' >/dev/null 2>&1 &&
19964 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19965 as_expr=expr
19966 else
19967 as_expr=false
19968 fi
19969
19970 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19971 as_basename=basename
19972 else
19973 as_basename=false
19974 fi
19975
19976 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19977 as_dirname=dirname
19978 else
19979 as_dirname=false
19980 fi
19981
19982 as_me=`$as_basename -- "$0" ||
19983 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19984 X"$0" : 'X\(//\)$' \| \
19985 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19986 $as_echo X/"$0" |
19987 sed '/^.*\/\([^/][^/]*\)\/*$/{
19988 s//\1/
19989 q
19990 }
19991 /^X\/\(\/\/\)$/{
19992 s//\1/
19993 q
19994 }
19995 /^X\/\(\/\).*/{
19996 s//\1/
19997 q
19998 }
19999 s/.*/./; q'`
20000
20001 # Avoid depending upon Character Ranges.
20002 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20003 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20004 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20005 as_cr_digits='0123456789'
20006 as_cr_alnum=$as_cr_Letters$as_cr_digits
20007
20008 ECHO_C= ECHO_N= ECHO_T=
20009 case `echo -n x` in #(((((
20010 -n*)
20011 case `echo 'xy\c'` in
20012 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20013 xy) ECHO_C='\c';;
20014 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20015 ECHO_T=' ';;
20016 esac;;
20017 *)
20018 ECHO_N='-n';;
20019 esac
20020
20021 rm -f conf$$ conf$$.exe conf$$.file
20022 if test -d conf$$.dir; then
20023 rm -f conf$$.dir/conf$$.file
20024 else
20025 rm -f conf$$.dir
20026 mkdir conf$$.dir 2>/dev/null
20027 fi
20028 if (echo >conf$$.file) 2>/dev/null; then
20029 if ln -s conf$$.file conf$$ 2>/dev/null; then
20030 as_ln_s='ln -s'
20031 # ... but there are two gotchas:
20032 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20033 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20034 # In both cases, we have to default to `cp -p'.
20035 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20036 as_ln_s='cp -p'
20037 elif ln conf$$.file conf$$ 2>/dev/null; then
20038 as_ln_s=ln
20039 else
20040 as_ln_s='cp -p'
20041 fi
20042 else
20043 as_ln_s='cp -p'
20044 fi
20045 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20046 rmdir conf$$.dir 2>/dev/null
20047
20048
20049 # as_fn_mkdir_p
20050 # -------------
20051 # Create "$as_dir" as a directory, including parents if necessary.
20052 as_fn_mkdir_p ()
20053 {
20054
20055 case $as_dir in #(
20056 -*) as_dir=./$as_dir;;
20057 esac
20058 test -d "$as_dir" || eval $as_mkdir_p || {
20059 as_dirs=
20060 while :; do
20061 case $as_dir in #(
20062 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20063 *) as_qdir=$as_dir;;
20064 esac
20065 as_dirs="'$as_qdir' $as_dirs"
20066 as_dir=`$as_dirname -- "$as_dir" ||
20067 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20068 X"$as_dir" : 'X\(//\)[^/]' \| \
20069 X"$as_dir" : 'X\(//\)$' \| \
20070 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20071 $as_echo X"$as_dir" |
20072 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20073 s//\1/
20074 q
20075 }
20076 /^X\(\/\/\)[^/].*/{
20077 s//\1/
20078 q
20079 }
20080 /^X\(\/\/\)$/{
20081 s//\1/
20082 q
20083 }
20084 /^X\(\/\).*/{
20085 s//\1/
20086 q
20087 }
20088 s/.*/./; q'`
20089 test -d "$as_dir" && break
20090 done
20091 test -z "$as_dirs" || eval "mkdir $as_dirs"
20092 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20093
20094
20095 } # as_fn_mkdir_p
20096 if mkdir -p . 2>/dev/null; then
20097 as_mkdir_p='mkdir -p "$as_dir"'
20098 else
20099 test -d ./-p && rmdir ./-p
20100 as_mkdir_p=false
20101 fi
20102
20103 if test -x / >/dev/null 2>&1; then
20104 as_test_x='test -x'
20105 else
20106 if ls -dL / >/dev/null 2>&1; then
20107 as_ls_L_option=L
20108 else
20109 as_ls_L_option=
20110 fi
20111 as_test_x='
20112 eval sh -c '\''
20113 if test -d "$1"; then
20114 test -d "$1/.";
20115 else
20116 case $1 in #(
20117 -*)set "./$1";;
20118 esac;
20119 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20120 ???[sx]*):;;*)false;;esac;fi
20121 '\'' sh
20122 '
20123 fi
20124 as_executable_p=$as_test_x
20125
20126 # Sed expression to map a string onto a valid CPP name.
20127 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20128
20129 # Sed expression to map a string onto a valid variable name.
20130 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20131
20132
20133 exec 6>&1
20134 ## ----------------------------------- ##
20135 ## Main body of $CONFIG_STATUS script. ##
20136 ## ----------------------------------- ##
20137 _ASEOF
20138 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20139
20140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20141 # Save the log message, to keep $0 and so on meaningful, and to
20142 # report actual input values of CONFIG_FILES etc. instead of their
20143 # values after options handling.
20144 ac_log="
20145 This file was extended by libevent $as_me 2.1.2-alpha-dev, which was
20146 generated by GNU Autoconf 2.68. Invocation command line was
20147
20148 CONFIG_FILES = $CONFIG_FILES
20149 CONFIG_HEADERS = $CONFIG_HEADERS
20150 CONFIG_LINKS = $CONFIG_LINKS
20151 CONFIG_COMMANDS = $CONFIG_COMMANDS
20152 $ $0 $@
20153
20154 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20155 "
20156
20157 _ACEOF
20158
20159 case $ac_config_files in *"
20160 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20161 esac
20162
20163 case $ac_config_headers in *"
20164 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20165 esac
20166
20167
20168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20169 # Files that config.status was made for.
20170 config_files="$ac_config_files"
20171 config_headers="$ac_config_headers"
20172 config_commands="$ac_config_commands"
20173
20174 _ACEOF
20175
20176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20177 ac_cs_usage="\
20178 \`$as_me' instantiates files and other configuration actions
20179 from templates according to the current configuration. Unless the files
20180 and actions are specified as TAGs, all are instantiated by default.
20181
20182 Usage: $0 [OPTION]... [TAG]...
20183
20184 -h, --help print this help, then exit
20185 -V, --version print version number and configuration settings, then exit
20186 --config print configuration, then exit
20187 -q, --quiet, --silent
20188 do not print progress messages
20189 -d, --debug don't remove temporary files
20190 --recheck update $as_me by reconfiguring in the same conditions
20191 --file=FILE[:TEMPLATE]
20192 instantiate the configuration file FILE
20193 --header=FILE[:TEMPLATE]
20194 instantiate the configuration header FILE
20195
20196 Configuration files:
20197 $config_files
20198
20199 Configuration headers:
20200 $config_headers
20201
20202 Configuration commands:
20203 $config_commands
20204
20205 Report bugs to the package provider."
20206
20207 _ACEOF
20208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20209 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20210 ac_cs_version="\\
20211 libevent config.status 2.1.2-alpha-dev
20212 configured by $0, generated by GNU Autoconf 2.68,
20213 with options \\"\$ac_cs_config\\"
20214
20215 Copyright (C) 2010 Free Software Foundation, Inc.
20216 This config.status script is free software; the Free Software Foundation
20217 gives unlimited permission to copy, distribute and modify it."
20218
20219 ac_pwd='$ac_pwd'
20220 srcdir='$srcdir'
20221 INSTALL='$INSTALL'
20222 MKDIR_P='$MKDIR_P'
20223 AWK='$AWK'
20224 test -n "\$AWK" || AWK=awk
20225 _ACEOF
20226
20227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20228 # The default lists apply if the user does not specify any file.
20229 ac_need_defaults=:
20230 while test $# != 0
20231 do
20232 case $1 in
20233 --*=?*)
20234 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20235 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20236 ac_shift=:
20237 ;;
20238 --*=)
20239 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20240 ac_optarg=
20241 ac_shift=:
20242 ;;
20243 *)
20244 ac_option=$1
20245 ac_optarg=$2
20246 ac_shift=shift
20247 ;;
20248 esac
20249
20250 case $ac_option in
20251 # Handling of the options.
20252 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20253 ac_cs_recheck=: ;;
20254 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20255 $as_echo "$ac_cs_version"; exit ;;
20256 --config | --confi | --conf | --con | --co | --c )
20257 $as_echo "$ac_cs_config"; exit ;;
20258 --debug | --debu | --deb | --de | --d | -d )
20259 debug=: ;;
20260 --file | --fil | --fi | --f )
20261 $ac_shift
20262 case $ac_optarg in
20263 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20264 '') as_fn_error $? "missing file argument" ;;
20265 esac
20266 as_fn_append CONFIG_FILES " '$ac_optarg'"
20267 ac_need_defaults=false;;
20268 --header | --heade | --head | --hea )
20269 $ac_shift
20270 case $ac_optarg in
20271 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20272 esac
20273 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20274 ac_need_defaults=false;;
20275 --he | --h)
20276 # Conflict between --help and --header
20277 as_fn_error $? "ambiguous option: \`$1'
20278 Try \`$0 --help' for more information.";;
20279 --help | --hel | -h )
20280 $as_echo "$ac_cs_usage"; exit ;;
20281 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20282 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20283 ac_cs_silent=: ;;
20284
20285 # This is an error.
20286 -*) as_fn_error $? "unrecognized option: \`$1'
20287 Try \`$0 --help' for more information." ;;
20288
20289 *) as_fn_append ac_config_targets " $1"
20290 ac_need_defaults=false ;;
20291
20292 esac
20293 shift
20294 done
20295
20296 ac_configure_extra_args=
20297
20298 if $ac_cs_silent; then
20299 exec 6>/dev/null
20300 ac_configure_extra_args="$ac_configure_extra_args --silent"
20301 fi
20302
20303 _ACEOF
20304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20305 if \$ac_cs_recheck; then
20306 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20307 shift
20308 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20309 CONFIG_SHELL='$SHELL'
20310 export CONFIG_SHELL
20311 exec "\$@"
20312 fi
20313
20314 _ACEOF
20315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20316 exec 5>>config.log
20317 {
20318 echo
20319 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20320 ## Running $as_me. ##
20321 _ASBOX
20322 $as_echo "$ac_log"
20323 } >&5
20324
20325 _ACEOF
20326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20327 #
20328 # INIT-COMMANDS
20329 #
20330 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20331
20332
20333 # The HP-UX ksh and POSIX shell print the target directory to stdout
20334 # if CDPATH is set.
20335 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20336
20337 sed_quote_subst='$sed_quote_subst'
20338 double_quote_subst='$double_quote_subst'
20339 delay_variable_subst='$delay_variable_subst'
20340 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20341 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20342 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20343 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20344 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20345 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20346 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20347 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20348 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20349 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20350 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20351 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20352 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20353 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20354 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20355 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20356 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20357 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20358 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20359 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20360 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20361 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20362 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20363 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20364 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20365 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20366 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20367 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20368 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20369 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20370 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20371 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20372 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20373 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20374 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20375 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20376 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20377 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20378 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20379 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20380 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20381 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20382 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20383 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20384 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20385 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20386 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20387 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20388 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20389 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20390 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20391 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20392 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20393 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20394 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20395 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
20396 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20397 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20398 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20399 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20400 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20401 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20402 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20403 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20404 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20405 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20406 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20407 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20408 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20409 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20410 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20411 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20412 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20413 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20414 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20415 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20416 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20417 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20418 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20419 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20420 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20421 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20422 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20423 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20424 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20425 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20426 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20427 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20428 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20429 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20430 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20431 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20432 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20433 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20434 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20435 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20436 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20437 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20438 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20439 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20440 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20441 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20442 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20443 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20444 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20445 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20446 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20447 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20448 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20449 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20450 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20451 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20452 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20453 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20454 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20455 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20456 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20457 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20458 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20459 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20460 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20461 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20462 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20463 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20464 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20465 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20466 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20467 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20468 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20469 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20470
20471 LTCC='$LTCC'
20472 LTCFLAGS='$LTCFLAGS'
20473 compiler='$compiler_DEFAULT'
20474
20475 # A function that is used when there is no print builtin or printf.
20476 func_fallback_echo ()
20477 {
20478 eval 'cat <<_LTECHO_EOF
20479 \$1
20480 _LTECHO_EOF'
20481 }
20482
20483 # Quote evaled strings.
20484 for var in SHELL \
20485 ECHO \
20486 SED \
20487 GREP \
20488 EGREP \
20489 FGREP \
20490 LD \
20491 NM \
20492 LN_S \
20493 lt_SP2NL \
20494 lt_NL2SP \
20495 reload_flag \
20496 OBJDUMP \
20497 deplibs_check_method \
20498 file_magic_cmd \
20499 file_magic_glob \
20500 want_nocaseglob \
20501 DLLTOOL \
20502 sharedlib_from_linklib_cmd \
20503 AR \
20504 AR_FLAGS \
20505 archiver_list_spec \
20506 STRIP \
20507 RANLIB \
20508 CC \
20509 CFLAGS \
20510 compiler \
20511 lt_cv_sys_global_symbol_pipe \
20512 lt_cv_sys_global_symbol_to_cdecl \
20513 lt_cv_sys_global_symbol_to_c_name_address \
20514 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20515 nm_file_list_spec \
20516 lt_prog_compiler_no_builtin_flag \
20517 lt_prog_compiler_pic \
20518 lt_prog_compiler_wl \
20519 lt_prog_compiler_static \
20520 lt_cv_prog_compiler_c_o \
20521 need_locks \
20522 MANIFEST_TOOL \
20523 DSYMUTIL \
20524 NMEDIT \
20525 LIPO \
20526 OTOOL \
20527 OTOOL64 \
20528 shrext_cmds \
20529 export_dynamic_flag_spec \
20530 whole_archive_flag_spec \
20531 compiler_needs_object \
20532 with_gnu_ld \
20533 allow_undefined_flag \
20534 no_undefined_flag \
20535 hardcode_libdir_flag_spec \
20536 hardcode_libdir_flag_spec_ld \
20537 hardcode_libdir_separator \
20538 exclude_expsyms \
20539 include_expsyms \
20540 file_list_spec \
20541 variables_saved_for_relink \
20542 libname_spec \
20543 library_names_spec \
20544 soname_spec \
20545 install_override_mode \
20546 finish_eval \
20547 old_striplib \
20548 striplib; do
20549 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20550 *[\\\\\\\`\\"\\\$]*)
20551 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20552 ;;
20553 *)
20554 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20555 ;;
20556 esac
20557 done
20558
20559 # Double-quote double-evaled strings.
20560 for var in reload_cmds \
20561 old_postinstall_cmds \
20562 old_postuninstall_cmds \
20563 old_archive_cmds \
20564 extract_expsyms_cmds \
20565 old_archive_from_new_cmds \
20566 old_archive_from_expsyms_cmds \
20567 archive_cmds \
20568 archive_expsym_cmds \
20569 module_cmds \
20570 module_expsym_cmds \
20571 export_symbols_cmds \
20572 prelink_cmds \
20573 postlink_cmds \
20574 postinstall_cmds \
20575 postuninstall_cmds \
20576 finish_cmds \
20577 sys_lib_search_path_spec \
20578 sys_lib_dlsearch_path_spec; do
20579 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20580 *[\\\\\\\`\\"\\\$]*)
20581 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20582 ;;
20583 *)
20584 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20585 ;;
20586 esac
20587 done
20588
20589 ac_aux_dir='$ac_aux_dir'
20590 xsi_shell='$xsi_shell'
20591 lt_shell_append='$lt_shell_append'
20592
20593 # See if we are running on zsh, and set the options which allow our
20594 # commands through without removal of \ escapes INIT.
20595 if test -n "\${ZSH_VERSION+set}" ; then
20596 setopt NO_GLOB_SUBST
20597 fi
20598
20599
20600 PACKAGE='$PACKAGE'
20601 VERSION='$VERSION'
20602 TIMESTAMP='$TIMESTAMP'
20603 RM='$RM'
20604 ofile='$ofile'
20605
20606
20607
20608
20609 _ACEOF
20610
20611 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20612
20613 # Handling of arguments.
20614 for ac_config_target in $ac_config_targets
20615 do
20616 case $ac_config_target in
20617 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20618 "evconfig-private.h") CONFIG_HEADERS="$CONFIG_HEADERS evconfig-private.h:evconfig-private.h.in" ;;
20619 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20620 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20621 "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
20622 "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
20623 "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
20624 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20625
20626 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20627 esac
20628 done
20629
20630
20631 # If the user did not use the arguments to specify the items to instantiate,
20632 # then the envvar interface is used. Set only those that are not.
20633 # We use the long form for the default assignment because of an extremely
20634 # bizarre bug on SunOS 4.1.3.
20635 if $ac_need_defaults; then
20636 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20637 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20638 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20639 fi
20640
20641 # Have a temporary directory for convenience. Make it in the build tree
20642 # simply because there is no reason against having it here, and in addition,
20643 # creating and moving files from /tmp can sometimes cause problems.
20644 # Hook for its removal unless debugging.
20645 # Note that there is a small window in which the directory will not be cleaned:
20646 # after its creation but before its name has been assigned to `$tmp'.
20647 $debug ||
20648 {
20649 tmp= ac_tmp=
20650 trap 'exit_status=$?
20651 : "${ac_tmp:=$tmp}"
20652 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20653 ' 0
20654 trap 'as_fn_exit 1' 1 2 13 15
20655 }
20656 # Create a (secure) tmp directory for tmp files.
20657
20658 {
20659 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20660 test -d "$tmp"
20661 } ||
20662 {
20663 tmp=./conf$$-$RANDOM
20664 (umask 077 && mkdir "$tmp")
20665 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20666 ac_tmp=$tmp
20667
20668 # Set up the scripts for CONFIG_FILES section.
20669 # No need to generate them if there are no CONFIG_FILES.
20670 # This happens for instance with `./config.status config.h'.
20671 if test -n "$CONFIG_FILES"; then
20672
20673
20674 ac_cr=`echo X | tr X '\015'`
20675 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20676 # But we know of no other shell where ac_cr would be empty at this
20677 # point, so we can use a bashism as a fallback.
20678 if test "x$ac_cr" = x; then
20679 eval ac_cr=\$\'\\r\'
20680 fi
20681 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20682 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20683 ac_cs_awk_cr='\\r'
20684 else
20685 ac_cs_awk_cr=$ac_cr
20686 fi
20687
20688 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20689 _ACEOF
20690
20691
20692 {
20693 echo "cat >conf$$subs.awk <<_ACEOF" &&
20694 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20695 echo "_ACEOF"
20696 } >conf$$subs.sh ||
20697 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20698 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20699 ac_delim='%!_!# '
20700 for ac_last_try in false false false false false :; do
20701 . ./conf$$subs.sh ||
20702 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20703
20704 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20705 if test $ac_delim_n = $ac_delim_num; then
20706 break
20707 elif $ac_last_try; then
20708 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20709 else
20710 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20711 fi
20712 done
20713 rm -f conf$$subs.sh
20714
20715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20716 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20717 _ACEOF
20718 sed -n '
20719 h
20720 s/^/S["/; s/!.*/"]=/
20721 p
20722 g
20723 s/^[^!]*!//
20724 :repl
20725 t repl
20726 s/'"$ac_delim"'$//
20727 t delim
20728 :nl
20729 h
20730 s/\(.\{148\}\)..*/\1/
20731 t more1
20732 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20733 p
20734 n
20735 b repl
20736 :more1
20737 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20738 p
20739 g
20740 s/.\{148\}//
20741 t nl
20742 :delim
20743 h
20744 s/\(.\{148\}\)..*/\1/
20745 t more2
20746 s/["\\]/\\&/g; s/^/"/; s/$/"/
20747 p
20748 b
20749 :more2
20750 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20751 p
20752 g
20753 s/.\{148\}//
20754 t delim
20755 ' <conf$$subs.awk | sed '
20756 /^[^""]/{
20757 N
20758 s/\n//
20759 }
20760 ' >>$CONFIG_STATUS || ac_write_fail=1
20761 rm -f conf$$subs.awk
20762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20763 _ACAWK
20764 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20765 for (key in S) S_is_set[key] = 1
20766 FS = ""
20767
20768 }
20769 {
20770 line = $ 0
20771 nfields = split(line, field, "@")
20772 substed = 0
20773 len = length(field[1])
20774 for (i = 2; i < nfields; i++) {
20775 key = field[i]
20776 keylen = length(key)
20777 if (S_is_set[key]) {
20778 value = S[key]
20779 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20780 len += length(value) + length(field[++i])
20781 substed = 1
20782 } else
20783 len += 1 + keylen
20784 }
20785
20786 print line
20787 }
20788
20789 _ACAWK
20790 _ACEOF
20791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20792 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20793 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20794 else
20795 cat
20796 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20797 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20798 _ACEOF
20799
20800 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20801 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20802 # trailing colons and then remove the whole line if VPATH becomes empty
20803 # (actually we leave an empty line to preserve line numbers).
20804 if test "x$srcdir" = x.; then
20805 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20806 h
20807 s///
20808 s/^/:/
20809 s/[ ]*$/:/
20810 s/:\$(srcdir):/:/g
20811 s/:\${srcdir}:/:/g
20812 s/:@srcdir@:/:/g
20813 s/^:*//
20814 s/:*$//
20815 x
20816 s/\(=[ ]*\).*/\1/
20817 G
20818 s/\n//
20819 s/^[^=]*=[ ]*$//
20820 }'
20821 fi
20822
20823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20824 fi # test -n "$CONFIG_FILES"
20825
20826 # Set up the scripts for CONFIG_HEADERS section.
20827 # No need to generate them if there are no CONFIG_HEADERS.
20828 # This happens for instance with `./config.status Makefile'.
20829 if test -n "$CONFIG_HEADERS"; then
20830 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20831 BEGIN {
20832 _ACEOF
20833
20834 # Transform confdefs.h into an awk script `defines.awk', embedded as
20835 # here-document in config.status, that substitutes the proper values into
20836 # config.h.in to produce config.h.
20837
20838 # Create a delimiter string that does not exist in confdefs.h, to ease
20839 # handling of long lines.
20840 ac_delim='%!_!# '
20841 for ac_last_try in false false :; do
20842 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20843 if test -z "$ac_tt"; then
20844 break
20845 elif $ac_last_try; then
20846 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20847 else
20848 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20849 fi
20850 done
20851
20852 # For the awk script, D is an array of macro values keyed by name,
20853 # likewise P contains macro parameters if any. Preserve backslash
20854 # newline sequences.
20855
20856 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20857 sed -n '
20858 s/.\{148\}/&'"$ac_delim"'/g
20859 t rset
20860 :rset
20861 s/^[ ]*#[ ]*define[ ][ ]*/ /
20862 t def
20863 d
20864 :def
20865 s/\\$//
20866 t bsnl
20867 s/["\\]/\\&/g
20868 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20869 D["\1"]=" \3"/p
20870 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20871 d
20872 :bsnl
20873 s/["\\]/\\&/g
20874 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20875 D["\1"]=" \3\\\\\\n"\\/p
20876 t cont
20877 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20878 t cont
20879 d
20880 :cont
20881 n
20882 s/.\{148\}/&'"$ac_delim"'/g
20883 t clear
20884 :clear
20885 s/\\$//
20886 t bsnlc
20887 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20888 d
20889 :bsnlc
20890 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20891 b cont
20892 ' <confdefs.h | sed '
20893 s/'"$ac_delim"'/"\\\
20894 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20895
20896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20897 for (key in D) D_is_set[key] = 1
20898 FS = ""
20899 }
20900 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20901 line = \$ 0
20902 split(line, arg, " ")
20903 if (arg[1] == "#") {
20904 defundef = arg[2]
20905 mac1 = arg[3]
20906 } else {
20907 defundef = substr(arg[1], 2)
20908 mac1 = arg[2]
20909 }
20910 split(mac1, mac2, "(") #)
20911 macro = mac2[1]
20912 prefix = substr(line, 1, index(line, defundef) - 1)
20913 if (D_is_set[macro]) {
20914 # Preserve the white space surrounding the "#".
20915 print prefix "define", macro P[macro] D[macro]
20916 next
20917 } else {
20918 # Replace #undef with comments. This is necessary, for example,
20919 # in the case of _POSIX_SOURCE, which is predefined and required
20920 # on some systems where configure will not decide to define it.
20921 if (defundef == "undef") {
20922 print "/*", prefix defundef, macro, "*/"
20923 next
20924 }
20925 }
20926 }
20927 { print }
20928 _ACAWK
20929 _ACEOF
20930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20931 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20932 fi # test -n "$CONFIG_HEADERS"
20933
20934
20935 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20936 shift
20937 for ac_tag
20938 do
20939 case $ac_tag in
20940 :[FHLC]) ac_mode=$ac_tag; continue;;
20941 esac
20942 case $ac_mode$ac_tag in
20943 :[FHL]*:*);;
20944 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20945 :[FH]-) ac_tag=-:-;;
20946 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20947 esac
20948 ac_save_IFS=$IFS
20949 IFS=:
20950 set x $ac_tag
20951 IFS=$ac_save_IFS
20952 shift
20953 ac_file=$1
20954 shift
20955
20956 case $ac_mode in
20957 :L) ac_source=$1;;
20958 :[FH])
20959 ac_file_inputs=
20960 for ac_f
20961 do
20962 case $ac_f in
20963 -) ac_f="$ac_tmp/stdin";;
20964 *) # Look for the file first in the build tree, then in the source tree
20965 # (if the path is not absolute). The absolute path cannot be DOS-style,
20966 # because $ac_f cannot contain `:'.
20967 test -f "$ac_f" ||
20968 case $ac_f in
20969 [\\/$]*) false;;
20970 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20971 esac ||
20972 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20973 esac
20974 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20975 as_fn_append ac_file_inputs " '$ac_f'"
20976 done
20977
20978 # Let's still pretend it is `configure' which instantiates (i.e., don't
20979 # use $as_me), people would be surprised to read:
20980 # /* config.h. Generated by config.status. */
20981 configure_input='Generated from '`
20982 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20983 `' by configure.'
20984 if test x"$ac_file" != x-; then
20985 configure_input="$ac_file. $configure_input"
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20987 $as_echo "$as_me: creating $ac_file" >&6;}
20988 fi
20989 # Neutralize special characters interpreted by sed in replacement strings.
20990 case $configure_input in #(
20991 *\&* | *\|* | *\\* )
20992 ac_sed_conf_input=`$as_echo "$configure_input" |
20993 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20994 *) ac_sed_conf_input=$configure_input;;
20995 esac
20996
20997 case $ac_tag in
20998 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20999 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21000 esac
21001 ;;
21002 esac
21003
21004 ac_dir=`$as_dirname -- "$ac_file" ||
21005 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21006 X"$ac_file" : 'X\(//\)[^/]' \| \
21007 X"$ac_file" : 'X\(//\)$' \| \
21008 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21009 $as_echo X"$ac_file" |
21010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21011 s//\1/
21012 q
21013 }
21014 /^X\(\/\/\)[^/].*/{
21015 s//\1/
21016 q
21017 }
21018 /^X\(\/\/\)$/{
21019 s//\1/
21020 q
21021 }
21022 /^X\(\/\).*/{
21023 s//\1/
21024 q
21025 }
21026 s/.*/./; q'`
21027 as_dir="$ac_dir"; as_fn_mkdir_p
21028 ac_builddir=.
21029
21030 case "$ac_dir" in
21031 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21032 *)
21033 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21034 # A ".." for each directory in $ac_dir_suffix.
21035 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21036 case $ac_top_builddir_sub in
21037 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21038 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21039 esac ;;
21040 esac
21041 ac_abs_top_builddir=$ac_pwd
21042 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21043 # for backward compatibility:
21044 ac_top_builddir=$ac_top_build_prefix
21045
21046 case $srcdir in
21047 .) # We are building in place.
21048 ac_srcdir=.
21049 ac_top_srcdir=$ac_top_builddir_sub
21050 ac_abs_top_srcdir=$ac_pwd ;;
21051 [\\/]* | ?:[\\/]* ) # Absolute name.
21052 ac_srcdir=$srcdir$ac_dir_suffix;
21053 ac_top_srcdir=$srcdir
21054 ac_abs_top_srcdir=$srcdir ;;
21055 *) # Relative name.
21056 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21057 ac_top_srcdir=$ac_top_build_prefix$srcdir
21058 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21059 esac
21060 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21061
21062
21063 case $ac_mode in
21064 :F)
21065 #
21066 # CONFIG_FILE
21067 #
21068
21069 case $INSTALL in
21070 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21071 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21072 esac
21073 ac_MKDIR_P=$MKDIR_P
21074 case $MKDIR_P in
21075 [\\/$]* | ?:[\\/]* ) ;;
21076 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21077 esac
21078 _ACEOF
21079
21080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21081 # If the template does not know about datarootdir, expand it.
21082 # FIXME: This hack should be removed a few years after 2.60.
21083 ac_datarootdir_hack=; ac_datarootdir_seen=
21084 ac_sed_dataroot='
21085 /datarootdir/ {
21086 p
21087 q
21088 }
21089 /@datadir@/p
21090 /@docdir@/p
21091 /@infodir@/p
21092 /@localedir@/p
21093 /@mandir@/p'
21094 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21095 *datarootdir*) ac_datarootdir_seen=yes;;
21096 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21098 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21099 _ACEOF
21100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21101 ac_datarootdir_hack='
21102 s&@datadir@&$datadir&g
21103 s&@docdir@&$docdir&g
21104 s&@infodir@&$infodir&g
21105 s&@localedir@&$localedir&g
21106 s&@mandir@&$mandir&g
21107 s&\\\${datarootdir}&$datarootdir&g' ;;
21108 esac
21109 _ACEOF
21110
21111 # Neutralize VPATH when `$srcdir' = `.'.
21112 # Shell code in configure.ac might set extrasub.
21113 # FIXME: do we really want to maintain this feature?
21114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21115 ac_sed_extra="$ac_vpsub
21116 $extrasub
21117 _ACEOF
21118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21119 :t
21120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21121 s|@configure_input@|$ac_sed_conf_input|;t t
21122 s&@top_builddir@&$ac_top_builddir_sub&;t t
21123 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21124 s&@srcdir@&$ac_srcdir&;t t
21125 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21126 s&@top_srcdir@&$ac_top_srcdir&;t t
21127 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21128 s&@builddir@&$ac_builddir&;t t
21129 s&@abs_builddir@&$ac_abs_builddir&;t t
21130 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21131 s&@INSTALL@&$ac_INSTALL&;t t
21132 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21133 $ac_datarootdir_hack
21134 "
21135 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21136 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21137
21138 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21139 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21140 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21141 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21143 which seems to be undefined. Please make sure it is defined" >&5
21144 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21145 which seems to be undefined. Please make sure it is defined" >&2;}
21146
21147 rm -f "$ac_tmp/stdin"
21148 case $ac_file in
21149 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21150 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21151 esac \
21152 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21153 ;;
21154 :H)
21155 #
21156 # CONFIG_HEADER
21157 #
21158 if test x"$ac_file" != x-; then
21159 {
21160 $as_echo "/* $configure_input */" \
21161 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21162 } >"$ac_tmp/config.h" \
21163 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21164 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21166 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21167 else
21168 rm -f "$ac_file"
21169 mv "$ac_tmp/config.h" "$ac_file" \
21170 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21171 fi
21172 else
21173 $as_echo "/* $configure_input */" \
21174 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21175 || as_fn_error $? "could not create -" "$LINENO" 5
21176 fi
21177 # Compute "$ac_file"'s index in $config_headers.
21178 _am_arg="$ac_file"
21179 _am_stamp_count=1
21180 for _am_header in $config_headers :; do
21181 case $_am_header in
21182 $_am_arg | $_am_arg:* )
21183 break ;;
21184 * )
21185 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21186 esac
21187 done
21188 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21189 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21190 X"$_am_arg" : 'X\(//\)[^/]' \| \
21191 X"$_am_arg" : 'X\(//\)$' \| \
21192 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21193 $as_echo X"$_am_arg" |
21194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21195 s//\1/
21196 q
21197 }
21198 /^X\(\/\/\)[^/].*/{
21199 s//\1/
21200 q
21201 }
21202 /^X\(\/\/\)$/{
21203 s//\1/
21204 q
21205 }
21206 /^X\(\/\).*/{
21207 s//\1/
21208 q
21209 }
21210 s/.*/./; q'`/stamp-h$_am_stamp_count
21211 ;;
21212
21213 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21214 $as_echo "$as_me: executing $ac_file commands" >&6;}
21215 ;;
21216 esac
21217
21218
21219 case $ac_file$ac_mode in
21220 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21221 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21222 # are listed without --file. Let's play safe and only enable the eval
21223 # if we detect the quoting.
21224 case $CONFIG_FILES in
21225 *\'*) eval set x "$CONFIG_FILES" ;;
21226 *) set x $CONFIG_FILES ;;
21227 esac
21228 shift
21229 for mf
21230 do
21231 # Strip MF so we end up with the name of the file.
21232 mf=`echo "$mf" | sed -e 's/:.*$//'`
21233 # Check whether this is an Automake generated Makefile or not.
21234 # We used to match only the files named `Makefile.in', but
21235 # some people rename them; so instead we look at the file content.
21236 # Grep'ing the first line is not enough: some people post-process
21237 # each Makefile.in and add a new line on top of each file to say so.
21238 # Grep'ing the whole file is not good either: AIX grep has a line
21239 # limit of 2048, but all sed's we know have understand at least 4000.
21240 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21241 dirpart=`$as_dirname -- "$mf" ||
21242 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21243 X"$mf" : 'X\(//\)[^/]' \| \
21244 X"$mf" : 'X\(//\)$' \| \
21245 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21246 $as_echo X"$mf" |
21247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21248 s//\1/
21249 q
21250 }
21251 /^X\(\/\/\)[^/].*/{
21252 s//\1/
21253 q
21254 }
21255 /^X\(\/\/\)$/{
21256 s//\1/
21257 q
21258 }
21259 /^X\(\/\).*/{
21260 s//\1/
21261 q
21262 }
21263 s/.*/./; q'`
21264 else
21265 continue
21266 fi
21267 # Extract the definition of DEPDIR, am__include, and am__quote
21268 # from the Makefile without running `make'.
21269 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21270 test -z "$DEPDIR" && continue
21271 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21272 test -z "am__include" && continue
21273 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21274 # When using ansi2knr, U may be empty or an underscore; expand it
21275 U=`sed -n 's/^U = //p' < "$mf"`
21276 # Find all dependency output files, they are included files with
21277 # $(DEPDIR) in their names. We invoke sed twice because it is the
21278 # simplest approach to changing $(DEPDIR) to its actual value in the
21279 # expansion.
21280 for file in `sed -n "
21281 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21282 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21283 # Make sure the directory exists.
21284 test -f "$dirpart/$file" && continue
21285 fdir=`$as_dirname -- "$file" ||
21286 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21287 X"$file" : 'X\(//\)[^/]' \| \
21288 X"$file" : 'X\(//\)$' \| \
21289 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21290 $as_echo X"$file" |
21291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21292 s//\1/
21293 q
21294 }
21295 /^X\(\/\/\)[^/].*/{
21296 s//\1/
21297 q
21298 }
21299 /^X\(\/\/\)$/{
21300 s//\1/
21301 q
21302 }
21303 /^X\(\/\).*/{
21304 s//\1/
21305 q
21306 }
21307 s/.*/./; q'`
21308 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21309 # echo "creating $dirpart/$file"
21310 echo '# dummy' > "$dirpart/$file"
21311 done
21312 done
21313 }
21314 ;;
21315 "libtool":C)
21316
21317 # See if we are running on zsh, and set the options which allow our
21318 # commands through without removal of \ escapes.
21319 if test -n "${ZSH_VERSION+set}" ; then
21320 setopt NO_GLOB_SUBST
21321 fi
21322
21323 cfgfile="${ofile}T"
21324 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21325 $RM "$cfgfile"
21326
21327 cat <<_LT_EOF >> "$cfgfile"
21328 #! $SHELL
21329
21330 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21331 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21332 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21333 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21334 #
21335 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21336 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
21337 # Inc.
21338 # Written by Gordon Matzigkeit, 1996
21339 #
21340 # This file is part of GNU Libtool.
21341 #
21342 # GNU Libtool is free software; you can redistribute it and/or
21343 # modify it under the terms of the GNU General Public License as
21344 # published by the Free Software Foundation; either version 2 of
21345 # the License, or (at your option) any later version.
21346 #
21347 # As a special exception to the GNU General Public License,
21348 # if you distribute this file as part of a program or library that
21349 # is built using GNU Libtool, you may include this file under the
21350 # same distribution terms that you use for the rest of that program.
21351 #
21352 # GNU Libtool is distributed in the hope that it will be useful,
21353 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21354 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21355 # GNU General Public License for more details.
21356 #
21357 # You should have received a copy of the GNU General Public License
21358 # along with GNU Libtool; see the file COPYING. If not, a copy
21359 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21360 # obtained by writing to the Free Software Foundation, Inc.,
21361 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21362
21363
21364 # The names of the tagged configurations supported by this script.
21365 available_tags=""
21366
21367 # ### BEGIN LIBTOOL CONFIG
21368
21369 # Which release of libtool.m4 was used?
21370 macro_version=$macro_version
21371 macro_revision=$macro_revision
21372
21373 # Whether or not to build shared libraries.
21374 build_libtool_libs=$enable_shared
21375
21376 # Whether or not to build static libraries.
21377 build_old_libs=$enable_static
21378
21379 # What type of objects to build.
21380 pic_mode=$pic_mode
21381
21382 # Whether or not to optimize for fast installation.
21383 fast_install=$enable_fast_install
21384
21385 # Shell to use when invoking shell scripts.
21386 SHELL=$lt_SHELL
21387
21388 # An echo program that protects backslashes.
21389 ECHO=$lt_ECHO
21390
21391 # The host system.
21392 host_alias=$host_alias
21393 host=$host
21394 host_os=$host_os
21395
21396 # The build system.
21397 build_alias=$build_alias
21398 build=$build
21399 build_os=$build_os
21400
21401 # A sed program that does not truncate output.
21402 SED=$lt_SED
21403
21404 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21405 Xsed="\$SED -e 1s/^X//"
21406
21407 # A grep program that handles long lines.
21408 GREP=$lt_GREP
21409
21410 # An ERE matcher.
21411 EGREP=$lt_EGREP
21412
21413 # A literal string matcher.
21414 FGREP=$lt_FGREP
21415
21416 # A BSD- or MS-compatible name lister.
21417 NM=$lt_NM
21418
21419 # Whether we need soft or hard links.
21420 LN_S=$lt_LN_S
21421
21422 # What is the maximum length of a command?
21423 max_cmd_len=$max_cmd_len
21424
21425 # Object file suffix (normally "o").
21426 objext=$ac_objext
21427
21428 # Executable file suffix (normally "").
21429 exeext=$exeext
21430
21431 # whether the shell understands "unset".
21432 lt_unset=$lt_unset
21433
21434 # turn spaces into newlines.
21435 SP2NL=$lt_lt_SP2NL
21436
21437 # turn newlines into spaces.
21438 NL2SP=$lt_lt_NL2SP
21439
21440 # convert \$build file names to \$host format.
21441 to_host_file_cmd=$lt_cv_to_host_file_cmd
21442
21443 # convert \$build files to toolchain format.
21444 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21445
21446 # An object symbol dumper.
21447 OBJDUMP=$lt_OBJDUMP
21448
21449 # Method to check whether dependent libraries are shared objects.
21450 deplibs_check_method=$lt_deplibs_check_method
21451
21452 # Command to use when deplibs_check_method = "file_magic".
21453 file_magic_cmd=$lt_file_magic_cmd
21454
21455 # How to find potential files when deplibs_check_method = "file_magic".
21456 file_magic_glob=$lt_file_magic_glob
21457
21458 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21459 want_nocaseglob=$lt_want_nocaseglob
21460
21461 # DLL creation program.
21462 DLLTOOL=$lt_DLLTOOL
21463
21464 # Command to associate shared and link libraries.
21465 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21466
21467 # The archiver.
21468 AR=$lt_AR
21469
21470 # Flags to create an archive.
21471 AR_FLAGS=$lt_AR_FLAGS
21472
21473 # How to feed a file listing to the archiver.
21474 archiver_list_spec=$lt_archiver_list_spec
21475
21476 # A symbol stripping program.
21477 STRIP=$lt_STRIP
21478
21479 # Commands used to install an old-style archive.
21480 RANLIB=$lt_RANLIB
21481 old_postinstall_cmds=$lt_old_postinstall_cmds
21482 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21483
21484 # Whether to use a lock for old archive extraction.
21485 lock_old_archive_extraction=$lock_old_archive_extraction
21486
21487 # A C compiler.
21488 LTCC=$lt_CC
21489
21490 # LTCC compiler flags.
21491 LTCFLAGS=$lt_CFLAGS
21492
21493 # Take the output of nm and produce a listing of raw symbols and C names.
21494 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21495
21496 # Transform the output of nm in a proper C declaration.
21497 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21498
21499 # Transform the output of nm in a C name address pair.
21500 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21501
21502 # Transform the output of nm in a C name address pair when lib prefix is needed.
21503 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21504
21505 # Specify filename containing input files for \$NM.
21506 nm_file_list_spec=$lt_nm_file_list_spec
21507
21508 # The root where to search for dependent libraries,and in which our libraries should be installed.
21509 lt_sysroot=$lt_sysroot
21510
21511 # The name of the directory that contains temporary libtool files.
21512 objdir=$objdir
21513
21514 # Used to examine libraries when file_magic_cmd begins with "file".
21515 MAGIC_CMD=$MAGIC_CMD
21516
21517 # Must we lock files when doing compilation?
21518 need_locks=$lt_need_locks
21519
21520 # Manifest tool.
21521 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21522
21523 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21524 DSYMUTIL=$lt_DSYMUTIL
21525
21526 # Tool to change global to local symbols on Mac OS X.
21527 NMEDIT=$lt_NMEDIT
21528
21529 # Tool to manipulate fat objects and archives on Mac OS X.
21530 LIPO=$lt_LIPO
21531
21532 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21533 OTOOL=$lt_OTOOL
21534
21535 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21536 OTOOL64=$lt_OTOOL64
21537
21538 # Old archive suffix (normally "a").
21539 libext=$libext
21540
21541 # Shared library suffix (normally ".so").
21542 shrext_cmds=$lt_shrext_cmds
21543
21544 # The commands to extract the exported symbol list from a shared archive.
21545 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21546
21547 # Variables whose values should be saved in libtool wrapper scripts and
21548 # restored at link time.
21549 variables_saved_for_relink=$lt_variables_saved_for_relink
21550
21551 # Do we need the "lib" prefix for modules?
21552 need_lib_prefix=$need_lib_prefix
21553
21554 # Do we need a version for libraries?
21555 need_version=$need_version
21556
21557 # Library versioning type.
21558 version_type=$version_type
21559
21560 # Shared library runtime path variable.
21561 runpath_var=$runpath_var
21562
21563 # Shared library path variable.
21564 shlibpath_var=$shlibpath_var
21565
21566 # Is shlibpath searched before the hard-coded library search path?
21567 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21568
21569 # Format of library name prefix.
21570 libname_spec=$lt_libname_spec
21571
21572 # List of archive names. First name is the real one, the rest are links.
21573 # The last name is the one that the linker finds with -lNAME
21574 library_names_spec=$lt_library_names_spec
21575
21576 # The coded name of the library, if different from the real name.
21577 soname_spec=$lt_soname_spec
21578
21579 # Permission mode override for installation of shared libraries.
21580 install_override_mode=$lt_install_override_mode
21581
21582 # Command to use after installation of a shared archive.
21583 postinstall_cmds=$lt_postinstall_cmds
21584
21585 # Command to use after uninstallation of a shared archive.
21586 postuninstall_cmds=$lt_postuninstall_cmds
21587
21588 # Commands used to finish a libtool library installation in a directory.
21589 finish_cmds=$lt_finish_cmds
21590
21591 # As "finish_cmds", except a single script fragment to be evaled but
21592 # not shown.
21593 finish_eval=$lt_finish_eval
21594
21595 # Whether we should hardcode library paths into libraries.
21596 hardcode_into_libs=$hardcode_into_libs
21597
21598 # Compile-time system search path for libraries.
21599 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21600
21601 # Run-time system search path for libraries.
21602 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21603
21604 # Whether dlopen is supported.
21605 dlopen_support=$enable_dlopen
21606
21607 # Whether dlopen of programs is supported.
21608 dlopen_self=$enable_dlopen_self
21609
21610 # Whether dlopen of statically linked programs is supported.
21611 dlopen_self_static=$enable_dlopen_self_static
21612
21613 # Commands to strip libraries.
21614 old_striplib=$lt_old_striplib
21615 striplib=$lt_striplib
21616
21617
21618 # The linker used to build libraries.
21619 LD=$lt_LD
21620
21621 # How to create reloadable object files.
21622 reload_flag=$lt_reload_flag
21623 reload_cmds=$lt_reload_cmds
21624
21625 # Commands used to build an old-style archive.
21626 old_archive_cmds=$lt_old_archive_cmds
21627
21628 # A language specific compiler.
21629 CC=$lt_compiler
21630
21631 # Is the compiler the GNU compiler?
21632 with_gcc=$GCC
21633
21634 # Compiler flag to turn off builtin functions.
21635 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21636
21637 # Additional compiler flags for building library objects.
21638 pic_flag=$lt_lt_prog_compiler_pic
21639
21640 # How to pass a linker flag through the compiler.
21641 wl=$lt_lt_prog_compiler_wl
21642
21643 # Compiler flag to prevent dynamic linking.
21644 link_static_flag=$lt_lt_prog_compiler_static
21645
21646 # Does compiler simultaneously support -c and -o options?
21647 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21648
21649 # Whether or not to add -lc for building shared libraries.
21650 build_libtool_need_lc=$archive_cmds_need_lc
21651
21652 # Whether or not to disallow shared libs when runtime libs are static.
21653 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21654
21655 # Compiler flag to allow reflexive dlopens.
21656 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21657
21658 # Compiler flag to generate shared objects directly from archives.
21659 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21660
21661 # Whether the compiler copes with passing no objects directly.
21662 compiler_needs_object=$lt_compiler_needs_object
21663
21664 # Create an old-style archive from a shared archive.
21665 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21666
21667 # Create a temporary old-style archive to link instead of a shared archive.
21668 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21669
21670 # Commands used to build a shared archive.
21671 archive_cmds=$lt_archive_cmds
21672 archive_expsym_cmds=$lt_archive_expsym_cmds
21673
21674 # Commands used to build a loadable module if different from building
21675 # a shared archive.
21676 module_cmds=$lt_module_cmds
21677 module_expsym_cmds=$lt_module_expsym_cmds
21678
21679 # Whether we are building with GNU ld or not.
21680 with_gnu_ld=$lt_with_gnu_ld
21681
21682 # Flag that allows shared libraries with undefined symbols to be built.
21683 allow_undefined_flag=$lt_allow_undefined_flag
21684
21685 # Flag that enforces no undefined symbols.
21686 no_undefined_flag=$lt_no_undefined_flag
21687
21688 # Flag to hardcode \$libdir into a binary during linking.
21689 # This must work even if \$libdir does not exist
21690 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21691
21692 # If ld is used when linking, flag to hardcode \$libdir into a binary
21693 # during linking. This must work even if \$libdir does not exist.
21694 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21695
21696 # Whether we need a single "-rpath" flag with a separated argument.
21697 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21698
21699 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21700 # DIR into the resulting binary.
21701 hardcode_direct=$hardcode_direct
21702
21703 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21704 # DIR into the resulting binary and the resulting library dependency is
21705 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21706 # library is relocated.
21707 hardcode_direct_absolute=$hardcode_direct_absolute
21708
21709 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21710 # into the resulting binary.
21711 hardcode_minus_L=$hardcode_minus_L
21712
21713 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21714 # into the resulting binary.
21715 hardcode_shlibpath_var=$hardcode_shlibpath_var
21716
21717 # Set to "yes" if building a shared library automatically hardcodes DIR
21718 # into the library and all subsequent libraries and executables linked
21719 # against it.
21720 hardcode_automatic=$hardcode_automatic
21721
21722 # Set to yes if linker adds runtime paths of dependent libraries
21723 # to runtime path list.
21724 inherit_rpath=$inherit_rpath
21725
21726 # Whether libtool must link a program against all its dependency libraries.
21727 link_all_deplibs=$link_all_deplibs
21728
21729 # Set to "yes" if exported symbols are required.
21730 always_export_symbols=$always_export_symbols
21731
21732 # The commands to list exported symbols.
21733 export_symbols_cmds=$lt_export_symbols_cmds
21734
21735 # Symbols that should not be listed in the preloaded symbols.
21736 exclude_expsyms=$lt_exclude_expsyms
21737
21738 # Symbols that must always be exported.
21739 include_expsyms=$lt_include_expsyms
21740
21741 # Commands necessary for linking programs (against libraries) with templates.
21742 prelink_cmds=$lt_prelink_cmds
21743
21744 # Commands necessary for finishing linking programs.
21745 postlink_cmds=$lt_postlink_cmds
21746
21747 # Specify filename containing input files.
21748 file_list_spec=$lt_file_list_spec
21749
21750 # How to hardcode a shared library path into an executable.
21751 hardcode_action=$hardcode_action
21752
21753 # ### END LIBTOOL CONFIG
21754
21755 _LT_EOF
21756
21757 case $host_os in
21758 aix3*)
21759 cat <<\_LT_EOF >> "$cfgfile"
21760 # AIX sometimes has problems with the GCC collect2 program. For some
21761 # reason, if we set the COLLECT_NAMES environment variable, the problems
21762 # vanish in a puff of smoke.
21763 if test "X${COLLECT_NAMES+set}" != Xset; then
21764 COLLECT_NAMES=
21765 export COLLECT_NAMES
21766 fi
21767 _LT_EOF
21768 ;;
21769 esac
21770
21771
21772 ltmain="$ac_aux_dir/ltmain.sh"
21773
21774
21775 # We use sed instead of cat because bash on DJGPP gets confused if
21776 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21777 # text mode, it properly converts lines to CR/LF. This bash problem
21778 # is reportedly fixed, but why not run on old versions too?
21779 sed '$q' "$ltmain" >> "$cfgfile" \
21780 || (rm -f "$cfgfile"; exit 1)
21781
21782 if test x"$xsi_shell" = xyes; then
21783 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21784 func_dirname ()\
21785 {\
21786 \ case ${1} in\
21787 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21788 \ * ) func_dirname_result="${3}" ;;\
21789 \ esac\
21790 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21791 && mv -f "$cfgfile.tmp" "$cfgfile" \
21792 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21793 test 0 -eq $? || _lt_function_replace_fail=:
21794
21795
21796 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21797 func_basename ()\
21798 {\
21799 \ func_basename_result="${1##*/}"\
21800 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21801 && mv -f "$cfgfile.tmp" "$cfgfile" \
21802 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21803 test 0 -eq $? || _lt_function_replace_fail=:
21804
21805
21806 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21807 func_dirname_and_basename ()\
21808 {\
21809 \ case ${1} in\
21810 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21811 \ * ) func_dirname_result="${3}" ;;\
21812 \ esac\
21813 \ func_basename_result="${1##*/}"\
21814 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21815 && mv -f "$cfgfile.tmp" "$cfgfile" \
21816 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21817 test 0 -eq $? || _lt_function_replace_fail=:
21818
21819
21820 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21821 func_stripname ()\
21822 {\
21823 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21824 \ # positional parameters, so assign one to ordinary parameter first.\
21825 \ func_stripname_result=${3}\
21826 \ func_stripname_result=${func_stripname_result#"${1}"}\
21827 \ func_stripname_result=${func_stripname_result%"${2}"}\
21828 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21829 && mv -f "$cfgfile.tmp" "$cfgfile" \
21830 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21831 test 0 -eq $? || _lt_function_replace_fail=:
21832
21833
21834 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21835 func_split_long_opt ()\
21836 {\
21837 \ func_split_long_opt_name=${1%%=*}\
21838 \ func_split_long_opt_arg=${1#*=}\
21839 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21840 && mv -f "$cfgfile.tmp" "$cfgfile" \
21841 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21842 test 0 -eq $? || _lt_function_replace_fail=:
21843
21844
21845 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21846 func_split_short_opt ()\
21847 {\
21848 \ func_split_short_opt_arg=${1#??}\
21849 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21850 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21851 && mv -f "$cfgfile.tmp" "$cfgfile" \
21852 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21853 test 0 -eq $? || _lt_function_replace_fail=:
21854
21855
21856 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21857 func_lo2o ()\
21858 {\
21859 \ case ${1} in\
21860 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21861 \ *) func_lo2o_result=${1} ;;\
21862 \ esac\
21863 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21864 && mv -f "$cfgfile.tmp" "$cfgfile" \
21865 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21866 test 0 -eq $? || _lt_function_replace_fail=:
21867
21868
21869 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21870 func_xform ()\
21871 {\
21872 func_xform_result=${1%.*}.lo\
21873 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21874 && mv -f "$cfgfile.tmp" "$cfgfile" \
21875 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21876 test 0 -eq $? || _lt_function_replace_fail=:
21877
21878
21879 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21880 func_arith ()\
21881 {\
21882 func_arith_result=$(( $* ))\
21883 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21884 && mv -f "$cfgfile.tmp" "$cfgfile" \
21885 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21886 test 0 -eq $? || _lt_function_replace_fail=:
21887
21888
21889 sed -e '/^func_len ()$/,/^} # func_len /c\
21890 func_len ()\
21891 {\
21892 func_len_result=${#1}\
21893 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21894 && mv -f "$cfgfile.tmp" "$cfgfile" \
21895 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21896 test 0 -eq $? || _lt_function_replace_fail=:
21897
21898 fi
21899
21900 if test x"$lt_shell_append" = xyes; then
21901 sed -e '/^func_append ()$/,/^} # func_append /c\
21902 func_append ()\
21903 {\
21904 eval "${1}+=\\${2}"\
21905 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21906 && mv -f "$cfgfile.tmp" "$cfgfile" \
21907 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21908 test 0 -eq $? || _lt_function_replace_fail=:
21909
21910
21911 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21912 func_append_quoted ()\
21913 {\
21914 \ func_quote_for_eval "${2}"\
21915 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21916 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21917 && mv -f "$cfgfile.tmp" "$cfgfile" \
21918 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21919 test 0 -eq $? || _lt_function_replace_fail=:
21920
21921
21922 # Save a `func_append' function call where possible by direct use of '+='
21923 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21924 && mv -f "$cfgfile.tmp" "$cfgfile" \
21925 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21926 test 0 -eq $? || _lt_function_replace_fail=:
21927 else
21928 # Save a `func_append' function call even when '+=' is not available
21929 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21930 && mv -f "$cfgfile.tmp" "$cfgfile" \
21931 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21932 test 0 -eq $? || _lt_function_replace_fail=:
21933 fi
21934
21935 if test x"$_lt_function_replace_fail" = x":"; then
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21937 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21938 fi
21939
21940
21941 mv -f "$cfgfile" "$ofile" ||
21942 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21943 chmod +x "$ofile"
21944
21945 ;;
21946
21947 esac
21948 done # for ac_tag
21949
21950
21951 as_fn_exit 0
21952 _ACEOF
21953 ac_clean_files=$ac_clean_files_save
21954
21955 test $ac_write_fail = 0 ||
21956 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21957
21958
21959 # configure is writing to config.log, and then calls config.status.
21960 # config.status does its own redirection, appending to config.log.
21961 # Unfortunately, on DOS this fails, as config.log is still kept open
21962 # by configure, so config.status won't be able to write to it; its
21963 # output is simply discarded. So we exec the FD to /dev/null,
21964 # effectively closing config.log, so it can be properly (re)opened and
21965 # appended to by config.status. When coming back to configure, we
21966 # need to make the FD available again.
21967 if test "$no_create" != yes; then
21968 ac_cs_success=:
21969 ac_config_status_args=
21970 test "$silent" = yes &&
21971 ac_config_status_args="$ac_config_status_args --quiet"
21972 exec 5>/dev/null
21973 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21974 exec 5>>config.log
21975 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21976 # would make configure fail if this is the last instruction.
21977 $ac_cs_success || as_fn_exit 1
21978 fi
21979 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21981 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21982 fi
21983
21984