Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libevent 2.1.13-stable.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 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 case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
196 as_have_required=yes
197 else case e in #(
198 e) as_have_required=no ;;
199 esac
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else case e in #(
205 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else case e in #(
239 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi ;;
244 esac
245 fi
246
247
248 if test "x$CONFIG_SHELL" != x
249 then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf "%s\n" "$0: This script requires a shell more modern than all"
274 printf "%s\n" "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf "%s\n" "$0: Please tell [email protected] about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi ;;
286 esac
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else case e in #(
394 e) as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 } ;;
398 esac
399 fi # as_fn_append
400
401 # as_fn_arith ARG...
402 # ------------------
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407 then :
408 eval 'as_fn_arith ()
409 {
410 as_val=$(( $* ))
411 }'
412 else case e in #(
413 e) as_fn_arith ()
414 {
415 as_val=`expr "$@" || test $? -eq 1`
416 } ;;
417 esac
418 fi # as_fn_arith
419
420
421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
422 # ----------------------------------------
423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425 # script with STATUS, using 1 if that was 0.
426 as_fn_error ()
427 {
428 as_status=$1; test $as_status -eq 0 && as_status=1
429 if test "$4"; then
430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432 fi
433 printf "%s\n" "$as_me: error: $2" >&2
434 as_fn_exit $as_status
435 } # as_fn_error
436
437 if expr a : '\(a\)' >/dev/null 2>&1 &&
438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
439 as_expr=expr
440 else
441 as_expr=false
442 fi
443
444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 as_basename=basename
446 else
447 as_basename=false
448 fi
449
450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451 as_dirname=dirname
452 else
453 as_dirname=false
454 fi
455
456 as_me=`$as_basename -- "$0" ||
457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458 X"$0" : 'X\(//\)$' \| \
459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460 printf "%s\n" X/"$0" |
461 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\/\)$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\).*/{
470 s//\1/
471 q
472 }
473 s/.*/./; q'`
474
475 # Avoid depending upon Character Ranges.
476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479 as_cr_digits='0123456789'
480 as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483 as_lineno_1=$LINENO as_lineno_1a=$LINENO
484 as_lineno_2=$LINENO as_lineno_2a=$LINENO
485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488 sed -n '
489 p
490 /[$]LINENO/=
491 ' <$as_myself |
492 sed '
493 t clear
494 :clear
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556 # In both cases, we have to default to 'cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
583
584 # Sed expression to map a string onto a valid variable name.
585 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
587
588 SHELL=${CONFIG_SHELL-/bin/sh}
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='libevent'
613 PACKAGE_TARNAME='libevent'
614 PACKAGE_VERSION='2.1.13-stable'
615 PACKAGE_STRING='libevent 2.1.13-stable'
616 PACKAGE_BUGREPORT=''
617 PACKAGE_URL=''
618
619 ac_unique_file="event.c"
620 ac_default_prefix=/usr/local
621 # Factoring default headers for most tests.
622 ac_includes_default="\
623 #include <stddef.h>
624 #ifdef HAVE_STDIO_H
625 # include <stdio.h>
626 #endif
627 #ifdef HAVE_STDLIB_H
628 # include <stdlib.h>
629 #endif
630 #ifdef HAVE_STRING_H
631 # include <string.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_STRINGS_H
640 # include <strings.h>
641 #endif
642 #ifdef HAVE_SYS_TYPES_H
643 # include <sys/types.h>
644 #endif
645 #ifdef HAVE_SYS_STAT_H
646 # include <sys/stat.h>
647 #endif
648 #ifdef HAVE_UNISTD_H
649 # include <unistd.h>
650 #endif"
651
652 ac_header_c_list=
653 enable_year2038=no
654 ac_subst_vars='am__EXEEXT_FALSE
655 am__EXEEXT_TRUE
656 LTLIBOBJS
657 ENABLE_DOXYGEN_MAN_FALSE
658 ENABLE_DOXYGEN_MAN_TRUE
659 ENABLE_DOXYGEN_FALSE
660 ENABLE_DOXYGEN_TRUE
661 DX_RULES
662 PAPER_SIZE
663 DOXYGEN_PAPER_SIZE
664 GENERATE_LATEX
665 DX_PDFLATEX
666 DX_FLAG_pdf
667 DX_EGREP
668 DX_DVIPS
669 DX_MAKEINDEX
670 DX_LATEX
671 DX_FLAG_ps
672 DX_FLAG_html
673 GENERATE_CHI
674 DX_FLAG_chi
675 GENERATE_HTMLHELP
676 GENERATE_HTML
677 HHC_PATH
678 DX_HHC
679 DX_FLAG_chm
680 GENERATE_XML
681 DX_FLAG_xml
682 GENERATE_RTF
683 DX_FLAG_rtf
684 GENERATE_MAN
685 DX_FLAG_man
686 DOT_PATH
687 HAVE_DOT
688 DX_DOT
689 DX_FLAG_dot
690 PERL_PATH
691 DX_PERL
692 DX_DOXYGEN
693 DX_FLAG_doc
694 PROJECT
695 SRCDIR
696 DX_ENV
697 DX_DOCDIR
698 DX_CONFIG
699 DX_PROJECT
700 INSTALL_LIBEVENT_FALSE
701 INSTALL_LIBEVENT_TRUE
702 LIBEVENT_GC_SECTIONS
703 PTHREADS_FALSE
704 PTHREADS_TRUE
705 THREADS_FALSE
706 THREADS_TRUE
707 PTHREAD_CFLAGS
708 PTHREAD_LIBS
709 PTHREAD_CC
710 acx_pthread_config
711 SIGNAL_SUPPORT_FALSE
712 SIGNAL_SUPPORT_TRUE
713 EVPORT_BACKEND_FALSE
714 EVPORT_BACKEND_TRUE
715 EPOLL_BACKEND_FALSE
716 EPOLL_BACKEND_TRUE
717 LIBOBJS
718 KQUEUE_BACKEND_FALSE
719 KQUEUE_BACKEND_TRUE
720 DEVPOLL_BACKEND_FALSE
721 DEVPOLL_BACKEND_TRUE
722 POLL_BACKEND_FALSE
723 POLL_BACKEND_TRUE
724 SELECT_BACKEND_FALSE
725 SELECT_BACKEND_TRUE
726 STRLCPY_IMPL_FALSE
727 STRLCPY_IMPL_TRUE
728 BUILD_WITH_NO_UNDEFINED_FALSE
729 BUILD_WITH_NO_UNDEFINED_TRUE
730 BUILD_MIDIPIX_FALSE
731 BUILD_MIDIPIX_TRUE
732 BUILD_CYGWIN_FALSE
733 BUILD_CYGWIN_TRUE
734 BUILD_WIN32_FALSE
735 BUILD_WIN32_TRUE
736 CPP
737 OPENSSL_FALSE
738 OPENSSL_TRUE
739 OPENSSL_LIBS
740 OPENSSL_INCS
741 PKG_CONFIG
742 OPENSSL_LIBADD
743 EV_LIB_GDI
744 EV_LIB_WS32
745 ZLIB_REGRESS_FALSE
746 ZLIB_REGRESS_TRUE
747 ZLIB_LIBS
748 BUILD_REGRESS_FALSE
749 BUILD_REGRESS_TRUE
750 BUILD_SAMPLES_FALSE
751 BUILD_SAMPLES_TRUE
752 LIBTOOL_DEPS
753 LT_SYS_LIBRARY_PATH
754 OTOOL64
755 OTOOL
756 LIPO
757 NMEDIT
758 DSYMUTIL
759 MANIFEST_TOOL
760 RANLIB
761 ac_ct_AR
762 AR
763 DLLTOOL
764 OBJDUMP
765 FILECMD
766 NM
767 ac_ct_DUMPBIN
768 DUMPBIN
769 LD
770 FGREP
771 EGREP
772 GREP
773 LIBTOOL
774 SED
775 LN_S
776 host_os
777 host_vendor
778 host_cpu
779 host
780 build_os
781 build_vendor
782 build_cpu
783 build
784 am__fastdepCC_FALSE
785 am__fastdepCC_TRUE
786 CCDEPMODE
787 am__nodep
788 AMDEPBACKSLASH
789 AMDEP_FALSE
790 AMDEP_TRUE
791 am__include
792 DEPDIR
793 OBJEXT
794 EXEEXT
795 ac_ct_CC
796 CPPFLAGS
797 LDFLAGS
798 CFLAGS
799 CC
800 am__xargs_n
801 am__rm_f_notfound
802 AM_BACKSLASH
803 AM_DEFAULT_VERBOSITY
804 AM_DEFAULT_V
805 AM_V
806 CSCOPE
807 ETAGS
808 CTAGS
809 am__untar
810 am__tar
811 AMTAR
812 am__leading_dot
813 SET_MAKE
814 AWK
815 mkdir_p
816 MKDIR_P
817 INSTALL_STRIP_PROGRAM
818 STRIP
819 install_sh
820 MAKEINFO
821 AUTOHEADER
822 AUTOMAKE
823 AUTOCONF
824 ACLOCAL
825 VERSION
826 PACKAGE
827 CYGPATH_W
828 am__isrc
829 INSTALL_DATA
830 INSTALL_SCRIPT
831 INSTALL_PROGRAM
832 target_alias
833 host_alias
834 build_alias
835 LIBS
836 ECHO_T
837 ECHO_N
838 ECHO_C
839 DEFS
840 mandir
841 localedir
842 libdir
843 psdir
844 pdfdir
845 dvidir
846 htmldir
847 infodir
848 docdir
849 oldincludedir
850 includedir
851 runstatedir
852 localstatedir
853 sharedstatedir
854 sysconfdir
855 datadir
856 datarootdir
857 libexecdir
858 sbindir
859 bindir
860 program_transform_name
861 prefix
862 exec_prefix
863 PACKAGE_URL
864 PACKAGE_BUGREPORT
865 PACKAGE_STRING
866 PACKAGE_VERSION
867 PACKAGE_TARNAME
868 PACKAGE_NAME
869 PATH_SEPARATOR
870 SHELL
871 am__quote'
872 ac_subst_files=''
873 ac_user_opts='
874 enable_option_checking
875 enable_silent_rules
876 enable_dependency_tracking
877 enable_gcc_warnings
878 enable_gcc_hardening
879 enable_thread_support
880 enable_malloc_replacement
881 enable_openssl
882 enable_debug_mode
883 enable_libevent_install
884 enable_libevent_regress
885 enable_samples
886 enable_function_sections
887 enable_verbose_debug
888 enable_clock_gettime
889 enable_shared
890 enable_static
891 enable_pic
892 with_pic
893 enable_fast_install
894 enable_aix_soname
895 with_aix_soname
896 with_gnu_ld
897 with_sysroot
898 enable_libtool_lock
899 enable_largefile
900 enable_doxygen_doc
901 enable_doxygen_dot
902 enable_doxygen_man
903 enable_doxygen_rtf
904 enable_doxygen_xml
905 enable_doxygen_chm
906 enable_doxygen_chi
907 enable_doxygen_html
908 enable_doxygen_ps
909 enable_doxygen_pdf
910 enable_year2038
911 '
912 ac_precious_vars='build_alias
913 host_alias
914 target_alias
915 CC
916 CFLAGS
917 LDFLAGS
918 LIBS
919 CPPFLAGS
920 LT_SYS_LIBRARY_PATH
921 CPP
922 DOXYGEN_PAPER_SIZE'
923
924
925 # Initialize some variables set by options.
926 ac_init_help=
927 ac_init_version=false
928 ac_unrecognized_opts=
929 ac_unrecognized_sep=
930 # The variables have the same names as the options, with
931 # dashes changed to underlines.
932 cache_file=/dev/null
933 exec_prefix=NONE
934 no_create=
935 no_recursion=
936 prefix=NONE
937 program_prefix=NONE
938 program_suffix=NONE
939 program_transform_name=s,x,x,
940 silent=
941 site=
942 srcdir=
943 verbose=
944 x_includes=NONE
945 x_libraries=NONE
946
947 # Installation directory options.
948 # These are left unexpanded so users can "make install exec_prefix=/foo"
949 # and all the variables that are supposed to be based on exec_prefix
950 # by default will actually change.
951 # Use braces instead of parens because sh, perl, etc. also accept them.
952 # (The list follows the same order as the GNU Coding Standards.)
953 bindir='${exec_prefix}/bin'
954 sbindir='${exec_prefix}/sbin'
955 libexecdir='${exec_prefix}/libexec'
956 datarootdir='${prefix}/share'
957 datadir='${datarootdir}'
958 sysconfdir='${prefix}/etc'
959 sharedstatedir='${prefix}/com'
960 localstatedir='${prefix}/var'
961 runstatedir='${localstatedir}/run'
962 includedir='${prefix}/include'
963 oldincludedir='/usr/include'
964 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
965 infodir='${datarootdir}/info'
966 htmldir='${docdir}'
967 dvidir='${docdir}'
968 pdfdir='${docdir}'
969 psdir='${docdir}'
970 libdir='${exec_prefix}/lib'
971 localedir='${datarootdir}/locale'
972 mandir='${datarootdir}/man'
973
974 ac_prev=
975 ac_dashdash=
976 for ac_option
977 do
978 # If the previous option needs an argument, assign it.
979 if test -n "$ac_prev"; then
980 eval $ac_prev=\$ac_option
981 ac_prev=
982 continue
983 fi
984
985 case $ac_option in
986 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
987 *=) ac_optarg= ;;
988 *) ac_optarg=yes ;;
989 esac
990
991 case $ac_dashdash$ac_option in
992 --)
993 ac_dashdash=yes ;;
994
995 -bindir | --bindir | --bindi | --bind | --bin | --bi)
996 ac_prev=bindir ;;
997 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
998 bindir=$ac_optarg ;;
999
1000 -build | --build | --buil | --bui | --bu)
1001 ac_prev=build_alias ;;
1002 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1003 build_alias=$ac_optarg ;;
1004
1005 -cache-file | --cache-file | --cache-fil | --cache-fi \
1006 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1007 ac_prev=cache_file ;;
1008 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1009 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1010 cache_file=$ac_optarg ;;
1011
1012 --config-cache | -C)
1013 cache_file=config.cache ;;
1014
1015 -datadir | --datadir | --datadi | --datad)
1016 ac_prev=datadir ;;
1017 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1018 datadir=$ac_optarg ;;
1019
1020 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1021 | --dataroo | --dataro | --datar)
1022 ac_prev=datarootdir ;;
1023 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1024 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1025 datarootdir=$ac_optarg ;;
1026
1027 -disable-* | --disable-*)
1028 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031 as_fn_error $? "invalid feature name: '$ac_useropt'"
1032 ac_useropt_orig=$ac_useropt
1033 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1034 case $ac_user_opts in
1035 *"
1036 "enable_$ac_useropt"
1037 "*) ;;
1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1039 ac_unrecognized_sep=', ';;
1040 esac
1041 eval enable_$ac_useropt=no ;;
1042
1043 -docdir | --docdir | --docdi | --doc | --do)
1044 ac_prev=docdir ;;
1045 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1046 docdir=$ac_optarg ;;
1047
1048 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1049 ac_prev=dvidir ;;
1050 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1051 dvidir=$ac_optarg ;;
1052
1053 -enable-* | --enable-*)
1054 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057 as_fn_error $? "invalid feature name: '$ac_useropt'"
1058 ac_useropt_orig=$ac_useropt
1059 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1060 case $ac_user_opts in
1061 *"
1062 "enable_$ac_useropt"
1063 "*) ;;
1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1065 ac_unrecognized_sep=', ';;
1066 esac
1067 eval enable_$ac_useropt=\$ac_optarg ;;
1068
1069 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1070 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1071 | --exec | --exe | --ex)
1072 ac_prev=exec_prefix ;;
1073 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1074 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1075 | --exec=* | --exe=* | --ex=*)
1076 exec_prefix=$ac_optarg ;;
1077
1078 -gas | --gas | --ga | --g)
1079 # Obsolete; use --with-gas.
1080 with_gas=yes ;;
1081
1082 -help | --help | --hel | --he | -h)
1083 ac_init_help=long ;;
1084 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1085 ac_init_help=recursive ;;
1086 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1087 ac_init_help=short ;;
1088
1089 -host | --host | --hos | --ho)
1090 ac_prev=host_alias ;;
1091 -host=* | --host=* | --hos=* | --ho=*)
1092 host_alias=$ac_optarg ;;
1093
1094 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1095 ac_prev=htmldir ;;
1096 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1097 | --ht=*)
1098 htmldir=$ac_optarg ;;
1099
1100 -includedir | --includedir | --includedi | --included | --include \
1101 | --includ | --inclu | --incl | --inc)
1102 ac_prev=includedir ;;
1103 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1104 | --includ=* | --inclu=* | --incl=* | --inc=*)
1105 includedir=$ac_optarg ;;
1106
1107 -infodir | --infodir | --infodi | --infod | --info | --inf)
1108 ac_prev=infodir ;;
1109 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1110 infodir=$ac_optarg ;;
1111
1112 -libdir | --libdir | --libdi | --libd)
1113 ac_prev=libdir ;;
1114 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1115 libdir=$ac_optarg ;;
1116
1117 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1118 | --libexe | --libex | --libe)
1119 ac_prev=libexecdir ;;
1120 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1121 | --libexe=* | --libex=* | --libe=*)
1122 libexecdir=$ac_optarg ;;
1123
1124 -localedir | --localedir | --localedi | --localed | --locale)
1125 ac_prev=localedir ;;
1126 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1127 localedir=$ac_optarg ;;
1128
1129 -localstatedir | --localstatedir | --localstatedi | --localstated \
1130 | --localstate | --localstat | --localsta | --localst | --locals)
1131 ac_prev=localstatedir ;;
1132 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1133 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1134 localstatedir=$ac_optarg ;;
1135
1136 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1137 ac_prev=mandir ;;
1138 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1139 mandir=$ac_optarg ;;
1140
1141 -nfp | --nfp | --nf)
1142 # Obsolete; use --without-fp.
1143 with_fp=no ;;
1144
1145 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1146 | --no-cr | --no-c | -n)
1147 no_create=yes ;;
1148
1149 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1150 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1151 no_recursion=yes ;;
1152
1153 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1154 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1155 | --oldin | --oldi | --old | --ol | --o)
1156 ac_prev=oldincludedir ;;
1157 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1158 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1159 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1160 oldincludedir=$ac_optarg ;;
1161
1162 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1163 ac_prev=prefix ;;
1164 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1165 prefix=$ac_optarg ;;
1166
1167 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1168 | --program-pre | --program-pr | --program-p)
1169 ac_prev=program_prefix ;;
1170 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1171 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1172 program_prefix=$ac_optarg ;;
1173
1174 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1175 | --program-suf | --program-su | --program-s)
1176 ac_prev=program_suffix ;;
1177 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1178 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1179 program_suffix=$ac_optarg ;;
1180
1181 -program-transform-name | --program-transform-name \
1182 | --program-transform-nam | --program-transform-na \
1183 | --program-transform-n | --program-transform- \
1184 | --program-transform | --program-transfor \
1185 | --program-transfo | --program-transf \
1186 | --program-trans | --program-tran \
1187 | --progr-tra | --program-tr | --program-t)
1188 ac_prev=program_transform_name ;;
1189 -program-transform-name=* | --program-transform-name=* \
1190 | --program-transform-nam=* | --program-transform-na=* \
1191 | --program-transform-n=* | --program-transform-=* \
1192 | --program-transform=* | --program-transfor=* \
1193 | --program-transfo=* | --program-transf=* \
1194 | --program-trans=* | --program-tran=* \
1195 | --progr-tra=* | --program-tr=* | --program-t=*)
1196 program_transform_name=$ac_optarg ;;
1197
1198 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1199 ac_prev=pdfdir ;;
1200 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1201 pdfdir=$ac_optarg ;;
1202
1203 -psdir | --psdir | --psdi | --psd | --ps)
1204 ac_prev=psdir ;;
1205 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1206 psdir=$ac_optarg ;;
1207
1208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209 | -silent | --silent | --silen | --sile | --sil)
1210 silent=yes ;;
1211
1212 -runstatedir | --runstatedir | --runstatedi | --runstated \
1213 | --runstate | --runstat | --runsta | --runst | --runs \
1214 | --run | --ru | --r)
1215 ac_prev=runstatedir ;;
1216 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1217 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1218 | --run=* | --ru=* | --r=*)
1219 runstatedir=$ac_optarg ;;
1220
1221 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1222 ac_prev=sbindir ;;
1223 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1224 | --sbi=* | --sb=*)
1225 sbindir=$ac_optarg ;;
1226
1227 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1228 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229 | --sharedst | --shareds | --shared | --share | --shar \
1230 | --sha | --sh)
1231 ac_prev=sharedstatedir ;;
1232 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1235 | --sha=* | --sh=*)
1236 sharedstatedir=$ac_optarg ;;
1237
1238 -site | --site | --sit)
1239 ac_prev=site ;;
1240 -site=* | --site=* | --sit=*)
1241 site=$ac_optarg ;;
1242
1243 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1244 ac_prev=srcdir ;;
1245 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246 srcdir=$ac_optarg ;;
1247
1248 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249 | --syscon | --sysco | --sysc | --sys | --sy)
1250 ac_prev=sysconfdir ;;
1251 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253 sysconfdir=$ac_optarg ;;
1254
1255 -target | --target | --targe | --targ | --tar | --ta | --t)
1256 ac_prev=target_alias ;;
1257 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258 target_alias=$ac_optarg ;;
1259
1260 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1261 verbose=yes ;;
1262
1263 -version | --version | --versio | --versi | --vers | -V)
1264 ac_init_version=: ;;
1265
1266 -with-* | --with-*)
1267 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270 as_fn_error $? "invalid package name: '$ac_useropt'"
1271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1274 *"
1275 "with_$ac_useropt"
1276 "*) ;;
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
1279 esac
1280 eval with_$ac_useropt=\$ac_optarg ;;
1281
1282 -without-* | --without-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 as_fn_error $? "invalid package name: '$ac_useropt'"
1287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1290 *"
1291 "with_$ac_useropt"
1292 "*) ;;
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1295 esac
1296 eval with_$ac_useropt=no ;;
1297
1298 --x)
1299 # Obsolete; use --with-x.
1300 with_x=yes ;;
1301
1302 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1303 | --x-incl | --x-inc | --x-in | --x-i)
1304 ac_prev=x_includes ;;
1305 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1306 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1307 x_includes=$ac_optarg ;;
1308
1309 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1310 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1311 ac_prev=x_libraries ;;
1312 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1313 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1314 x_libraries=$ac_optarg ;;
1315
1316 -*) as_fn_error $? "unrecognized option: '$ac_option'
1317 Try '$0 --help' for more information"
1318 ;;
1319
1320 *=*)
1321 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1322 # Reject names that are not valid shell variable names.
1323 case $ac_envvar in #(
1324 '' | [0-9]* | *[!_$as_cr_alnum]* )
1325 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1326 esac
1327 eval $ac_envvar=\$ac_optarg
1328 export $ac_envvar ;;
1329
1330 *)
1331 # FIXME: should be removed in autoconf 3.0.
1332 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1333 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1334 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1335 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1336 ;;
1337
1338 esac
1339 done
1340
1341 if test -n "$ac_prev"; then
1342 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1343 as_fn_error $? "missing argument to $ac_option"
1344 fi
1345
1346 if test -n "$ac_unrecognized_opts"; then
1347 case $enable_option_checking in
1348 no) ;;
1349 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1350 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1351 esac
1352 fi
1353
1354 # Check all directory arguments for consistency.
1355 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1356 datadir sysconfdir sharedstatedir localstatedir includedir \
1357 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1358 libdir localedir mandir runstatedir
1359 do
1360 eval ac_val=\$$ac_var
1361 # Remove trailing slashes.
1362 case $ac_val in
1363 */ )
1364 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1365 eval $ac_var=\$ac_val;;
1366 esac
1367 # Be sure to have absolute directory names.
1368 case $ac_val in
1369 [\\/$]* | ?:[\\/]* ) continue;;
1370 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1371 esac
1372 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1373 done
1374
1375 # There might be people who depend on the old broken behavior: '$host'
1376 # used to hold the argument of --host etc.
1377 # FIXME: To remove some day.
1378 build=$build_alias
1379 host=$host_alias
1380 target=$target_alias
1381
1382 # FIXME: To remove some day.
1383 if test "x$host_alias" != x; then
1384 if test "x$build_alias" = x; then
1385 cross_compiling=maybe
1386 elif test "x$build_alias" != "x$host_alias"; then
1387 cross_compiling=yes
1388 fi
1389 fi
1390
1391 ac_tool_prefix=
1392 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1393
1394 test "$silent" = yes && exec 6>/dev/null
1395
1396
1397 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1398 ac_ls_di=`ls -di .` &&
1399 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1400 as_fn_error $? "working directory cannot be determined"
1401 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1402 as_fn_error $? "pwd does not report name of working directory"
1403
1404
1405 # Find the source files, if location was not specified.
1406 if test -z "$srcdir"; then
1407 ac_srcdir_defaulted=yes
1408 # Try the directory containing this script, then the parent directory.
1409 ac_confdir=`$as_dirname -- "$as_myself" ||
1410 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1411 X"$as_myself" : 'X\(//\)[^/]' \| \
1412 X"$as_myself" : 'X\(//\)$' \| \
1413 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1414 printf "%s\n" X"$as_myself" |
1415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1416 s//\1/
1417 q
1418 }
1419 /^X\(\/\/\)[^/].*/{
1420 s//\1/
1421 q
1422 }
1423 /^X\(\/\/\)$/{
1424 s//\1/
1425 q
1426 }
1427 /^X\(\/\).*/{
1428 s//\1/
1429 q
1430 }
1431 s/.*/./; q'`
1432 srcdir=$ac_confdir
1433 if test ! -r "$srcdir/$ac_unique_file"; then
1434 srcdir=..
1435 fi
1436 else
1437 ac_srcdir_defaulted=no
1438 fi
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1440 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1441 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1442 fi
1443 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1444 ac_abs_confdir=`(
1445 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1446 pwd)`
1447 # When building in place, set srcdir=.
1448 if test "$ac_abs_confdir" = "$ac_pwd"; then
1449 srcdir=.
1450 fi
1451 # Remove unnecessary trailing slashes from srcdir.
1452 # Double slashes in file names in object file debugging info
1453 # mess up M-x gdb in Emacs.
1454 case $srcdir in
1455 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1456 esac
1457 for ac_var in $ac_precious_vars; do
1458 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1459 eval ac_env_${ac_var}_value=\$${ac_var}
1460 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1461 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1462 done
1463
1464 #
1465 # Report the --help message.
1466 #
1467 if test "$ac_init_help" = "long"; then
1468 # Omit some internal or obsolete options to make the list less imposing.
1469 # This message is too long to be a string in the A/UX 3.1 sh.
1470 cat <<_ACEOF
1471 'configure' configures libevent 2.1.13-stable to adapt to many kinds of systems.
1472
1473 Usage: $0 [OPTION]... [VAR=VALUE]...
1474
1475 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1476 VAR=VALUE. See below for descriptions of some of the useful variables.
1477
1478 Defaults for the options are specified in brackets.
1479
1480 Configuration:
1481 -h, --help display this help and exit
1482 --help=short display options specific to this package
1483 --help=recursive display the short help of all the included packages
1484 -V, --version display version information and exit
1485 -q, --quiet, --silent do not print 'checking ...' messages
1486 --cache-file=FILE cache test results in FILE [disabled]
1487 -C, --config-cache alias for '--cache-file=config.cache'
1488 -n, --no-create do not create output files
1489 --srcdir=DIR find the sources in DIR [configure dir or '..']
1490
1491 Installation directories:
1492 --prefix=PREFIX install architecture-independent files in PREFIX
1493 [$ac_default_prefix]
1494 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1495 [PREFIX]
1496
1497 By default, 'make install' will install all the files in
1498 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1499 an installation prefix other than '$ac_default_prefix' using '--prefix',
1500 for instance '--prefix=\$HOME'.
1501
1502 For better control, use the options below.
1503
1504 Fine tuning of the installation directories:
1505 --bindir=DIR user executables [EPREFIX/bin]
1506 --sbindir=DIR system admin executables [EPREFIX/sbin]
1507 --libexecdir=DIR program executables [EPREFIX/libexec]
1508 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1509 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1510 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1511 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1512 --libdir=DIR object code libraries [EPREFIX/lib]
1513 --includedir=DIR C header files [PREFIX/include]
1514 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1515 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1516 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1517 --infodir=DIR info documentation [DATAROOTDIR/info]
1518 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1519 --mandir=DIR man documentation [DATAROOTDIR/man]
1520 --docdir=DIR documentation root [DATAROOTDIR/doc/libevent]
1521 --htmldir=DIR html documentation [DOCDIR]
1522 --dvidir=DIR dvi documentation [DOCDIR]
1523 --pdfdir=DIR pdf documentation [DOCDIR]
1524 --psdir=DIR ps documentation [DOCDIR]
1525 _ACEOF
1526
1527 cat <<\_ACEOF
1528
1529 Program names:
1530 --program-prefix=PREFIX prepend PREFIX to installed program names
1531 --program-suffix=SUFFIX append SUFFIX to installed program names
1532 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1533
1534 System types:
1535 --build=BUILD configure for building on BUILD [guessed]
1536 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1537 _ACEOF
1538 fi
1539
1540 if test -n "$ac_init_help"; then
1541 case $ac_init_help in
1542 short | recursive ) echo "Configuration of libevent 2.1.13-stable:";;
1543 esac
1544 cat <<\_ACEOF
1545
1546 Optional Features:
1547 --disable-option-checking ignore unrecognized --enable/--with options
1548 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1549 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1550 --enable-silent-rules less verbose build output (undo: "make V=1")
1551 --disable-silent-rules verbose build output (undo: "make V=0")
1552 --enable-dependency-tracking
1553 do not reject slow dependency extractors
1554 --disable-dependency-tracking
1555 speeds up one-time build
1556 --disable-gcc-warnings disable verbose warnings with GCC
1557 --enable-gcc-hardening enable compiler security checks
1558 --disable-thread-support
1559 disable support for threading
1560 --disable-malloc-replacement
1561 disable support for replacing the memory mgt
1562 functions
1563 --disable-openssl disable support for openssl encryption
1564 --disable-debug-mode disable support for running in debug mode
1565 --disable-libevent-install, disable installation of libevent
1566
1567 --disable-libevent-regress, skip regress in make check
1568
1569 --disable-samples, skip building of sample programs
1570
1571 --enable-function-sections, make static library allow smaller binaries with --gc-sections
1572
1573 --enable-verbose-debug, verbose debug logging
1574
1575 --disable-clock-gettime do not use clock_gettime even if it is available
1576 --enable-shared[=PKGS] build shared libraries [default=yes]
1577 --enable-static[=PKGS] build static libraries [default=yes]
1578 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1579 both]
1580 --enable-fast-install[=PKGS]
1581 optimize for fast installation [default=yes]
1582 --enable-aix-soname=aix|svr4|both
1583 shared library versioning (aka "SONAME") variant to
1584 provide on AIX, [default=aix].
1585 --disable-libtool-lock avoid locking (might break parallel builds)
1586 --disable-largefile omit support for large files
1587 --enable-doxygen-doc generate any doxygen documentation
1588 --enable-doxygen-dot generate graphics for doxygen documentation
1589 --enable-doxygen-man generate doxygen manual pages
1590 --enable-doxygen-rtf generate doxygen RTF documentation
1591 --enable-doxygen-xml generate doxygen XML documentation
1592 --enable-doxygen-chm generate doxygen compressed HTML help documentation
1593 --enable-doxygen-chi generate doxygen separate compressed HTML help index
1594 file
1595 --disable-doxygen-html don't generate doxygen plain HTML documentation
1596 --enable-doxygen-ps generate doxygen PostScript documentation
1597 --enable-doxygen-pdf generate doxygen PDF documentation
1598 --enable-year2038 support timestamps after 2038
1599
1600 Optional Packages:
1601 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1602 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1603 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1604 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1605 compiler's sysroot if not specified).
1606
1607 Some influential environment variables:
1608 CC C compiler command
1609 CFLAGS C compiler flags
1610 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1611 nonstandard directory <lib dir>
1612 LIBS libraries to pass to the linker, e.g. -l<library>
1613 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1614 you have headers in a nonstandard directory <include dir>
1615 LT_SYS_LIBRARY_PATH
1616 User-defined run-time library search path.
1617 CPP C preprocessor
1618 DOXYGEN_PAPER_SIZE
1619 a4wide (default), a4, letter, legal or executive
1620
1621 Use these variables to override the choices made by 'configure' or to help
1622 it to find libraries and programs with nonstandard names/locations.
1623
1624 Report bugs to the package provider.
1625 _ACEOF
1626 ac_status=$?
1627 fi
1628
1629 if test "$ac_init_help" = "recursive"; then
1630 # If there are subdirs, report their specific --help.
1631 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1632 test -d "$ac_dir" ||
1633 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1634 continue
1635 ac_builddir=.
1636
1637 case "$ac_dir" in
1638 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 *)
1640 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1641 # A ".." for each directory in $ac_dir_suffix.
1642 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1643 case $ac_top_builddir_sub in
1644 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1646 esac ;;
1647 esac
1648 ac_abs_top_builddir=$ac_pwd
1649 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1650 # for backward compatibility:
1651 ac_top_builddir=$ac_top_build_prefix
1652
1653 case $srcdir in
1654 .) # We are building in place.
1655 ac_srcdir=.
1656 ac_top_srcdir=$ac_top_builddir_sub
1657 ac_abs_top_srcdir=$ac_pwd ;;
1658 [\\/]* | ?:[\\/]* ) # Absolute name.
1659 ac_srcdir=$srcdir$ac_dir_suffix;
1660 ac_top_srcdir=$srcdir
1661 ac_abs_top_srcdir=$srcdir ;;
1662 *) # Relative name.
1663 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1664 ac_top_srcdir=$ac_top_build_prefix$srcdir
1665 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1666 esac
1667 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1668
1669 cd "$ac_dir" || { ac_status=$?; continue; }
1670 # Check for configure.gnu first; this name is used for a wrapper for
1671 # Metaconfig's "Configure" on case-insensitive file systems.
1672 if test -f "$ac_srcdir/configure.gnu"; then
1673 echo &&
1674 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1675 elif test -f "$ac_srcdir/configure"; then
1676 echo &&
1677 $SHELL "$ac_srcdir/configure" --help=recursive
1678 else
1679 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1680 fi || ac_status=$?
1681 cd "$ac_pwd" || { ac_status=$?; break; }
1682 done
1683 fi
1684
1685 test -n "$ac_init_help" && exit $ac_status
1686 if $ac_init_version; then
1687 cat <<\_ACEOF
1688 libevent configure 2.1.13-stable
1689 generated by GNU Autoconf 2.72
1690
1691 Copyright (C) 2023 Free Software Foundation, Inc.
1692 This configure script is free software; the Free Software Foundation
1693 gives unlimited permission to copy, distribute and modify it.
1694 _ACEOF
1695 exit
1696 fi
1697
1698 ## ------------------------ ##
1699 ## Autoconf initialization. ##
1700 ## ------------------------ ##
1701
1702 # ac_fn_c_try_compile LINENO
1703 # --------------------------
1704 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1705 ac_fn_c_try_compile ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext conftest.beam
1709 if { { ac_try="$ac_compile"
1710 case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 printf "%s\n" "$ac_try_echo"; } >&5
1716 (eval "$ac_compile") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest.$ac_objext
1728 then :
1729 ac_retval=0
1730 else case e in #(
1731 e) printf "%s\n" "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1733
1734 ac_retval=1 ;;
1735 esac
1736 fi
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status $ac_retval
1739
1740 } # ac_fn_c_try_compile
1741
1742 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1743 # -------------------------------------------------------
1744 # Tests whether HEADER exists and can be compiled using the include files in
1745 # INCLUDES, setting the cache variable VAR accordingly.
1746 ac_fn_c_check_header_compile ()
1747 {
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 printf %s "checking for $2... " >&6; }
1751 if eval test \${$3+y}
1752 then :
1753 printf %s "(cached) " >&6
1754 else case e in #(
1755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1757 $4
1758 #include <$2>
1759 _ACEOF
1760 if ac_fn_c_try_compile "$LINENO"
1761 then :
1762 eval "$3=yes"
1763 else case e in #(
1764 e) eval "$3=no" ;;
1765 esac
1766 fi
1767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1768 esac
1769 fi
1770 eval ac_res=\$$3
1771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1772 printf "%s\n" "$ac_res" >&6; }
1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774
1775 } # ac_fn_c_check_header_compile
1776
1777 # ac_fn_c_try_link LINENO
1778 # -----------------------
1779 # Try to link conftest.$ac_ext, and return whether this succeeded.
1780 ac_fn_c_try_link ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1784 if { { ac_try="$ac_link"
1785 case "(($ac_try" in
1786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 printf "%s\n" "$ac_try_echo"; } >&5
1791 (eval "$ac_link") 2>conftest.err
1792 ac_status=$?
1793 if test -s conftest.err; then
1794 grep -v '^ *+' conftest.err >conftest.er1
1795 cat conftest.er1 >&5
1796 mv -f conftest.er1 conftest.err
1797 fi
1798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && {
1800 test -z "$ac_c_werror_flag" ||
1801 test ! -s conftest.err
1802 } && test -s conftest$ac_exeext && {
1803 test "$cross_compiling" = yes ||
1804 test -x conftest$ac_exeext
1805 }
1806 then :
1807 ac_retval=0
1808 else case e in #(
1809 e) printf "%s\n" "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1811
1812 ac_retval=1 ;;
1813 esac
1814 fi
1815 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1816 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1817 # interfere with the next link command; also delete a directory that is
1818 # left behind by Apple's compiler. We do this before executing the actions.
1819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 as_fn_set_status $ac_retval
1822
1823 } # ac_fn_c_try_link
1824
1825 # ac_fn_c_check_func LINENO FUNC VAR
1826 # ----------------------------------
1827 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1828 ac_fn_c_check_func ()
1829 {
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 printf %s "checking for $2... " >&6; }
1833 if eval test \${$3+y}
1834 then :
1835 printf %s "(cached) " >&6
1836 else case e in #(
1837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1841 #define $2 innocuous_$2
1842
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $2 (void); below. */
1845
1846 #include <limits.h>
1847 #undef $2
1848
1849 /* Override any GCC internal prototype to avoid an error.
1850 Use char because int might match the return type of a GCC
1851 builtin and then its argument prototype would still apply. */
1852 #ifdef __cplusplus
1853 extern "C"
1854 #endif
1855 char $2 (void);
1856 /* The GNU C library defines this for functions which it implements
1857 to always fail with ENOSYS. Some functions are actually named
1858 something starting with __ and the normal name is an alias. */
1859 #if defined __stub_$2 || defined __stub___$2
1860 choke me
1861 #endif
1862
1863 int
1864 main (void)
1865 {
1866 return $2 ();
1867 ;
1868 return 0;
1869 }
1870 _ACEOF
1871 if ac_fn_c_try_link "$LINENO"
1872 then :
1873 eval "$3=yes"
1874 else case e in #(
1875 e) eval "$3=no" ;;
1876 esac
1877 fi
1878 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1879 conftest$ac_exeext conftest.$ac_ext ;;
1880 esac
1881 fi
1882 eval ac_res=\$$3
1883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884 printf "%s\n" "$ac_res" >&6; }
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886
1887 } # ac_fn_c_check_func
1888
1889 # ac_fn_c_try_cpp LINENO
1890 # ----------------------
1891 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1892 ac_fn_c_try_cpp ()
1893 {
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 if { { ac_try="$ac_cpp conftest.$ac_ext"
1896 case "(($ac_try" in
1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898 *) ac_try_echo=$ac_try;;
1899 esac
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 printf "%s\n" "$ac_try_echo"; } >&5
1902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1903 ac_status=$?
1904 if test -s conftest.err; then
1905 grep -v '^ *+' conftest.err >conftest.er1
1906 cat conftest.er1 >&5
1907 mv -f conftest.er1 conftest.err
1908 fi
1909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910 test $ac_status = 0; } > conftest.i && {
1911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1912 test ! -s conftest.err
1913 }
1914 then :
1915 ac_retval=0
1916 else case e in #(
1917 e) printf "%s\n" "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1919
1920 ac_retval=1 ;;
1921 esac
1922 fi
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status $ac_retval
1925
1926 } # ac_fn_c_try_cpp
1927
1928 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1929 # ------------------------------------------------------------------
1930 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1931 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1932 ac_fn_check_decl ()
1933 {
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 as_decl_name=`echo $2|sed 's/ *(.*//'`
1936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1937 printf %s "checking whether $as_decl_name is declared... " >&6; }
1938 if eval test \${$3+y}
1939 then :
1940 printf %s "(cached) " >&6
1941 else case e in #(
1942 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1943 eval ac_save_FLAGS=\$$6
1944 as_fn_append $6 " $5"
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1947 $4
1948 int
1949 main (void)
1950 {
1951 #ifndef $as_decl_name
1952 #ifdef __cplusplus
1953 (void) $as_decl_use;
1954 #else
1955 (void) $as_decl_name;
1956 #endif
1957 #endif
1958
1959 ;
1960 return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"
1964 then :
1965 eval "$3=yes"
1966 else case e in #(
1967 e) eval "$3=no" ;;
1968 esac
1969 fi
1970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1971 eval $6=\$ac_save_FLAGS
1972 ;;
1973 esac
1974 fi
1975 eval ac_res=\$$3
1976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977 printf "%s\n" "$ac_res" >&6; }
1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979
1980 } # ac_fn_check_decl
1981
1982 # ac_fn_c_try_run LINENO
1983 # ----------------------
1984 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1985 # executables *can* be run.
1986 ac_fn_c_try_run ()
1987 {
1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989 if { { ac_try="$ac_link"
1990 case "(($ac_try" in
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1993 esac
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 printf "%s\n" "$ac_try_echo"; } >&5
1996 (eval "$ac_link") 2>&5
1997 ac_status=$?
1998 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2000 { { case "(($ac_try" in
2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2003 esac
2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 printf "%s\n" "$ac_try_echo"; } >&5
2006 (eval "$ac_try") 2>&5
2007 ac_status=$?
2008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; }; }
2010 then :
2011 ac_retval=0
2012 else case e in #(
2013 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2014 printf "%s\n" "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2016
2017 ac_retval=$ac_status ;;
2018 esac
2019 fi
2020 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2021 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022 as_fn_set_status $ac_retval
2023
2024 } # ac_fn_c_try_run
2025
2026 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2027 # -------------------------------------------
2028 # Tests whether TYPE exists after having included INCLUDES, setting cache
2029 # variable VAR accordingly.
2030 ac_fn_c_check_type ()
2031 {
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034 printf %s "checking for $2... " >&6; }
2035 if eval test \${$3+y}
2036 then :
2037 printf %s "(cached) " >&6
2038 else case e in #(
2039 e) eval "$3=no"
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2042 $4
2043 int
2044 main (void)
2045 {
2046 if (sizeof ($2))
2047 return 0;
2048 ;
2049 return 0;
2050 }
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"
2053 then :
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2056 $4
2057 int
2058 main (void)
2059 {
2060 if (sizeof (($2)))
2061 return 0;
2062 ;
2063 return 0;
2064 }
2065 _ACEOF
2066 if ac_fn_c_try_compile "$LINENO"
2067 then :
2068
2069 else case e in #(
2070 e) eval "$3=yes" ;;
2071 esac
2072 fi
2073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2074 fi
2075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2076 esac
2077 fi
2078 eval ac_res=\$$3
2079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2080 printf "%s\n" "$ac_res" >&6; }
2081 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082
2083 } # ac_fn_c_check_type
2084
2085 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2086 # --------------------------------------------
2087 # Tries to find the compile-time value of EXPR in a program that includes
2088 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2089 # computed
2090 ac_fn_c_compute_int ()
2091 {
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 if test "$cross_compiling" = yes; then
2094 # Depending upon the size, compute the lo and hi bounds.
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2097 $4
2098 int
2099 main (void)
2100 {
2101 static int test_array [1 - 2 * !(($2) >= 0)];
2102 test_array [0] = 0;
2103 return test_array [0];
2104
2105 ;
2106 return 0;
2107 }
2108 _ACEOF
2109 if ac_fn_c_try_compile "$LINENO"
2110 then :
2111 ac_lo=0 ac_mid=0
2112 while :; do
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2115 $4
2116 int
2117 main (void)
2118 {
2119 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2120 test_array [0] = 0;
2121 return test_array [0];
2122
2123 ;
2124 return 0;
2125 }
2126 _ACEOF
2127 if ac_fn_c_try_compile "$LINENO"
2128 then :
2129 ac_hi=$ac_mid; break
2130 else case e in #(
2131 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2132 if test $ac_lo -le $ac_mid; then
2133 ac_lo= ac_hi=
2134 break
2135 fi
2136 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
2137 esac
2138 fi
2139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2140 done
2141 else case e in #(
2142 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2144 $4
2145 int
2146 main (void)
2147 {
2148 static int test_array [1 - 2 * !(($2) < 0)];
2149 test_array [0] = 0;
2150 return test_array [0];
2151
2152 ;
2153 return 0;
2154 }
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"
2157 then :
2158 ac_hi=-1 ac_mid=-1
2159 while :; do
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2162 $4
2163 int
2164 main (void)
2165 {
2166 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2167 test_array [0] = 0;
2168 return test_array [0];
2169
2170 ;
2171 return 0;
2172 }
2173 _ACEOF
2174 if ac_fn_c_try_compile "$LINENO"
2175 then :
2176 ac_lo=$ac_mid; break
2177 else case e in #(
2178 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2179 if test $ac_mid -le $ac_hi; then
2180 ac_lo= ac_hi=
2181 break
2182 fi
2183 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2184 esac
2185 fi
2186 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2187 done
2188 else case e in #(
2189 e) ac_lo= ac_hi= ;;
2190 esac
2191 fi
2192 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2193 esac
2194 fi
2195 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2196 # Binary search between lo and hi bounds.
2197 while test "x$ac_lo" != "x$ac_hi"; do
2198 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2201 $4
2202 int
2203 main (void)
2204 {
2205 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2206 test_array [0] = 0;
2207 return test_array [0];
2208
2209 ;
2210 return 0;
2211 }
2212 _ACEOF
2213 if ac_fn_c_try_compile "$LINENO"
2214 then :
2215 ac_hi=$ac_mid
2216 else case e in #(
2217 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2218 esac
2219 fi
2220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2221 done
2222 case $ac_lo in #((
2223 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2224 '') ac_retval=1 ;;
2225 esac
2226 else
2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h. */
2229 $4
2230 static long int longval (void) { return $2; }
2231 static unsigned long int ulongval (void) { return $2; }
2232 #include <stdio.h>
2233 #include <stdlib.h>
2234 int
2235 main (void)
2236 {
2237
2238 FILE *f = fopen ("conftest.val", "w");
2239 if (! f)
2240 return 1;
2241 if (($2) < 0)
2242 {
2243 long int i = longval ();
2244 if (i != ($2))
2245 return 1;
2246 fprintf (f, "%ld", i);
2247 }
2248 else
2249 {
2250 unsigned long int i = ulongval ();
2251 if (i != ($2))
2252 return 1;
2253 fprintf (f, "%lu", i);
2254 }
2255 /* Do not output a trailing newline, as this causes \r\n confusion
2256 on some platforms. */
2257 return ferror (f) || fclose (f) != 0;
2258
2259 ;
2260 return 0;
2261 }
2262 _ACEOF
2263 if ac_fn_c_try_run "$LINENO"
2264 then :
2265 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2266 else case e in #(
2267 e) ac_retval=1 ;;
2268 esac
2269 fi
2270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2271 conftest.$ac_objext conftest.beam conftest.$ac_ext
2272 rm -f conftest.val
2273
2274 fi
2275 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2276 as_fn_set_status $ac_retval
2277
2278 } # ac_fn_c_compute_int
2279
2280 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2281 # ----------------------------------------------------
2282 # Tries to find if the field MEMBER exists in type AGGR, after including
2283 # INCLUDES, setting cache variable VAR accordingly.
2284 ac_fn_c_check_member ()
2285 {
2286 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2288 printf %s "checking for $2.$3... " >&6; }
2289 if eval test \${$4+y}
2290 then :
2291 printf %s "(cached) " >&6
2292 else case e in #(
2293 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2295 $5
2296 int
2297 main (void)
2298 {
2299 static $2 ac_aggr;
2300 if (ac_aggr.$3)
2301 return 0;
2302 ;
2303 return 0;
2304 }
2305 _ACEOF
2306 if ac_fn_c_try_compile "$LINENO"
2307 then :
2308 eval "$4=yes"
2309 else case e in #(
2310 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h. */
2312 $5
2313 int
2314 main (void)
2315 {
2316 static $2 ac_aggr;
2317 if (sizeof ac_aggr.$3)
2318 return 0;
2319 ;
2320 return 0;
2321 }
2322 _ACEOF
2323 if ac_fn_c_try_compile "$LINENO"
2324 then :
2325 eval "$4=yes"
2326 else case e in #(
2327 e) eval "$4=no" ;;
2328 esac
2329 fi
2330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2331 esac
2332 fi
2333 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2334 esac
2335 fi
2336 eval ac_res=\$$4
2337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2338 printf "%s\n" "$ac_res" >&6; }
2339 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2340
2341 } # ac_fn_c_check_member
2342 ac_configure_args_raw=
2343 for ac_arg
2344 do
2345 case $ac_arg in
2346 *\'*)
2347 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2348 esac
2349 as_fn_append ac_configure_args_raw " '$ac_arg'"
2350 done
2351
2352 case $ac_configure_args_raw in
2353 *$as_nl*)
2354 ac_safe_unquote= ;;
2355 *)
2356 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2357 ac_unsafe_a="$ac_unsafe_z#~"
2358 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2359 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2360 esac
2361
2362 cat >config.log <<_ACEOF
2363 This file contains any messages produced by compilers while
2364 running configure, to aid debugging if configure makes a mistake.
2365
2366 It was created by libevent $as_me 2.1.13-stable, which was
2367 generated by GNU Autoconf 2.72. Invocation command line was
2368
2369 $ $0$ac_configure_args_raw
2370
2371 _ACEOF
2372 exec 5>>config.log
2373 {
2374 cat <<_ASUNAME
2375 ## --------- ##
2376 ## Platform. ##
2377 ## --------- ##
2378
2379 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2380 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2381 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2382 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2383 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2384
2385 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2386 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2387
2388 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2389 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2390 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2391 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2392 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2393 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2394 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2395
2396 _ASUNAME
2397
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399 for as_dir in $PATH
2400 do
2401 IFS=$as_save_IFS
2402 case $as_dir in #(((
2403 '') as_dir=./ ;;
2404 */) ;;
2405 *) as_dir=$as_dir/ ;;
2406 esac
2407 printf "%s\n" "PATH: $as_dir"
2408 done
2409 IFS=$as_save_IFS
2410
2411 } >&5
2412
2413 cat >&5 <<_ACEOF
2414
2415
2416 ## ----------- ##
2417 ## Core tests. ##
2418 ## ----------- ##
2419
2420 _ACEOF
2421
2422
2423 # Keep a trace of the command line.
2424 # Strip out --no-create and --no-recursion so they do not pile up.
2425 # Strip out --silent because we don't want to record it for future runs.
2426 # Also quote any args containing shell meta-characters.
2427 # Make two passes to allow for proper duplicate-argument suppression.
2428 ac_configure_args=
2429 ac_configure_args0=
2430 ac_configure_args1=
2431 ac_must_keep_next=false
2432 for ac_pass in 1 2
2433 do
2434 for ac_arg
2435 do
2436 case $ac_arg in
2437 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2439 | -silent | --silent | --silen | --sile | --sil)
2440 continue ;;
2441 *\'*)
2442 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2443 esac
2444 case $ac_pass in
2445 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2446 2)
2447 as_fn_append ac_configure_args1 " '$ac_arg'"
2448 if test $ac_must_keep_next = true; then
2449 ac_must_keep_next=false # Got value, back to normal.
2450 else
2451 case $ac_arg in
2452 *=* | --config-cache | -C | -disable-* | --disable-* \
2453 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2454 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2455 | -with-* | --with-* | -without-* | --without-* | --x)
2456 case "$ac_configure_args0 " in
2457 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2458 esac
2459 ;;
2460 -* ) ac_must_keep_next=true ;;
2461 esac
2462 fi
2463 as_fn_append ac_configure_args " '$ac_arg'"
2464 ;;
2465 esac
2466 done
2467 done
2468 { ac_configure_args0=; unset ac_configure_args0;}
2469 { ac_configure_args1=; unset ac_configure_args1;}
2470
2471 # When interrupted or exit'd, cleanup temporary files, and complete
2472 # config.log. We remove comments because anyway the quotes in there
2473 # would cause problems or look ugly.
2474 # WARNING: Use '\'' to represent an apostrophe within the trap.
2475 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2476 trap 'exit_status=$?
2477 # Sanitize IFS.
2478 IFS=" "" $as_nl"
2479 # Save into config.log some information that might help in debugging.
2480 {
2481 echo
2482
2483 printf "%s\n" "## ---------------- ##
2484 ## Cache variables. ##
2485 ## ---------------- ##"
2486 echo
2487 # The following way of writing the cache mishandles newlines in values,
2488 (
2489 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2490 eval ac_val=\$$ac_var
2491 case $ac_val in #(
2492 *${as_nl}*)
2493 case $ac_var in #(
2494 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2495 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2496 esac
2497 case $ac_var in #(
2498 _ | IFS | as_nl) ;; #(
2499 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2500 *) { eval $ac_var=; unset $ac_var;} ;;
2501 esac ;;
2502 esac
2503 done
2504 (set) 2>&1 |
2505 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2506 *${as_nl}ac_space=\ *)
2507 sed -n \
2508 "s/'\''/'\''\\\\'\'''\''/g;
2509 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2510 ;; #(
2511 *)
2512 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2513 ;;
2514 esac |
2515 sort
2516 )
2517 echo
2518
2519 printf "%s\n" "## ----------------- ##
2520 ## Output variables. ##
2521 ## ----------------- ##"
2522 echo
2523 for ac_var in $ac_subst_vars
2524 do
2525 eval ac_val=\$$ac_var
2526 case $ac_val in
2527 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2528 esac
2529 printf "%s\n" "$ac_var='\''$ac_val'\''"
2530 done | sort
2531 echo
2532
2533 if test -n "$ac_subst_files"; then
2534 printf "%s\n" "## ------------------- ##
2535 ## File substitutions. ##
2536 ## ------------------- ##"
2537 echo
2538 for ac_var in $ac_subst_files
2539 do
2540 eval ac_val=\$$ac_var
2541 case $ac_val in
2542 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2543 esac
2544 printf "%s\n" "$ac_var='\''$ac_val'\''"
2545 done | sort
2546 echo
2547 fi
2548
2549 if test -s confdefs.h; then
2550 printf "%s\n" "## ----------- ##
2551 ## confdefs.h. ##
2552 ## ----------- ##"
2553 echo
2554 cat confdefs.h
2555 echo
2556 fi
2557 test "$ac_signal" != 0 &&
2558 printf "%s\n" "$as_me: caught signal $ac_signal"
2559 printf "%s\n" "$as_me: exit $exit_status"
2560 } >&5
2561 rm -f core *.core core.conftest.* &&
2562 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2563 exit $exit_status
2564 ' 0
2565 for ac_signal in 1 2 13 15; do
2566 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2567 done
2568 ac_signal=0
2569
2570 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2571 rm -f -r conftest* confdefs.h
2572
2573 printf "%s\n" "/* confdefs.h */" > confdefs.h
2574
2575 # Predefined preprocessor variables.
2576
2577 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2578
2579 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2580
2581 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2582
2583 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2584
2585 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2586
2587 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2588
2589
2590 # Let the site file select an alternate cache file if it wants to.
2591 # Prefer an explicitly selected file to automatically selected ones.
2592 if test -n "$CONFIG_SITE"; then
2593 ac_site_files="$CONFIG_SITE"
2594 elif test "x$prefix" != xNONE; then
2595 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2596 else
2597 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2598 fi
2599
2600 for ac_site_file in $ac_site_files
2601 do
2602 case $ac_site_file in #(
2603 */*) :
2604 ;; #(
2605 *) :
2606 ac_site_file=./$ac_site_file ;;
2607 esac
2608 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2610 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2611 sed 's/^/| /' "$ac_site_file" >&5
2612 . "$ac_site_file" \
2613 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2614 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2615 as_fn_error $? "failed to load site script $ac_site_file
2616 See 'config.log' for more details" "$LINENO" 5; }
2617 fi
2618 done
2619
2620 if test -r "$cache_file"; then
2621 # Some versions of bash will fail to source /dev/null (special files
2622 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2623 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2625 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2626 case $cache_file in
2627 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2628 *) . "./$cache_file";;
2629 esac
2630 fi
2631 else
2632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2633 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2634 >$cache_file
2635 fi
2636
2637 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2638 # Test code for whether the C compiler supports C89 (global declarations)
2639 ac_c_conftest_c89_globals='
2640 /* Does the compiler advertise C89 conformance?
2641 Do not test the value of __STDC__, because some compilers set it to 0
2642 while being otherwise adequately conformant. */
2643 #if !defined __STDC__
2644 # error "Compiler does not advertise C89 conformance"
2645 #endif
2646
2647 #include <stddef.h>
2648 #include <stdarg.h>
2649 struct stat;
2650 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2651 struct buf { int x; };
2652 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2653 static char *e (char **p, int i)
2654 {
2655 return p[i];
2656 }
2657 static char *f (char * (*g) (char **, int), char **p, ...)
2658 {
2659 char *s;
2660 va_list v;
2661 va_start (v,p);
2662 s = g (p, va_arg (v,int));
2663 va_end (v);
2664 return s;
2665 }
2666
2667 /* C89 style stringification. */
2668 #define noexpand_stringify(a) #a
2669 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2670
2671 /* C89 style token pasting. Exercises some of the corner cases that
2672 e.g. old MSVC gets wrong, but not very hard. */
2673 #define noexpand_concat(a,b) a##b
2674 #define expand_concat(a,b) noexpand_concat(a,b)
2675 extern int vA;
2676 extern int vbee;
2677 #define aye A
2678 #define bee B
2679 int *pvA = &expand_concat(v,aye);
2680 int *pvbee = &noexpand_concat(v,bee);
2681
2682 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2683 function prototypes and stuff, but not \xHH hex character constants.
2684 These do not provoke an error unfortunately, instead are silently treated
2685 as an "x". The following induces an error, until -std is added to get
2686 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2687 array size at least. It is necessary to write \x00 == 0 to get something
2688 that is true only with -std. */
2689 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2690
2691 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2692 inside strings and character constants. */
2693 #define FOO(x) '\''x'\''
2694 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2695
2696 int test (int i, double x);
2697 struct s1 {int (*f) (int a);};
2698 struct s2 {int (*f) (double a);};
2699 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2700 int, int);'
2701
2702 # Test code for whether the C compiler supports C89 (body of main).
2703 ac_c_conftest_c89_main='
2704 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2705 '
2706
2707 # Test code for whether the C compiler supports C99 (global declarations)
2708 ac_c_conftest_c99_globals='
2709 /* Does the compiler advertise C99 conformance? */
2710 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2711 # error "Compiler does not advertise C99 conformance"
2712 #endif
2713
2714 // See if C++-style comments work.
2715
2716 #include <stdbool.h>
2717 extern int puts (const char *);
2718 extern int printf (const char *, ...);
2719 extern int dprintf (int, const char *, ...);
2720 extern void *malloc (size_t);
2721 extern void free (void *);
2722
2723 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2724 // dprintf is used instead of fprintf to avoid needing to declare
2725 // FILE and stderr.
2726 #define debug(...) dprintf (2, __VA_ARGS__)
2727 #define showlist(...) puts (#__VA_ARGS__)
2728 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2729 static void
2730 test_varargs_macros (void)
2731 {
2732 int x = 1234;
2733 int y = 5678;
2734 debug ("Flag");
2735 debug ("X = %d\n", x);
2736 showlist (The first, second, and third items.);
2737 report (x>y, "x is %d but y is %d", x, y);
2738 }
2739
2740 // Check long long types.
2741 #define BIG64 18446744073709551615ull
2742 #define BIG32 4294967295ul
2743 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2744 #if !BIG_OK
2745 #error "your preprocessor is broken"
2746 #endif
2747 #if BIG_OK
2748 #else
2749 #error "your preprocessor is broken"
2750 #endif
2751 static long long int bignum = -9223372036854775807LL;
2752 static unsigned long long int ubignum = BIG64;
2753
2754 struct incomplete_array
2755 {
2756 int datasize;
2757 double data[];
2758 };
2759
2760 struct named_init {
2761 int number;
2762 const wchar_t *name;
2763 double average;
2764 };
2765
2766 typedef const char *ccp;
2767
2768 static inline int
2769 test_restrict (ccp restrict text)
2770 {
2771 // Iterate through items via the restricted pointer.
2772 // Also check for declarations in for loops.
2773 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2774 continue;
2775 return 0;
2776 }
2777
2778 // Check varargs and va_copy.
2779 static bool
2780 test_varargs (const char *format, ...)
2781 {
2782 va_list args;
2783 va_start (args, format);
2784 va_list args_copy;
2785 va_copy (args_copy, args);
2786
2787 const char *str = "";
2788 int number = 0;
2789 float fnumber = 0;
2790
2791 while (*format)
2792 {
2793 switch (*format++)
2794 {
2795 case '\''s'\'': // string
2796 str = va_arg (args_copy, const char *);
2797 break;
2798 case '\''d'\'': // int
2799 number = va_arg (args_copy, int);
2800 break;
2801 case '\''f'\'': // float
2802 fnumber = va_arg (args_copy, double);
2803 break;
2804 default:
2805 break;
2806 }
2807 }
2808 va_end (args_copy);
2809 va_end (args);
2810
2811 return *str && number && fnumber;
2812 }
2813 '
2814
2815 # Test code for whether the C compiler supports C99 (body of main).
2816 ac_c_conftest_c99_main='
2817 // Check bool.
2818 _Bool success = false;
2819 success |= (argc != 0);
2820
2821 // Check restrict.
2822 if (test_restrict ("String literal") == 0)
2823 success = true;
2824 char *restrict newvar = "Another string";
2825
2826 // Check varargs.
2827 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2828 test_varargs_macros ();
2829
2830 // Check flexible array members.
2831 struct incomplete_array *ia =
2832 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2833 ia->datasize = 10;
2834 for (int i = 0; i < ia->datasize; ++i)
2835 ia->data[i] = i * 1.234;
2836 // Work around memory leak warnings.
2837 free (ia);
2838
2839 // Check named initializers.
2840 struct named_init ni = {
2841 .number = 34,
2842 .name = L"Test wide string",
2843 .average = 543.34343,
2844 };
2845
2846 ni.number = 58;
2847
2848 int dynamic_array[ni.number];
2849 dynamic_array[0] = argv[0][0];
2850 dynamic_array[ni.number - 1] = 543;
2851
2852 // work around unused variable warnings
2853 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2854 || dynamic_array[ni.number - 1] != 543);
2855 '
2856
2857 # Test code for whether the C compiler supports C11 (global declarations)
2858 ac_c_conftest_c11_globals='
2859 /* Does the compiler advertise C11 conformance? */
2860 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2861 # error "Compiler does not advertise C11 conformance"
2862 #endif
2863
2864 // Check _Alignas.
2865 char _Alignas (double) aligned_as_double;
2866 char _Alignas (0) no_special_alignment;
2867 extern char aligned_as_int;
2868 char _Alignas (0) _Alignas (int) aligned_as_int;
2869
2870 // Check _Alignof.
2871 enum
2872 {
2873 int_alignment = _Alignof (int),
2874 int_array_alignment = _Alignof (int[100]),
2875 char_alignment = _Alignof (char)
2876 };
2877 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2878
2879 // Check _Noreturn.
2880 int _Noreturn does_not_return (void) { for (;;) continue; }
2881
2882 // Check _Static_assert.
2883 struct test_static_assert
2884 {
2885 int x;
2886 _Static_assert (sizeof (int) <= sizeof (long int),
2887 "_Static_assert does not work in struct");
2888 long int y;
2889 };
2890
2891 // Check UTF-8 literals.
2892 #define u8 syntax error!
2893 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2894
2895 // Check duplicate typedefs.
2896 typedef long *long_ptr;
2897 typedef long int *long_ptr;
2898 typedef long_ptr long_ptr;
2899
2900 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2901 struct anonymous
2902 {
2903 union {
2904 struct { int i; int j; };
2905 struct { int k; long int l; } w;
2906 };
2907 int m;
2908 } v1;
2909 '
2910
2911 # Test code for whether the C compiler supports C11 (body of main).
2912 ac_c_conftest_c11_main='
2913 _Static_assert ((offsetof (struct anonymous, i)
2914 == offsetof (struct anonymous, w.k)),
2915 "Anonymous union alignment botch");
2916 v1.i = 2;
2917 v1.w.k = 5;
2918 ok |= v1.i != 5;
2919 '
2920
2921 # Test code for whether the C compiler supports C11 (complete).
2922 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2923 ${ac_c_conftest_c99_globals}
2924 ${ac_c_conftest_c11_globals}
2925
2926 int
2927 main (int argc, char **argv)
2928 {
2929 int ok = 0;
2930 ${ac_c_conftest_c89_main}
2931 ${ac_c_conftest_c99_main}
2932 ${ac_c_conftest_c11_main}
2933 return ok;
2934 }
2935 "
2936
2937 # Test code for whether the C compiler supports C99 (complete).
2938 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2939 ${ac_c_conftest_c99_globals}
2940
2941 int
2942 main (int argc, char **argv)
2943 {
2944 int ok = 0;
2945 ${ac_c_conftest_c89_main}
2946 ${ac_c_conftest_c99_main}
2947 return ok;
2948 }
2949 "
2950
2951 # Test code for whether the C compiler supports C89 (complete).
2952 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2953
2954 int
2955 main (int argc, char **argv)
2956 {
2957 int ok = 0;
2958 ${ac_c_conftest_c89_main}
2959 return ok;
2960 }
2961 "
2962
2963 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2964 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2965 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2966 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2967 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2968 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2969 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2970 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2971 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2972 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2973 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2974
2975 # Auxiliary files required by this configure script.
2976 ac_aux_files="ltmain.sh config.guess config.sub compile missing install-sh"
2977
2978 # Locations in which to look for auxiliary files.
2979 ac_aux_dir_candidates="${srcdir}/build-aux"
2980
2981 # Search for a directory containing all of the required auxiliary files,
2982 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2983 # If we don't find one directory that contains all the files we need,
2984 # we report the set of missing files from the *first* directory in
2985 # $ac_aux_dir_candidates and give up.
2986 ac_missing_aux_files=""
2987 ac_first_candidate=:
2988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2990 as_found=false
2991 for as_dir in $ac_aux_dir_candidates
2992 do
2993 IFS=$as_save_IFS
2994 case $as_dir in #(((
2995 '') as_dir=./ ;;
2996 */) ;;
2997 *) as_dir=$as_dir/ ;;
2998 esac
2999 as_found=:
3000
3001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3002 ac_aux_dir_found=yes
3003 ac_install_sh=
3004 for ac_aux in $ac_aux_files
3005 do
3006 # As a special case, if "install-sh" is required, that requirement
3007 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3008 # and $ac_install_sh is set appropriately for whichever one is found.
3009 if test x"$ac_aux" = x"install-sh"
3010 then
3011 if test -f "${as_dir}install-sh"; then
3012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3013 ac_install_sh="${as_dir}install-sh -c"
3014 elif test -f "${as_dir}install.sh"; then
3015 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3016 ac_install_sh="${as_dir}install.sh -c"
3017 elif test -f "${as_dir}shtool"; then
3018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3019 ac_install_sh="${as_dir}shtool install -c"
3020 else
3021 ac_aux_dir_found=no
3022 if $ac_first_candidate; then
3023 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3024 else
3025 break
3026 fi
3027 fi
3028 else
3029 if test -f "${as_dir}${ac_aux}"; then
3030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3031 else
3032 ac_aux_dir_found=no
3033 if $ac_first_candidate; then
3034 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3035 else
3036 break
3037 fi
3038 fi
3039 fi
3040 done
3041 if test "$ac_aux_dir_found" = yes; then
3042 ac_aux_dir="$as_dir"
3043 break
3044 fi
3045 ac_first_candidate=false
3046
3047 as_found=false
3048 done
3049 IFS=$as_save_IFS
3050 if $as_found
3051 then :
3052
3053 else case e in #(
3054 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3055 esac
3056 fi
3057
3058
3059 # These three variables are undocumented and unsupported,
3060 # and are intended to be withdrawn in a future Autoconf release.
3061 # They can cause serious problems if a builder's source tree is in a directory
3062 # whose full name contains unusual characters.
3063 if test -f "${ac_aux_dir}config.guess"; then
3064 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3065 fi
3066 if test -f "${ac_aux_dir}config.sub"; then
3067 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3068 fi
3069 if test -f "$ac_aux_dir/configure"; then
3070 ac_configure="$SHELL ${ac_aux_dir}configure"
3071 fi
3072
3073 # Check that the precious variables saved in the cache have kept the same
3074 # value.
3075 ac_cache_corrupted=false
3076 for ac_var in $ac_precious_vars; do
3077 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3078 eval ac_new_set=\$ac_env_${ac_var}_set
3079 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3080 eval ac_new_val=\$ac_env_${ac_var}_value
3081 case $ac_old_set,$ac_new_set in
3082 set,)
3083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3084 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3085 ac_cache_corrupted=: ;;
3086 ,set)
3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3088 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3089 ac_cache_corrupted=: ;;
3090 ,);;
3091 *)
3092 if test "x$ac_old_val" != "x$ac_new_val"; then
3093 # differences in whitespace do not lead to failure.
3094 ac_old_val_w=`echo x $ac_old_val`
3095 ac_new_val_w=`echo x $ac_new_val`
3096 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3098 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3099 ac_cache_corrupted=:
3100 else
3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3102 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3103 eval $ac_var=\$ac_old_val
3104 fi
3105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3106 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3108 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3109 fi;;
3110 esac
3111 # Pass precious variables to config.status.
3112 if test "$ac_new_set" = set; then
3113 case $ac_new_val in
3114 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3115 *) ac_arg=$ac_var=$ac_new_val ;;
3116 esac
3117 case " $ac_configure_args " in
3118 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3119 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3120 esac
3121 fi
3122 done
3123 if $ac_cache_corrupted; then
3124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3125 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3127 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3128 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3129 and start over" "$LINENO" 5
3130 fi
3131 ## -------------------- ##
3132 ## Main body of script. ##
3133 ## -------------------- ##
3134
3135 ac_ext=c
3136 ac_cpp='$CPP $CPPFLAGS'
3137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3140
3141
3142
3143
3144
3145
3146
3147 am__api_version='1.18'
3148
3149
3150
3151 # Find a good install program. We prefer a C program (faster),
3152 # so one script is as good as another. But avoid the broken or
3153 # incompatible versions:
3154 # SysV /etc/install, /usr/sbin/install
3155 # SunOS /usr/etc/install
3156 # IRIX /sbin/install
3157 # AIX /bin/install
3158 # AmigaOS /C/install, which installs bootblocks on floppy discs
3159 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3160 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3161 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3162 # OS/2's system install, which has a completely different semantic
3163 # ./install, which can be erroneously created by make from ./install.sh.
3164 # Reject install programs that cannot install multiple files.
3165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3166 printf %s "checking for a BSD-compatible install... " >&6; }
3167 if test -z "$INSTALL"; then
3168 if test ${ac_cv_path_install+y}
3169 then :
3170 printf %s "(cached) " >&6
3171 else case e in #(
3172 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3174 do
3175 IFS=$as_save_IFS
3176 case $as_dir in #(((
3177 '') as_dir=./ ;;
3178 */) ;;
3179 *) as_dir=$as_dir/ ;;
3180 esac
3181 # Account for fact that we put trailing slashes in our PATH walk.
3182 case $as_dir in #((
3183 ./ | /[cC]/* | \
3184 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3185 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3186 /usr/ucb/* ) ;;
3187 *)
3188 # OSF1 and SCO ODT 3.0 have their own names for install.
3189 # Don't use installbsd from OSF since it installs stuff as root
3190 # by default.
3191 for ac_prog in ginstall scoinst install; do
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3194 if test $ac_prog = install &&
3195 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3196 # AIX install. It has an incompatible calling convention.
3197 :
3198 elif test $ac_prog = install &&
3199 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3200 # program-specific install script used by HP pwplus--don't use.
3201 :
3202 else
3203 rm -rf conftest.one conftest.two conftest.dir
3204 echo one > conftest.one
3205 echo two > conftest.two
3206 mkdir conftest.dir
3207 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3208 test -s conftest.one && test -s conftest.two &&
3209 test -s conftest.dir/conftest.one &&
3210 test -s conftest.dir/conftest.two
3211 then
3212 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3213 break 3
3214 fi
3215 fi
3216 fi
3217 done
3218 done
3219 ;;
3220 esac
3221
3222 done
3223 IFS=$as_save_IFS
3224
3225 rm -rf conftest.one conftest.two conftest.dir
3226 ;;
3227 esac
3228 fi
3229 if test ${ac_cv_path_install+y}; then
3230 INSTALL=$ac_cv_path_install
3231 else
3232 # As a last resort, use the slow shell script. Don't cache a
3233 # value for INSTALL within a source directory, because that will
3234 # break other packages using the cache if that directory is
3235 # removed, or if the value is a relative name.
3236 INSTALL=$ac_install_sh
3237 fi
3238 fi
3239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3240 printf "%s\n" "$INSTALL" >&6; }
3241
3242 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3243 # It thinks the first close brace ends the variable substitution.
3244 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3245
3246 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3247
3248 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3249
3250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3251 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3252 if test ${am_cv_sleep_fractional_seconds+y}
3253 then :
3254 printf %s "(cached) " >&6
3255 else case e in #(
3256 e) if sleep 0.001 2>/dev/null
3257 then :
3258 am_cv_sleep_fractional_seconds=yes
3259 else case e in #(
3260 e) am_cv_sleep_fractional_seconds=no ;;
3261 esac
3262 fi
3263 ;;
3264 esac
3265 fi
3266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3267 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3268
3269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3270 printf %s "checking filesystem timestamp resolution... " >&6; }
3271 if test ${am_cv_filesystem_timestamp_resolution+y}
3272 then :
3273 printf %s "(cached) " >&6
3274 else case e in #(
3275 e) # Default to the worst case.
3276 am_cv_filesystem_timestamp_resolution=2
3277
3278 # Only try to go finer than 1 sec if sleep can do it.
3279 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3280 # - 1 sec is not much of a win compared to 2 sec, and
3281 # - it takes 2 seconds to perform the test whether 1 sec works.
3282 #
3283 # Instead, just use the default 2s on platforms that have 1s resolution,
3284 # accept the extra 1s delay when using $sleep in the Automake tests, in
3285 # exchange for not incurring the 2s delay for running the test for all
3286 # packages.
3287 #
3288 am_try_resolutions=
3289 if test "$am_cv_sleep_fractional_seconds" = yes; then
3290 # Even a millisecond often causes a bunch of false positives,
3291 # so just try a hundredth of a second. The time saved between .001 and
3292 # .01 is not terribly consequential.
3293 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3294 fi
3295
3296 # In order to catch current-generation FAT out, we must *modify* files
3297 # that already exist; the *creation* timestamp is finer. Use names
3298 # that make ls -t sort them differently when they have equal
3299 # timestamps than when they have distinct timestamps, keeping
3300 # in mind that ls -t prints the *newest* file first.
3301 rm -f conftest.ts?
3302 : > conftest.ts1
3303 : > conftest.ts2
3304 : > conftest.ts3
3305
3306 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3307 # clobber the current shell's arguments. (Outer-level square brackets
3308 # are removed by m4; they're present so that m4 does not expand
3309 # <dollar><star>; be careful, easy to get confused.)
3310 if (
3311 set X `ls -t conftest.ts[12]` &&
3312 {
3313 test "$*" != "X conftest.ts1 conftest.ts2" ||
3314 test "$*" != "X conftest.ts2 conftest.ts1";
3315 }
3316 ); then :; else
3317 # If neither matched, then we have a broken ls. This can happen
3318 # if, for instance, CONFIG_SHELL is bash and it inherits a
3319 # broken ls alias from the environment. This has actually
3320 # happened. Such a system could not be considered "sane".
3321 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3322 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3323 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3324 as_fn_error $? "ls -t produces unexpected output.
3325 Make sure there is not a broken ls alias in your environment.
3326 See 'config.log' for more details" "$LINENO" 5; }
3327 fi
3328
3329 for am_try_res in $am_try_resolutions; do
3330 # Any one fine-grained sleep might happen to cross the boundary
3331 # between two values of a coarser actual resolution, but if we do
3332 # two fine-grained sleeps in a row, at least one of them will fall
3333 # entirely within a coarse interval.
3334 echo alpha > conftest.ts1
3335 sleep $am_try_res
3336 echo beta > conftest.ts2
3337 sleep $am_try_res
3338 echo gamma > conftest.ts3
3339
3340 # We assume that 'ls -t' will make use of high-resolution
3341 # timestamps if the operating system supports them at all.
3342 if (set X `ls -t conftest.ts?` &&
3343 test "$2" = conftest.ts3 &&
3344 test "$3" = conftest.ts2 &&
3345 test "$4" = conftest.ts1); then
3346 #
3347 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3348 # because we don't need to test make.
3349 make_ok=true
3350 if test $am_try_res != 1; then
3351 # But if we've succeeded so far with a subsecond resolution, we
3352 # have one more thing to check: make. It can happen that
3353 # everything else supports the subsecond mtimes, but make doesn't;
3354 # notably on macOS, which ships make 3.81 from 2006 (the last one
3355 # released under GPLv2). https://bugs.gnu.org/68808
3356 #
3357 # We test $MAKE if it is defined in the environment, else "make".
3358 # It might get overridden later, but our hope is that in practice
3359 # it does not matter: it is the system "make" which is (by far)
3360 # the most likely to be broken, whereas if the user overrides it,
3361 # probably they did so with a better, or at least not worse, make.
3362 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3363 #
3364 # Create a Makefile (real tab character here):
3365 rm -f conftest.mk
3366 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3367 echo ' touch conftest.ts2' >>conftest.mk
3368 #
3369 # Now, running
3370 # touch conftest.ts1; touch conftest.ts2; make
3371 # should touch ts1 because ts2 is newer. This could happen by luck,
3372 # but most often, it will fail if make's support is insufficient. So
3373 # test for several consecutive successes.
3374 #
3375 # (We reuse conftest.ts[12] because we still want to modify existing
3376 # files, not create new ones, per above.)
3377 n=0
3378 make=${MAKE-make}
3379 until test $n -eq 3; do
3380 echo one > conftest.ts1
3381 sleep $am_try_res
3382 echo two > conftest.ts2 # ts2 should now be newer than ts1
3383 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3384 make_ok=false
3385 break # out of $n loop
3386 fi
3387 n=`expr $n + 1`
3388 done
3389 fi
3390 #
3391 if $make_ok; then
3392 # Everything we know to check worked out, so call this resolution good.
3393 am_cv_filesystem_timestamp_resolution=$am_try_res
3394 break # out of $am_try_res loop
3395 fi
3396 # Otherwise, we'll go on to check the next resolution.
3397 fi
3398 done
3399 rm -f conftest.ts?
3400 # (end _am_filesystem_timestamp_resolution)
3401 ;;
3402 esac
3403 fi
3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3405 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3406
3407 # This check should not be cached, as it may vary across builds of
3408 # different projects.
3409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3410 printf %s "checking whether build environment is sane... " >&6; }
3411 # Reject unsafe characters in $srcdir or the absolute working directory
3412 # name. Accept space and tab only in the latter.
3413 am_lf='
3414 '
3415 case `pwd` in
3416 *[\\\"\#\$\&\'\`$am_lf]*)
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 printf "%s\n" "no" >&6; }
3419 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3420 esac
3421 case $srcdir in
3422 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 printf "%s\n" "no" >&6; }
3425 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3426 esac
3427
3428 # Do 'set' in a subshell so we don't clobber the current shell's
3429 # arguments. Must try -L first in case configure is actually a
3430 # symlink; some systems play weird games with the mod time of symlinks
3431 # (eg FreeBSD returns the mod time of the symlink's containing
3432 # directory).
3433 am_build_env_is_sane=no
3434 am_has_slept=no
3435 rm -f conftest.file
3436 for am_try in 1 2; do
3437 echo "timestamp, slept: $am_has_slept" > conftest.file
3438 if (
3439 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3440 if test "$*" = "X"; then
3441 # -L didn't work.
3442 set X `ls -t "$srcdir/configure" conftest.file`
3443 fi
3444 test "$2" = conftest.file
3445 ); then
3446 am_build_env_is_sane=yes
3447 break
3448 fi
3449 # Just in case.
3450 sleep "$am_cv_filesystem_timestamp_resolution"
3451 am_has_slept=yes
3452 done
3453
3454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3455 printf "%s\n" "$am_build_env_is_sane" >&6; }
3456 if test "$am_build_env_is_sane" = no; then
3457 as_fn_error $? "newly created file is older than distributed files!
3458 Check your system clock" "$LINENO" 5
3459 fi
3460
3461 # If we didn't sleep, we still need to ensure time stamps of config.status and
3462 # generated files are strictly newer.
3463 am_sleep_pid=
3464 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3465 then :
3466
3467 else case e in #(
3468 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3469 am_sleep_pid=$!
3470 ;;
3471 esac
3472 fi
3473
3474 rm -f conftest.file
3475
3476 test "$program_prefix" != NONE &&
3477 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3478 # Use a double $ so make ignores it.
3479 test "$program_suffix" != NONE &&
3480 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3481 # Double any \ or $.
3482 # By default was 's,x,x', remove it if useless.
3483 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3484 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3485
3486
3487 # Expand $ac_aux_dir to an absolute path.
3488 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3489
3490
3491 if test x"${MISSING+set}" != xset; then
3492 MISSING="\${SHELL} '$am_aux_dir/missing'"
3493 fi
3494 # Use eval to expand $SHELL
3495 if eval "$MISSING --is-lightweight"; then
3496 am_missing_run="$MISSING "
3497 else
3498 am_missing_run=
3499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3500 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3501 fi
3502
3503 if test x"${install_sh+set}" != xset; then
3504 case $am_aux_dir in
3505 *\ * | *\ *)
3506 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3507 *)
3508 install_sh="\${SHELL} $am_aux_dir/install-sh"
3509 esac
3510 fi
3511
3512 # Installed binaries are usually stripped using 'strip' when the user
3513 # run "make install-strip". However 'strip' might not be the right
3514 # tool to use in cross-compilation environments, therefore Automake
3515 # will honor the 'STRIP' environment variable to overrule this program.
3516 if test "$cross_compiling" != no; then
3517 if test -n "$ac_tool_prefix"; then
3518 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3519 set dummy ${ac_tool_prefix}strip; ac_word=$2
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 printf %s "checking for $ac_word... " >&6; }
3522 if test ${ac_cv_prog_STRIP+y}
3523 then :
3524 printf %s "(cached) " >&6
3525 else case e in #(
3526 e) if test -n "$STRIP"; then
3527 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3528 else
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3531 do
3532 IFS=$as_save_IFS
3533 case $as_dir in #(((
3534 '') as_dir=./ ;;
3535 */) ;;
3536 *) as_dir=$as_dir/ ;;
3537 esac
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3540 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3542 break 2
3543 fi
3544 done
3545 done
3546 IFS=$as_save_IFS
3547
3548 fi ;;
3549 esac
3550 fi
3551 STRIP=$ac_cv_prog_STRIP
3552 if test -n "$STRIP"; then
3553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3554 printf "%s\n" "$STRIP" >&6; }
3555 else
3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557 printf "%s\n" "no" >&6; }
3558 fi
3559
3560
3561 fi
3562 if test -z "$ac_cv_prog_STRIP"; then
3563 ac_ct_STRIP=$STRIP
3564 # Extract the first word of "strip", so it can be a program name with args.
3565 set dummy strip; ac_word=$2
3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567 printf %s "checking for $ac_word... " >&6; }
3568 if test ${ac_cv_prog_ac_ct_STRIP+y}
3569 then :
3570 printf %s "(cached) " >&6
3571 else case e in #(
3572 e) if test -n "$ac_ct_STRIP"; then
3573 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3574 else
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH
3577 do
3578 IFS=$as_save_IFS
3579 case $as_dir in #(((
3580 '') as_dir=./ ;;
3581 */) ;;
3582 *) as_dir=$as_dir/ ;;
3583 esac
3584 for ac_exec_ext in '' $ac_executable_extensions; do
3585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3586 ac_cv_prog_ac_ct_STRIP="strip"
3587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3588 break 2
3589 fi
3590 done
3591 done
3592 IFS=$as_save_IFS
3593
3594 fi ;;
3595 esac
3596 fi
3597 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3598 if test -n "$ac_ct_STRIP"; then
3599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3600 printf "%s\n" "$ac_ct_STRIP" >&6; }
3601 else
3602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 printf "%s\n" "no" >&6; }
3604 fi
3605
3606 if test "x$ac_ct_STRIP" = x; then
3607 STRIP=":"
3608 else
3609 case $cross_compiling:$ac_tool_warned in
3610 yes:)
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3612 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3613 ac_tool_warned=yes ;;
3614 esac
3615 STRIP=$ac_ct_STRIP
3616 fi
3617 else
3618 STRIP="$ac_cv_prog_STRIP"
3619 fi
3620
3621 fi
3622 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3623
3624
3625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3626 printf %s "checking for a race-free mkdir -p... " >&6; }
3627 if test -z "$MKDIR_P"; then
3628 if test ${ac_cv_path_mkdir+y}
3629 then :
3630 printf %s "(cached) " >&6
3631 else case e in #(
3632 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3634 do
3635 IFS=$as_save_IFS
3636 case $as_dir in #(((
3637 '') as_dir=./ ;;
3638 */) ;;
3639 *) as_dir=$as_dir/ ;;
3640 esac
3641 for ac_prog in mkdir gmkdir; do
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3644 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3645 'mkdir ('*'coreutils) '* | \
3646 *'BusyBox '* | \
3647 'mkdir (fileutils) '4.1*)
3648 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3649 break 3;;
3650 esac
3651 done
3652 done
3653 done
3654 IFS=$as_save_IFS
3655 ;;
3656 esac
3657 fi
3658
3659 test -d ./--version && rmdir ./--version
3660 if test ${ac_cv_path_mkdir+y}; then
3661 MKDIR_P="$ac_cv_path_mkdir -p"
3662 else
3663 # As a last resort, use plain mkdir -p,
3664 # in the hope it doesn't have the bugs of ancient mkdir.
3665 MKDIR_P='mkdir -p'
3666 fi
3667 fi
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3669 printf "%s\n" "$MKDIR_P" >&6; }
3670
3671 for ac_prog in gawk mawk nawk awk
3672 do
3673 # Extract the first word of "$ac_prog", so it can be a program name with args.
3674 set dummy $ac_prog; ac_word=$2
3675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676 printf %s "checking for $ac_word... " >&6; }
3677 if test ${ac_cv_prog_AWK+y}
3678 then :
3679 printf %s "(cached) " >&6
3680 else case e in #(
3681 e) if test -n "$AWK"; then
3682 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3683 else
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH
3686 do
3687 IFS=$as_save_IFS
3688 case $as_dir in #(((
3689 '') as_dir=./ ;;
3690 */) ;;
3691 *) as_dir=$as_dir/ ;;
3692 esac
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3695 ac_cv_prog_AWK="$ac_prog"
3696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3697 break 2
3698 fi
3699 done
3700 done
3701 IFS=$as_save_IFS
3702
3703 fi ;;
3704 esac
3705 fi
3706 AWK=$ac_cv_prog_AWK
3707 if test -n "$AWK"; then
3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3709 printf "%s\n" "$AWK" >&6; }
3710 else
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 printf "%s\n" "no" >&6; }
3713 fi
3714
3715
3716 test -n "$AWK" && break
3717 done
3718
3719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3720 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3721 set x ${MAKE-make}
3722 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3723 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3724 then :
3725 printf %s "(cached) " >&6
3726 else case e in #(
3727 e) cat >conftest.make <<\_ACEOF
3728 SHELL = /bin/sh
3729 all:
3730 @echo '@@@%%%=$(MAKE)=@@@%%%'
3731 _ACEOF
3732 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3733 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3734 *@@@%%%=?*=@@@%%%*)
3735 eval ac_cv_prog_make_${ac_make}_set=yes;;
3736 *)
3737 eval ac_cv_prog_make_${ac_make}_set=no;;
3738 esac
3739 rm -f conftest.make ;;
3740 esac
3741 fi
3742 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3744 printf "%s\n" "yes" >&6; }
3745 SET_MAKE=
3746 else
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3748 printf "%s\n" "no" >&6; }
3749 SET_MAKE="MAKE=${MAKE-make}"
3750 fi
3751
3752 rm -rf .tst 2>/dev/null
3753 mkdir .tst 2>/dev/null
3754 if test -d .tst; then
3755 am__leading_dot=.
3756 else
3757 am__leading_dot=_
3758 fi
3759 rmdir .tst 2>/dev/null
3760
3761 AM_DEFAULT_VERBOSITY=1
3762 # Check whether --enable-silent-rules was given.
3763 if test ${enable_silent_rules+y}
3764 then :
3765 enableval=$enable_silent_rules;
3766 fi
3767
3768 am_make=${MAKE-make}
3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3770 printf %s "checking whether $am_make supports nested variables... " >&6; }
3771 if test ${am_cv_make_support_nested_variables+y}
3772 then :
3773 printf %s "(cached) " >&6
3774 else case e in #(
3775 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3776 BAR0=false
3777 BAR1=true
3778 V=1
3779 am__doit:
3780 @$(TRUE)
3781 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3782 am_cv_make_support_nested_variables=yes
3783 else
3784 am_cv_make_support_nested_variables=no
3785 fi ;;
3786 esac
3787 fi
3788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3789 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3790 AM_BACKSLASH='\'
3791
3792 am__rm_f_notfound=
3793 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3794 then :
3795
3796 else case e in #(
3797 e) am__rm_f_notfound='""' ;;
3798 esac
3799 fi
3800
3801
3802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3803 printf %s "checking xargs -n works... " >&6; }
3804 if test ${am_cv_xargs_n_works+y}
3805 then :
3806 printf %s "(cached) " >&6
3807 else case e in #(
3808 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3809 3"
3810 then :
3811 am_cv_xargs_n_works=yes
3812 else case e in #(
3813 e) am_cv_xargs_n_works=no ;;
3814 esac
3815 fi ;;
3816 esac
3817 fi
3818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3819 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3820 if test "$am_cv_xargs_n_works" = yes
3821 then :
3822 am__xargs_n='xargs -n'
3823 else case e in #(
3824 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3825 ;;
3826 esac
3827 fi
3828
3829 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3830 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3831 # is not polluted with repeated "-I."
3832 am__isrc=' -I$(srcdir)'
3833 # test to see if srcdir already configured
3834 if test -f $srcdir/config.status; then
3835 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3836 fi
3837 fi
3838
3839 # test whether we have cygpath
3840 if test -z "$CYGPATH_W"; then
3841 if (cygpath --version) >/dev/null 2>/dev/null; then
3842 CYGPATH_W='cygpath -w'
3843 else
3844 CYGPATH_W=echo
3845 fi
3846 fi
3847
3848
3849 # Define the identity of the package.
3850 PACKAGE='libevent'
3851 VERSION='2.1.13-stable'
3852
3853
3854 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3855
3856
3857 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3858
3859 # Some tools Automake needs.
3860
3861 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3862
3863
3864 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3865
3866
3867 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3868
3869
3870 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3871
3872
3873 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3874
3875 # For better backward compatibility. To be removed once Automake 1.9.x
3876 # dies out for good. For more background, see:
3877 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3878 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3879 mkdir_p='$(MKDIR_P)'
3880
3881 # We need awk for the "check" target (and possibly the TAP driver). The
3882 # system "awk" is bad on some platforms.
3883 # Always define AMTAR for backward compatibility. Yes, it's still used
3884 # in the wild :-( We should find a proper way to deprecate it ...
3885 AMTAR='$${TAR-tar}'
3886
3887
3888 # We'll loop over all known methods to create a tar archive until one works.
3889 _am_tools='gnutar plaintar pax cpio none'
3890
3891 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3892 # There is notably a 21 bits limit for the UID and the GID. In fact,
3893 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3894 # and bug#13588).
3895 am_max_uid=2097151 # 2^21 - 1
3896 am_max_gid=$am_max_uid
3897 # The $UID and $GID variables are not portable, so we need to resort
3898 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3899 # below are definitely unexpected, so allow the users to see them
3900 # (that is, avoid stderr redirection).
3901 am_uid=`id -u || echo unknown`
3902 am_gid=`id -g || echo unknown`
3903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3904 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3905 if test x$am_uid = xunknown; then
3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3907 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3908 elif test $am_uid -le $am_max_uid; then
3909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3910 printf "%s\n" "yes" >&6; }
3911 else
3912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 printf "%s\n" "no" >&6; }
3914 _am_tools=none
3915 fi
3916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3917 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3918 if test x$gm_gid = xunknown; then
3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3920 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3921 elif test $am_gid -le $am_max_gid; then
3922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3923 printf "%s\n" "yes" >&6; }
3924 else
3925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 printf "%s\n" "no" >&6; }
3927 _am_tools=none
3928 fi
3929
3930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3931 printf %s "checking how to create a ustar tar archive... " >&6; }
3932
3933 # Go ahead even if we have the value already cached. We do so because we
3934 # need to set the values for the 'am__tar' and 'am__untar' variables.
3935 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3936
3937 for _am_tool in $_am_tools; do
3938 case $_am_tool in
3939 gnutar)
3940 for _am_tar in tar gnutar gtar; do
3941 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3942 ($_am_tar --version) >&5 2>&5
3943 ac_status=$?
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } && break
3946 done
3947 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3948 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3949 am__untar="$_am_tar -xf -"
3950 ;;
3951 plaintar)
3952 # Must skip GNU tar: if it does not support --format= it doesn't create
3953 # ustar tarball either.
3954 (tar --version) >/dev/null 2>&1 && continue
3955 am__tar='tar chf - "$$tardir"'
3956 am__tar_='tar chf - "$tardir"'
3957 am__untar='tar xf -'
3958 ;;
3959 pax)
3960 am__tar='pax -L -x ustar -w "$$tardir"'
3961 am__tar_='pax -L -x ustar -w "$tardir"'
3962 am__untar='pax -r'
3963 ;;
3964 cpio)
3965 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3966 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3967 am__untar='cpio -i -H ustar -d'
3968 ;;
3969 none)
3970 am__tar=false
3971 am__tar_=false
3972 am__untar=false
3973 ;;
3974 esac
3975
3976 # If the value was cached, stop now. We just wanted to have am__tar
3977 # and am__untar set.
3978 test -n "${am_cv_prog_tar_ustar}" && break
3979
3980 # tar/untar a dummy directory, and stop if the command works.
3981 rm -rf conftest.dir
3982 mkdir conftest.dir
3983 echo GrepMe > conftest.dir/file
3984 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3985 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3986 ac_status=$?
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); }
3989 rm -rf conftest.dir
3990 if test -s conftest.tar; then
3991 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3992 ($am__untar <conftest.tar) >&5 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }
3996 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3997 (cat conftest.dir/file) >&5 2>&5
3998 ac_status=$?
3999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000 (exit $ac_status); }
4001 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4002 fi
4003 done
4004 rm -rf conftest.dir
4005
4006 if test ${am_cv_prog_tar_ustar+y}
4007 then :
4008 printf %s "(cached) " >&6
4009 else case e in #(
4010 e) am_cv_prog_tar_ustar=$_am_tool ;;
4011 esac
4012 fi
4013
4014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4015 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
4016
4017
4018
4019
4020
4021 # Variables for tags utilities; see am/tags.am
4022 if test -z "$CTAGS"; then
4023 CTAGS=ctags
4024 fi
4025
4026 if test -z "$ETAGS"; then
4027 ETAGS=etags
4028 fi
4029
4030 if test -z "$CSCOPE"; then
4031 CSCOPE=cscope
4032 fi
4033
4034
4035
4036
4037
4038
4039
4040
4041 AM_DEFAULT_VERBOSITY=0
4042
4043
4044 ac_config_headers="$ac_config_headers config.h evconfig-private.h:evconfig-private.h.in"
4045
4046
4047 printf "%s\n" "#define NUMERIC_VERSION 0x02010d00" >>confdefs.h
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061 DEPDIR="${am__leading_dot}deps"
4062
4063 ac_config_commands="$ac_config_commands depfiles"
4064
4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4066 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4067 cat > confinc.mk << 'END'
4068 am__doit:
4069 @echo this is the am__doit target >confinc.out
4070 .PHONY: am__doit
4071 END
4072 am__include="#"
4073 am__quote=
4074 # BSD make does it like this.
4075 echo '.include "confinc.mk" # ignored' > confmf.BSD
4076 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4077 echo 'include confinc.mk # ignored' > confmf.GNU
4078 _am_result=no
4079 for s in GNU BSD; do
4080 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4081 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4082 ac_status=$?
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); }
4085 case $?:`cat confinc.out 2>/dev/null` in #(
4086 '0:this is the am__doit target') :
4087 case $s in #(
4088 BSD) :
4089 am__include='.include' am__quote='"' ;; #(
4090 *) :
4091 am__include='include' am__quote='' ;;
4092 esac ;; #(
4093 *) :
4094 ;;
4095 esac
4096 if test "$am__include" != "#"; then
4097 _am_result="yes ($s style)"
4098 break
4099 fi
4100 done
4101 rm -f confinc.* confmf.*
4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4103 printf "%s\n" "${_am_result}" >&6; }
4104
4105 # Check whether --enable-dependency-tracking was given.
4106 if test ${enable_dependency_tracking+y}
4107 then :
4108 enableval=$enable_dependency_tracking;
4109 fi
4110
4111 if test "x$enable_dependency_tracking" != xno; then
4112 am_depcomp="$ac_aux_dir/depcomp"
4113 AMDEPBACKSLASH='\'
4114 am__nodep='_no'
4115 fi
4116 if test "x$enable_dependency_tracking" != xno; then
4117 AMDEP_TRUE=
4118 AMDEP_FALSE='#'
4119 else
4120 AMDEP_TRUE='#'
4121 AMDEP_FALSE=
4122 fi
4123
4124
4125 ac_ext=c
4126 ac_cpp='$CPP $CPPFLAGS'
4127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4130 if test -n "$ac_tool_prefix"; then
4131 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4132 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 printf %s "checking for $ac_word... " >&6; }
4135 if test ${ac_cv_prog_CC+y}
4136 then :
4137 printf %s "(cached) " >&6
4138 else case e in #(
4139 e) if test -n "$CC"; then
4140 ac_cv_prog_CC="$CC" # Let the user override the test.
4141 else
4142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4143 for as_dir in $PATH
4144 do
4145 IFS=$as_save_IFS
4146 case $as_dir in #(((
4147 '') as_dir=./ ;;
4148 */) ;;
4149 *) as_dir=$as_dir/ ;;
4150 esac
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4153 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4155 break 2
4156 fi
4157 done
4158 done
4159 IFS=$as_save_IFS
4160
4161 fi ;;
4162 esac
4163 fi
4164 CC=$ac_cv_prog_CC
4165 if test -n "$CC"; then
4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4167 printf "%s\n" "$CC" >&6; }
4168 else
4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170 printf "%s\n" "no" >&6; }
4171 fi
4172
4173
4174 fi
4175 if test -z "$ac_cv_prog_CC"; then
4176 ac_ct_CC=$CC
4177 # Extract the first word of "gcc", so it can be a program name with args.
4178 set dummy gcc; ac_word=$2
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4180 printf %s "checking for $ac_word... " >&6; }
4181 if test ${ac_cv_prog_ac_ct_CC+y}
4182 then :
4183 printf %s "(cached) " >&6
4184 else case e in #(
4185 e) if test -n "$ac_ct_CC"; then
4186 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4190 do
4191 IFS=$as_save_IFS
4192 case $as_dir in #(((
4193 '') as_dir=./ ;;
4194 */) ;;
4195 *) as_dir=$as_dir/ ;;
4196 esac
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4199 ac_cv_prog_ac_ct_CC="gcc"
4200 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4201 break 2
4202 fi
4203 done
4204 done
4205 IFS=$as_save_IFS
4206
4207 fi ;;
4208 esac
4209 fi
4210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4211 if test -n "$ac_ct_CC"; then
4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4213 printf "%s\n" "$ac_ct_CC" >&6; }
4214 else
4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 printf "%s\n" "no" >&6; }
4217 fi
4218
4219 if test "x$ac_ct_CC" = x; then
4220 CC=""
4221 else
4222 case $cross_compiling:$ac_tool_warned in
4223 yes:)
4224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4225 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4226 ac_tool_warned=yes ;;
4227 esac
4228 CC=$ac_ct_CC
4229 fi
4230 else
4231 CC="$ac_cv_prog_CC"
4232 fi
4233
4234 if test -z "$CC"; then
4235 if test -n "$ac_tool_prefix"; then
4236 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4237 set dummy ${ac_tool_prefix}cc; ac_word=$2
4238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4239 printf %s "checking for $ac_word... " >&6; }
4240 if test ${ac_cv_prog_CC+y}
4241 then :
4242 printf %s "(cached) " >&6
4243 else case e in #(
4244 e) if test -n "$CC"; then
4245 ac_cv_prog_CC="$CC" # Let the user override the test.
4246 else
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 for as_dir in $PATH
4249 do
4250 IFS=$as_save_IFS
4251 case $as_dir in #(((
4252 '') as_dir=./ ;;
4253 */) ;;
4254 *) as_dir=$as_dir/ ;;
4255 esac
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4258 ac_cv_prog_CC="${ac_tool_prefix}cc"
4259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4260 break 2
4261 fi
4262 done
4263 done
4264 IFS=$as_save_IFS
4265
4266 fi ;;
4267 esac
4268 fi
4269 CC=$ac_cv_prog_CC
4270 if test -n "$CC"; then
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4272 printf "%s\n" "$CC" >&6; }
4273 else
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 printf "%s\n" "no" >&6; }
4276 fi
4277
4278
4279 fi
4280 fi
4281 if test -z "$CC"; then
4282 # Extract the first word of "cc", so it can be a program name with args.
4283 set dummy cc; ac_word=$2
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285 printf %s "checking for $ac_word... " >&6; }
4286 if test ${ac_cv_prog_CC+y}
4287 then :
4288 printf %s "(cached) " >&6
4289 else case e in #(
4290 e) if test -n "$CC"; then
4291 ac_cv_prog_CC="$CC" # Let the user override the test.
4292 else
4293 ac_prog_rejected=no
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4296 do
4297 IFS=$as_save_IFS
4298 case $as_dir in #(((
4299 '') as_dir=./ ;;
4300 */) ;;
4301 *) as_dir=$as_dir/ ;;
4302 esac
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4305 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4306 ac_prog_rejected=yes
4307 continue
4308 fi
4309 ac_cv_prog_CC="cc"
4310 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4311 break 2
4312 fi
4313 done
4314 done
4315 IFS=$as_save_IFS
4316
4317 if test $ac_prog_rejected = yes; then
4318 # We found a bogon in the path, so make sure we never use it.
4319 set dummy $ac_cv_prog_CC
4320 shift
4321 if test $# != 0; then
4322 # We chose a different compiler from the bogus one.
4323 # However, it has the same basename, so the bogon will be chosen
4324 # first if we set CC to just the basename; use the full file name.
4325 shift
4326 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4327 fi
4328 fi
4329 fi ;;
4330 esac
4331 fi
4332 CC=$ac_cv_prog_CC
4333 if test -n "$CC"; then
4334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4335 printf "%s\n" "$CC" >&6; }
4336 else
4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4338 printf "%s\n" "no" >&6; }
4339 fi
4340
4341
4342 fi
4343 if test -z "$CC"; then
4344 if test -n "$ac_tool_prefix"; then
4345 for ac_prog in cl.exe
4346 do
4347 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4348 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4350 printf %s "checking for $ac_word... " >&6; }
4351 if test ${ac_cv_prog_CC+y}
4352 then :
4353 printf %s "(cached) " >&6
4354 else case e in #(
4355 e) if test -n "$CC"; then
4356 ac_cv_prog_CC="$CC" # Let the user override the test.
4357 else
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4360 do
4361 IFS=$as_save_IFS
4362 case $as_dir in #(((
4363 '') as_dir=./ ;;
4364 */) ;;
4365 *) as_dir=$as_dir/ ;;
4366 esac
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4369 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4371 break 2
4372 fi
4373 done
4374 done
4375 IFS=$as_save_IFS
4376
4377 fi ;;
4378 esac
4379 fi
4380 CC=$ac_cv_prog_CC
4381 if test -n "$CC"; then
4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4383 printf "%s\n" "$CC" >&6; }
4384 else
4385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 printf "%s\n" "no" >&6; }
4387 fi
4388
4389
4390 test -n "$CC" && break
4391 done
4392 fi
4393 if test -z "$CC"; then
4394 ac_ct_CC=$CC
4395 for ac_prog in cl.exe
4396 do
4397 # Extract the first word of "$ac_prog", so it can be a program name with args.
4398 set dummy $ac_prog; ac_word=$2
4399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4400 printf %s "checking for $ac_word... " >&6; }
4401 if test ${ac_cv_prog_ac_ct_CC+y}
4402 then :
4403 printf %s "(cached) " >&6
4404 else case e in #(
4405 e) if test -n "$ac_ct_CC"; then
4406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4410 do
4411 IFS=$as_save_IFS
4412 case $as_dir in #(((
4413 '') as_dir=./ ;;
4414 */) ;;
4415 *) as_dir=$as_dir/ ;;
4416 esac
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4419 ac_cv_prog_ac_ct_CC="$ac_prog"
4420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4421 break 2
4422 fi
4423 done
4424 done
4425 IFS=$as_save_IFS
4426
4427 fi ;;
4428 esac
4429 fi
4430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4431 if test -n "$ac_ct_CC"; then
4432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4433 printf "%s\n" "$ac_ct_CC" >&6; }
4434 else
4435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 printf "%s\n" "no" >&6; }
4437 fi
4438
4439
4440 test -n "$ac_ct_CC" && break
4441 done
4442
4443 if test "x$ac_ct_CC" = x; then
4444 CC=""
4445 else
4446 case $cross_compiling:$ac_tool_warned in
4447 yes:)
4448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4449 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4450 ac_tool_warned=yes ;;
4451 esac
4452 CC=$ac_ct_CC
4453 fi
4454 fi
4455
4456 fi
4457 if test -z "$CC"; then
4458 if test -n "$ac_tool_prefix"; then
4459 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4460 set dummy ${ac_tool_prefix}clang; ac_word=$2
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4462 printf %s "checking for $ac_word... " >&6; }
4463 if test ${ac_cv_prog_CC+y}
4464 then :
4465 printf %s "(cached) " >&6
4466 else case e in #(
4467 e) if test -n "$CC"; then
4468 ac_cv_prog_CC="$CC" # Let the user override the test.
4469 else
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4472 do
4473 IFS=$as_save_IFS
4474 case $as_dir in #(((
4475 '') as_dir=./ ;;
4476 */) ;;
4477 *) as_dir=$as_dir/ ;;
4478 esac
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4481 ac_cv_prog_CC="${ac_tool_prefix}clang"
4482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4483 break 2
4484 fi
4485 done
4486 done
4487 IFS=$as_save_IFS
4488
4489 fi ;;
4490 esac
4491 fi
4492 CC=$ac_cv_prog_CC
4493 if test -n "$CC"; then
4494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4495 printf "%s\n" "$CC" >&6; }
4496 else
4497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498 printf "%s\n" "no" >&6; }
4499 fi
4500
4501
4502 fi
4503 if test -z "$ac_cv_prog_CC"; then
4504 ac_ct_CC=$CC
4505 # Extract the first word of "clang", so it can be a program name with args.
4506 set dummy clang; ac_word=$2
4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4508 printf %s "checking for $ac_word... " >&6; }
4509 if test ${ac_cv_prog_ac_ct_CC+y}
4510 then :
4511 printf %s "(cached) " >&6
4512 else case e in #(
4513 e) if test -n "$ac_ct_CC"; then
4514 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4515 else
4516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH
4518 do
4519 IFS=$as_save_IFS
4520 case $as_dir in #(((
4521 '') as_dir=./ ;;
4522 */) ;;
4523 *) as_dir=$as_dir/ ;;
4524 esac
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4527 ac_cv_prog_ac_ct_CC="clang"
4528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4529 break 2
4530 fi
4531 done
4532 done
4533 IFS=$as_save_IFS
4534
4535 fi ;;
4536 esac
4537 fi
4538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4539 if test -n "$ac_ct_CC"; then
4540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4541 printf "%s\n" "$ac_ct_CC" >&6; }
4542 else
4543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 printf "%s\n" "no" >&6; }
4545 fi
4546
4547 if test "x$ac_ct_CC" = x; then
4548 CC=""
4549 else
4550 case $cross_compiling:$ac_tool_warned in
4551 yes:)
4552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4553 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4554 ac_tool_warned=yes ;;
4555 esac
4556 CC=$ac_ct_CC
4557 fi
4558 else
4559 CC="$ac_cv_prog_CC"
4560 fi
4561
4562 fi
4563
4564
4565 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4566 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4567 as_fn_error $? "no acceptable C compiler found in \$PATH
4568 See 'config.log' for more details" "$LINENO" 5; }
4569
4570 # Provide some information about the compiler.
4571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4572 set X $ac_compile
4573 ac_compiler=$2
4574 for ac_option in --version -v -V -qversion -version; do
4575 { { ac_try="$ac_compiler $ac_option >&5"
4576 case "(($ac_try" in
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4579 esac
4580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4581 printf "%s\n" "$ac_try_echo"; } >&5
4582 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4583 ac_status=$?
4584 if test -s conftest.err; then
4585 sed '10a\
4586 ... rest of stderr output deleted ...
4587 10q' conftest.err >conftest.er1
4588 cat conftest.er1 >&5
4589 fi
4590 rm -f conftest.er1 conftest.err
4591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4592 test $ac_status = 0; }
4593 done
4594
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4597
4598 int
4599 main (void)
4600 {
4601
4602 ;
4603 return 0;
4604 }
4605 _ACEOF
4606 ac_clean_files_save=$ac_clean_files
4607 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4608 # Try to create an executable without -o first, disregard a.out.
4609 # It will help us diagnose broken compilers, and finding out an intuition
4610 # of exeext.
4611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4612 printf %s "checking whether the C compiler works... " >&6; }
4613 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4614
4615 # The possible output files:
4616 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4617
4618 ac_rmfiles=
4619 for ac_file in $ac_files
4620 do
4621 case $ac_file in
4622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4623 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4624 esac
4625 done
4626 rm -f $ac_rmfiles
4627
4628 if { { ac_try="$ac_link_default"
4629 case "(($ac_try" in
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4632 esac
4633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4634 printf "%s\n" "$ac_try_echo"; } >&5
4635 (eval "$ac_link_default") 2>&5
4636 ac_status=$?
4637 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4638 test $ac_status = 0; }
4639 then :
4640 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4641 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4642 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4643 # so that the user can short-circuit this test for compilers unknown to
4644 # Autoconf.
4645 for ac_file in $ac_files ''
4646 do
4647 test -f "$ac_file" || continue
4648 case $ac_file in
4649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4650 ;;
4651 [ab].out )
4652 # We found the default executable, but exeext='' is most
4653 # certainly right.
4654 break;;
4655 *.* )
4656 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4657 then :; else
4658 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4659 fi
4660 # We set ac_cv_exeext here because the later test for it is not
4661 # safe: cross compilers may not add the suffix if given an '-o'
4662 # argument, so we may need to know it at that point already.
4663 # Even if this section looks crufty: it has the advantage of
4664 # actually working.
4665 break;;
4666 * )
4667 break;;
4668 esac
4669 done
4670 test "$ac_cv_exeext" = no && ac_cv_exeext=
4671
4672 else case e in #(
4673 e) ac_file='' ;;
4674 esac
4675 fi
4676 if test -z "$ac_file"
4677 then :
4678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679 printf "%s\n" "no" >&6; }
4680 printf "%s\n" "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.$ac_ext >&5
4682
4683 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4684 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4685 as_fn_error 77 "C compiler cannot create executables
4686 See 'config.log' for more details" "$LINENO" 5; }
4687 else case e in #(
4688 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4689 printf "%s\n" "yes" >&6; } ;;
4690 esac
4691 fi
4692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4693 printf %s "checking for C compiler default output file name... " >&6; }
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4695 printf "%s\n" "$ac_file" >&6; }
4696 ac_exeext=$ac_cv_exeext
4697
4698 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4699 ac_clean_files=$ac_clean_files_save
4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4701 printf %s "checking for suffix of executables... " >&6; }
4702 if { { ac_try="$ac_link"
4703 case "(($ac_try" in
4704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4705 *) ac_try_echo=$ac_try;;
4706 esac
4707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4708 printf "%s\n" "$ac_try_echo"; } >&5
4709 (eval "$ac_link") 2>&5
4710 ac_status=$?
4711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4712 test $ac_status = 0; }
4713 then :
4714 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4715 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4716 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4717 # 'rm'.
4718 for ac_file in conftest.exe conftest conftest.*; do
4719 test -f "$ac_file" || continue
4720 case $ac_file in
4721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4722 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4723 break;;
4724 * ) break;;
4725 esac
4726 done
4727 else case e in #(
4728 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4729 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4730 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4731 See 'config.log' for more details" "$LINENO" 5; } ;;
4732 esac
4733 fi
4734 rm -f conftest conftest$ac_cv_exeext
4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4736 printf "%s\n" "$ac_cv_exeext" >&6; }
4737
4738 rm -f conftest.$ac_ext
4739 EXEEXT=$ac_cv_exeext
4740 ac_exeext=$EXEEXT
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4743 #include <stdio.h>
4744 int
4745 main (void)
4746 {
4747 FILE *f = fopen ("conftest.out", "w");
4748 if (!f)
4749 return 1;
4750 return ferror (f) || fclose (f) != 0;
4751
4752 ;
4753 return 0;
4754 }
4755 _ACEOF
4756 ac_clean_files="$ac_clean_files conftest.out"
4757 # Check that the compiler produces executables we can run. If not, either
4758 # the compiler is broken, or we cross compile.
4759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4760 printf %s "checking whether we are cross compiling... " >&6; }
4761 if test "$cross_compiling" != yes; then
4762 { { ac_try="$ac_link"
4763 case "(($ac_try" in
4764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4765 *) ac_try_echo=$ac_try;;
4766 esac
4767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4768 printf "%s\n" "$ac_try_echo"; } >&5
4769 (eval "$ac_link") 2>&5
4770 ac_status=$?
4771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4772 test $ac_status = 0; }
4773 if { ac_try='./conftest$ac_cv_exeext'
4774 { { case "(($ac_try" in
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4777 esac
4778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4779 printf "%s\n" "$ac_try_echo"; } >&5
4780 (eval "$ac_try") 2>&5
4781 ac_status=$?
4782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4783 test $ac_status = 0; }; }; then
4784 cross_compiling=no
4785 else
4786 if test "$cross_compiling" = maybe; then
4787 cross_compiling=yes
4788 else
4789 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4790 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4791 as_fn_error 77 "cannot run C compiled programs.
4792 If you meant to cross compile, use '--host'.
4793 See 'config.log' for more details" "$LINENO" 5; }
4794 fi
4795 fi
4796 fi
4797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4798 printf "%s\n" "$cross_compiling" >&6; }
4799
4800 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4801 conftest.o conftest.obj conftest.out
4802 ac_clean_files=$ac_clean_files_save
4803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4804 printf %s "checking for suffix of object files... " >&6; }
4805 if test ${ac_cv_objext+y}
4806 then :
4807 printf %s "(cached) " >&6
4808 else case e in #(
4809 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4811
4812 int
4813 main (void)
4814 {
4815
4816 ;
4817 return 0;
4818 }
4819 _ACEOF
4820 rm -f conftest.o conftest.obj
4821 if { { ac_try="$ac_compile"
4822 case "(($ac_try" in
4823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824 *) ac_try_echo=$ac_try;;
4825 esac
4826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4827 printf "%s\n" "$ac_try_echo"; } >&5
4828 (eval "$ac_compile") 2>&5
4829 ac_status=$?
4830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4831 test $ac_status = 0; }
4832 then :
4833 for ac_file in conftest.o conftest.obj conftest.*; do
4834 test -f "$ac_file" || continue;
4835 case $ac_file in
4836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4837 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4838 break;;
4839 esac
4840 done
4841 else case e in #(
4842 e) printf "%s\n" "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4844
4845 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4846 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4847 as_fn_error $? "cannot compute suffix of object files: cannot compile
4848 See 'config.log' for more details" "$LINENO" 5; } ;;
4849 esac
4850 fi
4851 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4852 esac
4853 fi
4854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4855 printf "%s\n" "$ac_cv_objext" >&6; }
4856 OBJEXT=$ac_cv_objext
4857 ac_objext=$OBJEXT
4858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4859 printf %s "checking whether the compiler supports GNU C... " >&6; }
4860 if test ${ac_cv_c_compiler_gnu+y}
4861 then :
4862 printf %s "(cached) " >&6
4863 else case e in #(
4864 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4866
4867 int
4868 main (void)
4869 {
4870 #ifndef __GNUC__
4871 choke me
4872 #endif
4873
4874 ;
4875 return 0;
4876 }
4877 _ACEOF
4878 if ac_fn_c_try_compile "$LINENO"
4879 then :
4880 ac_compiler_gnu=yes
4881 else case e in #(
4882 e) ac_compiler_gnu=no ;;
4883 esac
4884 fi
4885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4886 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4887 ;;
4888 esac
4889 fi
4890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4891 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4893
4894 if test $ac_compiler_gnu = yes; then
4895 GCC=yes
4896 else
4897 GCC=
4898 fi
4899 ac_test_CFLAGS=${CFLAGS+y}
4900 ac_save_CFLAGS=$CFLAGS
4901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4902 printf %s "checking whether $CC accepts -g... " >&6; }
4903 if test ${ac_cv_prog_cc_g+y}
4904 then :
4905 printf %s "(cached) " >&6
4906 else case e in #(
4907 e) ac_save_c_werror_flag=$ac_c_werror_flag
4908 ac_c_werror_flag=yes
4909 ac_cv_prog_cc_g=no
4910 CFLAGS="-g"
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4913
4914 int
4915 main (void)
4916 {
4917
4918 ;
4919 return 0;
4920 }
4921 _ACEOF
4922 if ac_fn_c_try_compile "$LINENO"
4923 then :
4924 ac_cv_prog_cc_g=yes
4925 else case e in #(
4926 e) CFLAGS=""
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929
4930 int
4931 main (void)
4932 {
4933
4934 ;
4935 return 0;
4936 }
4937 _ACEOF
4938 if ac_fn_c_try_compile "$LINENO"
4939 then :
4940
4941 else case e in #(
4942 e) ac_c_werror_flag=$ac_save_c_werror_flag
4943 CFLAGS="-g"
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4946
4947 int
4948 main (void)
4949 {
4950
4951 ;
4952 return 0;
4953 }
4954 _ACEOF
4955 if ac_fn_c_try_compile "$LINENO"
4956 then :
4957 ac_cv_prog_cc_g=yes
4958 fi
4959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4960 esac
4961 fi
4962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4963 esac
4964 fi
4965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4966 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4967 esac
4968 fi
4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4970 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4971 if test $ac_test_CFLAGS; then
4972 CFLAGS=$ac_save_CFLAGS
4973 elif test $ac_cv_prog_cc_g = yes; then
4974 if test "$GCC" = yes; then
4975 CFLAGS="-g -O2"
4976 else
4977 CFLAGS="-g"
4978 fi
4979 else
4980 if test "$GCC" = yes; then
4981 CFLAGS="-O2"
4982 else
4983 CFLAGS=
4984 fi
4985 fi
4986 ac_prog_cc_stdc=no
4987 if test x$ac_prog_cc_stdc = xno
4988 then :
4989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4990 printf %s "checking for $CC option to enable C11 features... " >&6; }
4991 if test ${ac_cv_prog_cc_c11+y}
4992 then :
4993 printf %s "(cached) " >&6
4994 else case e in #(
4995 e) ac_cv_prog_cc_c11=no
4996 ac_save_CC=$CC
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
4999 $ac_c_conftest_c11_program
5000 _ACEOF
5001 for ac_arg in '' -std=gnu11
5002 do
5003 CC="$ac_save_CC $ac_arg"
5004 if ac_fn_c_try_compile "$LINENO"
5005 then :
5006 ac_cv_prog_cc_c11=$ac_arg
5007 fi
5008 rm -f core conftest.err conftest.$ac_objext conftest.beam
5009 test "x$ac_cv_prog_cc_c11" != "xno" && break
5010 done
5011 rm -f conftest.$ac_ext
5012 CC=$ac_save_CC ;;
5013 esac
5014 fi
5015
5016 if test "x$ac_cv_prog_cc_c11" = xno
5017 then :
5018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5019 printf "%s\n" "unsupported" >&6; }
5020 else case e in #(
5021 e) if test "x$ac_cv_prog_cc_c11" = x
5022 then :
5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5024 printf "%s\n" "none needed" >&6; }
5025 else case e in #(
5026 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5027 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5028 CC="$CC $ac_cv_prog_cc_c11" ;;
5029 esac
5030 fi
5031 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5032 ac_prog_cc_stdc=c11 ;;
5033 esac
5034 fi
5035 fi
5036 if test x$ac_prog_cc_stdc = xno
5037 then :
5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5039 printf %s "checking for $CC option to enable C99 features... " >&6; }
5040 if test ${ac_cv_prog_cc_c99+y}
5041 then :
5042 printf %s "(cached) " >&6
5043 else case e in #(
5044 e) ac_cv_prog_cc_c99=no
5045 ac_save_CC=$CC
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5048 $ac_c_conftest_c99_program
5049 _ACEOF
5050 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5051 do
5052 CC="$ac_save_CC $ac_arg"
5053 if ac_fn_c_try_compile "$LINENO"
5054 then :
5055 ac_cv_prog_cc_c99=$ac_arg
5056 fi
5057 rm -f core conftest.err conftest.$ac_objext conftest.beam
5058 test "x$ac_cv_prog_cc_c99" != "xno" && break
5059 done
5060 rm -f conftest.$ac_ext
5061 CC=$ac_save_CC ;;
5062 esac
5063 fi
5064
5065 if test "x$ac_cv_prog_cc_c99" = xno
5066 then :
5067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5068 printf "%s\n" "unsupported" >&6; }
5069 else case e in #(
5070 e) if test "x$ac_cv_prog_cc_c99" = x
5071 then :
5072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5073 printf "%s\n" "none needed" >&6; }
5074 else case e in #(
5075 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5076 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5077 CC="$CC $ac_cv_prog_cc_c99" ;;
5078 esac
5079 fi
5080 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5081 ac_prog_cc_stdc=c99 ;;
5082 esac
5083 fi
5084 fi
5085 if test x$ac_prog_cc_stdc = xno
5086 then :
5087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5088 printf %s "checking for $CC option to enable C89 features... " >&6; }
5089 if test ${ac_cv_prog_cc_c89+y}
5090 then :
5091 printf %s "(cached) " >&6
5092 else case e in #(
5093 e) ac_cv_prog_cc_c89=no
5094 ac_save_CC=$CC
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096 /* end confdefs.h. */
5097 $ac_c_conftest_c89_program
5098 _ACEOF
5099 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5100 do
5101 CC="$ac_save_CC $ac_arg"
5102 if ac_fn_c_try_compile "$LINENO"
5103 then :
5104 ac_cv_prog_cc_c89=$ac_arg
5105 fi
5106 rm -f core conftest.err conftest.$ac_objext conftest.beam
5107 test "x$ac_cv_prog_cc_c89" != "xno" && break
5108 done
5109 rm -f conftest.$ac_ext
5110 CC=$ac_save_CC ;;
5111 esac
5112 fi
5113
5114 if test "x$ac_cv_prog_cc_c89" = xno
5115 then :
5116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5117 printf "%s\n" "unsupported" >&6; }
5118 else case e in #(
5119 e) if test "x$ac_cv_prog_cc_c89" = x
5120 then :
5121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5122 printf "%s\n" "none needed" >&6; }
5123 else case e in #(
5124 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5125 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5126 CC="$CC $ac_cv_prog_cc_c89" ;;
5127 esac
5128 fi
5129 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5130 ac_prog_cc_stdc=c89 ;;
5131 esac
5132 fi
5133 fi
5134
5135 ac_ext=c
5136 ac_cpp='$CPP $CPPFLAGS'
5137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5140
5141
5142 ac_ext=c
5143 ac_cpp='$CPP $CPPFLAGS'
5144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5148 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5149 if test ${am_cv_prog_cc_c_o+y}
5150 then :
5151 printf %s "(cached) " >&6
5152 else case e in #(
5153 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154 /* end confdefs.h. */
5155
5156 int
5157 main (void)
5158 {
5159
5160 ;
5161 return 0;
5162 }
5163 _ACEOF
5164 # Make sure it works both with $CC and with simple cc.
5165 # Following AC_PROG_CC_C_O, we do the test twice because some
5166 # compilers refuse to overwrite an existing .o file with -o,
5167 # though they will create one.
5168 am_cv_prog_cc_c_o=yes
5169 for am_i in 1 2; do
5170 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5171 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5172 ac_status=$?
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); } \
5175 && test -f conftest2.$ac_objext; then
5176 : OK
5177 else
5178 am_cv_prog_cc_c_o=no
5179 break
5180 fi
5181 done
5182 # aligned with autoconf, so not including core; see bug#72225.
5183 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
5184 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
5185 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
5186 unset am_i ;;
5187 esac
5188 fi
5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5190 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5191 if test "$am_cv_prog_cc_c_o" != yes; then
5192 # Losing compiler, so override with the script.
5193 # FIXME: It is wrong to rewrite CC.
5194 # But if we don't then we get into trouble of one sort or another.
5195 # A longer-term fix would be to have automake use am__CC in this case,
5196 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5197 CC="$am_aux_dir/compile $CC"
5198 fi
5199 ac_ext=c
5200 ac_cpp='$CPP $CPPFLAGS'
5201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5204
5205
5206 depcc="$CC" am_compiler_list=
5207
5208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5209 printf %s "checking dependency style of $depcc... " >&6; }
5210 if test ${am_cv_CC_dependencies_compiler_type+y}
5211 then :
5212 printf %s "(cached) " >&6
5213 else case e in #(
5214 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5215 # We make a subdir and do the tests there. Otherwise we can end up
5216 # making bogus files that we don't know about and never remove. For
5217 # instance it was reported that on HP-UX the gcc test will end up
5218 # making a dummy file named 'D' -- because '-MD' means "put the output
5219 # in D".
5220 rm -rf conftest.dir
5221 mkdir conftest.dir
5222 # Copy depcomp to subdir because otherwise we won't find it if we're
5223 # using a relative directory.
5224 cp "$am_depcomp" conftest.dir
5225 cd conftest.dir
5226 # We will build objects and dependencies in a subdirectory because
5227 # it helps to detect inapplicable dependency modes. For instance
5228 # both Tru64's cc and ICC support -MD to output dependencies as a
5229 # side effect of compilation, but ICC will put the dependencies in
5230 # the current directory while Tru64 will put them in the object
5231 # directory.
5232 mkdir sub
5233
5234 am_cv_CC_dependencies_compiler_type=none
5235 if test "$am_compiler_list" = ""; then
5236 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5237 fi
5238 am__universal=false
5239 case " $depcc " in #(
5240 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5241 esac
5242
5243 for depmode in $am_compiler_list; do
5244 # Setup a source with many dependencies, because some compilers
5245 # like to wrap large dependency lists on column 80 (with \), and
5246 # we should not choose a depcomp mode which is confused by this.
5247 #
5248 # We need to recreate these files for each test, as the compiler may
5249 # overwrite some of them when testing with obscure command lines.
5250 # This happens at least with the AIX C compiler.
5251 : > sub/conftest.c
5252 for i in 1 2 3 4 5 6; do
5253 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5254 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5255 # Solaris 10 /bin/sh.
5256 echo '/* dummy */' > sub/conftst$i.h
5257 done
5258 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5259
5260 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5261 # mode. It turns out that the SunPro C++ compiler does not properly
5262 # handle '-M -o', and we need to detect this. Also, some Intel
5263 # versions had trouble with output in subdirs.
5264 am__obj=sub/conftest.${OBJEXT-o}
5265 am__minus_obj="-o $am__obj"
5266 case $depmode in
5267 gcc)
5268 # This depmode causes a compiler race in universal mode.
5269 test "$am__universal" = false || continue
5270 ;;
5271 nosideeffect)
5272 # After this tag, mechanisms are not by side-effect, so they'll
5273 # only be used when explicitly requested.
5274 if test "x$enable_dependency_tracking" = xyes; then
5275 continue
5276 else
5277 break
5278 fi
5279 ;;
5280 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5281 # This compiler won't grok '-c -o', but also, the minuso test has
5282 # not run yet. These depmodes are late enough in the game, and
5283 # so weak that their functioning should not be impacted.
5284 am__obj=conftest.${OBJEXT-o}
5285 am__minus_obj=
5286 ;;
5287 none) break ;;
5288 esac
5289 if depmode=$depmode \
5290 source=sub/conftest.c object=$am__obj \
5291 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5292 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5293 >/dev/null 2>conftest.err &&
5294 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5295 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5296 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5297 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5298 # icc doesn't choke on unknown options, it will just issue warnings
5299 # or remarks (even with -Werror). So we grep stderr for any message
5300 # that says an option was ignored or not supported.
5301 # When given -MP, icc 7.0 and 7.1 complain thus:
5302 # icc: Command line warning: ignoring option '-M'; no argument required
5303 # The diagnosis changed in icc 8.0:
5304 # icc: Command line remark: option '-MP' not supported
5305 if (grep 'ignoring option' conftest.err ||
5306 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5307 am_cv_CC_dependencies_compiler_type=$depmode
5308 break
5309 fi
5310 fi
5311 done
5312
5313 cd ..
5314 rm -rf conftest.dir
5315 else
5316 am_cv_CC_dependencies_compiler_type=none
5317 fi
5318 ;;
5319 esac
5320 fi
5321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5322 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5323 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5324
5325 if
5326 test "x$enable_dependency_tracking" != xno \
5327 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5328 am__fastdepCC_TRUE=
5329 am__fastdepCC_FALSE='#'
5330 else
5331 am__fastdepCC_TRUE='#'
5332 am__fastdepCC_FALSE=
5333 fi
5334
5335
5336
5337 ac_header= ac_cache=
5338 for ac_item in $ac_header_c_list
5339 do
5340 if test $ac_cache; then
5341 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5342 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5343 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5344 fi
5345 ac_header= ac_cache=
5346 elif test $ac_header; then
5347 ac_cache=$ac_item
5348 else
5349 ac_header=$ac_item
5350 fi
5351 done
5352
5353
5354
5355
5356
5357
5358
5359
5360 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5361 then :
5362
5363 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5364
5365 fi
5366
5367
5368
5369
5370
5371
5372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5373 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5374 if test ${ac_cv_safe_to_define___extensions__+y}
5375 then :
5376 printf %s "(cached) " >&6
5377 else case e in #(
5378 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h. */
5380
5381 # define __EXTENSIONS__ 1
5382 $ac_includes_default
5383 int
5384 main (void)
5385 {
5386
5387 ;
5388 return 0;
5389 }
5390 _ACEOF
5391 if ac_fn_c_try_compile "$LINENO"
5392 then :
5393 ac_cv_safe_to_define___extensions__=yes
5394 else case e in #(
5395 e) ac_cv_safe_to_define___extensions__=no ;;
5396 esac
5397 fi
5398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5399 esac
5400 fi
5401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5402 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5403
5404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5405 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5406 if test ${ac_cv_should_define__xopen_source+y}
5407 then :
5408 printf %s "(cached) " >&6
5409 else case e in #(
5410 e) ac_cv_should_define__xopen_source=no
5411 if test $ac_cv_header_wchar_h = yes
5412 then :
5413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5414 /* end confdefs.h. */
5415
5416 #include <wchar.h>
5417 mbstate_t x;
5418 int
5419 main (void)
5420 {
5421
5422 ;
5423 return 0;
5424 }
5425 _ACEOF
5426 if ac_fn_c_try_compile "$LINENO"
5427 then :
5428
5429 else case e in #(
5430 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h. */
5432
5433 #define _XOPEN_SOURCE 500
5434 #include <wchar.h>
5435 mbstate_t x;
5436 int
5437 main (void)
5438 {
5439
5440 ;
5441 return 0;
5442 }
5443 _ACEOF
5444 if ac_fn_c_try_compile "$LINENO"
5445 then :
5446 ac_cv_should_define__xopen_source=yes
5447 fi
5448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5449 esac
5450 fi
5451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5452 fi ;;
5453 esac
5454 fi
5455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5456 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5457
5458 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5459
5460 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5461
5462 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5463
5464 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5465
5466 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5467
5468 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5469
5470 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5471
5472 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5473
5474 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5475
5476 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5477
5478 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5479
5480 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5481
5482 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5483
5484 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5485
5486 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5487
5488 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5489
5490 if test $ac_cv_header_minix_config_h = yes
5491 then :
5492 MINIX=yes
5493 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5494
5495 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5496
5497 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5498
5499 else case e in #(
5500 e) MINIX= ;;
5501 esac
5502 fi
5503 if test $ac_cv_safe_to_define___extensions__ = yes
5504 then :
5505 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5506
5507 fi
5508 if test $ac_cv_should_define__xopen_source = yes
5509 then :
5510 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5511
5512 fi
5513
5514
5515
5516
5517 # Make sure we can run config.sub.
5518 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5519 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5520
5521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5522 printf %s "checking build system type... " >&6; }
5523 if test ${ac_cv_build+y}
5524 then :
5525 printf %s "(cached) " >&6
5526 else case e in #(
5527 e) ac_build_alias=$build_alias
5528 test "x$ac_build_alias" = x &&
5529 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5530 test "x$ac_build_alias" = x &&
5531 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5532 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5533 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5534 ;;
5535 esac
5536 fi
5537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5538 printf "%s\n" "$ac_cv_build" >&6; }
5539 case $ac_cv_build in
5540 *-*-*) ;;
5541 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5542 esac
5543 build=$ac_cv_build
5544 ac_save_IFS=$IFS; IFS='-'
5545 set x $ac_cv_build
5546 shift
5547 build_cpu=$1
5548 build_vendor=$2
5549 shift; shift
5550 # Remember, the first character of IFS is used to create $*,
5551 # except with old shells:
5552 build_os=$*
5553 IFS=$ac_save_IFS
5554 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5555
5556
5557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5558 printf %s "checking host system type... " >&6; }
5559 if test ${ac_cv_host+y}
5560 then :
5561 printf %s "(cached) " >&6
5562 else case e in #(
5563 e) if test "x$host_alias" = x; then
5564 ac_cv_host=$ac_cv_build
5565 else
5566 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5567 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5568 fi
5569 ;;
5570 esac
5571 fi
5572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5573 printf "%s\n" "$ac_cv_host" >&6; }
5574 case $ac_cv_host in
5575 *-*-*) ;;
5576 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5577 esac
5578 host=$ac_cv_host
5579 ac_save_IFS=$IFS; IFS='-'
5580 set x $ac_cv_host
5581 shift
5582 host_cpu=$1
5583 host_vendor=$2
5584 shift; shift
5585 # Remember, the first character of IFS is used to create $*,
5586 # except with old shells:
5587 host_os=$*
5588 IFS=$ac_save_IFS
5589 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5590
5591
5592
5593 #case "$host_os" in
5594 #
5595 # osf5*)
5596 # CFLAGS="$CFLAGS -D_OSF_SOURCE"
5597 # ;;
5598 #esac
5599
5600
5601
5602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5603 printf %s "checking whether ln -s works... " >&6; }
5604 LN_S=$as_ln_s
5605 if test "$LN_S" = "ln -s"; then
5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5607 printf "%s\n" "yes" >&6; }
5608 else
5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5610 printf "%s\n" "no, using $LN_S" >&6; }
5611 fi
5612
5613 # AC_PROG_MKDIR_P - $(MKDIR_P) should be defined by AM_INIT_AUTOMAKE
5614
5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5616 printf %s "checking for a sed that does not truncate output... " >&6; }
5617 if test ${ac_cv_path_SED+y}
5618 then :
5619 printf %s "(cached) " >&6
5620 else case e in #(
5621 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5622 for ac_i in 1 2 3 4 5 6 7; do
5623 ac_script="$ac_script$as_nl$ac_script"
5624 done
5625 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5626 { ac_script=; unset ac_script;}
5627 if test -z "$SED"; then
5628 ac_path_SED_found=false
5629 # Loop through the user's path and test for each of PROGNAME-LIST
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5632 do
5633 IFS=$as_save_IFS
5634 case $as_dir in #(((
5635 '') as_dir=./ ;;
5636 */) ;;
5637 *) as_dir=$as_dir/ ;;
5638 esac
5639 for ac_prog in sed gsed
5640 do
5641 for ac_exec_ext in '' $ac_executable_extensions; do
5642 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5643 as_fn_executable_p "$ac_path_SED" || continue
5644 # Check for GNU ac_path_SED and select it if it is found.
5645 # Check for GNU $ac_path_SED
5646 case `"$ac_path_SED" --version 2>&1` in #(
5647 *GNU*)
5648 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5649 #(
5650 *)
5651 ac_count=0
5652 printf %s 0123456789 >"conftest.in"
5653 while :
5654 do
5655 cat "conftest.in" "conftest.in" >"conftest.tmp"
5656 mv "conftest.tmp" "conftest.in"
5657 cp "conftest.in" "conftest.nl"
5658 printf "%s\n" '' >> "conftest.nl"
5659 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5661 as_fn_arith $ac_count + 1 && ac_count=$as_val
5662 if test $ac_count -gt ${ac_path_SED_max-0}; then
5663 # Best one so far, save it but keep looking for a better one
5664 ac_cv_path_SED="$ac_path_SED"
5665 ac_path_SED_max=$ac_count
5666 fi
5667 # 10*(2^10) chars as input seems more than enough
5668 test $ac_count -gt 10 && break
5669 done
5670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5671 esac
5672
5673 $ac_path_SED_found && break 3
5674 done
5675 done
5676 done
5677 IFS=$as_save_IFS
5678 if test -z "$ac_cv_path_SED"; then
5679 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5680 fi
5681 else
5682 ac_cv_path_SED=$SED
5683 fi
5684 ;;
5685 esac
5686 fi
5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5688 printf "%s\n" "$ac_cv_path_SED" >&6; }
5689 SED="$ac_cv_path_SED"
5690 rm -f conftest.sed
5691
5692
5693
5694
5695 # We need to test for at least gcc 2.95 here, because older versions don't
5696 # have -fno-strict-aliasing
5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h. */
5699
5700 int
5701 main (void)
5702 {
5703
5704 #if !defined(__GNUC__) || (__GNUC__ < 2) || (__GNUC__ == 2 && __GNUC_MINOR__ < 95)
5705 #error
5706 #endif
5707 ;
5708 return 0;
5709 }
5710 _ACEOF
5711 if ac_fn_c_try_compile "$LINENO"
5712 then :
5713 have_gcc295=yes
5714 else case e in #(
5715 e) have_gcc295=no ;;
5716 esac
5717 fi
5718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5719
5720 if test "$GCC" = "yes" ; then
5721 # Enable many gcc warnings by default...
5722 CFLAGS="$CFLAGS -Wall"
5723 # And disable the strict-aliasing optimization, since it breaks
5724 # our sockaddr-handling code in strange ways.
5725 if test x$have_gcc295 = xyes; then
5726 CFLAGS="$CFLAGS -fno-strict-aliasing"
5727 fi
5728 fi
5729
5730 # OS X Lion started deprecating the system openssl. Let's just disable
5731 # all deprecation warnings on OS X; but do so only for gcc...
5732 if test "$GCC" = "yes" ; then
5733 case "$host_os" in
5734 darwin*)
5735 CFLAGS="$CFLAGS -Wno-deprecated-declarations"
5736 ;;
5737 esac
5738 fi
5739
5740 # Check whether --enable-gcc-warnings was given.
5741 if test ${enable_gcc_warnings+y}
5742 then :
5743 enableval=$enable_gcc_warnings;
5744 fi
5745
5746
5747 # Check whether --enable-gcc-hardening was given.
5748 if test ${enable_gcc_hardening+y}
5749 then :
5750 enableval=$enable_gcc_hardening; if test x$enableval = xyes; then
5751 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
5752 CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector"
5753 CFLAGS="$CFLAGS --param ssp-buffer-size=1"
5754 fi
5755 fi
5756
5757
5758 # Check whether --enable-thread-support was given.
5759 if test ${enable_thread_support+y}
5760 then :
5761 enableval=$enable_thread_support;
5762 else case e in #(
5763 e) enable_thread_support=yes ;;
5764 esac
5765 fi
5766
5767 # Check whether --enable-malloc-replacement was given.
5768 if test ${enable_malloc_replacement+y}
5769 then :
5770 enableval=$enable_malloc_replacement;
5771 else case e in #(
5772 e) enable_malloc_replacement=yes ;;
5773 esac
5774 fi
5775
5776 # Check whether --enable-openssl was given.
5777 if test ${enable_openssl+y}
5778 then :
5779 enableval=$enable_openssl;
5780 else case e in #(
5781 e) enable_openssl=yes ;;
5782 esac
5783 fi
5784
5785 # Check whether --enable-debug-mode was given.
5786 if test ${enable_debug_mode+y}
5787 then :
5788 enableval=$enable_debug_mode;
5789 else case e in #(
5790 e) enable_debug_mode=yes ;;
5791 esac
5792 fi
5793
5794 # Check whether --enable-libevent-install was given.
5795 if test ${enable_libevent_install+y}
5796 then :
5797 enableval=$enable_libevent_install;
5798 else case e in #(
5799 e) enable_libevent_install=yes ;;
5800 esac
5801 fi
5802
5803 # Check whether --enable-libevent-regress was given.
5804 if test ${enable_libevent_regress+y}
5805 then :
5806 enableval=$enable_libevent_regress;
5807 else case e in #(
5808 e) enable_libevent_regress=yes ;;
5809 esac
5810 fi
5811
5812 # Check whether --enable-samples was given.
5813 if test ${enable_samples+y}
5814 then :
5815 enableval=$enable_samples;
5816 else case e in #(
5817 e) enable_samples=yes ;;
5818 esac
5819 fi
5820
5821 # Check whether --enable-function-sections was given.
5822 if test ${enable_function_sections+y}
5823 then :
5824 enableval=$enable_function_sections;
5825 else case e in #(
5826 e) enable_function_sections=no ;;
5827 esac
5828 fi
5829
5830 # Check whether --enable-verbose-debug was given.
5831 if test ${enable_verbose_debug+y}
5832 then :
5833 enableval=$enable_verbose_debug;
5834 else case e in #(
5835 e) enable_verbose_debug=no ;;
5836 esac
5837 fi
5838
5839 # Check whether --enable-clock-gettime was given.
5840 if test ${enable_clock_gettime+y}
5841 then :
5842 enableval=$enable_clock_gettime;
5843 else case e in #(
5844 e) enable_clock_gettime=yes ;;
5845 esac
5846 fi
5847
5848
5849
5850
5851 case `pwd` in
5852 *\ * | *\ *)
5853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5854 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5855 esac
5856
5857
5858
5859 macro_version='2.5.4'
5860 macro_revision='2.5.4'
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875 ltmain=$ac_aux_dir/ltmain.sh
5876
5877 # Backslashify metacharacters that are still active within
5878 # double-quoted strings.
5879 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5880
5881 # Same as above, but do not quote variable references.
5882 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5883
5884 # Sed substitution to delay expansion of an escaped shell variable in a
5885 # double_quote_subst'ed string.
5886 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5887
5888 # Sed substitution to delay expansion of an escaped single quote.
5889 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5890
5891 # Sed substitution to avoid accidental globbing in evaled expressions
5892 no_glob_subst='s/\*/\\\*/g'
5893
5894 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5895 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5896 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5897
5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5899 printf %s "checking how to print strings... " >&6; }
5900 # Test print first, because it will be a builtin if present.
5901 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5902 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5903 ECHO='print -r --'
5904 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5905 ECHO='printf %s\n'
5906 else
5907 # Use this function as a fallback that always works.
5908 func_fallback_echo ()
5909 {
5910 eval 'cat <<_LTECHO_EOF
5911 $1
5912 _LTECHO_EOF'
5913 }
5914 ECHO='func_fallback_echo'
5915 fi
5916
5917 # func_echo_all arg...
5918 # Invoke $ECHO with all args, space-separated.
5919 func_echo_all ()
5920 {
5921 $ECHO ""
5922 }
5923
5924 case $ECHO in
5925 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5926 printf "%s\n" "printf" >&6; } ;;
5927 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5928 printf "%s\n" "print -r" >&6; } ;;
5929 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5930 printf "%s\n" "cat" >&6; } ;;
5931 esac
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5947 printf %s "checking for a sed that does not truncate output... " >&6; }
5948 if test ${ac_cv_path_SED+y}
5949 then :
5950 printf %s "(cached) " >&6
5951 else case e in #(
5952 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5953 for ac_i in 1 2 3 4 5 6 7; do
5954 ac_script="$ac_script$as_nl$ac_script"
5955 done
5956 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5957 { ac_script=; unset ac_script;}
5958 if test -z "$SED"; then
5959 ac_path_SED_found=false
5960 # Loop through the user's path and test for each of PROGNAME-LIST
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH
5963 do
5964 IFS=$as_save_IFS
5965 case $as_dir in #(((
5966 '') as_dir=./ ;;
5967 */) ;;
5968 *) as_dir=$as_dir/ ;;
5969 esac
5970 for ac_prog in sed gsed
5971 do
5972 for ac_exec_ext in '' $ac_executable_extensions; do
5973 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5974 as_fn_executable_p "$ac_path_SED" || continue
5975 # Check for GNU ac_path_SED and select it if it is found.
5976 # Check for GNU $ac_path_SED
5977 case `"$ac_path_SED" --version 2>&1` in #(
5978 *GNU*)
5979 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5980 #(
5981 *)
5982 ac_count=0
5983 printf %s 0123456789 >"conftest.in"
5984 while :
5985 do
5986 cat "conftest.in" "conftest.in" >"conftest.tmp"
5987 mv "conftest.tmp" "conftest.in"
5988 cp "conftest.in" "conftest.nl"
5989 printf "%s\n" '' >> "conftest.nl"
5990 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5991 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5992 as_fn_arith $ac_count + 1 && ac_count=$as_val
5993 if test $ac_count -gt ${ac_path_SED_max-0}; then
5994 # Best one so far, save it but keep looking for a better one
5995 ac_cv_path_SED="$ac_path_SED"
5996 ac_path_SED_max=$ac_count
5997 fi
5998 # 10*(2^10) chars as input seems more than enough
5999 test $ac_count -gt 10 && break
6000 done
6001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6002 esac
6003
6004 $ac_path_SED_found && break 3
6005 done
6006 done
6007 done
6008 IFS=$as_save_IFS
6009 if test -z "$ac_cv_path_SED"; then
6010 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6011 fi
6012 else
6013 ac_cv_path_SED=$SED
6014 fi
6015 ;;
6016 esac
6017 fi
6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6019 printf "%s\n" "$ac_cv_path_SED" >&6; }
6020 SED="$ac_cv_path_SED"
6021 rm -f conftest.sed
6022
6023 test -z "$SED" && SED=sed
6024 Xsed="$SED -e 1s/^X//"
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6037 printf %s "checking for grep that handles long lines and -e... " >&6; }
6038 if test ${ac_cv_path_GREP+y}
6039 then :
6040 printf %s "(cached) " >&6
6041 else case e in #(
6042 e) if test -z "$GREP"; then
6043 ac_path_GREP_found=false
6044 # Loop through the user's path and test for each of PROGNAME-LIST
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6047 do
6048 IFS=$as_save_IFS
6049 case $as_dir in #(((
6050 '') as_dir=./ ;;
6051 */) ;;
6052 *) as_dir=$as_dir/ ;;
6053 esac
6054 for ac_prog in grep ggrep
6055 do
6056 for ac_exec_ext in '' $ac_executable_extensions; do
6057 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6058 as_fn_executable_p "$ac_path_GREP" || continue
6059 # Check for GNU ac_path_GREP and select it if it is found.
6060 # Check for GNU $ac_path_GREP
6061 case `"$ac_path_GREP" --version 2>&1` in #(
6062 *GNU*)
6063 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6064 #(
6065 *)
6066 ac_count=0
6067 printf %s 0123456789 >"conftest.in"
6068 while :
6069 do
6070 cat "conftest.in" "conftest.in" >"conftest.tmp"
6071 mv "conftest.tmp" "conftest.in"
6072 cp "conftest.in" "conftest.nl"
6073 printf "%s\n" 'GREP' >> "conftest.nl"
6074 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6075 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6076 as_fn_arith $ac_count + 1 && ac_count=$as_val
6077 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6078 # Best one so far, save it but keep looking for a better one
6079 ac_cv_path_GREP="$ac_path_GREP"
6080 ac_path_GREP_max=$ac_count
6081 fi
6082 # 10*(2^10) chars as input seems more than enough
6083 test $ac_count -gt 10 && break
6084 done
6085 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6086 esac
6087
6088 $ac_path_GREP_found && break 3
6089 done
6090 done
6091 done
6092 IFS=$as_save_IFS
6093 if test -z "$ac_cv_path_GREP"; then
6094 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6095 fi
6096 else
6097 ac_cv_path_GREP=$GREP
6098 fi
6099 ;;
6100 esac
6101 fi
6102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6103 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6104 GREP="$ac_cv_path_GREP"
6105
6106
6107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6108 printf %s "checking for egrep... " >&6; }
6109 if test ${ac_cv_path_EGREP+y}
6110 then :
6111 printf %s "(cached) " >&6
6112 else case e in #(
6113 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6114 then ac_cv_path_EGREP="$GREP -E"
6115 else
6116 if test -z "$EGREP"; then
6117 ac_path_EGREP_found=false
6118 # Loop through the user's path and test for each of PROGNAME-LIST
6119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6120 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6121 do
6122 IFS=$as_save_IFS
6123 case $as_dir in #(((
6124 '') as_dir=./ ;;
6125 */) ;;
6126 *) as_dir=$as_dir/ ;;
6127 esac
6128 for ac_prog in egrep
6129 do
6130 for ac_exec_ext in '' $ac_executable_extensions; do
6131 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6132 as_fn_executable_p "$ac_path_EGREP" || continue
6133 # Check for GNU ac_path_EGREP and select it if it is found.
6134 # Check for GNU $ac_path_EGREP
6135 case `"$ac_path_EGREP" --version 2>&1` in #(
6136 *GNU*)
6137 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6138 #(
6139 *)
6140 ac_count=0
6141 printf %s 0123456789 >"conftest.in"
6142 while :
6143 do
6144 cat "conftest.in" "conftest.in" >"conftest.tmp"
6145 mv "conftest.tmp" "conftest.in"
6146 cp "conftest.in" "conftest.nl"
6147 printf "%s\n" 'EGREP' >> "conftest.nl"
6148 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6149 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6150 as_fn_arith $ac_count + 1 && ac_count=$as_val
6151 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6152 # Best one so far, save it but keep looking for a better one
6153 ac_cv_path_EGREP="$ac_path_EGREP"
6154 ac_path_EGREP_max=$ac_count
6155 fi
6156 # 10*(2^10) chars as input seems more than enough
6157 test $ac_count -gt 10 && break
6158 done
6159 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6160 esac
6161
6162 $ac_path_EGREP_found && break 3
6163 done
6164 done
6165 done
6166 IFS=$as_save_IFS
6167 if test -z "$ac_cv_path_EGREP"; then
6168 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6169 fi
6170 else
6171 ac_cv_path_EGREP=$EGREP
6172 fi
6173
6174 fi ;;
6175 esac
6176 fi
6177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6178 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6179 EGREP="$ac_cv_path_EGREP"
6180
6181 EGREP_TRADITIONAL=$EGREP
6182 ac_cv_path_EGREP_TRADITIONAL=$EGREP
6183
6184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6185 printf %s "checking for fgrep... " >&6; }
6186 if test ${ac_cv_path_FGREP+y}
6187 then :
6188 printf %s "(cached) " >&6
6189 else case e in #(
6190 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6191 then ac_cv_path_FGREP="$GREP -F"
6192 else
6193 if test -z "$FGREP"; then
6194 ac_path_FGREP_found=false
6195 # Loop through the user's path and test for each of PROGNAME-LIST
6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6198 do
6199 IFS=$as_save_IFS
6200 case $as_dir in #(((
6201 '') as_dir=./ ;;
6202 */) ;;
6203 *) as_dir=$as_dir/ ;;
6204 esac
6205 for ac_prog in fgrep
6206 do
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
6209 as_fn_executable_p "$ac_path_FGREP" || continue
6210 # Check for GNU ac_path_FGREP and select it if it is found.
6211 # Check for GNU $ac_path_FGREP
6212 case `"$ac_path_FGREP" --version 2>&1` in #(
6213 *GNU*)
6214 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6215 #(
6216 *)
6217 ac_count=0
6218 printf %s 0123456789 >"conftest.in"
6219 while :
6220 do
6221 cat "conftest.in" "conftest.in" >"conftest.tmp"
6222 mv "conftest.tmp" "conftest.in"
6223 cp "conftest.in" "conftest.nl"
6224 printf "%s\n" 'FGREP' >> "conftest.nl"
6225 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6226 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6227 as_fn_arith $ac_count + 1 && ac_count=$as_val
6228 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6229 # Best one so far, save it but keep looking for a better one
6230 ac_cv_path_FGREP="$ac_path_FGREP"
6231 ac_path_FGREP_max=$ac_count
6232 fi
6233 # 10*(2^10) chars as input seems more than enough
6234 test $ac_count -gt 10 && break
6235 done
6236 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6237 esac
6238
6239 $ac_path_FGREP_found && break 3
6240 done
6241 done
6242 done
6243 IFS=$as_save_IFS
6244 if test -z "$ac_cv_path_FGREP"; then
6245 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6246 fi
6247 else
6248 ac_cv_path_FGREP=$FGREP
6249 fi
6250
6251 fi ;;
6252 esac
6253 fi
6254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6255 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6256 FGREP="$ac_cv_path_FGREP"
6257
6258
6259 test -z "$GREP" && GREP=grep
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279 # Check whether --with-gnu-ld was given.
6280 if test ${with_gnu_ld+y}
6281 then :
6282 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6283 else case e in #(
6284 e) with_gnu_ld=no ;;
6285 esac
6286 fi
6287
6288 ac_prog=ld
6289 if test yes = "$GCC"; then
6290 # Check if gcc -print-prog-name=ld gives a path.
6291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6292 printf %s "checking for ld used by $CC... " >&6; }
6293 case $host in
6294 *-*-mingw* | *-*-windows*)
6295 # gcc leaves a trailing carriage return, which upsets mingw
6296 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6297 *)
6298 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6299 esac
6300 case $ac_prog in
6301 # Accept absolute paths.
6302 [\\/]* | ?:[\\/]*)
6303 re_direlt='/[^/][^/]*/\.\./'
6304 # Canonicalize the pathname of ld
6305 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6306 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6307 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6308 done
6309 test -z "$LD" && LD=$ac_prog
6310 ;;
6311 "")
6312 # If it fails, then pretend we aren't using GCC.
6313 ac_prog=ld
6314 ;;
6315 *)
6316 # If it is relative, then search for the first ld in PATH.
6317 with_gnu_ld=unknown
6318 ;;
6319 esac
6320 elif test yes = "$with_gnu_ld"; then
6321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6322 printf %s "checking for GNU ld... " >&6; }
6323 else
6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6325 printf %s "checking for non-GNU ld... " >&6; }
6326 fi
6327 if test ${lt_cv_path_LD+y}
6328 then :
6329 printf %s "(cached) " >&6
6330 else case e in #(
6331 e) if test -z "$LD"; then
6332 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6333 for ac_dir in $PATH; do
6334 IFS=$lt_save_ifs
6335 test -z "$ac_dir" && ac_dir=.
6336 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6337 lt_cv_path_LD=$ac_dir/$ac_prog
6338 # Check to see if the program is GNU ld. I'd rather use --version,
6339 # but apparently some variants of GNU ld only accept -v.
6340 # Break only if it was the GNU/non-GNU ld that we prefer.
6341 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6342 *GNU* | *'with BFD'*)
6343 test no != "$with_gnu_ld" && break
6344 ;;
6345 *)
6346 test yes != "$with_gnu_ld" && break
6347 ;;
6348 esac
6349 fi
6350 done
6351 IFS=$lt_save_ifs
6352 else
6353 lt_cv_path_LD=$LD # Let the user override the test with a path.
6354 fi ;;
6355 esac
6356 fi
6357
6358 LD=$lt_cv_path_LD
6359 if test -n "$LD"; then
6360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6361 printf "%s\n" "$LD" >&6; }
6362 else
6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 printf "%s\n" "no" >&6; }
6365 fi
6366 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6368 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6369 if test ${lt_cv_prog_gnu_ld+y}
6370 then :
6371 printf %s "(cached) " >&6
6372 else case e in #(
6373 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
6374 case `$LD -v 2>&1 </dev/null` in
6375 *GNU* | *'with BFD'*)
6376 lt_cv_prog_gnu_ld=yes
6377 ;;
6378 *)
6379 lt_cv_prog_gnu_ld=no
6380 ;;
6381 esac ;;
6382 esac
6383 fi
6384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6385 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6386 with_gnu_ld=$lt_cv_prog_gnu_ld
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6397 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6398 if test ${lt_cv_path_NM+y}
6399 then :
6400 printf %s "(cached) " >&6
6401 else case e in #(
6402 e) if test -n "$NM"; then
6403 # Let the user override the test.
6404 lt_cv_path_NM=$NM
6405 else
6406 lt_nm_to_check=${ac_tool_prefix}nm
6407 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6408 lt_nm_to_check="$lt_nm_to_check nm"
6409 fi
6410 for lt_tmp_nm in $lt_nm_to_check; do
6411 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6412 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6413 IFS=$lt_save_ifs
6414 test -z "$ac_dir" && ac_dir=.
6415 tmp_nm=$ac_dir/$lt_tmp_nm
6416 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6417 # Check to see if the nm accepts a BSD-compat flag.
6418 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6419 # nm: unknown option "B" ignored
6420 # Tru64's nm complains that /dev/null is an invalid object file
6421 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6422 case $build_os in
6423 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
6424 *) lt_bad_file=/dev/null ;;
6425 esac
6426 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
6427 *$lt_bad_file* | *'Invalid file or object type'*)
6428 lt_cv_path_NM="$tmp_nm -B"
6429 break 2
6430 ;;
6431 *)
6432 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
6433 */dev/null*)
6434 lt_cv_path_NM="$tmp_nm -p"
6435 break 2
6436 ;;
6437 *)
6438 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6439 continue # so that we can try to find one that supports BSD flags
6440 ;;
6441 esac
6442 ;;
6443 esac
6444 fi
6445 done
6446 IFS=$lt_save_ifs
6447 done
6448 : ${lt_cv_path_NM=no}
6449 fi ;;
6450 esac
6451 fi
6452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6453 printf "%s\n" "$lt_cv_path_NM" >&6; }
6454 if test no != "$lt_cv_path_NM"; then
6455 NM=$lt_cv_path_NM
6456 else
6457 # Didn't find any BSD compatible name lister, look for dumpbin.
6458 if test -n "$DUMPBIN"; then :
6459 # Let the user override the test.
6460 else
6461 if test -n "$ac_tool_prefix"; then
6462 for ac_prog in dumpbin "link -dump"
6463 do
6464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6465 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6467 printf %s "checking for $ac_word... " >&6; }
6468 if test ${ac_cv_prog_DUMPBIN+y}
6469 then :
6470 printf %s "(cached) " >&6
6471 else case e in #(
6472 e) if test -n "$DUMPBIN"; then
6473 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6474 else
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH
6477 do
6478 IFS=$as_save_IFS
6479 case $as_dir in #(((
6480 '') as_dir=./ ;;
6481 */) ;;
6482 *) as_dir=$as_dir/ ;;
6483 esac
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6486 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6488 break 2
6489 fi
6490 done
6491 done
6492 IFS=$as_save_IFS
6493
6494 fi ;;
6495 esac
6496 fi
6497 DUMPBIN=$ac_cv_prog_DUMPBIN
6498 if test -n "$DUMPBIN"; then
6499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6500 printf "%s\n" "$DUMPBIN" >&6; }
6501 else
6502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503 printf "%s\n" "no" >&6; }
6504 fi
6505
6506
6507 test -n "$DUMPBIN" && break
6508 done
6509 fi
6510 if test -z "$DUMPBIN"; then
6511 ac_ct_DUMPBIN=$DUMPBIN
6512 for ac_prog in dumpbin "link -dump"
6513 do
6514 # Extract the first word of "$ac_prog", so it can be a program name with args.
6515 set dummy $ac_prog; ac_word=$2
6516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 printf %s "checking for $ac_word... " >&6; }
6518 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6519 then :
6520 printf %s "(cached) " >&6
6521 else case e in #(
6522 e) if test -n "$ac_ct_DUMPBIN"; then
6523 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6524 else
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6527 do
6528 IFS=$as_save_IFS
6529 case $as_dir in #(((
6530 '') as_dir=./ ;;
6531 */) ;;
6532 *) as_dir=$as_dir/ ;;
6533 esac
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6536 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6538 break 2
6539 fi
6540 done
6541 done
6542 IFS=$as_save_IFS
6543
6544 fi ;;
6545 esac
6546 fi
6547 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6548 if test -n "$ac_ct_DUMPBIN"; then
6549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6550 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6551 else
6552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553 printf "%s\n" "no" >&6; }
6554 fi
6555
6556
6557 test -n "$ac_ct_DUMPBIN" && break
6558 done
6559
6560 if test "x$ac_ct_DUMPBIN" = x; then
6561 DUMPBIN=":"
6562 else
6563 case $cross_compiling:$ac_tool_warned in
6564 yes:)
6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6566 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6567 ac_tool_warned=yes ;;
6568 esac
6569 DUMPBIN=$ac_ct_DUMPBIN
6570 fi
6571 fi
6572
6573 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
6574 *COFF*)
6575 DUMPBIN="$DUMPBIN -symbols -headers"
6576 ;;
6577 *)
6578 DUMPBIN=:
6579 ;;
6580 esac
6581 fi
6582
6583 if test : != "$DUMPBIN"; then
6584 NM=$DUMPBIN
6585 fi
6586 fi
6587 test -z "$NM" && NM=nm
6588
6589
6590
6591
6592
6593
6594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6595 printf %s "checking the name lister ($NM) interface... " >&6; }
6596 if test ${lt_cv_nm_interface+y}
6597 then :
6598 printf %s "(cached) " >&6
6599 else case e in #(
6600 e) lt_cv_nm_interface="BSD nm"
6601 echo "int some_variable = 0;" > conftest.$ac_ext
6602 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6603 (eval "$ac_compile" 2>conftest.err)
6604 cat conftest.err >&5
6605 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6606 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6607 cat conftest.err >&5
6608 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6609 cat conftest.out >&5
6610 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6611 lt_cv_nm_interface="MS dumpbin"
6612 fi
6613 rm -f conftest* ;;
6614 esac
6615 fi
6616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6617 printf "%s\n" "$lt_cv_nm_interface" >&6; }
6618
6619 # find the maximum length of command line arguments
6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6621 printf %s "checking the maximum length of command line arguments... " >&6; }
6622 if test ${lt_cv_sys_max_cmd_len+y}
6623 then :
6624 printf %s "(cached) " >&6
6625 else case e in #(
6626 e) i=0
6627 teststring=ABCD
6628
6629 case $build_os in
6630 msdosdjgpp*)
6631 # On DJGPP, this test can blow up pretty badly due to problems in libc
6632 # (any single argument exceeding 2000 bytes causes a buffer overrun
6633 # during glob expansion). Even if it were fixed, the result of this
6634 # check would be larger than it should be.
6635 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6636 ;;
6637
6638 gnu* | ironclad*)
6639 # Under GNU Hurd and Ironclad, this test is not required because there
6640 # is no limit to the length of command line arguments.
6641 # Libtool will interpret -1 as no limit whatsoever
6642 lt_cv_sys_max_cmd_len=-1;
6643 ;;
6644
6645 cygwin* | mingw* | windows* | cegcc*)
6646 # On Win9x/ME, this test blows up -- it succeeds, but takes
6647 # about 5 minutes as the teststring grows exponentially.
6648 # Worse, since 9x/ME are not pre-emptively multitasking,
6649 # you end up with a "frozen" computer, even though with patience
6650 # the test eventually succeeds (with a max line length of 256k).
6651 # Instead, let's just punt: use the minimum linelength reported by
6652 # all of the supported platforms: 8192 (on NT/2K/XP).
6653 lt_cv_sys_max_cmd_len=8192;
6654 ;;
6655
6656 mint*)
6657 # On MiNT this can take a long time and run out of memory.
6658 lt_cv_sys_max_cmd_len=8192;
6659 ;;
6660
6661 amigaos*)
6662 # On AmigaOS with pdksh, this test takes hours, literally.
6663 # So we just punt and use a minimum line length of 8192.
6664 lt_cv_sys_max_cmd_len=8192;
6665 ;;
6666
6667 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
6668 # This has been around since 386BSD, at least. Likely further.
6669 if test -x /sbin/sysctl; then
6670 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6671 elif test -x /usr/sbin/sysctl; then
6672 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6673 else
6674 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6675 fi
6676 # And add a safety zone
6677 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6678 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6679 ;;
6680
6681 interix*)
6682 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6683 lt_cv_sys_max_cmd_len=196608
6684 ;;
6685
6686 os2*)
6687 # The test takes a long time on OS/2.
6688 lt_cv_sys_max_cmd_len=8192
6689 ;;
6690
6691 osf*)
6692 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6693 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6694 # nice to cause kernel panics so lets avoid the loop below.
6695 # First set a reasonable default.
6696 lt_cv_sys_max_cmd_len=16384
6697 #
6698 if test -x /sbin/sysconfig; then
6699 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6700 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6701 esac
6702 fi
6703 ;;
6704 sco3.2v5*)
6705 lt_cv_sys_max_cmd_len=102400
6706 ;;
6707 sysv5* | sco5v6* | sysv4.2uw2*)
6708 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6709 if test -n "$kargmax"; then
6710 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6711 else
6712 lt_cv_sys_max_cmd_len=32768
6713 fi
6714 ;;
6715 *)
6716 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6717 if test -n "$lt_cv_sys_max_cmd_len" && \
6718 test undefined != "$lt_cv_sys_max_cmd_len"; then
6719 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6721 else
6722 # Make teststring a little bigger before we do anything with it.
6723 # a 1K string should be a reasonable start.
6724 for i in 1 2 3 4 5 6 7 8; do
6725 teststring=$teststring$teststring
6726 done
6727 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6728 # If test is not a shell built-in, we'll probably end up computing a
6729 # maximum length that is only half of the actual maximum length, but
6730 # we can't tell.
6731 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6732 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6733 test 17 != "$i" # 1/2 MB should be enough
6734 do
6735 i=`expr $i + 1`
6736 teststring=$teststring$teststring
6737 done
6738 # Only check the string length outside the loop.
6739 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6740 teststring=
6741 # Add a significant safety factor because C++ compilers can tack on
6742 # massive amounts of additional arguments before passing them to the
6743 # linker. It appears as though 1/2 is a usable value.
6744 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6745 fi
6746 ;;
6747 esac
6748 ;;
6749 esac
6750 fi
6751
6752 if test -n "$lt_cv_sys_max_cmd_len"; then
6753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6754 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6755 else
6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6757 printf "%s\n" "none" >&6; }
6758 fi
6759 max_cmd_len=$lt_cv_sys_max_cmd_len
6760
6761
6762
6763
6764
6765
6766 : ${CP="cp -f"}
6767 : ${MV="mv -f"}
6768 : ${RM="rm -f"}
6769
6770 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6771 lt_unset=unset
6772 else
6773 lt_unset=false
6774 fi
6775
6776
6777
6778
6779
6780 # test EBCDIC or ASCII
6781 case `echo X|tr X '\101'` in
6782 A) # ASCII based system
6783 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6784 lt_SP2NL='tr \040 \012'
6785 lt_NL2SP='tr \015\012 \040\040'
6786 ;;
6787 *) # EBCDIC based system
6788 lt_SP2NL='tr \100 \n'
6789 lt_NL2SP='tr \r\n \100\100'
6790 ;;
6791 esac
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6802 printf %s "checking how to convert $build file names to $host format... " >&6; }
6803 if test ${lt_cv_to_host_file_cmd+y}
6804 then :
6805 printf %s "(cached) " >&6
6806 else case e in #(
6807 e) case $host in
6808 *-*-mingw* )
6809 case $build in
6810 *-*-mingw* | *-*-windows* ) # actually msys
6811 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6812 ;;
6813 *-*-cygwin* )
6814 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6815 ;;
6816 * ) # otherwise, assume *nix
6817 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6818 ;;
6819 esac
6820 ;;
6821 *-*-cygwin* )
6822 case $build in
6823 *-*-mingw* | *-*-windows* ) # actually msys
6824 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6825 ;;
6826 *-*-cygwin* )
6827 lt_cv_to_host_file_cmd=func_convert_file_noop
6828 ;;
6829 * ) # otherwise, assume *nix
6830 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6831 ;;
6832 esac
6833 ;;
6834 * ) # unhandled hosts (and "normal" native builds)
6835 lt_cv_to_host_file_cmd=func_convert_file_noop
6836 ;;
6837 esac
6838 ;;
6839 esac
6840 fi
6841
6842 to_host_file_cmd=$lt_cv_to_host_file_cmd
6843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6844 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6845
6846
6847
6848
6849
6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6851 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6852 if test ${lt_cv_to_tool_file_cmd+y}
6853 then :
6854 printf %s "(cached) " >&6
6855 else case e in #(
6856 e) #assume ordinary cross tools, or native build.
6857 lt_cv_to_tool_file_cmd=func_convert_file_noop
6858 case $host in
6859 *-*-mingw* | *-*-windows* )
6860 case $build in
6861 *-*-mingw* | *-*-windows* ) # actually msys
6862 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6863 ;;
6864 esac
6865 ;;
6866 esac
6867 ;;
6868 esac
6869 fi
6870
6871 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6873 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6874
6875
6876
6877
6878
6879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6880 printf %s "checking for $LD option to reload object files... " >&6; }
6881 if test ${lt_cv_ld_reload_flag+y}
6882 then :
6883 printf %s "(cached) " >&6
6884 else case e in #(
6885 e) lt_cv_ld_reload_flag='-r' ;;
6886 esac
6887 fi
6888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6889 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6890 reload_flag=$lt_cv_ld_reload_flag
6891 case $reload_flag in
6892 "" | " "*) ;;
6893 *) reload_flag=" $reload_flag" ;;
6894 esac
6895 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6896 case $host_os in
6897 cygwin* | mingw* | windows* | pw32* | cegcc*)
6898 if test yes != "$GCC"; then
6899 reload_cmds=false
6900 fi
6901 ;;
6902 darwin*)
6903 if test yes = "$GCC"; then
6904 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6905 else
6906 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6907 fi
6908 ;;
6909 esac
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919 # Extract the first word of "file", so it can be a program name with args.
6920 set dummy file; ac_word=$2
6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6922 printf %s "checking for $ac_word... " >&6; }
6923 if test ${ac_cv_prog_FILECMD+y}
6924 then :
6925 printf %s "(cached) " >&6
6926 else case e in #(
6927 e) if test -n "$FILECMD"; then
6928 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6929 else
6930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 for as_dir in $PATH
6932 do
6933 IFS=$as_save_IFS
6934 case $as_dir in #(((
6935 '') as_dir=./ ;;
6936 */) ;;
6937 *) as_dir=$as_dir/ ;;
6938 esac
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6941 ac_cv_prog_FILECMD="file"
6942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6943 break 2
6944 fi
6945 done
6946 done
6947 IFS=$as_save_IFS
6948
6949 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6950 fi ;;
6951 esac
6952 fi
6953 FILECMD=$ac_cv_prog_FILECMD
6954 if test -n "$FILECMD"; then
6955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6956 printf "%s\n" "$FILECMD" >&6; }
6957 else
6958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959 printf "%s\n" "no" >&6; }
6960 fi
6961
6962
6963
6964
6965
6966
6967
6968
6969 if test -n "$ac_tool_prefix"; then
6970 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6971 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6973 printf %s "checking for $ac_word... " >&6; }
6974 if test ${ac_cv_prog_OBJDUMP+y}
6975 then :
6976 printf %s "(cached) " >&6
6977 else case e in #(
6978 e) if test -n "$OBJDUMP"; then
6979 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6980 else
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 for as_dir in $PATH
6983 do
6984 IFS=$as_save_IFS
6985 case $as_dir in #(((
6986 '') as_dir=./ ;;
6987 */) ;;
6988 *) as_dir=$as_dir/ ;;
6989 esac
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6992 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6994 break 2
6995 fi
6996 done
6997 done
6998 IFS=$as_save_IFS
6999
7000 fi ;;
7001 esac
7002 fi
7003 OBJDUMP=$ac_cv_prog_OBJDUMP
7004 if test -n "$OBJDUMP"; then
7005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7006 printf "%s\n" "$OBJDUMP" >&6; }
7007 else
7008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 printf "%s\n" "no" >&6; }
7010 fi
7011
7012
7013 fi
7014 if test -z "$ac_cv_prog_OBJDUMP"; then
7015 ac_ct_OBJDUMP=$OBJDUMP
7016 # Extract the first word of "objdump", so it can be a program name with args.
7017 set dummy objdump; ac_word=$2
7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019 printf %s "checking for $ac_word... " >&6; }
7020 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
7021 then :
7022 printf %s "(cached) " >&6
7023 else case e in #(
7024 e) if test -n "$ac_ct_OBJDUMP"; then
7025 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7026 else
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7029 do
7030 IFS=$as_save_IFS
7031 case $as_dir in #(((
7032 '') as_dir=./ ;;
7033 */) ;;
7034 *) as_dir=$as_dir/ ;;
7035 esac
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7038 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7040 break 2
7041 fi
7042 done
7043 done
7044 IFS=$as_save_IFS
7045
7046 fi ;;
7047 esac
7048 fi
7049 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7050 if test -n "$ac_ct_OBJDUMP"; then
7051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7052 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
7053 else
7054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7055 printf "%s\n" "no" >&6; }
7056 fi
7057
7058 if test "x$ac_ct_OBJDUMP" = x; then
7059 OBJDUMP="false"
7060 else
7061 case $cross_compiling:$ac_tool_warned in
7062 yes:)
7063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7064 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7065 ac_tool_warned=yes ;;
7066 esac
7067 OBJDUMP=$ac_ct_OBJDUMP
7068 fi
7069 else
7070 OBJDUMP="$ac_cv_prog_OBJDUMP"
7071 fi
7072
7073 test -z "$OBJDUMP" && OBJDUMP=objdump
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7084 printf %s "checking how to recognize dependent libraries... " >&6; }
7085 if test ${lt_cv_deplibs_check_method+y}
7086 then :
7087 printf %s "(cached) " >&6
7088 else case e in #(
7089 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
7090 lt_cv_file_magic_test_file=
7091 lt_cv_deplibs_check_method='unknown'
7092 # Need to set the preceding variable on all platforms that support
7093 # interlibrary dependencies.
7094 # 'none' -- dependencies not supported.
7095 # 'unknown' -- same as none, but documents that we really don't know.
7096 # 'pass_all' -- all dependencies passed with no checks.
7097 # 'file_magic [[regex]]' -- check by looking for files in library path
7098 # that responds to the $file_magic_cmd with a given extended regex.
7099 # If you have 'file' or equivalent on your system and you're not sure
7100 # whether 'pass_all' will *always* work, you probably want this one.
7101
7102 case $host_os in
7103 aix[4-9]*)
7104 lt_cv_deplibs_check_method=pass_all
7105 ;;
7106
7107 beos*)
7108 lt_cv_deplibs_check_method=pass_all
7109 ;;
7110
7111 bsdi[45]*)
7112 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7113 lt_cv_file_magic_cmd='$FILECMD -L'
7114 lt_cv_file_magic_test_file=/shlib/libc.so
7115 ;;
7116
7117 cygwin*)
7118 # func_win32_libid is a shell function defined in ltmain.sh
7119 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7120 lt_cv_file_magic_cmd='func_win32_libid'
7121 ;;
7122
7123 mingw* | windows* | pw32*)
7124 # Base MSYS/MinGW do not provide the 'file' command needed by
7125 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7126 # unless we find 'file', for example because we are cross-compiling.
7127 if ( file / ) >/dev/null 2>&1; then
7128 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7129 lt_cv_file_magic_cmd='func_win32_libid'
7130 else
7131 # Keep this pattern in sync with the one in func_win32_libid.
7132 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
7133 lt_cv_file_magic_cmd='$OBJDUMP -f'
7134 fi
7135 ;;
7136
7137 cegcc*)
7138 # use the weaker test based on 'objdump'. See mingw*.
7139 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7140 lt_cv_file_magic_cmd='$OBJDUMP -f'
7141 ;;
7142
7143 darwin* | rhapsody*)
7144 lt_cv_deplibs_check_method=pass_all
7145 ;;
7146
7147 freebsd* | dragonfly* | midnightbsd*)
7148 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7149 case $host_cpu in
7150 i*86 )
7151 # Not sure whether the presence of OpenBSD here was a mistake.
7152 # Let's accept both of them until this is cleared up.
7153 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7154 lt_cv_file_magic_cmd=$FILECMD
7155 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7156 ;;
7157 esac
7158 else
7159 lt_cv_deplibs_check_method=pass_all
7160 fi
7161 ;;
7162
7163 haiku*)
7164 lt_cv_deplibs_check_method=pass_all
7165 ;;
7166
7167 hpux10.20* | hpux11*)
7168 lt_cv_file_magic_cmd=$FILECMD
7169 case $host_cpu in
7170 ia64*)
7171 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7172 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7173 ;;
7174 hppa*64*)
7175 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]'
7176 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7177 ;;
7178 *)
7179 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7180 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7181 ;;
7182 esac
7183 ;;
7184
7185 interix[3-9]*)
7186 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7187 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7188 ;;
7189
7190 irix5* | irix6* | nonstopux*)
7191 case $LD in
7192 *-32|*"-32 ") libmagic=32-bit;;
7193 *-n32|*"-n32 ") libmagic=N32;;
7194 *-64|*"-64 ") libmagic=64-bit;;
7195 *) libmagic=never-match;;
7196 esac
7197 lt_cv_deplibs_check_method=pass_all
7198 ;;
7199
7200 # This must be glibc/ELF.
7201 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7202 lt_cv_deplibs_check_method=pass_all
7203 ;;
7204
7205 *-mlibc)
7206 lt_cv_deplibs_check_method=pass_all
7207 ;;
7208
7209 netbsd* | netbsdelf*-gnu)
7210 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7212 else
7213 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7214 fi
7215 ;;
7216
7217 newos6*)
7218 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7219 lt_cv_file_magic_cmd=$FILECMD
7220 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7221 ;;
7222
7223 *nto* | *qnx*)
7224 lt_cv_deplibs_check_method=pass_all
7225 ;;
7226
7227 openbsd*)
7228 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7229 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7230 else
7231 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7232 fi
7233 ;;
7234
7235 osf3* | osf4* | osf5*)
7236 lt_cv_deplibs_check_method=pass_all
7237 ;;
7238
7239 rdos*)
7240 lt_cv_deplibs_check_method=pass_all
7241 ;;
7242
7243 serenity*)
7244 lt_cv_deplibs_check_method=pass_all
7245 ;;
7246
7247 solaris*)
7248 lt_cv_deplibs_check_method=pass_all
7249 ;;
7250
7251 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7252 lt_cv_deplibs_check_method=pass_all
7253 ;;
7254
7255 sysv4 | sysv4.3*)
7256 case $host_vendor in
7257 motorola)
7258 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]'
7259 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7260 ;;
7261 ncr)
7262 lt_cv_deplibs_check_method=pass_all
7263 ;;
7264 sequent)
7265 lt_cv_file_magic_cmd='/bin/file'
7266 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7267 ;;
7268 sni)
7269 lt_cv_file_magic_cmd='/bin/file'
7270 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7271 lt_cv_file_magic_test_file=/lib/libc.so
7272 ;;
7273 siemens)
7274 lt_cv_deplibs_check_method=pass_all
7275 ;;
7276 pc)
7277 lt_cv_deplibs_check_method=pass_all
7278 ;;
7279 esac
7280 ;;
7281
7282 tpf*)
7283 lt_cv_deplibs_check_method=pass_all
7284 ;;
7285 os2*)
7286 lt_cv_deplibs_check_method=pass_all
7287 ;;
7288 esac
7289 ;;
7290 esac
7291 fi
7292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7293 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
7294
7295 file_magic_glob=
7296 want_nocaseglob=no
7297 if test "$build" = "$host"; then
7298 case $host_os in
7299 mingw* | windows* | pw32*)
7300 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7301 want_nocaseglob=yes
7302 else
7303 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7304 fi
7305 ;;
7306 esac
7307 fi
7308
7309 file_magic_cmd=$lt_cv_file_magic_cmd
7310 deplibs_check_method=$lt_cv_deplibs_check_method
7311 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334 if test -n "$ac_tool_prefix"; then
7335 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7336 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7338 printf %s "checking for $ac_word... " >&6; }
7339 if test ${ac_cv_prog_DLLTOOL+y}
7340 then :
7341 printf %s "(cached) " >&6
7342 else case e in #(
7343 e) if test -n "$DLLTOOL"; then
7344 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7345 else
7346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347 for as_dir in $PATH
7348 do
7349 IFS=$as_save_IFS
7350 case $as_dir in #(((
7351 '') as_dir=./ ;;
7352 */) ;;
7353 *) as_dir=$as_dir/ ;;
7354 esac
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7357 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7359 break 2
7360 fi
7361 done
7362 done
7363 IFS=$as_save_IFS
7364
7365 fi ;;
7366 esac
7367 fi
7368 DLLTOOL=$ac_cv_prog_DLLTOOL
7369 if test -n "$DLLTOOL"; then
7370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7371 printf "%s\n" "$DLLTOOL" >&6; }
7372 else
7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374 printf "%s\n" "no" >&6; }
7375 fi
7376
7377
7378 fi
7379 if test -z "$ac_cv_prog_DLLTOOL"; then
7380 ac_ct_DLLTOOL=$DLLTOOL
7381 # Extract the first word of "dlltool", so it can be a program name with args.
7382 set dummy dlltool; ac_word=$2
7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7384 printf %s "checking for $ac_word... " >&6; }
7385 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7386 then :
7387 printf %s "(cached) " >&6
7388 else case e in #(
7389 e) if test -n "$ac_ct_DLLTOOL"; then
7390 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7391 else
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 for as_dir in $PATH
7394 do
7395 IFS=$as_save_IFS
7396 case $as_dir in #(((
7397 '') as_dir=./ ;;
7398 */) ;;
7399 *) as_dir=$as_dir/ ;;
7400 esac
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7403 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7405 break 2
7406 fi
7407 done
7408 done
7409 IFS=$as_save_IFS
7410
7411 fi ;;
7412 esac
7413 fi
7414 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7415 if test -n "$ac_ct_DLLTOOL"; then
7416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7417 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7418 else
7419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 printf "%s\n" "no" >&6; }
7421 fi
7422
7423 if test "x$ac_ct_DLLTOOL" = x; then
7424 DLLTOOL="false"
7425 else
7426 case $cross_compiling:$ac_tool_warned in
7427 yes:)
7428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7429 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430 ac_tool_warned=yes ;;
7431 esac
7432 DLLTOOL=$ac_ct_DLLTOOL
7433 fi
7434 else
7435 DLLTOOL="$ac_cv_prog_DLLTOOL"
7436 fi
7437
7438 test -z "$DLLTOOL" && DLLTOOL=dlltool
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7450 printf %s "checking how to associate runtime and link libraries... " >&6; }
7451 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7452 then :
7453 printf %s "(cached) " >&6
7454 else case e in #(
7455 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
7456
7457 case $host_os in
7458 cygwin* | mingw* | windows* | pw32* | cegcc*)
7459 # two different shell functions defined in ltmain.sh;
7460 # decide which one to use based on capabilities of $DLLTOOL
7461 case `$DLLTOOL --help 2>&1` in
7462 *--identify-strict*)
7463 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7464 ;;
7465 *)
7466 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7467 ;;
7468 esac
7469 ;;
7470 *)
7471 # fallback: assume linklib IS sharedlib
7472 lt_cv_sharedlib_from_linklib_cmd=$ECHO
7473 ;;
7474 esac
7475 ;;
7476 esac
7477 fi
7478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7479 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7480 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7481 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7482
7483
7484
7485
7486
7487
7488
7489 if test -n "$ac_tool_prefix"; then
7490 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7491 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493 printf %s "checking for $ac_word... " >&6; }
7494 if test ${ac_cv_prog_RANLIB+y}
7495 then :
7496 printf %s "(cached) " >&6
7497 else case e in #(
7498 e) if test -n "$RANLIB"; then
7499 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7500 else
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7503 do
7504 IFS=$as_save_IFS
7505 case $as_dir in #(((
7506 '') as_dir=./ ;;
7507 */) ;;
7508 *) as_dir=$as_dir/ ;;
7509 esac
7510 for ac_exec_ext in '' $ac_executable_extensions; do
7511 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7512 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7513 printf "%s\n" "$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 esac
7522 fi
7523 RANLIB=$ac_cv_prog_RANLIB
7524 if test -n "$RANLIB"; then
7525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7526 printf "%s\n" "$RANLIB" >&6; }
7527 else
7528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529 printf "%s\n" "no" >&6; }
7530 fi
7531
7532
7533 fi
7534 if test -z "$ac_cv_prog_RANLIB"; then
7535 ac_ct_RANLIB=$RANLIB
7536 # Extract the first word of "ranlib", so it can be a program name with args.
7537 set dummy ranlib; ac_word=$2
7538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539 printf %s "checking for $ac_word... " >&6; }
7540 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7541 then :
7542 printf %s "(cached) " >&6
7543 else case e in #(
7544 e) if test -n "$ac_ct_RANLIB"; then
7545 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550 IFS=$as_save_IFS
7551 case $as_dir in #(((
7552 '') as_dir=./ ;;
7553 */) ;;
7554 *) as_dir=$as_dir/ ;;
7555 esac
7556 for ac_exec_ext in '' $ac_executable_extensions; do
7557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7558 ac_cv_prog_ac_ct_RANLIB="ranlib"
7559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7560 break 2
7561 fi
7562 done
7563 done
7564 IFS=$as_save_IFS
7565
7566 fi ;;
7567 esac
7568 fi
7569 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7570 if test -n "$ac_ct_RANLIB"; then
7571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7572 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7573 else
7574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7575 printf "%s\n" "no" >&6; }
7576 fi
7577
7578 if test "x$ac_ct_RANLIB" = x; then
7579 RANLIB=":"
7580 else
7581 case $cross_compiling:$ac_tool_warned in
7582 yes:)
7583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7584 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7585 ac_tool_warned=yes ;;
7586 esac
7587 RANLIB=$ac_ct_RANLIB
7588 fi
7589 else
7590 RANLIB="$ac_cv_prog_RANLIB"
7591 fi
7592
7593 if test -n "$ac_tool_prefix"; then
7594 for ac_prog in ar
7595 do
7596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 printf %s "checking for $ac_word... " >&6; }
7600 if test ${ac_cv_prog_AR+y}
7601 then :
7602 printf %s "(cached) " >&6
7603 else case e in #(
7604 e) if test -n "$AR"; then
7605 ac_cv_prog_AR="$AR" # Let the user override the test.
7606 else
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH
7609 do
7610 IFS=$as_save_IFS
7611 case $as_dir in #(((
7612 '') as_dir=./ ;;
7613 */) ;;
7614 *) as_dir=$as_dir/ ;;
7615 esac
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7618 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7620 break 2
7621 fi
7622 done
7623 done
7624 IFS=$as_save_IFS
7625
7626 fi ;;
7627 esac
7628 fi
7629 AR=$ac_cv_prog_AR
7630 if test -n "$AR"; then
7631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7632 printf "%s\n" "$AR" >&6; }
7633 else
7634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635 printf "%s\n" "no" >&6; }
7636 fi
7637
7638
7639 test -n "$AR" && break
7640 done
7641 fi
7642 if test -z "$AR"; then
7643 ac_ct_AR=$AR
7644 for ac_prog in ar
7645 do
7646 # Extract the first word of "$ac_prog", so it can be a program name with args.
7647 set dummy $ac_prog; ac_word=$2
7648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649 printf %s "checking for $ac_word... " >&6; }
7650 if test ${ac_cv_prog_ac_ct_AR+y}
7651 then :
7652 printf %s "(cached) " >&6
7653 else case e in #(
7654 e) if test -n "$ac_ct_AR"; then
7655 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7656 else
7657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 for as_dir in $PATH
7659 do
7660 IFS=$as_save_IFS
7661 case $as_dir in #(((
7662 '') as_dir=./ ;;
7663 */) ;;
7664 *) as_dir=$as_dir/ ;;
7665 esac
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7668 ac_cv_prog_ac_ct_AR="$ac_prog"
7669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7670 break 2
7671 fi
7672 done
7673 done
7674 IFS=$as_save_IFS
7675
7676 fi ;;
7677 esac
7678 fi
7679 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7680 if test -n "$ac_ct_AR"; then
7681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7682 printf "%s\n" "$ac_ct_AR" >&6; }
7683 else
7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 printf "%s\n" "no" >&6; }
7686 fi
7687
7688
7689 test -n "$ac_ct_AR" && break
7690 done
7691
7692 if test "x$ac_ct_AR" = x; then
7693 AR="false"
7694 else
7695 case $cross_compiling:$ac_tool_warned in
7696 yes:)
7697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7698 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7699 ac_tool_warned=yes ;;
7700 esac
7701 AR=$ac_ct_AR
7702 fi
7703 fi
7704
7705 : ${AR=ar}
7706
7707
7708
7709
7710
7711
7712 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7713 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7714 # higher priority because that's what people were doing historically (setting
7715 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7716 # variable obsoleted/removed.
7717
7718 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7719 lt_ar_flags=$AR_FLAGS
7720
7721
7722
7723
7724
7725
7726 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7727 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7728
7729
7730
7731
7732
7733
7734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7735 printf %s "checking for archiver @FILE support... " >&6; }
7736 if test ${lt_cv_ar_at_file+y}
7737 then :
7738 printf %s "(cached) " >&6
7739 else case e in #(
7740 e) lt_cv_ar_at_file=no
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7743
7744 int
7745 main (void)
7746 {
7747
7748 ;
7749 return 0;
7750 }
7751 _ACEOF
7752 if ac_fn_c_try_compile "$LINENO"
7753 then :
7754 echo conftest.$ac_objext > conftest.lst
7755 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7757 (eval $lt_ar_try) 2>&5
7758 ac_status=$?
7759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7760 test $ac_status = 0; }
7761 if test 0 -eq "$ac_status"; then
7762 # Ensure the archiver fails upon bogus file names.
7763 rm -f conftest.$ac_objext libconftest.a
7764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7765 (eval $lt_ar_try) 2>&5
7766 ac_status=$?
7767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7768 test $ac_status = 0; }
7769 if test 0 -ne "$ac_status"; then
7770 lt_cv_ar_at_file=@
7771 fi
7772 fi
7773 rm -f conftest.* libconftest.a
7774
7775 fi
7776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7777 ;;
7778 esac
7779 fi
7780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7781 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7782
7783 if test no = "$lt_cv_ar_at_file"; then
7784 archiver_list_spec=
7785 else
7786 archiver_list_spec=$lt_cv_ar_at_file
7787 fi
7788
7789
7790
7791
7792
7793
7794
7795 if test -n "$ac_tool_prefix"; then
7796 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7797 set dummy ${ac_tool_prefix}strip; ac_word=$2
7798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7799 printf %s "checking for $ac_word... " >&6; }
7800 if test ${ac_cv_prog_STRIP+y}
7801 then :
7802 printf %s "(cached) " >&6
7803 else case e in #(
7804 e) if test -n "$STRIP"; then
7805 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7806 else
7807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 for as_dir in $PATH
7809 do
7810 IFS=$as_save_IFS
7811 case $as_dir in #(((
7812 '') as_dir=./ ;;
7813 */) ;;
7814 *) as_dir=$as_dir/ ;;
7815 esac
7816 for ac_exec_ext in '' $ac_executable_extensions; do
7817 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7818 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7820 break 2
7821 fi
7822 done
7823 done
7824 IFS=$as_save_IFS
7825
7826 fi ;;
7827 esac
7828 fi
7829 STRIP=$ac_cv_prog_STRIP
7830 if test -n "$STRIP"; then
7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7832 printf "%s\n" "$STRIP" >&6; }
7833 else
7834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835 printf "%s\n" "no" >&6; }
7836 fi
7837
7838
7839 fi
7840 if test -z "$ac_cv_prog_STRIP"; then
7841 ac_ct_STRIP=$STRIP
7842 # Extract the first word of "strip", so it can be a program name with args.
7843 set dummy strip; ac_word=$2
7844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845 printf %s "checking for $ac_word... " >&6; }
7846 if test ${ac_cv_prog_ac_ct_STRIP+y}
7847 then :
7848 printf %s "(cached) " >&6
7849 else case e in #(
7850 e) if test -n "$ac_ct_STRIP"; then
7851 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7852 else
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 for as_dir in $PATH
7855 do
7856 IFS=$as_save_IFS
7857 case $as_dir in #(((
7858 '') as_dir=./ ;;
7859 */) ;;
7860 *) as_dir=$as_dir/ ;;
7861 esac
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7864 ac_cv_prog_ac_ct_STRIP="strip"
7865 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7866 break 2
7867 fi
7868 done
7869 done
7870 IFS=$as_save_IFS
7871
7872 fi ;;
7873 esac
7874 fi
7875 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7876 if test -n "$ac_ct_STRIP"; then
7877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7878 printf "%s\n" "$ac_ct_STRIP" >&6; }
7879 else
7880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7881 printf "%s\n" "no" >&6; }
7882 fi
7883
7884 if test "x$ac_ct_STRIP" = x; then
7885 STRIP=":"
7886 else
7887 case $cross_compiling:$ac_tool_warned in
7888 yes:)
7889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7890 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7891 ac_tool_warned=yes ;;
7892 esac
7893 STRIP=$ac_ct_STRIP
7894 fi
7895 else
7896 STRIP="$ac_cv_prog_STRIP"
7897 fi
7898
7899 test -z "$STRIP" && STRIP=:
7900
7901
7902
7903
7904
7905
7906
7907 test -z "$RANLIB" && RANLIB=:
7908
7909
7910
7911
7912
7913
7914 # Determine commands to create old-style static archives.
7915 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7916 old_postinstall_cmds='chmod 644 $oldlib'
7917 old_postuninstall_cmds=
7918
7919 if test -n "$RANLIB"; then
7920 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7921 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7922 fi
7923
7924 case $host_os in
7925 darwin*)
7926 lock_old_archive_extraction=yes ;;
7927 *)
7928 lock_old_archive_extraction=no ;;
7929 esac
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969 # If no C compiler was specified, use CC.
7970 LTCC=${LTCC-"$CC"}
7971
7972 # If no C compiler flags were specified, use CFLAGS.
7973 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7974
7975 # Allow CC to be a program name with arguments.
7976 compiler=$CC
7977
7978
7979 # Check for command to grab the raw symbol name followed by C symbol from nm.
7980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7981 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7982 if test ${lt_cv_sys_global_symbol_pipe+y}
7983 then :
7984 printf %s "(cached) " >&6
7985 else case e in #(
7986 e)
7987 # These are sane defaults that work on at least a few old systems.
7988 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7989
7990 # Character class describing NM global symbol codes.
7991 symcode='[BCDEGRST]'
7992
7993 # Regexp to match symbols that can be accessed directly from C.
7994 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7995
7996 # Define system-specific variables.
7997 case $host_os in
7998 aix*)
7999 symcode='[BCDT]'
8000 ;;
8001 cygwin* | mingw* | windows* | pw32* | cegcc*)
8002 symcode='[ABCDGISTW]'
8003 ;;
8004 hpux*)
8005 if test ia64 = "$host_cpu"; then
8006 symcode='[ABCDEGRST]'
8007 fi
8008 ;;
8009 irix* | nonstopux*)
8010 symcode='[BCDEGRST]'
8011 ;;
8012 osf*)
8013 symcode='[BCDEGQRST]'
8014 ;;
8015 solaris*)
8016 symcode='[BCDRT]'
8017 ;;
8018 sco3.2v5*)
8019 symcode='[DT]'
8020 ;;
8021 sysv4.2uw2*)
8022 symcode='[DT]'
8023 ;;
8024 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8025 symcode='[ABDT]'
8026 ;;
8027 sysv4)
8028 symcode='[DFNSTU]'
8029 ;;
8030 esac
8031
8032 # If we're using GNU nm, then use its standard symbol codes.
8033 case `$NM -V 2>&1` in
8034 *GNU* | *'with BFD'*)
8035 symcode='[ABCDGIRSTW]' ;;
8036 esac
8037
8038 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8039 # Gets list of data symbols to import.
8040 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
8041 # Adjust the below global symbol transforms to fixup imported variables.
8042 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8043 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
8044 lt_c_name_lib_hook="\
8045 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
8046 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
8047 else
8048 # Disable hooks by default.
8049 lt_cv_sys_global_symbol_to_import=
8050 lt_cdecl_hook=
8051 lt_c_name_hook=
8052 lt_c_name_lib_hook=
8053 fi
8054
8055 # Transform an extracted symbol line into a proper C declaration.
8056 # Some systems (esp. on ia64) link data and code symbols differently,
8057 # so use this general approach.
8058 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
8059 $lt_cdecl_hook\
8060 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8061 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8062
8063 # Transform an extracted symbol line into symbol name and symbol address
8064 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
8065 $lt_c_name_hook\
8066 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8067 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
8068
8069 # Transform an extracted symbol line into symbol name with lib prefix and
8070 # symbol address.
8071 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
8072 $lt_c_name_lib_hook\
8073 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
8074 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
8075 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
8076
8077 # Handle CRLF in mingw tool chain
8078 opt_cr=
8079 case $build_os in
8080 mingw* | windows*)
8081 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8082 ;;
8083 esac
8084
8085 # Try without a prefix underscore, then with it.
8086 for ac_symprfx in "" "_"; do
8087
8088 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8089 symxfrm="\\1 $ac_symprfx\\2 \\2"
8090
8091 # Write the raw and C identifiers.
8092 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8093 # Fake it for dumpbin and say T for any non-static function,
8094 # D for any global variable and I for any imported variable.
8095 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
8096 # which start with @ or ?.
8097 lt_cv_sys_global_symbol_pipe="$AWK '"\
8098 " {last_section=section; section=\$ 3};"\
8099 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8100 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8101 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8102 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8103 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8104 " \$ 0!~/External *\|/{next};"\
8105 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8106 " {if(hide[section]) next};"\
8107 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8108 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8109 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8110 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8111 " ' prfx=^$ac_symprfx"
8112 else
8113 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8114 fi
8115 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
8116
8117 # Check to see that the pipe works correctly.
8118 pipe_works=no
8119
8120 rm -f conftest*
8121 cat > conftest.$ac_ext <<_LT_EOF
8122 #ifdef __cplusplus
8123 extern "C" {
8124 #endif
8125 char nm_test_var;
8126 void nm_test_func(void);
8127 void nm_test_func(void){}
8128 #ifdef __cplusplus
8129 }
8130 #endif
8131 int main(void){nm_test_var='a';nm_test_func();return(0);}
8132 _LT_EOF
8133
8134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8135 (eval $ac_compile) 2>&5
8136 ac_status=$?
8137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8138 test $ac_status = 0; }; then
8139 # Now try to grab the symbols.
8140 nlist=conftest.nm
8141 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
8142 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
8143 # Try sorting and uniquifying the output.
8144 if sort "$nlist" | uniq > "$nlist"T; then
8145 mv -f "$nlist"T "$nlist"
8146 else
8147 rm -f "$nlist"T
8148 fi
8149
8150 # Make sure that we snagged all the symbols we need.
8151 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8152 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8153 cat <<_LT_EOF > conftest.$ac_ext
8154 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8155 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8156 /* DATA imports from DLLs on WIN32 can't be const, because runtime
8157 relocations are performed -- see ld's documentation on pseudo-relocs. */
8158 # define LT_DLSYM_CONST
8159 #elif defined __osf__
8160 /* This system does not cope well with relocations in const data. */
8161 # define LT_DLSYM_CONST
8162 #else
8163 # define LT_DLSYM_CONST const
8164 #endif
8165
8166 #ifdef __cplusplus
8167 extern "C" {
8168 #endif
8169
8170 _LT_EOF
8171 # Now generate the symbol file.
8172 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8173
8174 cat <<_LT_EOF >> conftest.$ac_ext
8175
8176 /* The mapping between symbol names and symbols. */
8177 LT_DLSYM_CONST struct {
8178 const char *name;
8179 void *address;
8180 }
8181 lt__PROGRAM__LTX_preloaded_symbols[] =
8182 {
8183 { "@PROGRAM@", (void *) 0 },
8184 _LT_EOF
8185 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8186 cat <<\_LT_EOF >> conftest.$ac_ext
8187 {0, (void *) 0}
8188 };
8189
8190 /* This works around a problem in FreeBSD linker */
8191 #ifdef FREEBSD_WORKAROUND
8192 static const void *lt_preloaded_setup() {
8193 return lt__PROGRAM__LTX_preloaded_symbols;
8194 }
8195 #endif
8196
8197 #ifdef __cplusplus
8198 }
8199 #endif
8200 _LT_EOF
8201 # Now try linking the two files.
8202 mv conftest.$ac_objext conftstm.$ac_objext
8203 lt_globsym_save_LIBS=$LIBS
8204 lt_globsym_save_CFLAGS=$CFLAGS
8205 LIBS=conftstm.$ac_objext
8206 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8207 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8208 (eval $ac_link) 2>&5
8209 ac_status=$?
8210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8211 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8212 pipe_works=yes
8213 fi
8214 LIBS=$lt_globsym_save_LIBS
8215 CFLAGS=$lt_globsym_save_CFLAGS
8216 else
8217 echo "cannot find nm_test_func in $nlist" >&5
8218 fi
8219 else
8220 echo "cannot find nm_test_var in $nlist" >&5
8221 fi
8222 else
8223 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8224 fi
8225 else
8226 echo "$progname: failed program was:" >&5
8227 cat conftest.$ac_ext >&5
8228 fi
8229 rm -rf conftest* conftst*
8230
8231 # Do not use the global_symbol_pipe unless it works.
8232 if test yes = "$pipe_works"; then
8233 break
8234 else
8235 lt_cv_sys_global_symbol_pipe=
8236 fi
8237 done
8238 ;;
8239 esac
8240 fi
8241
8242 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8243 lt_cv_sys_global_symbol_to_cdecl=
8244 fi
8245 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8247 printf "%s\n" "failed" >&6; }
8248 else
8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8250 printf "%s\n" "ok" >&6; }
8251 fi
8252
8253 # Response file support.
8254 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8255 nm_file_list_spec='@'
8256 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8257 nm_file_list_spec='@'
8258 fi
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8297 printf %s "checking for sysroot... " >&6; }
8298
8299 # Check whether --with-sysroot was given.
8300 if test ${with_sysroot+y}
8301 then :
8302 withval=$with_sysroot;
8303 else case e in #(
8304 e) with_sysroot=no ;;
8305 esac
8306 fi
8307
8308
8309 lt_sysroot=
8310 case $with_sysroot in #(
8311 yes)
8312 if test yes = "$GCC"; then
8313 # Trim trailing / since we'll always append absolute paths and we want
8314 # to avoid //, if only for less confusing output for the user.
8315 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
8316 fi
8317 ;; #(
8318 /*)
8319 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
8320 ;; #(
8321 no|'')
8322 ;; #(
8323 *)
8324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8325 printf "%s\n" "$with_sysroot" >&6; }
8326 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8327 ;;
8328 esac
8329
8330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8331 printf "%s\n" "${lt_sysroot:-no}" >&6; }
8332
8333
8334
8335
8336
8337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8338 printf %s "checking for a working dd... " >&6; }
8339 if test ${ac_cv_path_lt_DD+y}
8340 then :
8341 printf %s "(cached) " >&6
8342 else case e in #(
8343 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8344 cat conftest.i conftest.i >conftest2.i
8345 : ${lt_DD:=$DD}
8346 if test -z "$lt_DD"; then
8347 ac_path_lt_DD_found=false
8348 # Loop through the user's path and test for each of PROGNAME-LIST
8349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350 for as_dir in $PATH
8351 do
8352 IFS=$as_save_IFS
8353 case $as_dir in #(((
8354 '') as_dir=./ ;;
8355 */) ;;
8356 *) as_dir=$as_dir/ ;;
8357 esac
8358 for ac_prog in dd
8359 do
8360 for ac_exec_ext in '' $ac_executable_extensions; do
8361 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8362 as_fn_executable_p "$ac_path_lt_DD" || continue
8363 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8364 cmp -s conftest.i conftest.out \
8365 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8366 fi
8367 $ac_path_lt_DD_found && break 3
8368 done
8369 done
8370 done
8371 IFS=$as_save_IFS
8372 if test -z "$ac_cv_path_lt_DD"; then
8373 :
8374 fi
8375 else
8376 ac_cv_path_lt_DD=$lt_DD
8377 fi
8378
8379 rm -f conftest.i conftest2.i conftest.out ;;
8380 esac
8381 fi
8382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8383 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8384
8385
8386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8387 printf %s "checking how to truncate binary pipes... " >&6; }
8388 if test ${lt_cv_truncate_bin+y}
8389 then :
8390 printf %s "(cached) " >&6
8391 else case e in #(
8392 e) printf 0123456789abcdef0123456789abcdef >conftest.i
8393 cat conftest.i conftest.i >conftest2.i
8394 lt_cv_truncate_bin=
8395 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8396 cmp -s conftest.i conftest.out \
8397 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8398 fi
8399 rm -f conftest.i conftest2.i conftest.out
8400 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
8401 esac
8402 fi
8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8404 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8405
8406
8407
8408
8409
8410
8411
8412 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
8413 func_cc_basename ()
8414 {
8415 for cc_temp in $*""; do
8416 case $cc_temp in
8417 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8418 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8419 \-*) ;;
8420 *) break;;
8421 esac
8422 done
8423 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8424 }
8425
8426 # Check whether --enable-libtool-lock was given.
8427 if test ${enable_libtool_lock+y}
8428 then :
8429 enableval=$enable_libtool_lock;
8430 fi
8431
8432 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8433
8434 # Some flags need to be propagated to the compiler or linker for good
8435 # libtool support.
8436 case $host in
8437 ia64-*-hpux*)
8438 # Find out what ABI is being produced by ac_compile, and set mode
8439 # options accordingly.
8440 echo 'int i;' > conftest.$ac_ext
8441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8442 (eval $ac_compile) 2>&5
8443 ac_status=$?
8444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8445 test $ac_status = 0; }; then
8446 case `$FILECMD conftest.$ac_objext` in
8447 *ELF-32*)
8448 HPUX_IA64_MODE=32
8449 ;;
8450 *ELF-64*)
8451 HPUX_IA64_MODE=64
8452 ;;
8453 esac
8454 fi
8455 rm -rf conftest*
8456 ;;
8457 *-*-irix6*)
8458 # Find out what ABI is being produced by ac_compile, and set linker
8459 # options accordingly.
8460 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8462 (eval $ac_compile) 2>&5
8463 ac_status=$?
8464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8465 test $ac_status = 0; }; then
8466 if test yes = "$lt_cv_prog_gnu_ld"; then
8467 case `$FILECMD conftest.$ac_objext` in
8468 *32-bit*)
8469 LD="${LD-ld} -melf32bsmip"
8470 ;;
8471 *N32*)
8472 LD="${LD-ld} -melf32bmipn32"
8473 ;;
8474 *64-bit*)
8475 LD="${LD-ld} -melf64bmip"
8476 ;;
8477 esac
8478 else
8479 case `$FILECMD conftest.$ac_objext` in
8480 *32-bit*)
8481 LD="${LD-ld} -32"
8482 ;;
8483 *N32*)
8484 LD="${LD-ld} -n32"
8485 ;;
8486 *64-bit*)
8487 LD="${LD-ld} -64"
8488 ;;
8489 esac
8490 fi
8491 fi
8492 rm -rf conftest*
8493 ;;
8494
8495 mips64*-*linux*)
8496 # Find out what ABI is being produced by ac_compile, and set linker
8497 # options accordingly.
8498 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8500 (eval $ac_compile) 2>&5
8501 ac_status=$?
8502 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8503 test $ac_status = 0; }; then
8504 emul=elf
8505 case `$FILECMD conftest.$ac_objext` in
8506 *32-bit*)
8507 emul="${emul}32"
8508 ;;
8509 *64-bit*)
8510 emul="${emul}64"
8511 ;;
8512 esac
8513 case `$FILECMD conftest.$ac_objext` in
8514 *MSB*)
8515 emul="${emul}btsmip"
8516 ;;
8517 *LSB*)
8518 emul="${emul}ltsmip"
8519 ;;
8520 esac
8521 case `$FILECMD conftest.$ac_objext` in
8522 *N32*)
8523 emul="${emul}n32"
8524 ;;
8525 esac
8526 LD="${LD-ld} -m $emul"
8527 fi
8528 rm -rf conftest*
8529 ;;
8530
8531 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8532 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
8533 # Find out what ABI is being produced by ac_compile, and set linker
8534 # options accordingly. Note that the listed cases only cover the
8535 # situations where additional linker options are needed (such as when
8536 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8537 # vice versa); the common cases where no linker options are needed do
8538 # not appear in the list.
8539 echo 'int i;' > conftest.$ac_ext
8540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8541 (eval $ac_compile) 2>&5
8542 ac_status=$?
8543 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8544 test $ac_status = 0; }; then
8545 case `$FILECMD conftest.o` in
8546 *32-bit*)
8547 case $host in
8548 x86_64-*kfreebsd*-gnu)
8549 LD="${LD-ld} -m elf_i386_fbsd"
8550 ;;
8551 x86_64-*linux*|x86_64-gnu*)
8552 case `$FILECMD conftest.o` in
8553 *x86-64*)
8554 LD="${LD-ld} -m elf32_x86_64"
8555 ;;
8556 *)
8557 LD="${LD-ld} -m elf_i386"
8558 ;;
8559 esac
8560 ;;
8561 powerpc64le-*linux*)
8562 LD="${LD-ld} -m elf32lppclinux"
8563 ;;
8564 powerpc64-*linux*)
8565 LD="${LD-ld} -m elf32ppclinux"
8566 ;;
8567 s390x-*linux*)
8568 LD="${LD-ld} -m elf_s390"
8569 ;;
8570 sparc64-*linux*)
8571 LD="${LD-ld} -m elf32_sparc"
8572 ;;
8573 esac
8574 ;;
8575 *64-bit*)
8576 case $host in
8577 x86_64-*kfreebsd*-gnu)
8578 LD="${LD-ld} -m elf_x86_64_fbsd"
8579 ;;
8580 x86_64-*linux*|x86_64-gnu*)
8581 LD="${LD-ld} -m elf_x86_64"
8582 ;;
8583 powerpcle-*linux*)
8584 LD="${LD-ld} -m elf64lppc"
8585 ;;
8586 powerpc-*linux*)
8587 LD="${LD-ld} -m elf64ppc"
8588 ;;
8589 s390*-*linux*|s390*-*tpf*)
8590 LD="${LD-ld} -m elf64_s390"
8591 ;;
8592 sparc*-*linux*)
8593 LD="${LD-ld} -m elf64_sparc"
8594 ;;
8595 esac
8596 ;;
8597 esac
8598 fi
8599 rm -rf conftest*
8600 ;;
8601
8602 *-*-sco3.2v5*)
8603 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8604 SAVE_CFLAGS=$CFLAGS
8605 CFLAGS="$CFLAGS -belf"
8606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8607 printf %s "checking whether the C compiler needs -belf... " >&6; }
8608 if test ${lt_cv_cc_needs_belf+y}
8609 then :
8610 printf %s "(cached) " >&6
8611 else case e in #(
8612 e) ac_ext=c
8613 ac_cpp='$CPP $CPPFLAGS'
8614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8617
8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h. */
8620
8621 int
8622 main (void)
8623 {
8624
8625 ;
8626 return 0;
8627 }
8628 _ACEOF
8629 if ac_fn_c_try_link "$LINENO"
8630 then :
8631 lt_cv_cc_needs_belf=yes
8632 else case e in #(
8633 e) lt_cv_cc_needs_belf=no ;;
8634 esac
8635 fi
8636 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8637 conftest$ac_exeext conftest.$ac_ext
8638 ac_ext=c
8639 ac_cpp='$CPP $CPPFLAGS'
8640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8643 ;;
8644 esac
8645 fi
8646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8647 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8648 if test yes != "$lt_cv_cc_needs_belf"; then
8649 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8650 CFLAGS=$SAVE_CFLAGS
8651 fi
8652 ;;
8653 *-*solaris*)
8654 # Find out what ABI is being produced by ac_compile, and set linker
8655 # options accordingly.
8656 echo 'int i;' > conftest.$ac_ext
8657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8658 (eval $ac_compile) 2>&5
8659 ac_status=$?
8660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8661 test $ac_status = 0; }; then
8662 case `$FILECMD conftest.o` in
8663 *64-bit*)
8664 case $lt_cv_prog_gnu_ld in
8665 yes*)
8666 case $host in
8667 i?86-*-solaris*|x86_64-*-solaris*)
8668 LD="${LD-ld} -m elf_x86_64"
8669 ;;
8670 sparc*-*-solaris*)
8671 LD="${LD-ld} -m elf64_sparc"
8672 ;;
8673 esac
8674 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8675 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8676 LD=${LD-ld}_sol2
8677 fi
8678 ;;
8679 *)
8680 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8681 LD="${LD-ld} -64"
8682 fi
8683 ;;
8684 esac
8685 ;;
8686 esac
8687 fi
8688 rm -rf conftest*
8689 ;;
8690 esac
8691
8692 need_locks=$enable_libtool_lock
8693
8694 if test -n "$ac_tool_prefix"; then
8695 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8696 set dummy ${ac_tool_prefix}mt; ac_word=$2
8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8698 printf %s "checking for $ac_word... " >&6; }
8699 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8700 then :
8701 printf %s "(cached) " >&6
8702 else case e in #(
8703 e) if test -n "$MANIFEST_TOOL"; then
8704 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8705 else
8706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8707 for as_dir in $PATH
8708 do
8709 IFS=$as_save_IFS
8710 case $as_dir in #(((
8711 '') as_dir=./ ;;
8712 */) ;;
8713 *) as_dir=$as_dir/ ;;
8714 esac
8715 for ac_exec_ext in '' $ac_executable_extensions; do
8716 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8717 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8719 break 2
8720 fi
8721 done
8722 done
8723 IFS=$as_save_IFS
8724
8725 fi ;;
8726 esac
8727 fi
8728 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8729 if test -n "$MANIFEST_TOOL"; then
8730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8731 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8732 else
8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8734 printf "%s\n" "no" >&6; }
8735 fi
8736
8737
8738 fi
8739 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8740 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8741 # Extract the first word of "mt", so it can be a program name with args.
8742 set dummy mt; ac_word=$2
8743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 printf %s "checking for $ac_word... " >&6; }
8745 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8746 then :
8747 printf %s "(cached) " >&6
8748 else case e in #(
8749 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8750 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8751 else
8752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753 for as_dir in $PATH
8754 do
8755 IFS=$as_save_IFS
8756 case $as_dir in #(((
8757 '') as_dir=./ ;;
8758 */) ;;
8759 *) as_dir=$as_dir/ ;;
8760 esac
8761 for ac_exec_ext in '' $ac_executable_extensions; do
8762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8763 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8765 break 2
8766 fi
8767 done
8768 done
8769 IFS=$as_save_IFS
8770
8771 fi ;;
8772 esac
8773 fi
8774 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8775 if test -n "$ac_ct_MANIFEST_TOOL"; then
8776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8777 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8778 else
8779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8780 printf "%s\n" "no" >&6; }
8781 fi
8782
8783 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8784 MANIFEST_TOOL=":"
8785 else
8786 case $cross_compiling:$ac_tool_warned in
8787 yes:)
8788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8789 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8790 ac_tool_warned=yes ;;
8791 esac
8792 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8793 fi
8794 else
8795 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8796 fi
8797
8798 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8800 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8801 if test ${lt_cv_path_manifest_tool+y}
8802 then :
8803 printf %s "(cached) " >&6
8804 else case e in #(
8805 e) lt_cv_path_manifest_tool=no
8806 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8807 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8808 cat conftest.err >&5
8809 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8810 lt_cv_path_manifest_tool=yes
8811 fi
8812 rm -f conftest* ;;
8813 esac
8814 fi
8815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8816 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8817 if test yes != "$lt_cv_path_manifest_tool"; then
8818 MANIFEST_TOOL=:
8819 fi
8820
8821
8822
8823
8824
8825
8826 case $host_os in
8827 rhapsody* | darwin*)
8828 if test -n "$ac_tool_prefix"; then
8829 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8830 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8832 printf %s "checking for $ac_word... " >&6; }
8833 if test ${ac_cv_prog_DSYMUTIL+y}
8834 then :
8835 printf %s "(cached) " >&6
8836 else case e in #(
8837 e) if test -n "$DSYMUTIL"; then
8838 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8839 else
8840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8841 for as_dir in $PATH
8842 do
8843 IFS=$as_save_IFS
8844 case $as_dir in #(((
8845 '') as_dir=./ ;;
8846 */) ;;
8847 *) as_dir=$as_dir/ ;;
8848 esac
8849 for ac_exec_ext in '' $ac_executable_extensions; do
8850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8851 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8853 break 2
8854 fi
8855 done
8856 done
8857 IFS=$as_save_IFS
8858
8859 fi ;;
8860 esac
8861 fi
8862 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8863 if test -n "$DSYMUTIL"; then
8864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8865 printf "%s\n" "$DSYMUTIL" >&6; }
8866 else
8867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868 printf "%s\n" "no" >&6; }
8869 fi
8870
8871
8872 fi
8873 if test -z "$ac_cv_prog_DSYMUTIL"; then
8874 ac_ct_DSYMUTIL=$DSYMUTIL
8875 # Extract the first word of "dsymutil", so it can be a program name with args.
8876 set dummy dsymutil; ac_word=$2
8877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8878 printf %s "checking for $ac_word... " >&6; }
8879 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8880 then :
8881 printf %s "(cached) " >&6
8882 else case e in #(
8883 e) if test -n "$ac_ct_DSYMUTIL"; then
8884 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8885 else
8886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8887 for as_dir in $PATH
8888 do
8889 IFS=$as_save_IFS
8890 case $as_dir in #(((
8891 '') as_dir=./ ;;
8892 */) ;;
8893 *) as_dir=$as_dir/ ;;
8894 esac
8895 for ac_exec_ext in '' $ac_executable_extensions; do
8896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8897 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8899 break 2
8900 fi
8901 done
8902 done
8903 IFS=$as_save_IFS
8904
8905 fi ;;
8906 esac
8907 fi
8908 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8909 if test -n "$ac_ct_DSYMUTIL"; then
8910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8911 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8912 else
8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914 printf "%s\n" "no" >&6; }
8915 fi
8916
8917 if test "x$ac_ct_DSYMUTIL" = x; then
8918 DSYMUTIL=":"
8919 else
8920 case $cross_compiling:$ac_tool_warned in
8921 yes:)
8922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8923 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8924 ac_tool_warned=yes ;;
8925 esac
8926 DSYMUTIL=$ac_ct_DSYMUTIL
8927 fi
8928 else
8929 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8930 fi
8931
8932 if test -n "$ac_tool_prefix"; then
8933 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8934 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8936 printf %s "checking for $ac_word... " >&6; }
8937 if test ${ac_cv_prog_NMEDIT+y}
8938 then :
8939 printf %s "(cached) " >&6
8940 else case e in #(
8941 e) if test -n "$NMEDIT"; then
8942 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8943 else
8944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945 for as_dir in $PATH
8946 do
8947 IFS=$as_save_IFS
8948 case $as_dir in #(((
8949 '') as_dir=./ ;;
8950 */) ;;
8951 *) as_dir=$as_dir/ ;;
8952 esac
8953 for ac_exec_ext in '' $ac_executable_extensions; do
8954 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8955 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8956 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8957 break 2
8958 fi
8959 done
8960 done
8961 IFS=$as_save_IFS
8962
8963 fi ;;
8964 esac
8965 fi
8966 NMEDIT=$ac_cv_prog_NMEDIT
8967 if test -n "$NMEDIT"; then
8968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8969 printf "%s\n" "$NMEDIT" >&6; }
8970 else
8971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972 printf "%s\n" "no" >&6; }
8973 fi
8974
8975
8976 fi
8977 if test -z "$ac_cv_prog_NMEDIT"; then
8978 ac_ct_NMEDIT=$NMEDIT
8979 # Extract the first word of "nmedit", so it can be a program name with args.
8980 set dummy nmedit; ac_word=$2
8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8982 printf %s "checking for $ac_word... " >&6; }
8983 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8984 then :
8985 printf %s "(cached) " >&6
8986 else case e in #(
8987 e) if test -n "$ac_ct_NMEDIT"; then
8988 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8989 else
8990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8991 for as_dir in $PATH
8992 do
8993 IFS=$as_save_IFS
8994 case $as_dir in #(((
8995 '') as_dir=./ ;;
8996 */) ;;
8997 *) as_dir=$as_dir/ ;;
8998 esac
8999 for ac_exec_ext in '' $ac_executable_extensions; do
9000 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9001 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9002 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9003 break 2
9004 fi
9005 done
9006 done
9007 IFS=$as_save_IFS
9008
9009 fi ;;
9010 esac
9011 fi
9012 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9013 if test -n "$ac_ct_NMEDIT"; then
9014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9015 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
9016 else
9017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9018 printf "%s\n" "no" >&6; }
9019 fi
9020
9021 if test "x$ac_ct_NMEDIT" = x; then
9022 NMEDIT=":"
9023 else
9024 case $cross_compiling:$ac_tool_warned in
9025 yes:)
9026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9027 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9028 ac_tool_warned=yes ;;
9029 esac
9030 NMEDIT=$ac_ct_NMEDIT
9031 fi
9032 else
9033 NMEDIT="$ac_cv_prog_NMEDIT"
9034 fi
9035
9036 if test -n "$ac_tool_prefix"; then
9037 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9038 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9040 printf %s "checking for $ac_word... " >&6; }
9041 if test ${ac_cv_prog_LIPO+y}
9042 then :
9043 printf %s "(cached) " >&6
9044 else case e in #(
9045 e) if test -n "$LIPO"; then
9046 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9047 else
9048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049 for as_dir in $PATH
9050 do
9051 IFS=$as_save_IFS
9052 case $as_dir in #(((
9053 '') as_dir=./ ;;
9054 */) ;;
9055 *) as_dir=$as_dir/ ;;
9056 esac
9057 for ac_exec_ext in '' $ac_executable_extensions; do
9058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9059 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9061 break 2
9062 fi
9063 done
9064 done
9065 IFS=$as_save_IFS
9066
9067 fi ;;
9068 esac
9069 fi
9070 LIPO=$ac_cv_prog_LIPO
9071 if test -n "$LIPO"; then
9072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9073 printf "%s\n" "$LIPO" >&6; }
9074 else
9075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 printf "%s\n" "no" >&6; }
9077 fi
9078
9079
9080 fi
9081 if test -z "$ac_cv_prog_LIPO"; then
9082 ac_ct_LIPO=$LIPO
9083 # Extract the first word of "lipo", so it can be a program name with args.
9084 set dummy lipo; ac_word=$2
9085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9086 printf %s "checking for $ac_word... " >&6; }
9087 if test ${ac_cv_prog_ac_ct_LIPO+y}
9088 then :
9089 printf %s "(cached) " >&6
9090 else case e in #(
9091 e) if test -n "$ac_ct_LIPO"; then
9092 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9093 else
9094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9095 for as_dir in $PATH
9096 do
9097 IFS=$as_save_IFS
9098 case $as_dir in #(((
9099 '') as_dir=./ ;;
9100 */) ;;
9101 *) as_dir=$as_dir/ ;;
9102 esac
9103 for ac_exec_ext in '' $ac_executable_extensions; do
9104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9105 ac_cv_prog_ac_ct_LIPO="lipo"
9106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9107 break 2
9108 fi
9109 done
9110 done
9111 IFS=$as_save_IFS
9112
9113 fi ;;
9114 esac
9115 fi
9116 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9117 if test -n "$ac_ct_LIPO"; then
9118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9119 printf "%s\n" "$ac_ct_LIPO" >&6; }
9120 else
9121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9122 printf "%s\n" "no" >&6; }
9123 fi
9124
9125 if test "x$ac_ct_LIPO" = x; then
9126 LIPO=":"
9127 else
9128 case $cross_compiling:$ac_tool_warned in
9129 yes:)
9130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9131 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9132 ac_tool_warned=yes ;;
9133 esac
9134 LIPO=$ac_ct_LIPO
9135 fi
9136 else
9137 LIPO="$ac_cv_prog_LIPO"
9138 fi
9139
9140 if test -n "$ac_tool_prefix"; then
9141 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9142 set dummy ${ac_tool_prefix}otool; ac_word=$2
9143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9144 printf %s "checking for $ac_word... " >&6; }
9145 if test ${ac_cv_prog_OTOOL+y}
9146 then :
9147 printf %s "(cached) " >&6
9148 else case e in #(
9149 e) if test -n "$OTOOL"; then
9150 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9151 else
9152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9153 for as_dir in $PATH
9154 do
9155 IFS=$as_save_IFS
9156 case $as_dir in #(((
9157 '') as_dir=./ ;;
9158 */) ;;
9159 *) as_dir=$as_dir/ ;;
9160 esac
9161 for ac_exec_ext in '' $ac_executable_extensions; do
9162 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9163 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9165 break 2
9166 fi
9167 done
9168 done
9169 IFS=$as_save_IFS
9170
9171 fi ;;
9172 esac
9173 fi
9174 OTOOL=$ac_cv_prog_OTOOL
9175 if test -n "$OTOOL"; then
9176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9177 printf "%s\n" "$OTOOL" >&6; }
9178 else
9179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9180 printf "%s\n" "no" >&6; }
9181 fi
9182
9183
9184 fi
9185 if test -z "$ac_cv_prog_OTOOL"; then
9186 ac_ct_OTOOL=$OTOOL
9187 # Extract the first word of "otool", so it can be a program name with args.
9188 set dummy otool; ac_word=$2
9189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9190 printf %s "checking for $ac_word... " >&6; }
9191 if test ${ac_cv_prog_ac_ct_OTOOL+y}
9192 then :
9193 printf %s "(cached) " >&6
9194 else case e in #(
9195 e) if test -n "$ac_ct_OTOOL"; then
9196 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9197 else
9198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9199 for as_dir in $PATH
9200 do
9201 IFS=$as_save_IFS
9202 case $as_dir in #(((
9203 '') as_dir=./ ;;
9204 */) ;;
9205 *) as_dir=$as_dir/ ;;
9206 esac
9207 for ac_exec_ext in '' $ac_executable_extensions; do
9208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9209 ac_cv_prog_ac_ct_OTOOL="otool"
9210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9211 break 2
9212 fi
9213 done
9214 done
9215 IFS=$as_save_IFS
9216
9217 fi ;;
9218 esac
9219 fi
9220 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9221 if test -n "$ac_ct_OTOOL"; then
9222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9223 printf "%s\n" "$ac_ct_OTOOL" >&6; }
9224 else
9225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9226 printf "%s\n" "no" >&6; }
9227 fi
9228
9229 if test "x$ac_ct_OTOOL" = x; then
9230 OTOOL=":"
9231 else
9232 case $cross_compiling:$ac_tool_warned in
9233 yes:)
9234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9235 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9236 ac_tool_warned=yes ;;
9237 esac
9238 OTOOL=$ac_ct_OTOOL
9239 fi
9240 else
9241 OTOOL="$ac_cv_prog_OTOOL"
9242 fi
9243
9244 if test -n "$ac_tool_prefix"; then
9245 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9246 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248 printf %s "checking for $ac_word... " >&6; }
9249 if test ${ac_cv_prog_OTOOL64+y}
9250 then :
9251 printf %s "(cached) " >&6
9252 else case e in #(
9253 e) if test -n "$OTOOL64"; then
9254 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9255 else
9256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257 for as_dir in $PATH
9258 do
9259 IFS=$as_save_IFS
9260 case $as_dir in #(((
9261 '') as_dir=./ ;;
9262 */) ;;
9263 *) as_dir=$as_dir/ ;;
9264 esac
9265 for ac_exec_ext in '' $ac_executable_extensions; do
9266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9267 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9269 break 2
9270 fi
9271 done
9272 done
9273 IFS=$as_save_IFS
9274
9275 fi ;;
9276 esac
9277 fi
9278 OTOOL64=$ac_cv_prog_OTOOL64
9279 if test -n "$OTOOL64"; then
9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9281 printf "%s\n" "$OTOOL64" >&6; }
9282 else
9283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9284 printf "%s\n" "no" >&6; }
9285 fi
9286
9287
9288 fi
9289 if test -z "$ac_cv_prog_OTOOL64"; then
9290 ac_ct_OTOOL64=$OTOOL64
9291 # Extract the first word of "otool64", so it can be a program name with args.
9292 set dummy otool64; ac_word=$2
9293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9294 printf %s "checking for $ac_word... " >&6; }
9295 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
9296 then :
9297 printf %s "(cached) " >&6
9298 else case e in #(
9299 e) if test -n "$ac_ct_OTOOL64"; then
9300 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9301 else
9302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9303 for as_dir in $PATH
9304 do
9305 IFS=$as_save_IFS
9306 case $as_dir in #(((
9307 '') as_dir=./ ;;
9308 */) ;;
9309 *) as_dir=$as_dir/ ;;
9310 esac
9311 for ac_exec_ext in '' $ac_executable_extensions; do
9312 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9313 ac_cv_prog_ac_ct_OTOOL64="otool64"
9314 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9315 break 2
9316 fi
9317 done
9318 done
9319 IFS=$as_save_IFS
9320
9321 fi ;;
9322 esac
9323 fi
9324 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9325 if test -n "$ac_ct_OTOOL64"; then
9326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9327 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
9328 else
9329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9330 printf "%s\n" "no" >&6; }
9331 fi
9332
9333 if test "x$ac_ct_OTOOL64" = x; then
9334 OTOOL64=":"
9335 else
9336 case $cross_compiling:$ac_tool_warned in
9337 yes:)
9338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9339 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9340 ac_tool_warned=yes ;;
9341 esac
9342 OTOOL64=$ac_ct_OTOOL64
9343 fi
9344 else
9345 OTOOL64="$ac_cv_prog_OTOOL64"
9346 fi
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9375 printf %s "checking for -single_module linker flag... " >&6; }
9376 if test ${lt_cv_apple_cc_single_mod+y}
9377 then :
9378 printf %s "(cached) " >&6
9379 else case e in #(
9380 e) lt_cv_apple_cc_single_mod=no
9381 if test -z "$LT_MULTI_MODULE"; then
9382 # By default we will add the -single_module flag. You can override
9383 # by either setting the environment variable LT_MULTI_MODULE
9384 # non-empty at configure time, or by adding -multi_module to the
9385 # link flags.
9386 rm -rf libconftest.dylib*
9387 echo "int foo(void){return 1;}" > conftest.c
9388 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9389 -dynamiclib -Wl,-single_module conftest.c" >&5
9390 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9391 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9392 _lt_result=$?
9393 # If there is a non-empty error log, and "single_module"
9394 # appears in it, assume the flag caused a linker warning
9395 if test -s conftest.err && $GREP single_module conftest.err; then
9396 cat conftest.err >&5
9397 # Otherwise, if the output was created with a 0 exit code from
9398 # the compiler, it worked.
9399 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9400 lt_cv_apple_cc_single_mod=yes
9401 else
9402 cat conftest.err >&5
9403 fi
9404 rm -rf libconftest.dylib*
9405 rm -f conftest.*
9406 fi ;;
9407 esac
9408 fi
9409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9410 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9411
9412 # Feature test to disable chained fixups since it is not
9413 # compatible with '-undefined dynamic_lookup'
9414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
9415 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
9416 if test ${lt_cv_support_no_fixup_chains+y}
9417 then :
9418 printf %s "(cached) " >&6
9419 else case e in #(
9420 e) save_LDFLAGS=$LDFLAGS
9421 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
9422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423 /* end confdefs.h. */
9424
9425 int
9426 main (void)
9427 {
9428
9429 ;
9430 return 0;
9431 }
9432 _ACEOF
9433 if ac_fn_c_try_link "$LINENO"
9434 then :
9435 lt_cv_support_no_fixup_chains=yes
9436 else case e in #(
9437 e) lt_cv_support_no_fixup_chains=no
9438 ;;
9439 esac
9440 fi
9441 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9442 conftest$ac_exeext conftest.$ac_ext
9443 LDFLAGS=$save_LDFLAGS
9444
9445 ;;
9446 esac
9447 fi
9448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
9449 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
9450
9451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9452 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9453 if test ${lt_cv_ld_exported_symbols_list+y}
9454 then :
9455 printf %s "(cached) " >&6
9456 else case e in #(
9457 e) lt_cv_ld_exported_symbols_list=no
9458 save_LDFLAGS=$LDFLAGS
9459 echo "_main" > conftest.sym
9460 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h. */
9463
9464 int
9465 main (void)
9466 {
9467
9468 ;
9469 return 0;
9470 }
9471 _ACEOF
9472 if ac_fn_c_try_link "$LINENO"
9473 then :
9474 lt_cv_ld_exported_symbols_list=yes
9475 else case e in #(
9476 e) lt_cv_ld_exported_symbols_list=no ;;
9477 esac
9478 fi
9479 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9480 conftest$ac_exeext conftest.$ac_ext
9481 LDFLAGS=$save_LDFLAGS
9482 ;;
9483 esac
9484 fi
9485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9486 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9487
9488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9489 printf %s "checking for -force_load linker flag... " >&6; }
9490 if test ${lt_cv_ld_force_load+y}
9491 then :
9492 printf %s "(cached) " >&6
9493 else case e in #(
9494 e) lt_cv_ld_force_load=no
9495 cat > conftest.c << _LT_EOF
9496 int forced_loaded() { return 2;}
9497 _LT_EOF
9498 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9499 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9500 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
9501 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
9502 echo "$RANLIB libconftest.a" >&5
9503 $RANLIB libconftest.a 2>&5
9504 cat > conftest.c << _LT_EOF
9505 int main(void) { return 0;}
9506 _LT_EOF
9507 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9508 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9509 _lt_result=$?
9510 if test -s conftest.err && $GREP force_load conftest.err; then
9511 cat conftest.err >&5
9512 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9513 lt_cv_ld_force_load=yes
9514 else
9515 cat conftest.err >&5
9516 fi
9517 rm -f conftest.err libconftest.a conftest conftest.c
9518 rm -rf conftest.dSYM
9519 ;;
9520 esac
9521 fi
9522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9523 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9524 case $host_os in
9525 rhapsody* | darwin1.[012])
9526 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9527 darwin1.*)
9528 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9529 darwin*)
9530 case $MACOSX_DEPLOYMENT_TARGET,$host in
9531 10.[012],*|,*powerpc*-darwin[5-8]*)
9532 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9533 *)
9534 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
9535 if test yes = "$lt_cv_support_no_fixup_chains"; then
9536 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
9537 fi
9538 ;;
9539 esac
9540 ;;
9541 esac
9542 if test yes = "$lt_cv_apple_cc_single_mod"; then
9543 _lt_dar_single_mod='$single_module'
9544 fi
9545 _lt_dar_needs_single_mod=no
9546 case $host_os in
9547 rhapsody* | darwin1.*)
9548 _lt_dar_needs_single_mod=yes ;;
9549 darwin*)
9550 # When targeting Mac OS X 10.4 (darwin 8) or later,
9551 # -single_module is the default and -multi_module is unsupported.
9552 # The toolchain on macOS 10.14 (darwin 18) and later cannot
9553 # target any OS version that needs -single_module.
9554 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9555 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
9556 _lt_dar_needs_single_mod=yes ;;
9557 esac
9558 ;;
9559 esac
9560 if test yes = "$lt_cv_ld_exported_symbols_list"; then
9561 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9562 else
9563 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9564 fi
9565 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9566 _lt_dsymutil='~$DSYMUTIL $lib || :'
9567 else
9568 _lt_dsymutil=
9569 fi
9570 ;;
9571 esac
9572
9573 # func_munge_path_list VARIABLE PATH
9574 # -----------------------------------
9575 # VARIABLE is name of variable containing _space_ separated list of
9576 # directories to be munged by the contents of PATH, which is string
9577 # having a format:
9578 # "DIR[:DIR]:"
9579 # string "DIR[ DIR]" will be prepended to VARIABLE
9580 # ":DIR[:DIR]"
9581 # string "DIR[ DIR]" will be appended to VARIABLE
9582 # "DIRP[:DIRP]::[DIRA:]DIRA"
9583 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9584 # "DIRA[ DIRA]" will be appended to VARIABLE
9585 # "DIR[:DIR]"
9586 # VARIABLE will be replaced by "DIR[ DIR]"
9587 func_munge_path_list ()
9588 {
9589 case x$2 in
9590 x)
9591 ;;
9592 *:)
9593 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9594 ;;
9595 x:*)
9596 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9597 ;;
9598 *::*)
9599 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9600 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9601 ;;
9602 *)
9603 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9604 ;;
9605 esac
9606 }
9607
9608 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9609 "
9610 if test "x$ac_cv_header_dlfcn_h" = xyes
9611 then :
9612 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9613
9614 fi
9615
9616
9617
9618
9619
9620 # Set options
9621
9622
9623
9624 enable_dlopen=no
9625
9626
9627 enable_win32_dll=no
9628
9629
9630 # Check whether --enable-shared was given.
9631 if test ${enable_shared+y}
9632 then :
9633 enableval=$enable_shared; p=${PACKAGE-default}
9634 case $enableval in
9635 yes) enable_shared=yes ;;
9636 no) enable_shared=no ;;
9637 *)
9638 enable_shared=no
9639 # Look at the argument we got. We use all the common list separators.
9640 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9641 for pkg in $enableval; do
9642 IFS=$lt_save_ifs
9643 if test "X$pkg" = "X$p"; then
9644 enable_shared=yes
9645 fi
9646 done
9647 IFS=$lt_save_ifs
9648 ;;
9649 esac
9650 else case e in #(
9651 e) enable_shared=yes ;;
9652 esac
9653 fi
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663 # Check whether --enable-static was given.
9664 if test ${enable_static+y}
9665 then :
9666 enableval=$enable_static; p=${PACKAGE-default}
9667 case $enableval in
9668 yes) enable_static=yes ;;
9669 no) enable_static=no ;;
9670 *)
9671 enable_static=no
9672 # Look at the argument we got. We use all the common list separators.
9673 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9674 for pkg in $enableval; do
9675 IFS=$lt_save_ifs
9676 if test "X$pkg" = "X$p"; then
9677 enable_static=yes
9678 fi
9679 done
9680 IFS=$lt_save_ifs
9681 ;;
9682 esac
9683 else case e in #(
9684 e) enable_static=yes ;;
9685 esac
9686 fi
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696 # Check whether --enable-pic was given.
9697 if test ${enable_pic+y}
9698 then :
9699 enableval=$enable_pic; lt_p=${PACKAGE-default}
9700 case $enableval in
9701 yes|no) pic_mode=$enableval ;;
9702 *)
9703 pic_mode=default
9704 # Look at the argument we got. We use all the common list separators.
9705 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9706 for lt_pkg in $enableval; do
9707 IFS=$lt_save_ifs
9708 if test "X$lt_pkg" = "X$lt_p"; then
9709 pic_mode=yes
9710 fi
9711 done
9712 IFS=$lt_save_ifs
9713 ;;
9714 esac
9715 else case e in #(
9716 e) # Check whether --with-pic was given.
9717 if test ${with_pic+y}
9718 then :
9719 withval=$with_pic; lt_p=${PACKAGE-default}
9720 case $withval in
9721 yes|no) pic_mode=$withval ;;
9722 *)
9723 pic_mode=default
9724 # Look at the argument we got. We use all the common list separators.
9725 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9726 for lt_pkg in $withval; do
9727 IFS=$lt_save_ifs
9728 if test "X$lt_pkg" = "X$lt_p"; then
9729 pic_mode=yes
9730 fi
9731 done
9732 IFS=$lt_save_ifs
9733 ;;
9734 esac
9735 else case e in #(
9736 e) pic_mode=default ;;
9737 esac
9738 fi
9739
9740 ;;
9741 esac
9742 fi
9743
9744
9745
9746
9747
9748
9749
9750
9751 # Check whether --enable-fast-install was given.
9752 if test ${enable_fast_install+y}
9753 then :
9754 enableval=$enable_fast_install; p=${PACKAGE-default}
9755 case $enableval in
9756 yes) enable_fast_install=yes ;;
9757 no) enable_fast_install=no ;;
9758 *)
9759 enable_fast_install=no
9760 # Look at the argument we got. We use all the common list separators.
9761 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9762 for pkg in $enableval; do
9763 IFS=$lt_save_ifs
9764 if test "X$pkg" = "X$p"; then
9765 enable_fast_install=yes
9766 fi
9767 done
9768 IFS=$lt_save_ifs
9769 ;;
9770 esac
9771 else case e in #(
9772 e) enable_fast_install=yes ;;
9773 esac
9774 fi
9775
9776
9777
9778
9779
9780
9781
9782
9783 shared_archive_member_spec=
9784 case $host,$enable_shared in
9785 power*-*-aix[5-9]*,yes)
9786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9787 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9788 # Check whether --enable-aix-soname was given.
9789 if test ${enable_aix_soname+y}
9790 then :
9791 enableval=$enable_aix_soname; case $enableval in
9792 aix|svr4|both)
9793 ;;
9794 *)
9795 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9796 ;;
9797 esac
9798 lt_cv_with_aix_soname=$enable_aix_soname
9799 else case e in #(
9800 e) # Check whether --with-aix-soname was given.
9801 if test ${with_aix_soname+y}
9802 then :
9803 withval=$with_aix_soname; case $withval in
9804 aix|svr4|both)
9805 ;;
9806 *)
9807 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9808 ;;
9809 esac
9810 lt_cv_with_aix_soname=$with_aix_soname
9811 else case e in #(
9812 e) if test ${lt_cv_with_aix_soname+y}
9813 then :
9814 printf %s "(cached) " >&6
9815 else case e in #(
9816 e) lt_cv_with_aix_soname=aix ;;
9817 esac
9818 fi
9819 ;;
9820 esac
9821 fi
9822
9823 enable_aix_soname=$lt_cv_with_aix_soname ;;
9824 esac
9825 fi
9826
9827 with_aix_soname=$enable_aix_soname
9828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9829 printf "%s\n" "$with_aix_soname" >&6; }
9830 if test aix != "$with_aix_soname"; then
9831 # For the AIX way of multilib, we name the shared archive member
9832 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9833 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9834 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9835 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9836 if test 64 = "${OBJECT_MODE-32}"; then
9837 shared_archive_member_spec=shr_64
9838 else
9839 shared_archive_member_spec=shr
9840 fi
9841 fi
9842 ;;
9843 *)
9844 with_aix_soname=aix
9845 ;;
9846 esac
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857 # This can be used to rebuild libtool when needed
9858 LIBTOOL_DEPS=$ltmain
9859
9860 # Always use our own libtool.
9861 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892 test -z "$LN_S" && LN_S="ln -s"
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907 if test -n "${ZSH_VERSION+set}"; then
9908 setopt NO_GLOB_SUBST
9909 fi
9910
9911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9912 printf %s "checking for objdir... " >&6; }
9913 if test ${lt_cv_objdir+y}
9914 then :
9915 printf %s "(cached) " >&6
9916 else case e in #(
9917 e) rm -f .libs 2>/dev/null
9918 mkdir .libs 2>/dev/null
9919 if test -d .libs; then
9920 lt_cv_objdir=.libs
9921 else
9922 # MS-DOS does not allow filenames that begin with a dot.
9923 lt_cv_objdir=_libs
9924 fi
9925 rmdir .libs 2>/dev/null ;;
9926 esac
9927 fi
9928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9929 printf "%s\n" "$lt_cv_objdir" >&6; }
9930 objdir=$lt_cv_objdir
9931
9932
9933
9934
9935
9936 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9937
9938
9939
9940
9941 case $host_os in
9942 aix3*)
9943 # AIX sometimes has problems with the GCC collect2 program. For some
9944 # reason, if we set the COLLECT_NAMES environment variable, the problems
9945 # vanish in a puff of smoke.
9946 if test set != "${COLLECT_NAMES+set}"; then
9947 COLLECT_NAMES=
9948 export COLLECT_NAMES
9949 fi
9950 ;;
9951 esac
9952
9953 # Global variables:
9954 ofile=libtool
9955 can_build_shared=yes
9956
9957 # All known linkers require a '.a' archive for static linking (except MSVC and
9958 # ICC, which need '.lib').
9959 libext=a
9960
9961 with_gnu_ld=$lt_cv_prog_gnu_ld
9962
9963 old_CC=$CC
9964 old_CFLAGS=$CFLAGS
9965
9966 # Set sane defaults for various variables
9967 test -z "$CC" && CC=cc
9968 test -z "$LTCC" && LTCC=$CC
9969 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9970 test -z "$LD" && LD=ld
9971 test -z "$ac_objext" && ac_objext=o
9972
9973 func_cc_basename $compiler
9974 cc_basename=$func_cc_basename_result
9975
9976
9977 # Only perform the check for file, if the check method requires it
9978 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9979 case $deplibs_check_method in
9980 file_magic*)
9981 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9983 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9984 if test ${lt_cv_path_MAGIC_CMD+y}
9985 then :
9986 printf %s "(cached) " >&6
9987 else case e in #(
9988 e) case $MAGIC_CMD in
9989 [\\/*] | ?:[\\/]*)
9990 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9991 ;;
9992 *)
9993 lt_save_MAGIC_CMD=$MAGIC_CMD
9994 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9995 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9996 for ac_dir in $ac_dummy; do
9997 IFS=$lt_save_ifs
9998 test -z "$ac_dir" && ac_dir=.
9999 if test -f "$ac_dir/${ac_tool_prefix}file"; then
10000 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10001 if test -n "$file_magic_test_file"; then
10002 case $deplibs_check_method in
10003 "file_magic "*)
10004 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10005 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10006 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10007 $EGREP "$file_magic_regex" > /dev/null; then
10008 :
10009 else
10010 cat <<_LT_EOF 1>&2
10011
10012 *** Warning: the command libtool uses to detect shared libraries,
10013 *** $file_magic_cmd, produces output that libtool cannot recognize.
10014 *** The result is that libtool may fail to recognize shared libraries
10015 *** as such. This will affect the creation of libtool libraries that
10016 *** depend on shared libraries, but programs linked with such libtool
10017 *** libraries will work regardless of this problem. Nevertheless, you
10018 *** may want to report the problem to your system manager and/or to
10019 *** [email protected]
10020
10021 _LT_EOF
10022 fi ;;
10023 esac
10024 fi
10025 break
10026 fi
10027 done
10028 IFS=$lt_save_ifs
10029 MAGIC_CMD=$lt_save_MAGIC_CMD
10030 ;;
10031 esac ;;
10032 esac
10033 fi
10034
10035 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10036 if test -n "$MAGIC_CMD"; then
10037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10038 printf "%s\n" "$MAGIC_CMD" >&6; }
10039 else
10040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041 printf "%s\n" "no" >&6; }
10042 fi
10043
10044
10045
10046
10047
10048 if test -z "$lt_cv_path_MAGIC_CMD"; then
10049 if test -n "$ac_tool_prefix"; then
10050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10051 printf %s "checking for file... " >&6; }
10052 if test ${lt_cv_path_MAGIC_CMD+y}
10053 then :
10054 printf %s "(cached) " >&6
10055 else case e in #(
10056 e) case $MAGIC_CMD in
10057 [\\/*] | ?:[\\/]*)
10058 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10059 ;;
10060 *)
10061 lt_save_MAGIC_CMD=$MAGIC_CMD
10062 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10063 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10064 for ac_dir in $ac_dummy; do
10065 IFS=$lt_save_ifs
10066 test -z "$ac_dir" && ac_dir=.
10067 if test -f "$ac_dir/file"; then
10068 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10069 if test -n "$file_magic_test_file"; then
10070 case $deplibs_check_method in
10071 "file_magic "*)
10072 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10073 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10074 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10075 $EGREP "$file_magic_regex" > /dev/null; then
10076 :
10077 else
10078 cat <<_LT_EOF 1>&2
10079
10080 *** Warning: the command libtool uses to detect shared libraries,
10081 *** $file_magic_cmd, produces output that libtool cannot recognize.
10082 *** The result is that libtool may fail to recognize shared libraries
10083 *** as such. This will affect the creation of libtool libraries that
10084 *** depend on shared libraries, but programs linked with such libtool
10085 *** libraries will work regardless of this problem. Nevertheless, you
10086 *** may want to report the problem to your system manager and/or to
10087 *** [email protected]
10088
10089 _LT_EOF
10090 fi ;;
10091 esac
10092 fi
10093 break
10094 fi
10095 done
10096 IFS=$lt_save_ifs
10097 MAGIC_CMD=$lt_save_MAGIC_CMD
10098 ;;
10099 esac ;;
10100 esac
10101 fi
10102
10103 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10104 if test -n "$MAGIC_CMD"; then
10105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10106 printf "%s\n" "$MAGIC_CMD" >&6; }
10107 else
10108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10109 printf "%s\n" "no" >&6; }
10110 fi
10111
10112
10113 else
10114 MAGIC_CMD=:
10115 fi
10116 fi
10117
10118 fi
10119 ;;
10120 esac
10121
10122 # Use C for the default configuration in the libtool script
10123
10124 lt_save_CC=$CC
10125 ac_ext=c
10126 ac_cpp='$CPP $CPPFLAGS'
10127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10130
10131
10132 # Source file extension for C test sources.
10133 ac_ext=c
10134
10135 # Object file extension for compiled C test sources.
10136 objext=o
10137 objext=$objext
10138
10139 # Code to be used in simple compile tests
10140 lt_simple_compile_test_code="int some_variable = 0;"
10141
10142 # Code to be used in simple link tests
10143 lt_simple_link_test_code='int main(void){return(0);}'
10144
10145
10146
10147
10148
10149
10150
10151 # If no C compiler was specified, use CC.
10152 LTCC=${LTCC-"$CC"}
10153
10154 # If no C compiler flags were specified, use CFLAGS.
10155 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10156
10157 # Allow CC to be a program name with arguments.
10158 compiler=$CC
10159
10160 # Save the default compiler, since it gets overwritten when the other
10161 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10162 compiler_DEFAULT=$CC
10163
10164 # save warnings/boilerplate of simple test code
10165 ac_outfile=conftest.$ac_objext
10166 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10167 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10168 _lt_compiler_boilerplate=`cat conftest.err`
10169 $RM conftest*
10170
10171 ac_outfile=conftest.$ac_objext
10172 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10173 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10174 _lt_linker_boilerplate=`cat conftest.err`
10175 $RM -r conftest*
10176
10177
10178 ## CAVEAT EMPTOR:
10179 ## There is no encapsulation within the following macros, do not change
10180 ## the running order or otherwise move them around unless you know exactly
10181 ## what you are doing...
10182 if test -n "$compiler"; then
10183
10184 lt_prog_compiler_no_builtin_flag=
10185
10186 if test yes = "$GCC"; then
10187 case $cc_basename in
10188 nvcc*)
10189 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10190 *)
10191 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10192 esac
10193
10194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10195 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10196 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
10197 then :
10198 printf %s "(cached) " >&6
10199 else case e in #(
10200 e) lt_cv_prog_compiler_rtti_exceptions=no
10201 ac_outfile=conftest.$ac_objext
10202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10203 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
10204 # Insert the option either (1) after the last *FLAGS variable, or
10205 # (2) before a word containing "conftest.", or (3) at the end.
10206 # Note that $ac_compile itself does not contain backslashes and begins
10207 # with a dollar sign (not a hyphen), so the echo should work correctly.
10208 # The option is referenced via a variable to avoid confusing sed.
10209 lt_compile=`echo "$ac_compile" | $SED \
10210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10212 -e 's:$: $lt_compiler_flag:'`
10213 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10214 (eval "$lt_compile" 2>conftest.err)
10215 ac_status=$?
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 if (exit $ac_status) && test -s "$ac_outfile"; then
10219 # The compiler can only warn and ignore the option if not recognized
10220 # So say no if there are warnings other than the usual output.
10221 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10222 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10223 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10224 lt_cv_prog_compiler_rtti_exceptions=yes
10225 fi
10226 fi
10227 $RM conftest*
10228 ;;
10229 esac
10230 fi
10231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10232 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10233
10234 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10235 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10236 else
10237 :
10238 fi
10239
10240 fi
10241
10242
10243
10244
10245
10246
10247 lt_prog_compiler_wl=
10248 lt_prog_compiler_pic=
10249 lt_prog_compiler_static=
10250
10251
10252 if test yes = "$GCC"; then
10253 lt_prog_compiler_wl='-Wl,'
10254 lt_prog_compiler_static='-static'
10255
10256 case $host_os in
10257 aix*)
10258 # All AIX code is PIC.
10259 if test ia64 = "$host_cpu"; then
10260 # AIX 5 now supports IA64 processor
10261 lt_prog_compiler_static='-Bstatic'
10262 fi
10263 lt_prog_compiler_pic='-fPIC'
10264 ;;
10265
10266 amigaos*)
10267 case $host_cpu in
10268 powerpc)
10269 # see comment about AmigaOS4 .so support
10270 lt_prog_compiler_pic='-fPIC'
10271 ;;
10272 m68k)
10273 # FIXME: we need at least 68020 code to build shared libraries, but
10274 # adding the '-m68020' flag to GCC prevents building anything better,
10275 # like '-m68040'.
10276 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10277 ;;
10278 esac
10279 ;;
10280
10281 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10282 # PIC is the default for these OSes.
10283 ;;
10284
10285 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10286 # This hack is so that the source file can tell whether it is being
10287 # built for inclusion in a dll (and should export symbols for example).
10288 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10289 # (--disable-auto-import) libraries
10290 lt_prog_compiler_pic='-DDLL_EXPORT'
10291 case $host_os in
10292 os2*)
10293 lt_prog_compiler_static='$wl-static'
10294 ;;
10295 esac
10296 ;;
10297
10298 darwin* | rhapsody*)
10299 # PIC is the default on this platform
10300 # Common symbols not allowed in MH_DYLIB files
10301 lt_prog_compiler_pic='-fno-common'
10302 ;;
10303
10304 haiku*)
10305 # PIC is the default for Haiku.
10306 # The "-static" flag exists, but is broken.
10307 lt_prog_compiler_static=
10308 ;;
10309
10310 hpux*)
10311 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10312 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10313 # sets the default TLS model and affects inlining.
10314 case $host_cpu in
10315 hppa*64*)
10316 # +Z the default
10317 ;;
10318 *)
10319 lt_prog_compiler_pic='-fPIC'
10320 ;;
10321 esac
10322 ;;
10323
10324 interix[3-9]*)
10325 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10326 # Instead, we relocate shared libraries at runtime.
10327 ;;
10328
10329 msdosdjgpp*)
10330 # Just because we use GCC doesn't mean we suddenly get shared libraries
10331 # on systems that don't support them.
10332 lt_prog_compiler_can_build_shared=no
10333 enable_shared=no
10334 ;;
10335
10336 *nto* | *qnx*)
10337 # QNX uses GNU C++, but need to define -shared option too, otherwise
10338 # it will coredump.
10339 lt_prog_compiler_pic='-fPIC -shared'
10340 ;;
10341
10342 sysv4*MP*)
10343 if test -d /usr/nec; then
10344 lt_prog_compiler_pic=-Kconform_pic
10345 fi
10346 ;;
10347
10348 *)
10349 lt_prog_compiler_pic='-fPIC'
10350 ;;
10351 esac
10352
10353 case $cc_basename in
10354 nvcc*) # Cuda Compiler Driver 2.2
10355 lt_prog_compiler_wl='-Xlinker '
10356 if test -n "$lt_prog_compiler_pic"; then
10357 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10358 fi
10359 ;;
10360 esac
10361 else
10362 # PORTME Check for flag to pass linker flags through the system compiler.
10363 case $host_os in
10364 aix*)
10365 lt_prog_compiler_wl='-Wl,'
10366 if test ia64 = "$host_cpu"; then
10367 # AIX 5 now supports IA64 processor
10368 lt_prog_compiler_static='-Bstatic'
10369 else
10370 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10371 fi
10372 ;;
10373
10374 darwin* | rhapsody*)
10375 # PIC is the default on this platform
10376 # Common symbols not allowed in MH_DYLIB files
10377 lt_prog_compiler_pic='-fno-common'
10378 case $cc_basename in
10379 nagfor*)
10380 # NAG Fortran compiler
10381 lt_prog_compiler_wl='-Wl,-Wl,,'
10382 lt_prog_compiler_pic='-PIC'
10383 lt_prog_compiler_static='-Bstatic'
10384 ;;
10385 esac
10386 ;;
10387
10388 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
10389 # This hack is so that the source file can tell whether it is being
10390 # built for inclusion in a dll (and should export symbols for example).
10391 lt_prog_compiler_pic='-DDLL_EXPORT'
10392 case $host_os in
10393 os2*)
10394 lt_prog_compiler_static='$wl-static'
10395 ;;
10396 esac
10397 ;;
10398
10399 hpux9* | hpux10* | hpux11*)
10400 lt_prog_compiler_wl='-Wl,'
10401 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10402 # not for PA HP-UX.
10403 case $host_cpu in
10404 hppa*64*|ia64*)
10405 # +Z the default
10406 ;;
10407 *)
10408 lt_prog_compiler_pic='+Z'
10409 ;;
10410 esac
10411 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10412 lt_prog_compiler_static='$wl-a ${wl}archive'
10413 ;;
10414
10415 irix5* | irix6* | nonstopux*)
10416 lt_prog_compiler_wl='-Wl,'
10417 # PIC (with -KPIC) is the default.
10418 lt_prog_compiler_static='-non_shared'
10419 ;;
10420
10421 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10422 case $cc_basename in
10423 # old Intel for x86_64, which still supported -KPIC.
10424 ecc*)
10425 lt_prog_compiler_wl='-Wl,'
10426 lt_prog_compiler_pic='-KPIC'
10427 lt_prog_compiler_static='-static'
10428 ;;
10429 *flang* | ftn | f18* | f95*)
10430 # Flang compiler.
10431 lt_prog_compiler_wl='-Wl,'
10432 lt_prog_compiler_pic='-fPIC'
10433 lt_prog_compiler_static='-static'
10434 ;;
10435 # icc used to be incompatible with GCC.
10436 # ICC 10 doesn't accept -KPIC any more.
10437 icc* | ifort*)
10438 lt_prog_compiler_wl='-Wl,'
10439 lt_prog_compiler_pic='-fPIC'
10440 lt_prog_compiler_static='-static'
10441 ;;
10442 # Lahey Fortran 8.1.
10443 lf95*)
10444 lt_prog_compiler_wl='-Wl,'
10445 lt_prog_compiler_pic='--shared'
10446 lt_prog_compiler_static='--static'
10447 ;;
10448 nagfor*)
10449 # NAG Fortran compiler
10450 lt_prog_compiler_wl='-Wl,-Wl,,'
10451 lt_prog_compiler_pic='-PIC'
10452 lt_prog_compiler_static='-Bstatic'
10453 ;;
10454 tcc*)
10455 # Fabrice Bellard et al's Tiny C Compiler
10456 lt_prog_compiler_wl='-Wl,'
10457 lt_prog_compiler_pic='-fPIC'
10458 lt_prog_compiler_static='-static'
10459 ;;
10460 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10461 # Portland Group compilers (*not* the Pentium gcc compiler,
10462 # which looks to be a dead project)
10463 lt_prog_compiler_wl='-Wl,'
10464 lt_prog_compiler_pic='-fpic'
10465 lt_prog_compiler_static='-Bstatic'
10466 ;;
10467 ccc*)
10468 lt_prog_compiler_wl='-Wl,'
10469 # All Alpha code is PIC.
10470 lt_prog_compiler_static='-non_shared'
10471 ;;
10472 xl* | bgxl* | bgf* | mpixl*)
10473 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10474 lt_prog_compiler_wl='-Wl,'
10475 lt_prog_compiler_pic='-qpic'
10476 lt_prog_compiler_static='-qstaticlink'
10477 ;;
10478 *)
10479 case `$CC -V 2>&1 | $SED 5q` in
10480 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10481 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10482 lt_prog_compiler_pic='-KPIC'
10483 lt_prog_compiler_static='-Bstatic'
10484 lt_prog_compiler_wl=''
10485 ;;
10486 *Sun\ F* | *Sun*Fortran*)
10487 lt_prog_compiler_pic='-KPIC'
10488 lt_prog_compiler_static='-Bstatic'
10489 lt_prog_compiler_wl='-Qoption ld '
10490 ;;
10491 *Sun\ C*)
10492 # Sun C 5.9
10493 lt_prog_compiler_pic='-KPIC'
10494 lt_prog_compiler_static='-Bstatic'
10495 lt_prog_compiler_wl='-Wl,'
10496 ;;
10497 *Intel*\ [CF]*Compiler*)
10498 lt_prog_compiler_wl='-Wl,'
10499 lt_prog_compiler_pic='-fPIC'
10500 lt_prog_compiler_static='-static'
10501 ;;
10502 *Portland\ Group*)
10503 lt_prog_compiler_wl='-Wl,'
10504 lt_prog_compiler_pic='-fpic'
10505 lt_prog_compiler_static='-Bstatic'
10506 ;;
10507 esac
10508 ;;
10509 esac
10510 ;;
10511
10512 newsos6)
10513 lt_prog_compiler_pic='-KPIC'
10514 lt_prog_compiler_static='-Bstatic'
10515 ;;
10516
10517 *-mlibc)
10518 lt_prog_compiler_wl='-Wl,'
10519 lt_prog_compiler_pic='-fPIC'
10520 lt_prog_compiler_static='-static'
10521 ;;
10522
10523 *nto* | *qnx*)
10524 # QNX uses GNU C++, but need to define -shared option too, otherwise
10525 # it will coredump.
10526 lt_prog_compiler_pic='-fPIC -shared'
10527 ;;
10528
10529 osf3* | osf4* | osf5*)
10530 lt_prog_compiler_wl='-Wl,'
10531 # All OSF/1 code is PIC.
10532 lt_prog_compiler_static='-non_shared'
10533 ;;
10534
10535 rdos*)
10536 lt_prog_compiler_static='-non_shared'
10537 ;;
10538
10539 serenity*)
10540 ;;
10541
10542 solaris*)
10543 lt_prog_compiler_pic='-KPIC'
10544 lt_prog_compiler_static='-Bstatic'
10545 case $cc_basename in
10546 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10547 lt_prog_compiler_wl='-Qoption ld ';;
10548 *)
10549 lt_prog_compiler_wl='-Wl,';;
10550 esac
10551 ;;
10552
10553 sunos4*)
10554 lt_prog_compiler_wl='-Qoption ld '
10555 lt_prog_compiler_pic='-PIC'
10556 lt_prog_compiler_static='-Bstatic'
10557 ;;
10558
10559 sysv4 | sysv4.2uw2* | sysv4.3*)
10560 lt_prog_compiler_wl='-Wl,'
10561 lt_prog_compiler_pic='-KPIC'
10562 lt_prog_compiler_static='-Bstatic'
10563 ;;
10564
10565 sysv4*MP*)
10566 if test -d /usr/nec; then
10567 lt_prog_compiler_pic='-Kconform_pic'
10568 lt_prog_compiler_static='-Bstatic'
10569 fi
10570 ;;
10571
10572 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10573 lt_prog_compiler_wl='-Wl,'
10574 lt_prog_compiler_pic='-KPIC'
10575 lt_prog_compiler_static='-Bstatic'
10576 ;;
10577
10578 unicos*)
10579 lt_prog_compiler_wl='-Wl,'
10580 lt_prog_compiler_can_build_shared=no
10581 ;;
10582
10583 uts4*)
10584 lt_prog_compiler_pic='-pic'
10585 lt_prog_compiler_static='-Bstatic'
10586 ;;
10587
10588 *)
10589 lt_prog_compiler_can_build_shared=no
10590 ;;
10591 esac
10592 fi
10593
10594 case $host_os in
10595 # For platforms that do not support PIC, -DPIC is meaningless:
10596 *djgpp*)
10597 lt_prog_compiler_pic=
10598 ;;
10599 *)
10600 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10601 ;;
10602 esac
10603
10604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10605 printf %s "checking for $compiler option to produce PIC... " >&6; }
10606 if test ${lt_cv_prog_compiler_pic+y}
10607 then :
10608 printf %s "(cached) " >&6
10609 else case e in #(
10610 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
10611 esac
10612 fi
10613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10614 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10615 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10616
10617 #
10618 # Check to make sure the PIC flag actually works.
10619 #
10620 if test -n "$lt_prog_compiler_pic"; then
10621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10622 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10623 if test ${lt_cv_prog_compiler_pic_works+y}
10624 then :
10625 printf %s "(cached) " >&6
10626 else case e in #(
10627 e) lt_cv_prog_compiler_pic_works=no
10628 ac_outfile=conftest.$ac_objext
10629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10630 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10631 # Insert the option either (1) after the last *FLAGS variable, or
10632 # (2) before a word containing "conftest.", or (3) at the end.
10633 # Note that $ac_compile itself does not contain backslashes and begins
10634 # with a dollar sign (not a hyphen), so the echo should work correctly.
10635 # The option is referenced via a variable to avoid confusing sed.
10636 lt_compile=`echo "$ac_compile" | $SED \
10637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10639 -e 's:$: $lt_compiler_flag:'`
10640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10641 (eval "$lt_compile" 2>conftest.err)
10642 ac_status=$?
10643 cat conftest.err >&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 if (exit $ac_status) && test -s "$ac_outfile"; then
10646 # The compiler can only warn and ignore the option if not recognized
10647 # So say no if there are warnings other than the usual output.
10648 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10650 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10651 lt_cv_prog_compiler_pic_works=yes
10652 fi
10653 fi
10654 $RM conftest*
10655 ;;
10656 esac
10657 fi
10658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10659 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10660
10661 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10662 case $lt_prog_compiler_pic in
10663 "" | " "*) ;;
10664 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10665 esac
10666 else
10667 lt_prog_compiler_pic=
10668 lt_prog_compiler_can_build_shared=no
10669 fi
10670
10671 fi
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683 #
10684 # Check to make sure the static flag actually works.
10685 #
10686 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10688 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10689 if test ${lt_cv_prog_compiler_static_works+y}
10690 then :
10691 printf %s "(cached) " >&6
10692 else case e in #(
10693 e) lt_cv_prog_compiler_static_works=no
10694 save_LDFLAGS=$LDFLAGS
10695 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10696 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10697 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10698 # The linker can only warn and ignore the option if not recognized
10699 # So say no if there are warnings
10700 if test -s conftest.err; then
10701 # Append any errors to the config.log.
10702 cat conftest.err 1>&5
10703 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10704 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10705 if diff conftest.exp conftest.er2 >/dev/null; then
10706 lt_cv_prog_compiler_static_works=yes
10707 fi
10708 else
10709 lt_cv_prog_compiler_static_works=yes
10710 fi
10711 fi
10712 $RM -r conftest*
10713 LDFLAGS=$save_LDFLAGS
10714 ;;
10715 esac
10716 fi
10717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10718 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10719
10720 if test yes = "$lt_cv_prog_compiler_static_works"; then
10721 :
10722 else
10723 lt_prog_compiler_static=
10724 fi
10725
10726
10727
10728
10729
10730
10731
10732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10733 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10734 if test ${lt_cv_prog_compiler_c_o+y}
10735 then :
10736 printf %s "(cached) " >&6
10737 else case e in #(
10738 e) lt_cv_prog_compiler_c_o=no
10739 $RM -r conftest 2>/dev/null
10740 mkdir conftest
10741 cd conftest
10742 mkdir out
10743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10744
10745 lt_compiler_flag="-o out/conftest2.$ac_objext"
10746 # Insert the option either (1) after the last *FLAGS variable, or
10747 # (2) before a word containing "conftest.", or (3) at the end.
10748 # Note that $ac_compile itself does not contain backslashes and begins
10749 # with a dollar sign (not a hyphen), so the echo should work correctly.
10750 lt_compile=`echo "$ac_compile" | $SED \
10751 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10753 -e 's:$: $lt_compiler_flag:'`
10754 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10755 (eval "$lt_compile" 2>out/conftest.err)
10756 ac_status=$?
10757 cat out/conftest.err >&5
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10760 then
10761 # The compiler can only warn and ignore the option if not recognized
10762 # So say no if there are warnings
10763 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10764 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10765 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10766 lt_cv_prog_compiler_c_o=yes
10767 fi
10768 fi
10769 chmod u+w . 2>&5
10770 $RM conftest*
10771 # SGI C++ compiler will create directory out/ii_files/ for
10772 # template instantiation
10773 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10774 $RM out/* && rmdir out
10775 cd ..
10776 $RM -r conftest
10777 $RM conftest*
10778 ;;
10779 esac
10780 fi
10781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10782 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10783
10784
10785
10786
10787
10788
10789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10790 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10791 if test ${lt_cv_prog_compiler_c_o+y}
10792 then :
10793 printf %s "(cached) " >&6
10794 else case e in #(
10795 e) lt_cv_prog_compiler_c_o=no
10796 $RM -r conftest 2>/dev/null
10797 mkdir conftest
10798 cd conftest
10799 mkdir out
10800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10801
10802 lt_compiler_flag="-o out/conftest2.$ac_objext"
10803 # Insert the option either (1) after the last *FLAGS variable, or
10804 # (2) before a word containing "conftest.", or (3) at the end.
10805 # Note that $ac_compile itself does not contain backslashes and begins
10806 # with a dollar sign (not a hyphen), so the echo should work correctly.
10807 lt_compile=`echo "$ac_compile" | $SED \
10808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10810 -e 's:$: $lt_compiler_flag:'`
10811 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10812 (eval "$lt_compile" 2>out/conftest.err)
10813 ac_status=$?
10814 cat out/conftest.err >&5
10815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10816 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10817 then
10818 # The compiler can only warn and ignore the option if not recognized
10819 # So say no if there are warnings
10820 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10821 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10822 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10823 lt_cv_prog_compiler_c_o=yes
10824 fi
10825 fi
10826 chmod u+w . 2>&5
10827 $RM conftest*
10828 # SGI C++ compiler will create directory out/ii_files/ for
10829 # template instantiation
10830 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10831 $RM out/* && rmdir out
10832 cd ..
10833 $RM -r conftest
10834 $RM conftest*
10835 ;;
10836 esac
10837 fi
10838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10839 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10840
10841
10842
10843
10844 hard_links=nottested
10845 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10846 # do not overwrite the value of need_locks provided by the user
10847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10848 printf %s "checking if we can lock with hard links... " >&6; }
10849 hard_links=yes
10850 $RM conftest*
10851 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10852 touch conftest.a
10853 ln conftest.a conftest.b 2>&5 || hard_links=no
10854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10856 printf "%s\n" "$hard_links" >&6; }
10857 if test no = "$hard_links"; then
10858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10859 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10860 need_locks=warn
10861 fi
10862 else
10863 need_locks=no
10864 fi
10865
10866
10867
10868
10869
10870
10871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10872 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10873
10874 runpath_var=
10875 allow_undefined_flag=
10876 always_export_symbols=no
10877 archive_cmds=
10878 archive_expsym_cmds=
10879 compiler_needs_object=no
10880 enable_shared_with_static_runtimes=no
10881 export_dynamic_flag_spec=
10882 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10883 hardcode_automatic=no
10884 hardcode_direct=no
10885 hardcode_direct_absolute=no
10886 hardcode_libdir_flag_spec=
10887 hardcode_libdir_separator=
10888 hardcode_minus_L=no
10889 hardcode_shlibpath_var=unsupported
10890 inherit_rpath=no
10891 link_all_deplibs=unknown
10892 module_cmds=
10893 module_expsym_cmds=
10894 old_archive_from_new_cmds=
10895 old_archive_from_expsyms_cmds=
10896 thread_safe_flag_spec=
10897 whole_archive_flag_spec=
10898 # include_expsyms should be a list of space-separated symbols to be *always*
10899 # included in the symbol list
10900 include_expsyms=
10901 # exclude_expsyms can be an extended regexp of symbols to exclude
10902 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10903 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10904 # as well as any symbol that contains 'd'.
10905 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10906 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10907 # platforms (ab)use it in PIC code, but their linkers get confused if
10908 # the symbol is explicitly referenced. Since portable code cannot
10909 # rely on this symbol name, it's probably fine to never include it in
10910 # preloaded symbol tables.
10911 # Exclude shared library initialization/finalization symbols.
10912 extract_expsyms_cmds=
10913
10914 case $host_os in
10915 cygwin* | mingw* | windows* | pw32* | cegcc*)
10916 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10917 # When not using gcc, we currently assume that we are using
10918 # Microsoft Visual C++ or Intel C++ Compiler.
10919 if test yes != "$GCC"; then
10920 with_gnu_ld=no
10921 fi
10922 ;;
10923 interix*)
10924 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10925 with_gnu_ld=yes
10926 ;;
10927 esac
10928
10929 ld_shlibs=yes
10930
10931 # On some targets, GNU ld is compatible enough with the native linker
10932 # that we're better off using the native interface for both.
10933 lt_use_gnu_ld_interface=no
10934 if test yes = "$with_gnu_ld"; then
10935 case $host_os in
10936 aix*)
10937 # The AIX port of GNU ld has always aspired to compatibility
10938 # with the native linker. However, as the warning in the GNU ld
10939 # block says, versions before 2.19.5* couldn't really create working
10940 # shared libraries, regardless of the interface used.
10941 case `$LD -v 2>&1` in
10942 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10943 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10944 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10945 *)
10946 lt_use_gnu_ld_interface=yes
10947 ;;
10948 esac
10949 ;;
10950 *)
10951 lt_use_gnu_ld_interface=yes
10952 ;;
10953 esac
10954 fi
10955
10956 if test yes = "$lt_use_gnu_ld_interface"; then
10957 # If archive_cmds runs LD, not CC, wlarc should be empty
10958 wlarc='$wl'
10959
10960 # Set some defaults for GNU ld with shared library support. These
10961 # are reset later if shared libraries are not supported. Putting them
10962 # here allows them to be overridden if necessary.
10963 runpath_var=LD_RUN_PATH
10964 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10965 export_dynamic_flag_spec='$wl--export-dynamic'
10966 # ancient GNU ld didn't support --whole-archive et. al.
10967 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10968 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10969 else
10970 whole_archive_flag_spec=
10971 fi
10972 supports_anon_versioning=no
10973 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10974 *GNU\ gold*) supports_anon_versioning=yes ;;
10975 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10976 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10977 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10978 *\ 2.11.*) ;; # other 2.11 versions
10979 *) supports_anon_versioning=yes ;;
10980 esac
10981
10982 # See if GNU ld supports shared libraries.
10983 case $host_os in
10984 aix[3-9]*)
10985 # On AIX/PPC, the GNU linker is very broken
10986 if test ia64 != "$host_cpu"; then
10987 ld_shlibs=no
10988 cat <<_LT_EOF 1>&2
10989
10990 *** Warning: the GNU linker, at least up to release 2.19, is reported
10991 *** to be unable to reliably create shared libraries on AIX.
10992 *** Therefore, libtool is disabling shared libraries support. If you
10993 *** really care for shared libraries, you may want to install binutils
10994 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10995 *** You will then need to restart the configuration process.
10996
10997 _LT_EOF
10998 fi
10999 ;;
11000
11001 amigaos*)
11002 case $host_cpu in
11003 powerpc)
11004 # see comment about AmigaOS4 .so support
11005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11006 archive_expsym_cmds=''
11007 ;;
11008 m68k)
11009 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)'
11010 hardcode_libdir_flag_spec='-L$libdir'
11011 hardcode_minus_L=yes
11012 ;;
11013 esac
11014 ;;
11015
11016 beos*)
11017 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11018 allow_undefined_flag=unsupported
11019 # Joseph Beckenbach <[email protected]> says some releases of gcc
11020 # support --undefined. This deserves some investigation. FIXME
11021 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11022 else
11023 ld_shlibs=no
11024 fi
11025 ;;
11026
11027 cygwin* | mingw* | windows* | pw32* | cegcc*)
11028 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11029 # as there is no search path for DLLs.
11030 hardcode_libdir_flag_spec='-L$libdir'
11031 export_dynamic_flag_spec='$wl--export-all-symbols'
11032 allow_undefined_flag=unsupported
11033 always_export_symbols=no
11034 enable_shared_with_static_runtimes=yes
11035 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'
11036 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11037 file_list_spec='@'
11038
11039 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11040 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11041 # If the export-symbols file already is a .def file, use it as
11042 # is; otherwise, prepend EXPORTS...
11043 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11044 cp $export_symbols $output_objdir/$soname.def;
11045 else
11046 echo EXPORTS > $output_objdir/$soname.def;
11047 cat $export_symbols >> $output_objdir/$soname.def;
11048 fi~
11049 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11050 else
11051 ld_shlibs=no
11052 fi
11053 ;;
11054
11055 haiku*)
11056 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11057 link_all_deplibs=no
11058 ;;
11059
11060 os2*)
11061 hardcode_libdir_flag_spec='-L$libdir'
11062 hardcode_minus_L=yes
11063 allow_undefined_flag=unsupported
11064 shrext_cmds=.dll
11065 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11066 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11067 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11068 $ECHO EXPORTS >> $output_objdir/$libname.def~
11069 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11070 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11071 emximp -o $lib $output_objdir/$libname.def'
11072 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11073 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11074 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11075 $ECHO EXPORTS >> $output_objdir/$libname.def~
11076 prefix_cmds="$SED"~
11077 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11078 prefix_cmds="$prefix_cmds -e 1d";
11079 fi~
11080 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11081 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11082 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11083 emximp -o $lib $output_objdir/$libname.def'
11084 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11085 enable_shared_with_static_runtimes=yes
11086 file_list_spec='@'
11087 ;;
11088
11089 interix[3-9]*)
11090 hardcode_direct=no
11091 hardcode_shlibpath_var=no
11092 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11093 export_dynamic_flag_spec='$wl-E'
11094 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11095 # Instead, shared libraries are loaded at an image base (0x10000000 by
11096 # default) and relocated if they conflict, which is a slow very memory
11097 # consuming and fragmenting process. To avoid this, we pick a random,
11098 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11099 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11100 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11101 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'
11102 ;;
11103
11104 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11105 tmp_diet=no
11106 if test linux-dietlibc = "$host_os"; then
11107 case $cc_basename in
11108 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11109 esac
11110 fi
11111 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11112 && test no = "$tmp_diet"
11113 then
11114 tmp_addflag=' $pic_flag'
11115 tmp_sharedflag='-shared'
11116 case $cc_basename,$host_cpu in
11117 pgcc*) # Portland Group C compiler
11118 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'
11119 tmp_addflag=' $pic_flag'
11120 ;;
11121 pgf77* | pgf90* | pgf95* | pgfortran*)
11122 # Portland Group f77 and f90 compilers
11123 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'
11124 tmp_addflag=' $pic_flag -Mnomain' ;;
11125 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11126 tmp_addflag=' -i_dynamic' ;;
11127 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11128 tmp_addflag=' -i_dynamic -nofor_main' ;;
11129 ifc* | ifort*) # Intel Fortran compiler
11130 tmp_addflag=' -nofor_main' ;;
11131 lf95*) # Lahey Fortran 8.1
11132 whole_archive_flag_spec=
11133 tmp_sharedflag='--shared' ;;
11134 nagfor*) # NAGFOR 5.3
11135 tmp_sharedflag='-Wl,-shared' ;;
11136 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11137 tmp_sharedflag='-qmkshrobj'
11138 tmp_addflag= ;;
11139 nvcc*) # Cuda Compiler Driver 2.2
11140 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'
11141 compiler_needs_object=yes
11142 ;;
11143 esac
11144 case `$CC -V 2>&1 | $SED 5q` in
11145 *Sun\ C*) # Sun C 5.9
11146 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'
11147 compiler_needs_object=yes
11148 tmp_sharedflag='-G' ;;
11149 *Sun\ F*) # Sun Fortran 8.3
11150 tmp_sharedflag='-G' ;;
11151 esac
11152 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11153
11154 if test yes = "$supports_anon_versioning"; then
11155 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11156 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11157 echo "local: *; };" >> $output_objdir/$libname.ver~
11158 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11159 fi
11160
11161 case $cc_basename in
11162 tcc*)
11163 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11164 export_dynamic_flag_spec='-rdynamic'
11165 ;;
11166 xlf* | bgf* | bgxlf* | mpixlf*)
11167 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11168 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11169 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11170 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11171 if test yes = "$supports_anon_versioning"; then
11172 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11173 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11174 echo "local: *; };" >> $output_objdir/$libname.ver~
11175 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11176 fi
11177 ;;
11178 esac
11179 else
11180 ld_shlibs=no
11181 fi
11182 ;;
11183
11184 *-mlibc)
11185 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11186 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11187 ;;
11188
11189 netbsd* | netbsdelf*-gnu)
11190 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11191 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11192 wlarc=
11193 else
11194 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11195 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11196 fi
11197 ;;
11198
11199 solaris*)
11200 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11201 ld_shlibs=no
11202 cat <<_LT_EOF 1>&2
11203
11204 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11205 *** create shared libraries on Solaris systems. Therefore, libtool
11206 *** is disabling shared libraries support. We urge you to upgrade GNU
11207 *** binutils to release 2.9.1 or newer. Another option is to modify
11208 *** your PATH or compiler configuration so that the native linker is
11209 *** used, and then restart.
11210
11211 _LT_EOF
11212 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11213 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11214 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11215 else
11216 ld_shlibs=no
11217 fi
11218 ;;
11219
11220 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11221 case `$LD -v 2>&1` in
11222 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11223 ld_shlibs=no
11224 cat <<_LT_EOF 1>&2
11225
11226 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11227 *** reliably create shared libraries on SCO systems. Therefore, libtool
11228 *** is disabling shared libraries support. We urge you to upgrade GNU
11229 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11230 *** your PATH or compiler configuration so that the native linker is
11231 *** used, and then restart.
11232
11233 _LT_EOF
11234 ;;
11235 *)
11236 # For security reasons, it is highly recommended that you always
11237 # use absolute paths for naming shared libraries, and exclude the
11238 # DT_RUNPATH tag from executables and libraries. But doing so
11239 # requires that you compile everything twice, which is a pain.
11240 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11241 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11243 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11244 else
11245 ld_shlibs=no
11246 fi
11247 ;;
11248 esac
11249 ;;
11250
11251 sunos4*)
11252 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11253 wlarc=
11254 hardcode_direct=yes
11255 hardcode_shlibpath_var=no
11256 ;;
11257
11258 *)
11259 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11260 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11261 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11262 else
11263 ld_shlibs=no
11264 fi
11265 ;;
11266 esac
11267
11268 if test no = "$ld_shlibs"; then
11269 runpath_var=
11270 hardcode_libdir_flag_spec=
11271 export_dynamic_flag_spec=
11272 whole_archive_flag_spec=
11273 fi
11274 else
11275 # PORTME fill in a description of your system's linker (not GNU ld)
11276 case $host_os in
11277 aix3*)
11278 allow_undefined_flag=unsupported
11279 always_export_symbols=yes
11280 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'
11281 # Note: this linker hardcodes the directories in LIBPATH if there
11282 # are no directories specified by -L.
11283 hardcode_minus_L=yes
11284 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11285 # Neither direct hardcoding nor static linking is supported with a
11286 # broken collect2.
11287 hardcode_direct=unsupported
11288 fi
11289 ;;
11290
11291 aix[4-9]*)
11292 if test ia64 = "$host_cpu"; then
11293 # On IA64, the linker does run time linking by default, so we don't
11294 # have to do anything special.
11295 aix_use_runtimelinking=no
11296 exp_sym_flag='-Bexport'
11297 no_entry_flag=
11298 else
11299 # If we're using GNU nm, then we don't want the "-C" option.
11300 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
11301 # Without the "-l" option, or with the "-B" option, AIX nm treats
11302 # weak defined symbols like other global defined symbols, whereas
11303 # GNU nm marks them as "W".
11304 # While the 'weak' keyword is ignored in the Export File, we need
11305 # it in the Import File for the 'aix-soname' feature, so we have
11306 # to replace the "-B" option with "-P" for AIX nm.
11307 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11308 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
11309 else
11310 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
11311 fi
11312 aix_use_runtimelinking=no
11313
11314 # Test if we are trying to use run time linking or normal
11315 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11316 # have runtime linking enabled, and use it for executables.
11317 # For shared libraries, we enable/disable runtime linking
11318 # depending on the kind of the shared library created -
11319 # when "with_aix_soname,aix_use_runtimelinking" is:
11320 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
11321 # "aix,yes" lib.so shared, rtl:yes, for executables
11322 # lib.a static archive
11323 # "both,no" lib.so.V(shr.o) shared, rtl:yes
11324 # lib.a(lib.so.V) shared, rtl:no, for executables
11325 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11326 # lib.a(lib.so.V) shared, rtl:no
11327 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
11328 # lib.a static archive
11329 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11330 for ld_flag in $LDFLAGS; do
11331 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11332 aix_use_runtimelinking=yes
11333 break
11334 fi
11335 done
11336 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11337 # With aix-soname=svr4, we create the lib.so.V shared archives only,
11338 # so we don't have lib.a shared libs to link our executables.
11339 # We have to force runtime linking in this case.
11340 aix_use_runtimelinking=yes
11341 LDFLAGS="$LDFLAGS -Wl,-brtl"
11342 fi
11343 ;;
11344 esac
11345
11346 exp_sym_flag='-bexport'
11347 no_entry_flag='-bnoentry'
11348 fi
11349
11350 # When large executables or shared objects are built, AIX ld can
11351 # have problems creating the table of contents. If linking a library
11352 # or program results in "error TOC overflow" add -mminimal-toc to
11353 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11354 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11355
11356 archive_cmds=''
11357 hardcode_direct=yes
11358 hardcode_direct_absolute=yes
11359 hardcode_libdir_separator=':'
11360 link_all_deplibs=yes
11361 file_list_spec='$wl-f,'
11362 case $with_aix_soname,$aix_use_runtimelinking in
11363 aix,*) ;; # traditional, no import file
11364 svr4,* | *,yes) # use import file
11365 # The Import File defines what to hardcode.
11366 hardcode_direct=no
11367 hardcode_direct_absolute=no
11368 ;;
11369 esac
11370
11371 if test yes = "$GCC"; then
11372 case $host_os in aix4.[012]|aix4.[012].*)
11373 # We only want to do this on AIX 4.2 and lower, the check
11374 # below for broken collect2 doesn't work under 4.3+
11375 collect2name=`$CC -print-prog-name=collect2`
11376 if test -f "$collect2name" &&
11377 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11378 then
11379 # We have reworked collect2
11380 :
11381 else
11382 # We have old collect2
11383 hardcode_direct=unsupported
11384 # It fails to find uninstalled libraries when the uninstalled
11385 # path is not listed in the libpath. Setting hardcode_minus_L
11386 # to unsupported forces relinking
11387 hardcode_minus_L=yes
11388 hardcode_libdir_flag_spec='-L$libdir'
11389 hardcode_libdir_separator=
11390 fi
11391 ;;
11392 esac
11393 shared_flag='-shared'
11394 if test yes = "$aix_use_runtimelinking"; then
11395 shared_flag="$shared_flag "'$wl-G'
11396 fi
11397 # Need to ensure runtime linking is disabled for the traditional
11398 # shared library, or the linker may eventually find shared libraries
11399 # /with/ Import File - we do not want to mix them.
11400 shared_flag_aix='-shared'
11401 shared_flag_svr4='-shared $wl-G'
11402 else
11403 # not using gcc
11404 if test ia64 = "$host_cpu"; then
11405 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11406 # chokes on -Wl,-G. The following line is correct:
11407 shared_flag='-G'
11408 else
11409 if test yes = "$aix_use_runtimelinking"; then
11410 shared_flag='$wl-G'
11411 else
11412 shared_flag='$wl-bM:SRE'
11413 fi
11414 shared_flag_aix='$wl-bM:SRE'
11415 shared_flag_svr4='$wl-G'
11416 fi
11417 fi
11418
11419 export_dynamic_flag_spec='$wl-bexpall'
11420 # It seems that -bexpall does not export symbols beginning with
11421 # underscore (_), so it is better to generate a list of symbols to export.
11422 always_export_symbols=yes
11423 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11424 # Warning - without using the other runtime loading flags (-brtl),
11425 # -berok will link without error, but may produce a broken library.
11426 allow_undefined_flag='-berok'
11427 # Determine the default libpath from the value encoded in an
11428 # empty executable.
11429 if test set = "${lt_cv_aix_libpath+set}"; then
11430 aix_libpath=$lt_cv_aix_libpath
11431 else
11432 if test ${lt_cv_aix_libpath_+y}
11433 then :
11434 printf %s "(cached) " >&6
11435 else case e in #(
11436 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11437 /* end confdefs.h. */
11438
11439 int
11440 main (void)
11441 {
11442
11443 ;
11444 return 0;
11445 }
11446 _ACEOF
11447 if ac_fn_c_try_link "$LINENO"
11448 then :
11449
11450 lt_aix_libpath_sed='
11451 /Import File Strings/,/^$/ {
11452 /^0/ {
11453 s/^0 *\([^ ]*\) *$/\1/
11454 p
11455 }
11456 }'
11457 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11458 # Check for a 64-bit object if we didn't find anything.
11459 if test -z "$lt_cv_aix_libpath_"; then
11460 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11461 fi
11462 fi
11463 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11464 conftest$ac_exeext conftest.$ac_ext
11465 if test -z "$lt_cv_aix_libpath_"; then
11466 lt_cv_aix_libpath_=/usr/lib:/lib
11467 fi
11468 ;;
11469 esac
11470 fi
11471
11472 aix_libpath=$lt_cv_aix_libpath_
11473 fi
11474
11475 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11476 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
11477 else
11478 if test ia64 = "$host_cpu"; then
11479 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11480 allow_undefined_flag="-z nodefs"
11481 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"
11482 else
11483 # Determine the default libpath from the value encoded in an
11484 # empty executable.
11485 if test set = "${lt_cv_aix_libpath+set}"; then
11486 aix_libpath=$lt_cv_aix_libpath
11487 else
11488 if test ${lt_cv_aix_libpath_+y}
11489 then :
11490 printf %s "(cached) " >&6
11491 else case e in #(
11492 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11493 /* end confdefs.h. */
11494
11495 int
11496 main (void)
11497 {
11498
11499 ;
11500 return 0;
11501 }
11502 _ACEOF
11503 if ac_fn_c_try_link "$LINENO"
11504 then :
11505
11506 lt_aix_libpath_sed='
11507 /Import File Strings/,/^$/ {
11508 /^0/ {
11509 s/^0 *\([^ ]*\) *$/\1/
11510 p
11511 }
11512 }'
11513 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11514 # Check for a 64-bit object if we didn't find anything.
11515 if test -z "$lt_cv_aix_libpath_"; then
11516 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11517 fi
11518 fi
11519 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11520 conftest$ac_exeext conftest.$ac_ext
11521 if test -z "$lt_cv_aix_libpath_"; then
11522 lt_cv_aix_libpath_=/usr/lib:/lib
11523 fi
11524 ;;
11525 esac
11526 fi
11527
11528 aix_libpath=$lt_cv_aix_libpath_
11529 fi
11530
11531 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11532 # Warning - without using the other run time loading flags,
11533 # -berok will link without error, but may produce a broken library.
11534 no_undefined_flag=' $wl-bernotok'
11535 allow_undefined_flag=' $wl-berok'
11536 if test yes = "$with_gnu_ld"; then
11537 # We only use this code for GNU lds that support --whole-archive.
11538 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11539 else
11540 # Exported symbols can be pulled into shared objects from archives
11541 whole_archive_flag_spec='$convenience'
11542 fi
11543 archive_cmds_need_lc=yes
11544 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11545 # -brtl affects multiple linker settings, -berok does not and is overridden later
11546 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11547 if test svr4 != "$with_aix_soname"; then
11548 # This is similar to how AIX traditionally builds its shared libraries.
11549 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11550 fi
11551 if test aix != "$with_aix_soname"; then
11552 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11553 else
11554 # used by -dlpreopen to get the symbols
11555 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11556 fi
11557 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11558 fi
11559 fi
11560 ;;
11561
11562 amigaos*)
11563 case $host_cpu in
11564 powerpc)
11565 # see comment about AmigaOS4 .so support
11566 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11567 archive_expsym_cmds=''
11568 ;;
11569 m68k)
11570 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)'
11571 hardcode_libdir_flag_spec='-L$libdir'
11572 hardcode_minus_L=yes
11573 ;;
11574 esac
11575 ;;
11576
11577 bsdi[45]*)
11578 export_dynamic_flag_spec=-rdynamic
11579 ;;
11580
11581 cygwin* | mingw* | windows* | pw32* | cegcc*)
11582 # When not using gcc, we currently assume that we are using
11583 # Microsoft Visual C++ or Intel C++ Compiler.
11584 # hardcode_libdir_flag_spec is actually meaningless, as there is
11585 # no search path for DLLs.
11586 case $cc_basename in
11587 cl* | icl*)
11588 # Native MSVC or ICC
11589 hardcode_libdir_flag_spec=' '
11590 allow_undefined_flag=unsupported
11591 always_export_symbols=yes
11592 file_list_spec='@'
11593 # Tell ltmain to make .lib files, not .a files.
11594 libext=lib
11595 # Tell ltmain to make .dll files, not .so files.
11596 shrext_cmds=.dll
11597 # FIXME: Setting linknames here is a bad hack.
11598 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11599 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11600 cp "$export_symbols" "$output_objdir/$soname.def";
11601 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11602 else
11603 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11604 fi~
11605 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11606 linknames='
11607 # The linker will not automatically build a static lib if we build a DLL.
11608 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11609 enable_shared_with_static_runtimes=yes
11610 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11611 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11612 # Don't use ranlib
11613 old_postinstall_cmds='chmod 644 $oldlib'
11614 postlink_cmds='lt_outputfile="@OUTPUT@"~
11615 lt_tool_outputfile="@TOOL_OUTPUT@"~
11616 case $lt_outputfile in
11617 *.exe|*.EXE) ;;
11618 *)
11619 lt_outputfile=$lt_outputfile.exe
11620 lt_tool_outputfile=$lt_tool_outputfile.exe
11621 ;;
11622 esac~
11623 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11624 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11625 $RM "$lt_outputfile.manifest";
11626 fi'
11627 ;;
11628 *)
11629 # Assume MSVC and ICC wrapper
11630 hardcode_libdir_flag_spec=' '
11631 allow_undefined_flag=unsupported
11632 # Tell ltmain to make .lib files, not .a files.
11633 libext=lib
11634 # Tell ltmain to make .dll files, not .so files.
11635 shrext_cmds=.dll
11636 # FIXME: Setting linknames here is a bad hack.
11637 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11638 # The linker will automatically build a .lib file if we build a DLL.
11639 old_archive_from_new_cmds='true'
11640 # FIXME: Should let the user specify the lib program.
11641 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11642 enable_shared_with_static_runtimes=yes
11643 ;;
11644 esac
11645 ;;
11646
11647 darwin* | rhapsody*)
11648
11649
11650 archive_cmds_need_lc=no
11651 hardcode_direct=no
11652 hardcode_automatic=yes
11653 hardcode_shlibpath_var=unsupported
11654 if test yes = "$lt_cv_ld_force_load"; then
11655 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\"`'
11656
11657 else
11658 whole_archive_flag_spec=''
11659 fi
11660 link_all_deplibs=yes
11661 allow_undefined_flag=$_lt_dar_allow_undefined
11662 case $cc_basename in
11663 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11664 *) _lt_dar_can_shared=$GCC ;;
11665 esac
11666 if test yes = "$_lt_dar_can_shared"; then
11667 output_verbose_link_cmd=func_echo_all
11668 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11669 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11670 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"
11671 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"
11672
11673 else
11674 ld_shlibs=no
11675 fi
11676
11677 ;;
11678
11679 dgux*)
11680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11681 hardcode_libdir_flag_spec='-L$libdir'
11682 hardcode_shlibpath_var=no
11683 ;;
11684
11685 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11686 # support. Future versions do this automatically, but an explicit c++rt0.o
11687 # does not break anything, and helps significantly (at the cost of a little
11688 # extra space).
11689 freebsd2.2*)
11690 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11691 hardcode_libdir_flag_spec='-R$libdir'
11692 hardcode_direct=yes
11693 hardcode_shlibpath_var=no
11694 ;;
11695
11696 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11697 freebsd2.*)
11698 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11699 hardcode_direct=yes
11700 hardcode_minus_L=yes
11701 hardcode_shlibpath_var=no
11702 ;;
11703
11704 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11705 freebsd* | dragonfly* | midnightbsd*)
11706 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11707 hardcode_libdir_flag_spec='-R$libdir'
11708 hardcode_direct=yes
11709 hardcode_shlibpath_var=no
11710 ;;
11711
11712 hpux9*)
11713 if test yes = "$GCC"; then
11714 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11715 else
11716 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11717 fi
11718 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11719 hardcode_libdir_separator=:
11720 hardcode_direct=yes
11721
11722 # hardcode_minus_L: Not really in the search PATH,
11723 # but as the default location of the library.
11724 hardcode_minus_L=yes
11725 export_dynamic_flag_spec='$wl-E'
11726 ;;
11727
11728 hpux10*)
11729 if test yes,no = "$GCC,$with_gnu_ld"; then
11730 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11731 else
11732 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11733 fi
11734 if test no = "$with_gnu_ld"; then
11735 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11736 hardcode_libdir_separator=:
11737 hardcode_direct=yes
11738 hardcode_direct_absolute=yes
11739 export_dynamic_flag_spec='$wl-E'
11740 # hardcode_minus_L: Not really in the search PATH,
11741 # but as the default location of the library.
11742 hardcode_minus_L=yes
11743 fi
11744 ;;
11745
11746 hpux11*)
11747 if test yes,no = "$GCC,$with_gnu_ld"; then
11748 case $host_cpu in
11749 hppa*64*)
11750 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11751 ;;
11752 ia64*)
11753 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11754 ;;
11755 *)
11756 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11757 ;;
11758 esac
11759 else
11760 case $host_cpu in
11761 hppa*64*)
11762 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11763 ;;
11764 ia64*)
11765 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11766 ;;
11767 *)
11768
11769 # Older versions of the 11.00 compiler do not understand -b yet
11770 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11772 printf %s "checking if $CC understands -b... " >&6; }
11773 if test ${lt_cv_prog_compiler__b+y}
11774 then :
11775 printf %s "(cached) " >&6
11776 else case e in #(
11777 e) lt_cv_prog_compiler__b=no
11778 save_LDFLAGS=$LDFLAGS
11779 LDFLAGS="$LDFLAGS -b"
11780 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11781 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11782 # The linker can only warn and ignore the option if not recognized
11783 # So say no if there are warnings
11784 if test -s conftest.err; then
11785 # Append any errors to the config.log.
11786 cat conftest.err 1>&5
11787 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11789 if diff conftest.exp conftest.er2 >/dev/null; then
11790 lt_cv_prog_compiler__b=yes
11791 fi
11792 else
11793 lt_cv_prog_compiler__b=yes
11794 fi
11795 fi
11796 $RM -r conftest*
11797 LDFLAGS=$save_LDFLAGS
11798 ;;
11799 esac
11800 fi
11801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11802 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11803
11804 if test yes = "$lt_cv_prog_compiler__b"; then
11805 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11806 else
11807 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11808 fi
11809
11810 ;;
11811 esac
11812 fi
11813 if test no = "$with_gnu_ld"; then
11814 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11815 hardcode_libdir_separator=:
11816
11817 case $host_cpu in
11818 hppa*64*|ia64*)
11819 hardcode_direct=no
11820 hardcode_shlibpath_var=no
11821 ;;
11822 *)
11823 hardcode_direct=yes
11824 hardcode_direct_absolute=yes
11825 export_dynamic_flag_spec='$wl-E'
11826
11827 # hardcode_minus_L: Not really in the search PATH,
11828 # but as the default location of the library.
11829 hardcode_minus_L=yes
11830 ;;
11831 esac
11832 fi
11833 ;;
11834
11835 irix5* | irix6* | nonstopux*)
11836 if test yes = "$GCC"; then
11837 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'
11838 # Try to use the -exported_symbol ld option, if it does not
11839 # work, assume that -exports_file does not work either and
11840 # implicitly export all symbols.
11841 # This should be the same for all languages, so no per-tag cache variable.
11842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11843 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11844 if test ${lt_cv_irix_exported_symbol+y}
11845 then :
11846 printf %s "(cached) " >&6
11847 else case e in #(
11848 e) save_LDFLAGS=$LDFLAGS
11849 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h. */
11852 int foo (void) { return 0; }
11853 _ACEOF
11854 if ac_fn_c_try_link "$LINENO"
11855 then :
11856 lt_cv_irix_exported_symbol=yes
11857 else case e in #(
11858 e) lt_cv_irix_exported_symbol=no ;;
11859 esac
11860 fi
11861 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11862 conftest$ac_exeext conftest.$ac_ext
11863 LDFLAGS=$save_LDFLAGS ;;
11864 esac
11865 fi
11866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11867 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11868 if test yes = "$lt_cv_irix_exported_symbol"; then
11869 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'
11870 fi
11871 else
11872 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'
11873 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'
11874 fi
11875 archive_cmds_need_lc='no'
11876 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11877 hardcode_libdir_separator=:
11878 inherit_rpath=yes
11879 link_all_deplibs=yes
11880 ;;
11881
11882 linux*)
11883 case $cc_basename in
11884 tcc*)
11885 # Fabrice Bellard et al's Tiny C Compiler
11886 ld_shlibs=yes
11887 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11888 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11889 ;;
11890 esac
11891 ;;
11892
11893 *-mlibc)
11894 ;;
11895
11896 netbsd* | netbsdelf*-gnu)
11897 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11899 else
11900 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11901 fi
11902 hardcode_libdir_flag_spec='-R$libdir'
11903 hardcode_direct=yes
11904 hardcode_shlibpath_var=no
11905 ;;
11906
11907 newsos6)
11908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11909 hardcode_direct=yes
11910 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11911 hardcode_libdir_separator=:
11912 hardcode_shlibpath_var=no
11913 ;;
11914
11915 *nto* | *qnx*)
11916 ;;
11917
11918 openbsd*)
11919 if test -f /usr/libexec/ld.so; then
11920 hardcode_direct=yes
11921 hardcode_shlibpath_var=no
11922 hardcode_direct_absolute=yes
11923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11924 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11925 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11926 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11927 export_dynamic_flag_spec='$wl-E'
11928 else
11929 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11930 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11931 fi
11932 else
11933 ld_shlibs=no
11934 fi
11935 ;;
11936
11937 os2*)
11938 hardcode_libdir_flag_spec='-L$libdir'
11939 hardcode_minus_L=yes
11940 allow_undefined_flag=unsupported
11941 shrext_cmds=.dll
11942 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11943 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11944 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11945 $ECHO EXPORTS >> $output_objdir/$libname.def~
11946 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11947 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11948 emximp -o $lib $output_objdir/$libname.def'
11949 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11950 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11951 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11952 $ECHO EXPORTS >> $output_objdir/$libname.def~
11953 prefix_cmds="$SED"~
11954 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11955 prefix_cmds="$prefix_cmds -e 1d";
11956 fi~
11957 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11958 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11959 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11960 emximp -o $lib $output_objdir/$libname.def'
11961 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11962 enable_shared_with_static_runtimes=yes
11963 file_list_spec='@'
11964 ;;
11965
11966 osf3*)
11967 if test yes = "$GCC"; then
11968 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11969 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'
11970 else
11971 allow_undefined_flag=' -expect_unresolved \*'
11972 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'
11973 fi
11974 archive_cmds_need_lc='no'
11975 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11976 hardcode_libdir_separator=:
11977 ;;
11978
11979 osf4* | osf5*) # as osf3* with the addition of -msym flag
11980 if test yes = "$GCC"; then
11981 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11982 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'
11983 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11984 else
11985 allow_undefined_flag=' -expect_unresolved \*'
11986 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'
11987 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~
11988 $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'
11989
11990 # Both c and cxx compiler support -rpath directly
11991 hardcode_libdir_flag_spec='-rpath $libdir'
11992 fi
11993 archive_cmds_need_lc='no'
11994 hardcode_libdir_separator=:
11995 ;;
11996
11997 serenity*)
11998 ;;
11999
12000 solaris*)
12001 no_undefined_flag=' -z defs'
12002 if test yes = "$GCC"; then
12003 wlarc='$wl'
12004 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
12005 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12006 $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'
12007 else
12008 case `$CC -V 2>&1` in
12009 *"Compilers 5.0"*)
12010 wlarc=''
12011 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
12012 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12013 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12014 ;;
12015 *)
12016 wlarc='$wl'
12017 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12018 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12019 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12020 ;;
12021 esac
12022 fi
12023 hardcode_libdir_flag_spec='-R$libdir'
12024 hardcode_shlibpath_var=no
12025 case $host_os in
12026 solaris2.[0-5] | solaris2.[0-5].*) ;;
12027 *)
12028 # The compiler driver will combine and reorder linker options,
12029 # but understands '-z linker_flag'. GCC discards it without '$wl',
12030 # but is careful enough not to reorder.
12031 # Supported since Solaris 2.6 (maybe 2.5.1?)
12032 if test yes = "$GCC"; then
12033 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
12034 else
12035 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12036 fi
12037 ;;
12038 esac
12039 link_all_deplibs=yes
12040 ;;
12041
12042 sunos4*)
12043 if test sequent = "$host_vendor"; then
12044 # Use $CC to link under sequent, because it throws in some extra .o
12045 # files that make .init and .fini sections work.
12046 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12047 else
12048 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12049 fi
12050 hardcode_libdir_flag_spec='-L$libdir'
12051 hardcode_direct=yes
12052 hardcode_minus_L=yes
12053 hardcode_shlibpath_var=no
12054 ;;
12055
12056 sysv4)
12057 case $host_vendor in
12058 sni)
12059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12060 hardcode_direct=yes # is this really true???
12061 ;;
12062 siemens)
12063 ## LD is ld it makes a PLAMLIB
12064 ## CC just makes a GrossModule.
12065 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12066 reload_cmds='$CC -r -o $output$reload_objs'
12067 hardcode_direct=no
12068 ;;
12069 motorola)
12070 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12071 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12072 ;;
12073 esac
12074 runpath_var='LD_RUN_PATH'
12075 hardcode_shlibpath_var=no
12076 ;;
12077
12078 sysv4.3*)
12079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12080 hardcode_shlibpath_var=no
12081 export_dynamic_flag_spec='-Bexport'
12082 ;;
12083
12084 sysv4*MP*)
12085 if test -d /usr/nec; then
12086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12087 hardcode_shlibpath_var=no
12088 runpath_var=LD_RUN_PATH
12089 hardcode_runpath_var=yes
12090 ld_shlibs=yes
12091 fi
12092 ;;
12093
12094 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12095 no_undefined_flag='$wl-z,text'
12096 archive_cmds_need_lc=no
12097 hardcode_shlibpath_var=no
12098 runpath_var='LD_RUN_PATH'
12099
12100 if test yes = "$GCC"; then
12101 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12102 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12103 else
12104 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12105 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12106 fi
12107 ;;
12108
12109 sysv5* | sco3.2v5* | sco5v6*)
12110 # Note: We CANNOT use -z defs as we might desire, because we do not
12111 # link with -lc, and that would cause any symbols used from libc to
12112 # always be unresolved, which means just about no library would
12113 # ever link correctly. If we're not using GNU ld we use -z text
12114 # though, which does catch some bad symbols but isn't as heavy-handed
12115 # as -z defs.
12116 no_undefined_flag='$wl-z,text'
12117 allow_undefined_flag='$wl-z,nodefs'
12118 archive_cmds_need_lc=no
12119 hardcode_shlibpath_var=no
12120 hardcode_libdir_flag_spec='$wl-R,$libdir'
12121 hardcode_libdir_separator=':'
12122 link_all_deplibs=yes
12123 export_dynamic_flag_spec='$wl-Bexport'
12124 runpath_var='LD_RUN_PATH'
12125
12126 if test yes = "$GCC"; then
12127 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12128 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12129 else
12130 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12131 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12132 fi
12133 ;;
12134
12135 uts4*)
12136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12137 hardcode_libdir_flag_spec='-L$libdir'
12138 hardcode_shlibpath_var=no
12139 ;;
12140
12141 *)
12142 ld_shlibs=no
12143 ;;
12144 esac
12145
12146 if test sni = "$host_vendor"; then
12147 case $host in
12148 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12149 export_dynamic_flag_spec='$wl-Blargedynsym'
12150 ;;
12151 esac
12152 fi
12153 fi
12154
12155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12156 printf "%s\n" "$ld_shlibs" >&6; }
12157 test no = "$ld_shlibs" && can_build_shared=no
12158
12159 with_gnu_ld=$with_gnu_ld
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175 #
12176 # Do we need to explicitly link libc?
12177 #
12178 case "x$archive_cmds_need_lc" in
12179 x|xyes)
12180 # Assume -lc should be added
12181 archive_cmds_need_lc=yes
12182
12183 if test yes,yes = "$GCC,$enable_shared"; then
12184 case $archive_cmds in
12185 *'~'*)
12186 # FIXME: we may have to deal with multi-command sequences.
12187 ;;
12188 '$CC '*)
12189 # Test whether the compiler implicitly links with -lc since on some
12190 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12191 # to ld, don't add -lc before -lgcc.
12192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12193 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
12194 if test ${lt_cv_archive_cmds_need_lc+y}
12195 then :
12196 printf %s "(cached) " >&6
12197 else case e in #(
12198 e) $RM conftest*
12199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12200
12201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12202 (eval $ac_compile) 2>&5
12203 ac_status=$?
12204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12205 test $ac_status = 0; } 2>conftest.err; then
12206 soname=conftest
12207 lib=conftest
12208 libobjs=conftest.$ac_objext
12209 deplibs=
12210 wl=$lt_prog_compiler_wl
12211 pic_flag=$lt_prog_compiler_pic
12212 compiler_flags=-v
12213 linker_flags=-v
12214 verstring=
12215 output_objdir=.
12216 libname=conftest
12217 lt_save_allow_undefined_flag=$allow_undefined_flag
12218 allow_undefined_flag=
12219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12220 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12221 ac_status=$?
12222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12223 test $ac_status = 0; }
12224 then
12225 lt_cv_archive_cmds_need_lc=no
12226 else
12227 lt_cv_archive_cmds_need_lc=yes
12228 fi
12229 allow_undefined_flag=$lt_save_allow_undefined_flag
12230 else
12231 cat conftest.err 1>&5
12232 fi
12233 $RM conftest*
12234 ;;
12235 esac
12236 fi
12237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12238 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
12239 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12240 ;;
12241 esac
12242 fi
12243 ;;
12244 esac
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12398 printf %s "checking dynamic linker characteristics... " >&6; }
12399
12400 if test yes = "$GCC"; then
12401 case $host_os in
12402 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12403 *) lt_awk_arg='/^libraries:/' ;;
12404 esac
12405 case $host_os in
12406 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12407 *) lt_sed_strip_eq='s|=/|/|g' ;;
12408 esac
12409 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12410 case $lt_search_path_spec in
12411 *\;*)
12412 # if the path contains ";" then we assume it to be the separator
12413 # otherwise default to the standard path separator (i.e. ":") - it is
12414 # assumed that no part of a normal pathname contains ";" but that should
12415 # okay in the real world where ";" in dirpaths is itself problematic.
12416 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12417 ;;
12418 *)
12419 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12420 ;;
12421 esac
12422 # Ok, now we have the path, separated by spaces, we can step through it
12423 # and add multilib dir if necessary...
12424 lt_tmp_lt_search_path_spec=
12425 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12426 # ...but if some path component already ends with the multilib dir we assume
12427 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12428 case "$lt_multi_os_dir; $lt_search_path_spec " in
12429 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12430 lt_multi_os_dir=
12431 ;;
12432 esac
12433 for lt_sys_path in $lt_search_path_spec; do
12434 if test -d "$lt_sys_path$lt_multi_os_dir"; then
12435 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12436 elif test -n "$lt_multi_os_dir"; then
12437 test -d "$lt_sys_path" && \
12438 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12439 fi
12440 done
12441 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12442 BEGIN {RS = " "; FS = "/|\n";} {
12443 lt_foo = "";
12444 lt_count = 0;
12445 for (lt_i = NF; lt_i > 0; lt_i--) {
12446 if ($lt_i != "" && $lt_i != ".") {
12447 if ($lt_i == "..") {
12448 lt_count++;
12449 } else {
12450 if (lt_count == 0) {
12451 lt_foo = "/" $lt_i lt_foo;
12452 } else {
12453 lt_count--;
12454 }
12455 }
12456 }
12457 }
12458 if (lt_foo != "") { lt_freq[lt_foo]++; }
12459 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12460 }'`
12461 # AWK program above erroneously prepends '/' to C:/dos/paths
12462 # for these hosts.
12463 case $host_os in
12464 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12465 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12466 esac
12467 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12468 else
12469 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12470 fi
12471 library_names_spec=
12472 libname_spec='lib$name'
12473 soname_spec=
12474 shrext_cmds=.so
12475 postinstall_cmds=
12476 postuninstall_cmds=
12477 finish_cmds=
12478 finish_eval=
12479 shlibpath_var=
12480 shlibpath_overrides_runpath=unknown
12481 version_type=none
12482 dynamic_linker="$host_os ld.so"
12483 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12484 need_lib_prefix=unknown
12485 hardcode_into_libs=no
12486
12487 # when you set need_version to no, make sure it does not cause -set_version
12488 # flags to be left without arguments
12489 need_version=unknown
12490
12491
12492
12493 case $host_os in
12494 aix3*)
12495 version_type=linux # correct to gnu/linux during the next big refactor
12496 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12497 shlibpath_var=LIBPATH
12498
12499 # AIX 3 has no versioning support, so we append a major version to the name.
12500 soname_spec='$libname$release$shared_ext$major'
12501 ;;
12502
12503 aix[4-9]*)
12504 version_type=linux # correct to gnu/linux during the next big refactor
12505 need_lib_prefix=no
12506 need_version=no
12507 hardcode_into_libs=yes
12508 if test ia64 = "$host_cpu"; then
12509 # AIX 5 supports IA64
12510 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12511 shlibpath_var=LD_LIBRARY_PATH
12512 else
12513 # With GCC up to 2.95.x, collect2 would create an import file
12514 # for dependence libraries. The import file would start with
12515 # the line '#! .'. This would cause the generated library to
12516 # depend on '.', always an invalid library. This was fixed in
12517 # development snapshots of GCC prior to 3.0.
12518 case $host_os in
12519 aix4 | aix4.[01] | aix4.[01].*)
12520 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12521 echo ' yes '
12522 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12523 :
12524 else
12525 can_build_shared=no
12526 fi
12527 ;;
12528 esac
12529 # Using Import Files as archive members, it is possible to support
12530 # filename-based versioning of shared library archives on AIX. While
12531 # this would work for both with and without runtime linking, it will
12532 # prevent static linking of such archives. So we do filename-based
12533 # shared library versioning with .so extension only, which is used
12534 # when both runtime linking and shared linking is enabled.
12535 # Unfortunately, runtime linking may impact performance, so we do
12536 # not want this to be the default eventually. Also, we use the
12537 # versioned .so libs for executables only if there is the -brtl
12538 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
12539 # To allow for filename-based versioning support, we need to create
12540 # libNAME.so.V as an archive file, containing:
12541 # *) an Import File, referring to the versioned filename of the
12542 # archive as well as the shared archive member, telling the
12543 # bitwidth (32 or 64) of that shared object, and providing the
12544 # list of exported symbols of that shared object, eventually
12545 # decorated with the 'weak' keyword
12546 # *) the shared object with the F_LOADONLY flag set, to really avoid
12547 # it being seen by the linker.
12548 # At run time we better use the real file rather than another symlink,
12549 # but for link time we create the symlink libNAME.so -> libNAME.so.V
12550
12551 case $with_aix_soname,$aix_use_runtimelinking in
12552 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12553 # soname into executable. Probably we can add versioning support to
12554 # collect2, so additional links can be useful in future.
12555 aix,yes) # traditional libtool
12556 dynamic_linker='AIX unversionable lib.so'
12557 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12558 # instead of lib<name>.a to let people know that these are not
12559 # typical AIX shared libraries.
12560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12561 ;;
12562 aix,no) # traditional AIX only
12563 dynamic_linker='AIX lib.a(lib.so.V)'
12564 # We preserve .a as extension for shared libraries through AIX4.2
12565 # and later when we are not doing run time linking.
12566 library_names_spec='$libname$release.a $libname.a'
12567 soname_spec='$libname$release$shared_ext$major'
12568 ;;
12569 svr4,*) # full svr4 only
12570 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12571 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12572 # We do not specify a path in Import Files, so LIBPATH fires.
12573 shlibpath_overrides_runpath=yes
12574 ;;
12575 *,yes) # both, prefer svr4
12576 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12577 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12578 # unpreferred sharedlib libNAME.a needs extra handling
12579 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12580 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12581 # We do not specify a path in Import Files, so LIBPATH fires.
12582 shlibpath_overrides_runpath=yes
12583 ;;
12584 *,no) # both, prefer aix
12585 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12586 library_names_spec='$libname$release.a $libname.a'
12587 soname_spec='$libname$release$shared_ext$major'
12588 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12589 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12590 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12591 ;;
12592 esac
12593 shlibpath_var=LIBPATH
12594 fi
12595 ;;
12596
12597 amigaos*)
12598 case $host_cpu in
12599 powerpc)
12600 # Since July 2007 AmigaOS4 officially supports .so libraries.
12601 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12602 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12603 ;;
12604 m68k)
12605 library_names_spec='$libname.ixlibrary $libname.a'
12606 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12607 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
12608 ;;
12609 esac
12610 ;;
12611
12612 beos*)
12613 library_names_spec='$libname$shared_ext'
12614 dynamic_linker="$host_os ld.so"
12615 shlibpath_var=LIBRARY_PATH
12616 ;;
12617
12618 bsdi[45]*)
12619 version_type=linux # correct to gnu/linux during the next big refactor
12620 need_version=no
12621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12622 soname_spec='$libname$release$shared_ext$major'
12623 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12624 shlibpath_var=LD_LIBRARY_PATH
12625 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12626 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12627 # the default ld.so.conf also contains /usr/contrib/lib and
12628 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12629 # libtool to hard-code these into programs
12630 ;;
12631
12632 cygwin* | mingw* | windows* | pw32* | cegcc*)
12633 version_type=windows
12634 shrext_cmds=.dll
12635 need_version=no
12636 need_lib_prefix=no
12637
12638 case $GCC,$cc_basename in
12639 yes,*)
12640 # gcc
12641 library_names_spec='$libname.dll.a'
12642 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12643 # If user builds GCC with multilib enabled,
12644 # it should just install on $(libdir)
12645 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12646 if test xyes = x"$multilib"; then
12647 postinstall_cmds='base_file=`basename \$file`~
12648 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12649 dldir=$destdir/`dirname \$dlpath`~
12650 $install_prog $dir/$dlname $destdir/$dlname~
12651 chmod a+x $destdir/$dlname~
12652 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12653 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12654 fi'
12655 else
12656 postinstall_cmds='base_file=`basename \$file`~
12657 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12658 dldir=$destdir/`dirname \$dlpath`~
12659 test -d \$dldir || mkdir -p \$dldir~
12660 $install_prog $dir/$dlname \$dldir/$dlname~
12661 chmod a+x \$dldir/$dlname~
12662 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12663 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12664 fi'
12665 fi
12666 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12667 dlpath=$dir/\$dldll~
12668 $RM \$dlpath'
12669 shlibpath_overrides_runpath=yes
12670
12671 case $host_os in
12672 cygwin*)
12673 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12674 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12675
12676 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12677 ;;
12678 mingw* | windows* | cegcc*)
12679 # MinGW DLLs use traditional 'lib' prefix
12680 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12681 ;;
12682 pw32*)
12683 # pw32 DLLs use 'pw' prefix rather than 'lib'
12684 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12685 ;;
12686 esac
12687 dynamic_linker='Win32 ld.exe'
12688 ;;
12689
12690 *,cl* | *,icl*)
12691 # Native MSVC or ICC
12692 libname_spec='$name'
12693 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12694 library_names_spec='$libname.dll.lib'
12695
12696 case $build_os in
12697 mingw* | windows*)
12698 sys_lib_search_path_spec=
12699 lt_save_ifs=$IFS
12700 IFS=';'
12701 for lt_path in $LIB
12702 do
12703 IFS=$lt_save_ifs
12704 # Let DOS variable expansion print the short 8.3 style file name.
12705 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12706 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12707 done
12708 IFS=$lt_save_ifs
12709 # Convert to MSYS style.
12710 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12711 ;;
12712 cygwin*)
12713 # Convert to unix form, then to dos form, then back to unix form
12714 # but this time dos style (no spaces!) so that the unix form looks
12715 # like /cygdrive/c/PROGRA~1:/cygdr...
12716 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12717 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12718 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12719 ;;
12720 *)
12721 sys_lib_search_path_spec=$LIB
12722 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12723 # It is most probably a Windows format PATH.
12724 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12725 else
12726 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12727 fi
12728 # FIXME: find the short name or the path components, as spaces are
12729 # common. (e.g. "Program Files" -> "PROGRA~1")
12730 ;;
12731 esac
12732
12733 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12734 postinstall_cmds='base_file=`basename \$file`~
12735 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12736 dldir=$destdir/`dirname \$dlpath`~
12737 test -d \$dldir || mkdir -p \$dldir~
12738 $install_prog $dir/$dlname \$dldir/$dlname'
12739 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12740 dlpath=$dir/\$dldll~
12741 $RM \$dlpath'
12742 shlibpath_overrides_runpath=yes
12743 dynamic_linker='Win32 link.exe'
12744 ;;
12745
12746 *)
12747 # Assume MSVC and ICC wrapper
12748 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12749 dynamic_linker='Win32 ld.exe'
12750 ;;
12751 esac
12752 # FIXME: first we should search . and the directory the executable is in
12753 shlibpath_var=PATH
12754 ;;
12755
12756 darwin* | rhapsody*)
12757 dynamic_linker="$host_os dyld"
12758 version_type=darwin
12759 need_lib_prefix=no
12760 need_version=no
12761 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12762 soname_spec='$libname$release$major$shared_ext'
12763 shlibpath_overrides_runpath=yes
12764 shlibpath_var=DYLD_LIBRARY_PATH
12765 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12766
12767 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12768 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12769 ;;
12770
12771 dgux*)
12772 version_type=linux # correct to gnu/linux during the next big refactor
12773 need_lib_prefix=no
12774 need_version=no
12775 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12776 soname_spec='$libname$release$shared_ext$major'
12777 shlibpath_var=LD_LIBRARY_PATH
12778 ;;
12779
12780 freebsd* | dragonfly* | midnightbsd*)
12781 # DragonFly does not have aout. When/if they implement a new
12782 # versioning mechanism, adjust this.
12783 if test -x /usr/bin/objformat; then
12784 objformat=`/usr/bin/objformat`
12785 else
12786 case $host_os in
12787 freebsd[23].*) objformat=aout ;;
12788 *) objformat=elf ;;
12789 esac
12790 fi
12791 version_type=freebsd-$objformat
12792 case $version_type in
12793 freebsd-elf*)
12794 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12795 soname_spec='$libname$release$shared_ext$major'
12796 need_version=no
12797 need_lib_prefix=no
12798 ;;
12799 freebsd-*)
12800 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12801 need_version=yes
12802 ;;
12803 esac
12804 case $host_cpu in
12805 powerpc64)
12806 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12807 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h. */
12810 int test_pointer_size[sizeof (void *) - 5];
12811
12812 _ACEOF
12813 if ac_fn_c_try_compile "$LINENO"
12814 then :
12815 shlibpath_var=LD_LIBRARY_PATH
12816 else case e in #(
12817 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12818 esac
12819 fi
12820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12821 ;;
12822 *)
12823 shlibpath_var=LD_LIBRARY_PATH
12824 ;;
12825 esac
12826 case $host_os in
12827 freebsd2.*)
12828 shlibpath_overrides_runpath=yes
12829 ;;
12830 freebsd3.[01]* | freebsdelf3.[01]*)
12831 shlibpath_overrides_runpath=yes
12832 hardcode_into_libs=yes
12833 ;;
12834 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12835 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12836 shlibpath_overrides_runpath=no
12837 hardcode_into_libs=yes
12838 ;;
12839 *) # from 4.6 on, and DragonFly
12840 shlibpath_overrides_runpath=yes
12841 hardcode_into_libs=yes
12842 ;;
12843 esac
12844 ;;
12845
12846 haiku*)
12847 version_type=linux # correct to gnu/linux during the next big refactor
12848 need_lib_prefix=no
12849 need_version=no
12850 dynamic_linker="$host_os runtime_loader"
12851 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12852 soname_spec='$libname$release$shared_ext$major'
12853 shlibpath_var=LIBRARY_PATH
12854 shlibpath_overrides_runpath=no
12855 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12856 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12857 hardcode_into_libs=no
12858 ;;
12859
12860 hpux9* | hpux10* | hpux11*)
12861 # Give a soname corresponding to the major version so that dld.sl refuses to
12862 # link against other versions.
12863 version_type=sunos
12864 need_lib_prefix=no
12865 need_version=no
12866 case $host_cpu in
12867 ia64*)
12868 shrext_cmds='.so'
12869 hardcode_into_libs=yes
12870 dynamic_linker="$host_os dld.so"
12871 shlibpath_var=LD_LIBRARY_PATH
12872 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12874 soname_spec='$libname$release$shared_ext$major'
12875 if test 32 = "$HPUX_IA64_MODE"; then
12876 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12877 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12878 else
12879 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12880 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12881 fi
12882 ;;
12883 hppa*64*)
12884 shrext_cmds='.sl'
12885 hardcode_into_libs=yes
12886 dynamic_linker="$host_os dld.sl"
12887 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12888 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12889 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12890 soname_spec='$libname$release$shared_ext$major'
12891 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12892 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12893 ;;
12894 *)
12895 shrext_cmds='.sl'
12896 dynamic_linker="$host_os dld.sl"
12897 shlibpath_var=SHLIB_PATH
12898 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12900 soname_spec='$libname$release$shared_ext$major'
12901 ;;
12902 esac
12903 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12904 postinstall_cmds='chmod 555 $lib'
12905 # or fails outright, so override atomically:
12906 install_override_mode=555
12907 ;;
12908
12909 interix[3-9]*)
12910 version_type=linux # correct to gnu/linux during the next big refactor
12911 need_lib_prefix=no
12912 need_version=no
12913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12914 soname_spec='$libname$release$shared_ext$major'
12915 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12916 shlibpath_var=LD_LIBRARY_PATH
12917 shlibpath_overrides_runpath=no
12918 hardcode_into_libs=yes
12919 ;;
12920
12921 irix5* | irix6* | nonstopux*)
12922 case $host_os in
12923 nonstopux*) version_type=nonstopux ;;
12924 *)
12925 if test yes = "$lt_cv_prog_gnu_ld"; then
12926 version_type=linux # correct to gnu/linux during the next big refactor
12927 else
12928 version_type=irix
12929 fi ;;
12930 esac
12931 need_lib_prefix=no
12932 need_version=no
12933 soname_spec='$libname$release$shared_ext$major'
12934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12935 case $host_os in
12936 irix5* | nonstopux*)
12937 libsuff= shlibsuff=
12938 ;;
12939 *)
12940 case $LD in # libtool.m4 will add one of these switches to LD
12941 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12942 libsuff= shlibsuff= libmagic=32-bit;;
12943 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12944 libsuff=32 shlibsuff=N32 libmagic=N32;;
12945 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12946 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12947 *) libsuff= shlibsuff= libmagic=never-match;;
12948 esac
12949 ;;
12950 esac
12951 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12952 shlibpath_overrides_runpath=no
12953 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12954 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12955 hardcode_into_libs=yes
12956 ;;
12957
12958 # No shared lib support for Linux oldld, aout, or coff.
12959 linux*oldld* | linux*aout* | linux*coff*)
12960 dynamic_linker=no
12961 ;;
12962
12963 linux*android*)
12964 version_type=none # Android doesn't support versioned libraries.
12965 need_lib_prefix=no
12966 need_version=no
12967 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12968 soname_spec='$libname$release$shared_ext'
12969 finish_cmds=
12970 shlibpath_var=LD_LIBRARY_PATH
12971 shlibpath_overrides_runpath=yes
12972
12973 # This implies no fast_install, which is unacceptable.
12974 # Some rework will be needed to allow for fast_install
12975 # before this can be enabled.
12976 hardcode_into_libs=yes
12977
12978 dynamic_linker='Android linker'
12979 # -rpath works at least for libraries that are not overridden by
12980 # libraries installed in system locations.
12981 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12982 ;;
12983
12984 # This must be glibc/ELF.
12985 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12986 version_type=linux # correct to gnu/linux during the next big refactor
12987 need_lib_prefix=no
12988 need_version=no
12989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12990 soname_spec='$libname$release$shared_ext$major'
12991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12992 shlibpath_var=LD_LIBRARY_PATH
12993 shlibpath_overrides_runpath=no
12994
12995 # Some binutils ld are patched to set DT_RUNPATH
12996 if test ${lt_cv_shlibpath_overrides_runpath+y}
12997 then :
12998 printf %s "(cached) " >&6
12999 else case e in #(
13000 e) lt_cv_shlibpath_overrides_runpath=no
13001 save_LDFLAGS=$LDFLAGS
13002 save_libdir=$libdir
13003 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13004 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h. */
13007
13008 int
13009 main (void)
13010 {
13011
13012 ;
13013 return 0;
13014 }
13015 _ACEOF
13016 if ac_fn_c_try_link "$LINENO"
13017 then :
13018 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
13019 then :
13020 lt_cv_shlibpath_overrides_runpath=yes
13021 fi
13022 fi
13023 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13024 conftest$ac_exeext conftest.$ac_ext
13025 LDFLAGS=$save_LDFLAGS
13026 libdir=$save_libdir
13027 ;;
13028 esac
13029 fi
13030
13031 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13032
13033 # This implies no fast_install, which is unacceptable.
13034 # Some rework will be needed to allow for fast_install
13035 # before this can be enabled.
13036 hardcode_into_libs=yes
13037
13038 # Add ABI-specific directories to the system library path.
13039 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13040
13041 # Ideally, we could use ldconfig to report *all* directories which are
13042 # searched for libraries, however this is still not possible. Aside from not
13043 # being certain /sbin/ldconfig is available, command
13044 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
13045 # even though it is searched at run-time. Try to do the best guess by
13046 # appending ld.so.conf contents (and includes) to the search path.
13047 if test -f /etc/ld.so.conf; then
13048 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' ' '`
13049 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13050 fi
13051
13052 # We used to test for /lib/ld.so.1 and disable shared libraries on
13053 # powerpc, because MkLinux only supported shared libraries with the
13054 # GNU dynamic linker. Since this was broken with cross compilers,
13055 # most powerpc-linux boxes support dynamic linking these days and
13056 # people can always --disable-shared, the test was removed, and we
13057 # assume the GNU/Linux dynamic linker is in use.
13058 dynamic_linker='GNU/Linux ld.so'
13059 ;;
13060
13061 netbsdelf*-gnu)
13062 version_type=linux
13063 need_lib_prefix=no
13064 need_version=no
13065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13066 soname_spec='$libname$release$shared_ext$major'
13067 shlibpath_var=LD_LIBRARY_PATH
13068 shlibpath_overrides_runpath=no
13069 hardcode_into_libs=yes
13070 dynamic_linker='NetBSD ld.elf_so'
13071 ;;
13072
13073 netbsd*)
13074 version_type=sunos
13075 need_lib_prefix=no
13076 need_version=no
13077 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13078 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13080 dynamic_linker='NetBSD (a.out) ld.so'
13081 else
13082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13083 soname_spec='$libname$release$shared_ext$major'
13084 dynamic_linker='NetBSD ld.elf_so'
13085 fi
13086 shlibpath_var=LD_LIBRARY_PATH
13087 shlibpath_overrides_runpath=yes
13088 hardcode_into_libs=yes
13089 ;;
13090
13091 *-mlibc)
13092 version_type=linux # correct to gnu/linux during the next big refactor
13093 need_lib_prefix=no
13094 need_version=no
13095 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13096 soname_spec='$libname$release$shared_ext$major'
13097 dynamic_linker='mlibc ld.so'
13098 shlibpath_var=LD_LIBRARY_PATH
13099 shlibpath_overrides_runpath=no
13100 hardcode_into_libs=yes
13101 ;;
13102
13103 newsos6)
13104 version_type=linux # correct to gnu/linux during the next big refactor
13105 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13106 shlibpath_var=LD_LIBRARY_PATH
13107 shlibpath_overrides_runpath=yes
13108 ;;
13109
13110 *nto* | *qnx*)
13111 version_type=qnx
13112 need_lib_prefix=no
13113 need_version=no
13114 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13115 soname_spec='$libname$release$shared_ext$major'
13116 shlibpath_var=LD_LIBRARY_PATH
13117 shlibpath_overrides_runpath=no
13118 hardcode_into_libs=yes
13119 dynamic_linker='ldqnx.so'
13120 ;;
13121
13122 openbsd*)
13123 version_type=sunos
13124 sys_lib_dlsearch_path_spec=/usr/lib
13125 need_lib_prefix=no
13126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13127 need_version=no
13128 else
13129 need_version=yes
13130 fi
13131 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13132 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13133 shlibpath_var=LD_LIBRARY_PATH
13134 shlibpath_overrides_runpath=yes
13135 ;;
13136
13137 os2*)
13138 libname_spec='$name'
13139 version_type=windows
13140 shrext_cmds=.dll
13141 need_version=no
13142 need_lib_prefix=no
13143 # OS/2 can only load a DLL with a base name of 8 characters or less.
13144 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13145 v=$($ECHO $release$versuffix | tr -d .-);
13146 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13147 $ECHO $n$v`$shared_ext'
13148 library_names_spec='${libname}_dll.$libext'
13149 dynamic_linker='OS/2 ld.exe'
13150 shlibpath_var=BEGINLIBPATH
13151 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13152 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13153 postinstall_cmds='base_file=`basename \$file`~
13154 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13155 dldir=$destdir/`dirname \$dlpath`~
13156 test -d \$dldir || mkdir -p \$dldir~
13157 $install_prog $dir/$dlname \$dldir/$dlname~
13158 chmod a+x \$dldir/$dlname~
13159 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13160 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13161 fi'
13162 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13163 dlpath=$dir/\$dldll~
13164 $RM \$dlpath'
13165 ;;
13166
13167 osf3* | osf4* | osf5*)
13168 version_type=osf
13169 need_lib_prefix=no
13170 need_version=no
13171 soname_spec='$libname$release$shared_ext$major'
13172 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13173 shlibpath_var=LD_LIBRARY_PATH
13174 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13175 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13176 ;;
13177
13178 rdos*)
13179 dynamic_linker=no
13180 ;;
13181
13182 serenity*)
13183 version_type=linux # correct to gnu/linux during the next big refactor
13184 need_lib_prefix=no
13185 need_version=no
13186 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13187 soname_spec='$libname$release$shared_ext$major'
13188 shlibpath_var=LD_LIBRARY_PATH
13189 shlibpath_overrides_runpath=no
13190 dynamic_linker='SerenityOS LibELF'
13191 ;;
13192
13193 solaris*)
13194 version_type=linux # correct to gnu/linux during the next big refactor
13195 need_lib_prefix=no
13196 need_version=no
13197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13198 soname_spec='$libname$release$shared_ext$major'
13199 shlibpath_var=LD_LIBRARY_PATH
13200 shlibpath_overrides_runpath=yes
13201 hardcode_into_libs=yes
13202 # ldd complains unless libraries are executable
13203 postinstall_cmds='chmod +x $lib'
13204 ;;
13205
13206 sunos4*)
13207 version_type=sunos
13208 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13209 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13210 shlibpath_var=LD_LIBRARY_PATH
13211 shlibpath_overrides_runpath=yes
13212 if test yes = "$with_gnu_ld"; then
13213 need_lib_prefix=no
13214 fi
13215 need_version=yes
13216 ;;
13217
13218 sysv4 | sysv4.3*)
13219 version_type=linux # correct to gnu/linux during the next big refactor
13220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13221 soname_spec='$libname$release$shared_ext$major'
13222 shlibpath_var=LD_LIBRARY_PATH
13223 case $host_vendor in
13224 sni)
13225 shlibpath_overrides_runpath=no
13226 need_lib_prefix=no
13227 runpath_var=LD_RUN_PATH
13228 ;;
13229 siemens)
13230 need_lib_prefix=no
13231 ;;
13232 motorola)
13233 need_lib_prefix=no
13234 need_version=no
13235 shlibpath_overrides_runpath=no
13236 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13237 ;;
13238 esac
13239 ;;
13240
13241 sysv4*MP*)
13242 if test -d /usr/nec; then
13243 version_type=linux # correct to gnu/linux during the next big refactor
13244 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13245 soname_spec='$libname$shared_ext.$major'
13246 shlibpath_var=LD_LIBRARY_PATH
13247 fi
13248 ;;
13249
13250 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13251 version_type=sco
13252 need_lib_prefix=no
13253 need_version=no
13254 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13255 soname_spec='$libname$release$shared_ext$major'
13256 shlibpath_var=LD_LIBRARY_PATH
13257 shlibpath_overrides_runpath=yes
13258 hardcode_into_libs=yes
13259 if test yes = "$with_gnu_ld"; then
13260 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13261 else
13262 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13263 case $host_os in
13264 sco3.2v5*)
13265 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13266 ;;
13267 esac
13268 fi
13269 sys_lib_dlsearch_path_spec='/usr/lib'
13270 ;;
13271
13272 tpf*)
13273 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13274 version_type=linux # correct to gnu/linux during the next big refactor
13275 need_lib_prefix=no
13276 need_version=no
13277 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13278 shlibpath_var=LD_LIBRARY_PATH
13279 shlibpath_overrides_runpath=no
13280 hardcode_into_libs=yes
13281 ;;
13282
13283 uts4*)
13284 version_type=linux # correct to gnu/linux during the next big refactor
13285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13286 soname_spec='$libname$release$shared_ext$major'
13287 shlibpath_var=LD_LIBRARY_PATH
13288 ;;
13289
13290 emscripten*)
13291 version_type=none
13292 need_lib_prefix=no
13293 need_version=no
13294 library_names_spec='$libname$release$shared_ext'
13295 soname_spec='$libname$release$shared_ext'
13296 finish_cmds=
13297 dynamic_linker="Emscripten linker"
13298 lt_prog_compiler_wl=
13299 lt_prog_compiler_pic=
13300 lt_prog_compiler_static=
13301
13302
13303 if test yes = "$GCC"; then
13304 lt_prog_compiler_wl='-Wl,'
13305 lt_prog_compiler_static='-static'
13306
13307 case $host_os in
13308 aix*)
13309 # All AIX code is PIC.
13310 if test ia64 = "$host_cpu"; then
13311 # AIX 5 now supports IA64 processor
13312 lt_prog_compiler_static='-Bstatic'
13313 fi
13314 lt_prog_compiler_pic='-fPIC'
13315 ;;
13316
13317 amigaos*)
13318 case $host_cpu in
13319 powerpc)
13320 # see comment about AmigaOS4 .so support
13321 lt_prog_compiler_pic='-fPIC'
13322 ;;
13323 m68k)
13324 # FIXME: we need at least 68020 code to build shared libraries, but
13325 # adding the '-m68020' flag to GCC prevents building anything better,
13326 # like '-m68040'.
13327 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13328 ;;
13329 esac
13330 ;;
13331
13332 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13333 # PIC is the default for these OSes.
13334 ;;
13335
13336 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13337 # This hack is so that the source file can tell whether it is being
13338 # built for inclusion in a dll (and should export symbols for example).
13339 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13340 # (--disable-auto-import) libraries
13341 lt_prog_compiler_pic='-DDLL_EXPORT'
13342 case $host_os in
13343 os2*)
13344 lt_prog_compiler_static='$wl-static'
13345 ;;
13346 esac
13347 ;;
13348
13349 darwin* | rhapsody*)
13350 # PIC is the default on this platform
13351 # Common symbols not allowed in MH_DYLIB files
13352 lt_prog_compiler_pic='-fno-common'
13353 ;;
13354
13355 haiku*)
13356 # PIC is the default for Haiku.
13357 # The "-static" flag exists, but is broken.
13358 lt_prog_compiler_static=
13359 ;;
13360
13361 hpux*)
13362 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13363 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13364 # sets the default TLS model and affects inlining.
13365 case $host_cpu in
13366 hppa*64*)
13367 # +Z the default
13368 ;;
13369 *)
13370 lt_prog_compiler_pic='-fPIC'
13371 ;;
13372 esac
13373 ;;
13374
13375 interix[3-9]*)
13376 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13377 # Instead, we relocate shared libraries at runtime.
13378 ;;
13379
13380 msdosdjgpp*)
13381 # Just because we use GCC doesn't mean we suddenly get shared libraries
13382 # on systems that don't support them.
13383 lt_prog_compiler_can_build_shared=no
13384 enable_shared=no
13385 ;;
13386
13387 *nto* | *qnx*)
13388 # QNX uses GNU C++, but need to define -shared option too, otherwise
13389 # it will coredump.
13390 lt_prog_compiler_pic='-fPIC -shared'
13391 ;;
13392
13393 sysv4*MP*)
13394 if test -d /usr/nec; then
13395 lt_prog_compiler_pic=-Kconform_pic
13396 fi
13397 ;;
13398
13399 *)
13400 lt_prog_compiler_pic='-fPIC'
13401 ;;
13402 esac
13403
13404 case $cc_basename in
13405 nvcc*) # Cuda Compiler Driver 2.2
13406 lt_prog_compiler_wl='-Xlinker '
13407 if test -n "$lt_prog_compiler_pic"; then
13408 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13409 fi
13410 ;;
13411 esac
13412 else
13413 # PORTME Check for flag to pass linker flags through the system compiler.
13414 case $host_os in
13415 aix*)
13416 lt_prog_compiler_wl='-Wl,'
13417 if test ia64 = "$host_cpu"; then
13418 # AIX 5 now supports IA64 processor
13419 lt_prog_compiler_static='-Bstatic'
13420 else
13421 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13422 fi
13423 ;;
13424
13425 darwin* | rhapsody*)
13426 # PIC is the default on this platform
13427 # Common symbols not allowed in MH_DYLIB files
13428 lt_prog_compiler_pic='-fno-common'
13429 case $cc_basename in
13430 nagfor*)
13431 # NAG Fortran compiler
13432 lt_prog_compiler_wl='-Wl,-Wl,,'
13433 lt_prog_compiler_pic='-PIC'
13434 lt_prog_compiler_static='-Bstatic'
13435 ;;
13436 esac
13437 ;;
13438
13439 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
13440 # This hack is so that the source file can tell whether it is being
13441 # built for inclusion in a dll (and should export symbols for example).
13442 lt_prog_compiler_pic='-DDLL_EXPORT'
13443 case $host_os in
13444 os2*)
13445 lt_prog_compiler_static='$wl-static'
13446 ;;
13447 esac
13448 ;;
13449
13450 hpux9* | hpux10* | hpux11*)
13451 lt_prog_compiler_wl='-Wl,'
13452 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13453 # not for PA HP-UX.
13454 case $host_cpu in
13455 hppa*64*|ia64*)
13456 # +Z the default
13457 ;;
13458 *)
13459 lt_prog_compiler_pic='+Z'
13460 ;;
13461 esac
13462 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13463 lt_prog_compiler_static='$wl-a ${wl}archive'
13464 ;;
13465
13466 irix5* | irix6* | nonstopux*)
13467 lt_prog_compiler_wl='-Wl,'
13468 # PIC (with -KPIC) is the default.
13469 lt_prog_compiler_static='-non_shared'
13470 ;;
13471
13472 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13473 case $cc_basename in
13474 # old Intel for x86_64, which still supported -KPIC.
13475 ecc*)
13476 lt_prog_compiler_wl='-Wl,'
13477 lt_prog_compiler_pic='-KPIC'
13478 lt_prog_compiler_static='-static'
13479 ;;
13480 *flang* | ftn | f18* | f95*)
13481 # Flang compiler.
13482 lt_prog_compiler_wl='-Wl,'
13483 lt_prog_compiler_pic='-fPIC'
13484 lt_prog_compiler_static='-static'
13485 ;;
13486 # icc used to be incompatible with GCC.
13487 # ICC 10 doesn't accept -KPIC any more.
13488 icc* | ifort*)
13489 lt_prog_compiler_wl='-Wl,'
13490 lt_prog_compiler_pic='-fPIC'
13491 lt_prog_compiler_static='-static'
13492 ;;
13493 # Lahey Fortran 8.1.
13494 lf95*)
13495 lt_prog_compiler_wl='-Wl,'
13496 lt_prog_compiler_pic='--shared'
13497 lt_prog_compiler_static='--static'
13498 ;;
13499 nagfor*)
13500 # NAG Fortran compiler
13501 lt_prog_compiler_wl='-Wl,-Wl,,'
13502 lt_prog_compiler_pic='-PIC'
13503 lt_prog_compiler_static='-Bstatic'
13504 ;;
13505 tcc*)
13506 # Fabrice Bellard et al's Tiny C Compiler
13507 lt_prog_compiler_wl='-Wl,'
13508 lt_prog_compiler_pic='-fPIC'
13509 lt_prog_compiler_static='-static'
13510 ;;
13511 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13512 # Portland Group compilers (*not* the Pentium gcc compiler,
13513 # which looks to be a dead project)
13514 lt_prog_compiler_wl='-Wl,'
13515 lt_prog_compiler_pic='-fpic'
13516 lt_prog_compiler_static='-Bstatic'
13517 ;;
13518 ccc*)
13519 lt_prog_compiler_wl='-Wl,'
13520 # All Alpha code is PIC.
13521 lt_prog_compiler_static='-non_shared'
13522 ;;
13523 xl* | bgxl* | bgf* | mpixl*)
13524 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13525 lt_prog_compiler_wl='-Wl,'
13526 lt_prog_compiler_pic='-qpic'
13527 lt_prog_compiler_static='-qstaticlink'
13528 ;;
13529 *)
13530 case `$CC -V 2>&1 | $SED 5q` in
13531 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13532 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13533 lt_prog_compiler_pic='-KPIC'
13534 lt_prog_compiler_static='-Bstatic'
13535 lt_prog_compiler_wl=''
13536 ;;
13537 *Sun\ F* | *Sun*Fortran*)
13538 lt_prog_compiler_pic='-KPIC'
13539 lt_prog_compiler_static='-Bstatic'
13540 lt_prog_compiler_wl='-Qoption ld '
13541 ;;
13542 *Sun\ C*)
13543 # Sun C 5.9
13544 lt_prog_compiler_pic='-KPIC'
13545 lt_prog_compiler_static='-Bstatic'
13546 lt_prog_compiler_wl='-Wl,'
13547 ;;
13548 *Intel*\ [CF]*Compiler*)
13549 lt_prog_compiler_wl='-Wl,'
13550 lt_prog_compiler_pic='-fPIC'
13551 lt_prog_compiler_static='-static'
13552 ;;
13553 *Portland\ Group*)
13554 lt_prog_compiler_wl='-Wl,'
13555 lt_prog_compiler_pic='-fpic'
13556 lt_prog_compiler_static='-Bstatic'
13557 ;;
13558 esac
13559 ;;
13560 esac
13561 ;;
13562
13563 newsos6)
13564 lt_prog_compiler_pic='-KPIC'
13565 lt_prog_compiler_static='-Bstatic'
13566 ;;
13567
13568 *-mlibc)
13569 lt_prog_compiler_wl='-Wl,'
13570 lt_prog_compiler_pic='-fPIC'
13571 lt_prog_compiler_static='-static'
13572 ;;
13573
13574 *nto* | *qnx*)
13575 # QNX uses GNU C++, but need to define -shared option too, otherwise
13576 # it will coredump.
13577 lt_prog_compiler_pic='-fPIC -shared'
13578 ;;
13579
13580 osf3* | osf4* | osf5*)
13581 lt_prog_compiler_wl='-Wl,'
13582 # All OSF/1 code is PIC.
13583 lt_prog_compiler_static='-non_shared'
13584 ;;
13585
13586 rdos*)
13587 lt_prog_compiler_static='-non_shared'
13588 ;;
13589
13590 serenity*)
13591 ;;
13592
13593 solaris*)
13594 lt_prog_compiler_pic='-KPIC'
13595 lt_prog_compiler_static='-Bstatic'
13596 case $cc_basename in
13597 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13598 lt_prog_compiler_wl='-Qoption ld ';;
13599 *)
13600 lt_prog_compiler_wl='-Wl,';;
13601 esac
13602 ;;
13603
13604 sunos4*)
13605 lt_prog_compiler_wl='-Qoption ld '
13606 lt_prog_compiler_pic='-PIC'
13607 lt_prog_compiler_static='-Bstatic'
13608 ;;
13609
13610 sysv4 | sysv4.2uw2* | sysv4.3*)
13611 lt_prog_compiler_wl='-Wl,'
13612 lt_prog_compiler_pic='-KPIC'
13613 lt_prog_compiler_static='-Bstatic'
13614 ;;
13615
13616 sysv4*MP*)
13617 if test -d /usr/nec; then
13618 lt_prog_compiler_pic='-Kconform_pic'
13619 lt_prog_compiler_static='-Bstatic'
13620 fi
13621 ;;
13622
13623 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13624 lt_prog_compiler_wl='-Wl,'
13625 lt_prog_compiler_pic='-KPIC'
13626 lt_prog_compiler_static='-Bstatic'
13627 ;;
13628
13629 unicos*)
13630 lt_prog_compiler_wl='-Wl,'
13631 lt_prog_compiler_can_build_shared=no
13632 ;;
13633
13634 uts4*)
13635 lt_prog_compiler_pic='-pic'
13636 lt_prog_compiler_static='-Bstatic'
13637 ;;
13638
13639 *)
13640 lt_prog_compiler_can_build_shared=no
13641 ;;
13642 esac
13643 fi
13644
13645 case $host_os in
13646 # For platforms that do not support PIC, -DPIC is meaningless:
13647 *djgpp*)
13648 lt_prog_compiler_pic=
13649 ;;
13650 *)
13651 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13652 ;;
13653 esac
13654
13655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13656 printf %s "checking for $compiler option to produce PIC... " >&6; }
13657 if test ${lt_cv_prog_compiler_pic+y}
13658 then :
13659 printf %s "(cached) " >&6
13660 else case e in #(
13661 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13662 esac
13663 fi
13664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13665 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13666 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13667
13668 #
13669 # Check to make sure the PIC flag actually works.
13670 #
13671 if test -n "$lt_prog_compiler_pic"; then
13672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13673 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13674 if test ${lt_cv_prog_compiler_pic_works+y}
13675 then :
13676 printf %s "(cached) " >&6
13677 else case e in #(
13678 e) lt_cv_prog_compiler_pic_works=no
13679 ac_outfile=conftest.$ac_objext
13680 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13681 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13682 # Insert the option either (1) after the last *FLAGS variable, or
13683 # (2) before a word containing "conftest.", or (3) at the end.
13684 # Note that $ac_compile itself does not contain backslashes and begins
13685 # with a dollar sign (not a hyphen), so the echo should work correctly.
13686 # The option is referenced via a variable to avoid confusing sed.
13687 lt_compile=`echo "$ac_compile" | $SED \
13688 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13689 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13690 -e 's:$: $lt_compiler_flag:'`
13691 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13692 (eval "$lt_compile" 2>conftest.err)
13693 ac_status=$?
13694 cat conftest.err >&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 if (exit $ac_status) && test -s "$ac_outfile"; then
13697 # The compiler can only warn and ignore the option if not recognized
13698 # So say no if there are warnings other than the usual output.
13699 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13700 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13701 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13702 lt_cv_prog_compiler_pic_works=yes
13703 fi
13704 fi
13705 $RM conftest*
13706 ;;
13707 esac
13708 fi
13709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13710 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13711
13712 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13713 case $lt_prog_compiler_pic in
13714 "" | " "*) ;;
13715 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13716 esac
13717 else
13718 lt_prog_compiler_pic=
13719 lt_prog_compiler_can_build_shared=no
13720 fi
13721
13722 fi
13723
13724
13725
13726
13727
13728 #
13729 # Check to make sure the static flag actually works.
13730 #
13731 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13733 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13734 if test ${lt_cv_prog_compiler_static_works+y}
13735 then :
13736 printf %s "(cached) " >&6
13737 else case e in #(
13738 e) lt_cv_prog_compiler_static_works=no
13739 save_LDFLAGS=$LDFLAGS
13740 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13741 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13742 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13743 # The linker can only warn and ignore the option if not recognized
13744 # So say no if there are warnings
13745 if test -s conftest.err; then
13746 # Append any errors to the config.log.
13747 cat conftest.err 1>&5
13748 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13749 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13750 if diff conftest.exp conftest.er2 >/dev/null; then
13751 lt_cv_prog_compiler_static_works=yes
13752 fi
13753 else
13754 lt_cv_prog_compiler_static_works=yes
13755 fi
13756 fi
13757 $RM -r conftest*
13758 LDFLAGS=$save_LDFLAGS
13759 ;;
13760 esac
13761 fi
13762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13763 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13764
13765 if test yes = "$lt_cv_prog_compiler_static_works"; then
13766 :
13767 else
13768 lt_prog_compiler_static=
13769 fi
13770
13771
13772
13773 ='-fPIC'
13774 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13775 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
13776 archive_cmds_need_lc=no
13777 no_undefined_flag=
13778 ;;
13779
13780 *)
13781 dynamic_linker=no
13782 ;;
13783 esac
13784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13785 printf "%s\n" "$dynamic_linker" >&6; }
13786 test no = "$dynamic_linker" && can_build_shared=no
13787
13788 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13789 if test yes = "$GCC"; then
13790 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13791 fi
13792
13793 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13794 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13795 fi
13796
13797 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13798 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13799 fi
13800
13801 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13802 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13803
13804 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13805 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13806
13807 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13808 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13907 printf %s "checking how to hardcode library paths into programs... " >&6; }
13908 hardcode_action=
13909 if test -n "$hardcode_libdir_flag_spec" ||
13910 test -n "$runpath_var" ||
13911 test yes = "$hardcode_automatic"; then
13912
13913 # We can hardcode non-existent directories.
13914 if test no != "$hardcode_direct" &&
13915 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13916 # have to relink, otherwise we might link with an installed library
13917 # when we should be linking with a yet-to-be-installed one
13918 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13919 test no != "$hardcode_minus_L"; then
13920 # Linking always hardcodes the temporary library directory.
13921 hardcode_action=relink
13922 else
13923 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13924 hardcode_action=immediate
13925 fi
13926 else
13927 # We cannot hardcode anything, or else we can only hardcode existing
13928 # directories.
13929 hardcode_action=unsupported
13930 fi
13931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13932 printf "%s\n" "$hardcode_action" >&6; }
13933
13934 if test relink = "$hardcode_action" ||
13935 test yes = "$inherit_rpath"; then
13936 # Fast installation is not supported
13937 enable_fast_install=no
13938 elif test yes = "$shlibpath_overrides_runpath" ||
13939 test no = "$enable_shared"; then
13940 # Fast installation is not necessary
13941 enable_fast_install=needless
13942 fi
13943
13944
13945
13946
13947
13948
13949 if test yes != "$enable_dlopen"; then
13950 enable_dlopen=unknown
13951 enable_dlopen_self=unknown
13952 enable_dlopen_self_static=unknown
13953 else
13954 lt_cv_dlopen=no
13955 lt_cv_dlopen_libs=
13956
13957 case $host_os in
13958 beos*)
13959 lt_cv_dlopen=load_add_on
13960 lt_cv_dlopen_libs=
13961 lt_cv_dlopen_self=yes
13962 ;;
13963
13964 mingw* | windows* | pw32* | cegcc*)
13965 lt_cv_dlopen=LoadLibrary
13966 lt_cv_dlopen_libs=
13967 ;;
13968
13969 cygwin*)
13970 lt_cv_dlopen=dlopen
13971 lt_cv_dlopen_libs=
13972 ;;
13973
13974 darwin*)
13975 # if libdl is installed we need to link against it
13976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13977 printf %s "checking for dlopen in -ldl... " >&6; }
13978 if test ${ac_cv_lib_dl_dlopen+y}
13979 then :
13980 printf %s "(cached) " >&6
13981 else case e in #(
13982 e) ac_check_lib_save_LIBS=$LIBS
13983 LIBS="-ldl $LIBS"
13984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13985 /* end confdefs.h. */
13986
13987 /* Override any GCC internal prototype to avoid an error.
13988 Use char because int might match the return type of a GCC
13989 builtin and then its argument prototype would still apply.
13990 The 'extern "C"' is for builds by C++ compilers;
13991 although this is not generally supported in C code supporting it here
13992 has little cost and some practical benefit (sr 110532). */
13993 #ifdef __cplusplus
13994 extern "C"
13995 #endif
13996 char dlopen (void);
13997 int
13998 main (void)
13999 {
14000 return dlopen ();
14001 ;
14002 return 0;
14003 }
14004 _ACEOF
14005 if ac_fn_c_try_link "$LINENO"
14006 then :
14007 ac_cv_lib_dl_dlopen=yes
14008 else case e in #(
14009 e) ac_cv_lib_dl_dlopen=no ;;
14010 esac
14011 fi
14012 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14013 conftest$ac_exeext conftest.$ac_ext
14014 LIBS=$ac_check_lib_save_LIBS ;;
14015 esac
14016 fi
14017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14018 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14019 if test "x$ac_cv_lib_dl_dlopen" = xyes
14020 then :
14021 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14022 else case e in #(
14023 e)
14024 lt_cv_dlopen=dyld
14025 lt_cv_dlopen_libs=
14026 lt_cv_dlopen_self=yes
14027 ;;
14028 esac
14029 fi
14030
14031 ;;
14032
14033 tpf*)
14034 # Don't try to run any link tests for TPF. We know it's impossible
14035 # because TPF is a cross-compiler, and we know how we open DSOs.
14036 lt_cv_dlopen=dlopen
14037 lt_cv_dlopen_libs=
14038 lt_cv_dlopen_self=no
14039 ;;
14040
14041 *)
14042 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14043 if test "x$ac_cv_func_shl_load" = xyes
14044 then :
14045 lt_cv_dlopen=shl_load
14046 else case e in #(
14047 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14048 printf %s "checking for shl_load in -ldld... " >&6; }
14049 if test ${ac_cv_lib_dld_shl_load+y}
14050 then :
14051 printf %s "(cached) " >&6
14052 else case e in #(
14053 e) ac_check_lib_save_LIBS=$LIBS
14054 LIBS="-ldld $LIBS"
14055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14056 /* end confdefs.h. */
14057
14058 /* Override any GCC internal prototype to avoid an error.
14059 Use char because int might match the return type of a GCC
14060 builtin and then its argument prototype would still apply.
14061 The 'extern "C"' is for builds by C++ compilers;
14062 although this is not generally supported in C code supporting it here
14063 has little cost and some practical benefit (sr 110532). */
14064 #ifdef __cplusplus
14065 extern "C"
14066 #endif
14067 char shl_load (void);
14068 int
14069 main (void)
14070 {
14071 return shl_load ();
14072 ;
14073 return 0;
14074 }
14075 _ACEOF
14076 if ac_fn_c_try_link "$LINENO"
14077 then :
14078 ac_cv_lib_dld_shl_load=yes
14079 else case e in #(
14080 e) ac_cv_lib_dld_shl_load=no ;;
14081 esac
14082 fi
14083 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14084 conftest$ac_exeext conftest.$ac_ext
14085 LIBS=$ac_check_lib_save_LIBS ;;
14086 esac
14087 fi
14088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14089 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
14090 if test "x$ac_cv_lib_dld_shl_load" = xyes
14091 then :
14092 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14093 else case e in #(
14094 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14095 if test "x$ac_cv_func_dlopen" = xyes
14096 then :
14097 lt_cv_dlopen=dlopen
14098 else case e in #(
14099 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14100 printf %s "checking for dlopen in -ldl... " >&6; }
14101 if test ${ac_cv_lib_dl_dlopen+y}
14102 then :
14103 printf %s "(cached) " >&6
14104 else case e in #(
14105 e) ac_check_lib_save_LIBS=$LIBS
14106 LIBS="-ldl $LIBS"
14107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h. */
14109
14110 /* Override any GCC internal prototype to avoid an error.
14111 Use char because int might match the return type of a GCC
14112 builtin and then its argument prototype would still apply.
14113 The 'extern "C"' is for builds by C++ compilers;
14114 although this is not generally supported in C code supporting it here
14115 has little cost and some practical benefit (sr 110532). */
14116 #ifdef __cplusplus
14117 extern "C"
14118 #endif
14119 char dlopen (void);
14120 int
14121 main (void)
14122 {
14123 return dlopen ();
14124 ;
14125 return 0;
14126 }
14127 _ACEOF
14128 if ac_fn_c_try_link "$LINENO"
14129 then :
14130 ac_cv_lib_dl_dlopen=yes
14131 else case e in #(
14132 e) ac_cv_lib_dl_dlopen=no ;;
14133 esac
14134 fi
14135 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14136 conftest$ac_exeext conftest.$ac_ext
14137 LIBS=$ac_check_lib_save_LIBS ;;
14138 esac
14139 fi
14140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14141 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14142 if test "x$ac_cv_lib_dl_dlopen" = xyes
14143 then :
14144 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14145 else case e in #(
14146 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14147 printf %s "checking for dlopen in -lsvld... " >&6; }
14148 if test ${ac_cv_lib_svld_dlopen+y}
14149 then :
14150 printf %s "(cached) " >&6
14151 else case e in #(
14152 e) ac_check_lib_save_LIBS=$LIBS
14153 LIBS="-lsvld $LIBS"
14154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14155 /* end confdefs.h. */
14156
14157 /* Override any GCC internal prototype to avoid an error.
14158 Use char because int might match the return type of a GCC
14159 builtin and then its argument prototype would still apply.
14160 The 'extern "C"' is for builds by C++ compilers;
14161 although this is not generally supported in C code supporting it here
14162 has little cost and some practical benefit (sr 110532). */
14163 #ifdef __cplusplus
14164 extern "C"
14165 #endif
14166 char dlopen (void);
14167 int
14168 main (void)
14169 {
14170 return dlopen ();
14171 ;
14172 return 0;
14173 }
14174 _ACEOF
14175 if ac_fn_c_try_link "$LINENO"
14176 then :
14177 ac_cv_lib_svld_dlopen=yes
14178 else case e in #(
14179 e) ac_cv_lib_svld_dlopen=no ;;
14180 esac
14181 fi
14182 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14183 conftest$ac_exeext conftest.$ac_ext
14184 LIBS=$ac_check_lib_save_LIBS ;;
14185 esac
14186 fi
14187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14188 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
14189 if test "x$ac_cv_lib_svld_dlopen" = xyes
14190 then :
14191 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14192 else case e in #(
14193 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14194 printf %s "checking for dld_link in -ldld... " >&6; }
14195 if test ${ac_cv_lib_dld_dld_link+y}
14196 then :
14197 printf %s "(cached) " >&6
14198 else case e in #(
14199 e) ac_check_lib_save_LIBS=$LIBS
14200 LIBS="-ldld $LIBS"
14201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h. */
14203
14204 /* Override any GCC internal prototype to avoid an error.
14205 Use char because int might match the return type of a GCC
14206 builtin and then its argument prototype would still apply.
14207 The 'extern "C"' is for builds by C++ compilers;
14208 although this is not generally supported in C code supporting it here
14209 has little cost and some practical benefit (sr 110532). */
14210 #ifdef __cplusplus
14211 extern "C"
14212 #endif
14213 char dld_link (void);
14214 int
14215 main (void)
14216 {
14217 return dld_link ();
14218 ;
14219 return 0;
14220 }
14221 _ACEOF
14222 if ac_fn_c_try_link "$LINENO"
14223 then :
14224 ac_cv_lib_dld_dld_link=yes
14225 else case e in #(
14226 e) ac_cv_lib_dld_dld_link=no ;;
14227 esac
14228 fi
14229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14230 conftest$ac_exeext conftest.$ac_ext
14231 LIBS=$ac_check_lib_save_LIBS ;;
14232 esac
14233 fi
14234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14235 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
14236 if test "x$ac_cv_lib_dld_dld_link" = xyes
14237 then :
14238 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14239 fi
14240
14241 ;;
14242 esac
14243 fi
14244
14245 ;;
14246 esac
14247 fi
14248
14249 ;;
14250 esac
14251 fi
14252
14253 ;;
14254 esac
14255 fi
14256
14257 ;;
14258 esac
14259 fi
14260
14261 ;;
14262 esac
14263
14264 if test no = "$lt_cv_dlopen"; then
14265 enable_dlopen=no
14266 else
14267 enable_dlopen=yes
14268 fi
14269
14270 case $lt_cv_dlopen in
14271 dlopen)
14272 save_CPPFLAGS=$CPPFLAGS
14273 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14274
14275 save_LDFLAGS=$LDFLAGS
14276 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14277
14278 save_LIBS=$LIBS
14279 LIBS="$lt_cv_dlopen_libs $LIBS"
14280
14281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14282 printf %s "checking whether a program can dlopen itself... " >&6; }
14283 if test ${lt_cv_dlopen_self+y}
14284 then :
14285 printf %s "(cached) " >&6
14286 else case e in #(
14287 e) if test yes = "$cross_compiling"; then :
14288 lt_cv_dlopen_self=cross
14289 else
14290 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14291 lt_status=$lt_dlunknown
14292 cat > conftest.$ac_ext <<_LT_EOF
14293 #line $LINENO "configure"
14294 #include "confdefs.h"
14295
14296 #if HAVE_DLFCN_H
14297 #include <dlfcn.h>
14298 #endif
14299
14300 #include <stdio.h>
14301
14302 #ifdef RTLD_GLOBAL
14303 # define LT_DLGLOBAL RTLD_GLOBAL
14304 #else
14305 # ifdef DL_GLOBAL
14306 # define LT_DLGLOBAL DL_GLOBAL
14307 # else
14308 # define LT_DLGLOBAL 0
14309 # endif
14310 #endif
14311
14312 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14313 find out it does not work in some platform. */
14314 #ifndef LT_DLLAZY_OR_NOW
14315 # ifdef RTLD_LAZY
14316 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14317 # else
14318 # ifdef DL_LAZY
14319 # define LT_DLLAZY_OR_NOW DL_LAZY
14320 # else
14321 # ifdef RTLD_NOW
14322 # define LT_DLLAZY_OR_NOW RTLD_NOW
14323 # else
14324 # ifdef DL_NOW
14325 # define LT_DLLAZY_OR_NOW DL_NOW
14326 # else
14327 # define LT_DLLAZY_OR_NOW 0
14328 # endif
14329 # endif
14330 # endif
14331 # endif
14332 #endif
14333
14334 /* When -fvisibility=hidden is used, assume the code has been annotated
14335 correspondingly for the symbols needed. */
14336 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14337 int fnord (void) __attribute__((visibility("default")));
14338 #endif
14339
14340 int fnord (void) { return 42; }
14341 int main (void)
14342 {
14343 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14344 int status = $lt_dlunknown;
14345
14346 if (self)
14347 {
14348 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14349 else
14350 {
14351 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14352 else puts (dlerror ());
14353 }
14354 /* dlclose (self); */
14355 }
14356 else
14357 puts (dlerror ());
14358
14359 return status;
14360 }
14361 _LT_EOF
14362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14363 (eval $ac_link) 2>&5
14364 ac_status=$?
14365 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14366 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14367 (./conftest; exit; ) >&5 2>/dev/null
14368 lt_status=$?
14369 case x$lt_status in
14370 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14371 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14372 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14373 esac
14374 else :
14375 # compilation failed
14376 lt_cv_dlopen_self=no
14377 fi
14378 fi
14379 rm -fr conftest*
14380
14381 ;;
14382 esac
14383 fi
14384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14385 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
14386
14387 if test yes = "$lt_cv_dlopen_self"; then
14388 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14390 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
14391 if test ${lt_cv_dlopen_self_static+y}
14392 then :
14393 printf %s "(cached) " >&6
14394 else case e in #(
14395 e) if test yes = "$cross_compiling"; then :
14396 lt_cv_dlopen_self_static=cross
14397 else
14398 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14399 lt_status=$lt_dlunknown
14400 cat > conftest.$ac_ext <<_LT_EOF
14401 #line $LINENO "configure"
14402 #include "confdefs.h"
14403
14404 #if HAVE_DLFCN_H
14405 #include <dlfcn.h>
14406 #endif
14407
14408 #include <stdio.h>
14409
14410 #ifdef RTLD_GLOBAL
14411 # define LT_DLGLOBAL RTLD_GLOBAL
14412 #else
14413 # ifdef DL_GLOBAL
14414 # define LT_DLGLOBAL DL_GLOBAL
14415 # else
14416 # define LT_DLGLOBAL 0
14417 # endif
14418 #endif
14419
14420 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14421 find out it does not work in some platform. */
14422 #ifndef LT_DLLAZY_OR_NOW
14423 # ifdef RTLD_LAZY
14424 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14425 # else
14426 # ifdef DL_LAZY
14427 # define LT_DLLAZY_OR_NOW DL_LAZY
14428 # else
14429 # ifdef RTLD_NOW
14430 # define LT_DLLAZY_OR_NOW RTLD_NOW
14431 # else
14432 # ifdef DL_NOW
14433 # define LT_DLLAZY_OR_NOW DL_NOW
14434 # else
14435 # define LT_DLLAZY_OR_NOW 0
14436 # endif
14437 # endif
14438 # endif
14439 # endif
14440 #endif
14441
14442 /* When -fvisibility=hidden is used, assume the code has been annotated
14443 correspondingly for the symbols needed. */
14444 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14445 int fnord (void) __attribute__((visibility("default")));
14446 #endif
14447
14448 int fnord (void) { return 42; }
14449 int main (void)
14450 {
14451 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14452 int status = $lt_dlunknown;
14453
14454 if (self)
14455 {
14456 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14457 else
14458 {
14459 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14460 else puts (dlerror ());
14461 }
14462 /* dlclose (self); */
14463 }
14464 else
14465 puts (dlerror ());
14466
14467 return status;
14468 }
14469 _LT_EOF
14470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14471 (eval $ac_link) 2>&5
14472 ac_status=$?
14473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14474 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
14475 (./conftest; exit; ) >&5 2>/dev/null
14476 lt_status=$?
14477 case x$lt_status in
14478 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14479 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14480 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14481 esac
14482 else :
14483 # compilation failed
14484 lt_cv_dlopen_self_static=no
14485 fi
14486 fi
14487 rm -fr conftest*
14488
14489 ;;
14490 esac
14491 fi
14492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14493 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
14494 fi
14495
14496 CPPFLAGS=$save_CPPFLAGS
14497 LDFLAGS=$save_LDFLAGS
14498 LIBS=$save_LIBS
14499 ;;
14500 esac
14501
14502 case $lt_cv_dlopen_self in
14503 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14504 *) enable_dlopen_self=unknown ;;
14505 esac
14506
14507 case $lt_cv_dlopen_self_static in
14508 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14509 *) enable_dlopen_self_static=unknown ;;
14510 esac
14511 fi
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529 striplib=
14530 old_striplib=
14531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14532 printf %s "checking whether stripping libraries is possible... " >&6; }
14533 if test -z "$STRIP"; then
14534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14535 printf "%s\n" "no" >&6; }
14536 else
14537 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14538 old_striplib="$STRIP --strip-debug"
14539 striplib="$STRIP --strip-unneeded"
14540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14541 printf "%s\n" "yes" >&6; }
14542 else
14543 case $host_os in
14544 darwin*)
14545 # FIXME - insert some real tests, host_os isn't really good enough
14546 striplib="$STRIP -x"
14547 old_striplib="$STRIP -S"
14548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14549 printf "%s\n" "yes" >&6; }
14550 ;;
14551 freebsd*)
14552 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
14553 old_striplib="$STRIP --strip-debug"
14554 striplib="$STRIP --strip-unneeded"
14555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14556 printf "%s\n" "yes" >&6; }
14557 else
14558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14559 printf "%s\n" "no" >&6; }
14560 fi
14561 ;;
14562 *)
14563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14564 printf "%s\n" "no" >&6; }
14565 ;;
14566 esac
14567 fi
14568 fi
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581 # Report what library types will actually be built
14582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14583 printf %s "checking if libtool supports shared libraries... " >&6; }
14584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14585 printf "%s\n" "$can_build_shared" >&6; }
14586
14587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14588 printf %s "checking whether to build shared libraries... " >&6; }
14589 test no = "$can_build_shared" && enable_shared=no
14590
14591 # On AIX, shared libraries and static libraries use the same namespace, and
14592 # are all built from PIC.
14593 case $host_os in
14594 aix3*)
14595 test yes = "$enable_shared" && enable_static=no
14596 if test -n "$RANLIB"; then
14597 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14598 postinstall_cmds='$RANLIB $lib'
14599 fi
14600 ;;
14601
14602 aix[4-9]*)
14603 if test ia64 != "$host_cpu"; then
14604 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
14605 yes,aix,yes) ;; # shared object as lib.so file only
14606 yes,svr4,*) ;; # shared object as lib.so archive member only
14607 yes,*) enable_static=no ;; # shared object in lib.a archive as well
14608 esac
14609 fi
14610 ;;
14611 esac
14612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14613 printf "%s\n" "$enable_shared" >&6; }
14614
14615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14616 printf %s "checking whether to build static libraries... " >&6; }
14617 # Make sure either enable_shared or enable_static is yes.
14618 test yes = "$enable_shared" || enable_static=yes
14619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14620 printf "%s\n" "$enable_static" >&6; }
14621
14622
14623
14624
14625 fi
14626 ac_ext=c
14627 ac_cpp='$CPP $CPPFLAGS'
14628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14631
14632 CC=$lt_save_CC
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648 ac_config_commands="$ac_config_commands libtool"
14649
14650
14651
14652
14653 # Only expand once:
14654
14655
14656
14657
14658
14659 if test "$enable_samples" = "yes"; then
14660 BUILD_SAMPLES_TRUE=
14661 BUILD_SAMPLES_FALSE='#'
14662 else
14663 BUILD_SAMPLES_TRUE='#'
14664 BUILD_SAMPLES_FALSE=
14665 fi
14666
14667 if test "$enable_libevent_regress" = "yes"; then
14668 BUILD_REGRESS_TRUE=
14669 BUILD_REGRESS_FALSE='#'
14670 else
14671 BUILD_REGRESS_TRUE='#'
14672 BUILD_REGRESS_FALSE=
14673 fi
14674
14675
14676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
14677 printf %s "checking for library containing inet_ntoa... " >&6; }
14678 if test ${ac_cv_search_inet_ntoa+y}
14679 then :
14680 printf %s "(cached) " >&6
14681 else case e in #(
14682 e) ac_func_search_save_LIBS=$LIBS
14683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684 /* end confdefs.h. */
14685
14686 /* Override any GCC internal prototype to avoid an error.
14687 Use char because int might match the return type of a GCC
14688 builtin and then its argument prototype would still apply.
14689 The 'extern "C"' is for builds by C++ compilers;
14690 although this is not generally supported in C code supporting it here
14691 has little cost and some practical benefit (sr 110532). */
14692 #ifdef __cplusplus
14693 extern "C"
14694 #endif
14695 char inet_ntoa (void);
14696 int
14697 main (void)
14698 {
14699 return inet_ntoa ();
14700 ;
14701 return 0;
14702 }
14703 _ACEOF
14704 for ac_lib in '' nsl
14705 do
14706 if test -z "$ac_lib"; then
14707 ac_res="none required"
14708 else
14709 ac_res=-l$ac_lib
14710 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14711 fi
14712 if ac_fn_c_try_link "$LINENO"
14713 then :
14714 ac_cv_search_inet_ntoa=$ac_res
14715 fi
14716 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14717 conftest$ac_exeext
14718 if test ${ac_cv_search_inet_ntoa+y}
14719 then :
14720 break
14721 fi
14722 done
14723 if test ${ac_cv_search_inet_ntoa+y}
14724 then :
14725
14726 else case e in #(
14727 e) ac_cv_search_inet_ntoa=no ;;
14728 esac
14729 fi
14730 rm conftest.$ac_ext
14731 LIBS=$ac_func_search_save_LIBS ;;
14732 esac
14733 fi
14734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
14735 printf "%s\n" "$ac_cv_search_inet_ntoa" >&6; }
14736 ac_res=$ac_cv_search_inet_ntoa
14737 if test "$ac_res" != no
14738 then :
14739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14740
14741 fi
14742
14743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
14744 printf %s "checking for library containing socket... " >&6; }
14745 if test ${ac_cv_search_socket+y}
14746 then :
14747 printf %s "(cached) " >&6
14748 else case e in #(
14749 e) ac_func_search_save_LIBS=$LIBS
14750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14751 /* end confdefs.h. */
14752
14753 /* Override any GCC internal prototype to avoid an error.
14754 Use char because int might match the return type of a GCC
14755 builtin and then its argument prototype would still apply.
14756 The 'extern "C"' is for builds by C++ compilers;
14757 although this is not generally supported in C code supporting it here
14758 has little cost and some practical benefit (sr 110532). */
14759 #ifdef __cplusplus
14760 extern "C"
14761 #endif
14762 char socket (void);
14763 int
14764 main (void)
14765 {
14766 return socket ();
14767 ;
14768 return 0;
14769 }
14770 _ACEOF
14771 for ac_lib in '' socket
14772 do
14773 if test -z "$ac_lib"; then
14774 ac_res="none required"
14775 else
14776 ac_res=-l$ac_lib
14777 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14778 fi
14779 if ac_fn_c_try_link "$LINENO"
14780 then :
14781 ac_cv_search_socket=$ac_res
14782 fi
14783 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14784 conftest$ac_exeext
14785 if test ${ac_cv_search_socket+y}
14786 then :
14787 break
14788 fi
14789 done
14790 if test ${ac_cv_search_socket+y}
14791 then :
14792
14793 else case e in #(
14794 e) ac_cv_search_socket=no ;;
14795 esac
14796 fi
14797 rm conftest.$ac_ext
14798 LIBS=$ac_func_search_save_LIBS ;;
14799 esac
14800 fi
14801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
14802 printf "%s\n" "$ac_cv_search_socket" >&6; }
14803 ac_res=$ac_cv_search_socket
14804 if test "$ac_res" != no
14805 then :
14806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14807
14808 fi
14809
14810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
14811 printf %s "checking for library containing inet_aton... " >&6; }
14812 if test ${ac_cv_search_inet_aton+y}
14813 then :
14814 printf %s "(cached) " >&6
14815 else case e in #(
14816 e) ac_func_search_save_LIBS=$LIBS
14817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14818 /* end confdefs.h. */
14819
14820 /* Override any GCC internal prototype to avoid an error.
14821 Use char because int might match the return type of a GCC
14822 builtin and then its argument prototype would still apply.
14823 The 'extern "C"' is for builds by C++ compilers;
14824 although this is not generally supported in C code supporting it here
14825 has little cost and some practical benefit (sr 110532). */
14826 #ifdef __cplusplus
14827 extern "C"
14828 #endif
14829 char inet_aton (void);
14830 int
14831 main (void)
14832 {
14833 return inet_aton ();
14834 ;
14835 return 0;
14836 }
14837 _ACEOF
14838 for ac_lib in '' resolv
14839 do
14840 if test -z "$ac_lib"; then
14841 ac_res="none required"
14842 else
14843 ac_res=-l$ac_lib
14844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14845 fi
14846 if ac_fn_c_try_link "$LINENO"
14847 then :
14848 ac_cv_search_inet_aton=$ac_res
14849 fi
14850 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14851 conftest$ac_exeext
14852 if test ${ac_cv_search_inet_aton+y}
14853 then :
14854 break
14855 fi
14856 done
14857 if test ${ac_cv_search_inet_aton+y}
14858 then :
14859
14860 else case e in #(
14861 e) ac_cv_search_inet_aton=no ;;
14862 esac
14863 fi
14864 rm conftest.$ac_ext
14865 LIBS=$ac_func_search_save_LIBS ;;
14866 esac
14867 fi
14868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
14869 printf "%s\n" "$ac_cv_search_inet_aton" >&6; }
14870 ac_res=$ac_cv_search_inet_aton
14871 if test "$ac_res" != no
14872 then :
14873 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14874
14875 fi
14876
14877 if test "x$enable_clock_gettime" = "xyes"; then
14878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
14879 printf %s "checking for library containing clock_gettime... " >&6; }
14880 if test ${ac_cv_search_clock_gettime+y}
14881 then :
14882 printf %s "(cached) " >&6
14883 else case e in #(
14884 e) ac_func_search_save_LIBS=$LIBS
14885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14886 /* end confdefs.h. */
14887
14888 /* Override any GCC internal prototype to avoid an error.
14889 Use char because int might match the return type of a GCC
14890 builtin and then its argument prototype would still apply.
14891 The 'extern "C"' is for builds by C++ compilers;
14892 although this is not generally supported in C code supporting it here
14893 has little cost and some practical benefit (sr 110532). */
14894 #ifdef __cplusplus
14895 extern "C"
14896 #endif
14897 char clock_gettime (void);
14898 int
14899 main (void)
14900 {
14901 return clock_gettime ();
14902 ;
14903 return 0;
14904 }
14905 _ACEOF
14906 for ac_lib in '' rt
14907 do
14908 if test -z "$ac_lib"; then
14909 ac_res="none required"
14910 else
14911 ac_res=-l$ac_lib
14912 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14913 fi
14914 if ac_fn_c_try_link "$LINENO"
14915 then :
14916 ac_cv_search_clock_gettime=$ac_res
14917 fi
14918 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14919 conftest$ac_exeext
14920 if test ${ac_cv_search_clock_gettime+y}
14921 then :
14922 break
14923 fi
14924 done
14925 if test ${ac_cv_search_clock_gettime+y}
14926 then :
14927
14928 else case e in #(
14929 e) ac_cv_search_clock_gettime=no ;;
14930 esac
14931 fi
14932 rm conftest.$ac_ext
14933 LIBS=$ac_func_search_save_LIBS ;;
14934 esac
14935 fi
14936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
14937 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
14938 ac_res=$ac_cv_search_clock_gettime
14939 if test "$ac_res" != no
14940 then :
14941 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14942
14943 fi
14944
14945 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
14946 if test "x$ac_cv_func_clock_gettime" = xyes
14947 then :
14948 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
14949
14950 fi
14951
14952 fi
14953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sendfile" >&5
14954 printf %s "checking for library containing sendfile... " >&6; }
14955 if test ${ac_cv_search_sendfile+y}
14956 then :
14957 printf %s "(cached) " >&6
14958 else case e in #(
14959 e) ac_func_search_save_LIBS=$LIBS
14960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14961 /* end confdefs.h. */
14962
14963 /* Override any GCC internal prototype to avoid an error.
14964 Use char because int might match the return type of a GCC
14965 builtin and then its argument prototype would still apply.
14966 The 'extern "C"' is for builds by C++ compilers;
14967 although this is not generally supported in C code supporting it here
14968 has little cost and some practical benefit (sr 110532). */
14969 #ifdef __cplusplus
14970 extern "C"
14971 #endif
14972 char sendfile (void);
14973 int
14974 main (void)
14975 {
14976 return sendfile ();
14977 ;
14978 return 0;
14979 }
14980 _ACEOF
14981 for ac_lib in '' sendfile
14982 do
14983 if test -z "$ac_lib"; then
14984 ac_res="none required"
14985 else
14986 ac_res=-l$ac_lib
14987 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14988 fi
14989 if ac_fn_c_try_link "$LINENO"
14990 then :
14991 ac_cv_search_sendfile=$ac_res
14992 fi
14993 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14994 conftest$ac_exeext
14995 if test ${ac_cv_search_sendfile+y}
14996 then :
14997 break
14998 fi
14999 done
15000 if test ${ac_cv_search_sendfile+y}
15001 then :
15002
15003 else case e in #(
15004 e) ac_cv_search_sendfile=no ;;
15005 esac
15006 fi
15007 rm conftest.$ac_ext
15008 LIBS=$ac_func_search_save_LIBS ;;
15009 esac
15010 fi
15011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendfile" >&5
15012 printf "%s\n" "$ac_cv_search_sendfile" >&6; }
15013 ac_res=$ac_cv_search_sendfile
15014 if test "$ac_res" != no
15015 then :
15016 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15017
15018 fi
15019
15020
15021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WIN32" >&5
15022 printf %s "checking for WIN32... " >&6; }
15023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15024 /* end confdefs.h. */
15025
15026 int
15027 main (void)
15028 {
15029
15030 #ifndef _WIN32
15031 die horribly
15032 #endif
15033
15034
15035 ;
15036 return 0;
15037 }
15038 _ACEOF
15039 if ac_fn_c_try_compile "$LINENO"
15040 then :
15041 bwin32=true; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15042 printf "%s\n" "yes" >&6; }
15043 else case e in #(
15044 e) bwin32=false; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15045 printf "%s\n" "no" >&6; }
15046 ;;
15047 esac
15048 fi
15049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15050
15051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MIDIPIX" >&5
15052 printf %s "checking for MIDIPIX... " >&6; }
15053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15054 /* end confdefs.h. */
15055
15056 int
15057 main (void)
15058 {
15059
15060 #ifndef __midipix__
15061 die horribly
15062 #endif
15063
15064
15065 ;
15066 return 0;
15067 }
15068 _ACEOF
15069 if ac_fn_c_try_compile "$LINENO"
15070 then :
15071 midipix=true; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15072 printf "%s\n" "yes" >&6; }
15073 else case e in #(
15074 e) midipix=false; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15075 printf "%s\n" "no" >&6; }
15076 ;;
15077 esac
15078 fi
15079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15080
15081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CYGWIN" >&5
15082 printf %s "checking for CYGWIN... " >&6; }
15083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15084 /* end confdefs.h. */
15085
15086 int
15087 main (void)
15088 {
15089
15090 #ifndef __CYGWIN__
15091 die horribly
15092 #endif
15093
15094
15095 ;
15096 return 0;
15097 }
15098 _ACEOF
15099 if ac_fn_c_try_compile "$LINENO"
15100 then :
15101 cygwin=true; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15102 printf "%s\n" "yes" >&6; }
15103 else case e in #(
15104 e) cygwin=false; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15105 printf "%s\n" "no" >&6; }
15106 ;;
15107 esac
15108 fi
15109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15110
15111 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
15112 if test "x$ac_cv_header_zlib_h" = xyes
15113 then :
15114 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
15115
15116 fi
15117
15118
15119 if test "x$ac_cv_header_zlib_h" = "xyes"; then
15120 save_LIBS="$LIBS"
15121 LIBS=""
15122 ZLIB_LIBS=""
15123 have_zlib=no
15124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing inflateEnd" >&5
15125 printf %s "checking for library containing inflateEnd... " >&6; }
15126 if test ${ac_cv_search_inflateEnd+y}
15127 then :
15128 printf %s "(cached) " >&6
15129 else case e in #(
15130 e) ac_func_search_save_LIBS=$LIBS
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h. */
15133
15134 /* Override any GCC internal prototype to avoid an error.
15135 Use char because int might match the return type of a GCC
15136 builtin and then its argument prototype would still apply.
15137 The 'extern "C"' is for builds by C++ compilers;
15138 although this is not generally supported in C code supporting it here
15139 has little cost and some practical benefit (sr 110532). */
15140 #ifdef __cplusplus
15141 extern "C"
15142 #endif
15143 char inflateEnd (void);
15144 int
15145 main (void)
15146 {
15147 return inflateEnd ();
15148 ;
15149 return 0;
15150 }
15151 _ACEOF
15152 for ac_lib in '' z
15153 do
15154 if test -z "$ac_lib"; then
15155 ac_res="none required"
15156 else
15157 ac_res=-l$ac_lib
15158 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15159 fi
15160 if ac_fn_c_try_link "$LINENO"
15161 then :
15162 ac_cv_search_inflateEnd=$ac_res
15163 fi
15164 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15165 conftest$ac_exeext
15166 if test ${ac_cv_search_inflateEnd+y}
15167 then :
15168 break
15169 fi
15170 done
15171 if test ${ac_cv_search_inflateEnd+y}
15172 then :
15173
15174 else case e in #(
15175 e) ac_cv_search_inflateEnd=no ;;
15176 esac
15177 fi
15178 rm conftest.$ac_ext
15179 LIBS=$ac_func_search_save_LIBS ;;
15180 esac
15181 fi
15182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inflateEnd" >&5
15183 printf "%s\n" "$ac_cv_search_inflateEnd" >&6; }
15184 ac_res=$ac_cv_search_inflateEnd
15185 if test "$ac_res" != no
15186 then :
15187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15188 have_zlib=yes
15189 ZLIB_LIBS="$LIBS"
15190
15191 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
15192
15193 fi
15194
15195 LIBS="$save_LIBS"
15196
15197 fi
15198 if test "$have_zlib" = "yes"; then
15199 ZLIB_REGRESS_TRUE=
15200 ZLIB_REGRESS_FALSE='#'
15201 else
15202 ZLIB_REGRESS_TRUE='#'
15203 ZLIB_REGRESS_FALSE=
15204 fi
15205
15206
15207 if test "$bwin32" = true; then
15208 EV_LIB_WS32=-lws2_32
15209 EV_LIB_GDI=-lgdi32
15210 else
15211 EV_LIB_WS32=
15212 EV_LIB_GDI=
15213 fi
15214
15215
15216
15217
15218 # Check whether --enable-largefile was given.
15219 if test ${enable_largefile+y}
15220 then :
15221 enableval=$enable_largefile;
15222 fi
15223 if test "$enable_largefile,$enable_year2038" != no,no
15224 then :
15225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
15226 printf %s "checking for $CC option to enable large file support... " >&6; }
15227 if test ${ac_cv_sys_largefile_opts+y}
15228 then :
15229 printf %s "(cached) " >&6
15230 else case e in #(
15231 e) ac_save_CC="$CC"
15232 ac_opt_found=no
15233 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
15234 if test x"$ac_opt" != x"none needed"
15235 then :
15236 CC="$ac_save_CC $ac_opt"
15237 fi
15238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15239 /* end confdefs.h. */
15240 #include <sys/types.h>
15241 #ifndef FTYPE
15242 # define FTYPE off_t
15243 #endif
15244 /* Check that FTYPE can represent 2**63 - 1 correctly.
15245 We can't simply define LARGE_FTYPE to be 9223372036854775807,
15246 since some C++ compilers masquerading as C compilers
15247 incorrectly reject 9223372036854775807. */
15248 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
15249 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
15250 && LARGE_FTYPE % 2147483647 == 1)
15251 ? 1 : -1];
15252 int
15253 main (void)
15254 {
15255
15256 ;
15257 return 0;
15258 }
15259 _ACEOF
15260 if ac_fn_c_try_compile "$LINENO"
15261 then :
15262 if test x"$ac_opt" = x"none needed"
15263 then :
15264 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
15265 CC="$CC -DFTYPE=ino_t"
15266 if ac_fn_c_try_compile "$LINENO"
15267 then :
15268
15269 else case e in #(
15270 e) CC="$CC -D_FILE_OFFSET_BITS=64"
15271 if ac_fn_c_try_compile "$LINENO"
15272 then :
15273 ac_opt='-D_FILE_OFFSET_BITS=64'
15274 fi
15275 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
15276 esac
15277 fi
15278 rm -f core conftest.err conftest.$ac_objext conftest.beam
15279 fi
15280 ac_cv_sys_largefile_opts=$ac_opt
15281 ac_opt_found=yes
15282 fi
15283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15284 test $ac_opt_found = no || break
15285 done
15286 CC="$ac_save_CC"
15287
15288 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
15289 esac
15290 fi
15291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
15292 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
15293
15294 ac_have_largefile=yes
15295 case $ac_cv_sys_largefile_opts in #(
15296 "none needed") :
15297 ;; #(
15298 "supported through gnulib") :
15299 ;; #(
15300 "support not detected") :
15301 ac_have_largefile=no ;; #(
15302 "-D_FILE_OFFSET_BITS=64") :
15303
15304 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
15305 ;; #(
15306 "-D_LARGE_FILES=1") :
15307
15308 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
15309 ;; #(
15310 "-n32") :
15311 CC="$CC -n32" ;; #(
15312 *) :
15313 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
15314 esac
15315
15316 if test "$enable_year2038" != no
15317 then :
15318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
15319 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
15320 if test ${ac_cv_sys_year2038_opts+y}
15321 then :
15322 printf %s "(cached) " >&6
15323 else case e in #(
15324 e) ac_save_CPPFLAGS="$CPPFLAGS"
15325 ac_opt_found=no
15326 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
15327 if test x"$ac_opt" != x"none needed"
15328 then :
15329 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
15330 fi
15331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15332 /* end confdefs.h. */
15333
15334 #include <time.h>
15335 /* Check that time_t can represent 2**32 - 1 correctly. */
15336 #define LARGE_TIME_T \\
15337 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
15338 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
15339 && LARGE_TIME_T % 65537 == 0)
15340 ? 1 : -1];
15341
15342 int
15343 main (void)
15344 {
15345
15346 ;
15347 return 0;
15348 }
15349 _ACEOF
15350 if ac_fn_c_try_compile "$LINENO"
15351 then :
15352 ac_cv_sys_year2038_opts="$ac_opt"
15353 ac_opt_found=yes
15354 fi
15355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15356 test $ac_opt_found = no || break
15357 done
15358 CPPFLAGS="$ac_save_CPPFLAGS"
15359 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
15360 esac
15361 fi
15362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
15363 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
15364
15365 ac_have_year2038=yes
15366 case $ac_cv_sys_year2038_opts in #(
15367 "none needed") :
15368 ;; #(
15369 "support not detected") :
15370 ac_have_year2038=no ;; #(
15371 "-D_TIME_BITS=64") :
15372
15373 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
15374 ;; #(
15375 "-D__MINGW_USE_VC2005_COMPAT") :
15376
15377 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
15378 ;; #(
15379 "-U_USE_32_BIT_TIME_T"*) :
15380 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15381 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
15382 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
15383 will stop working after mid-January 2038. Remove
15384 _USE_32BIT_TIME_T from the compiler flags.
15385 See 'config.log' for more details" "$LINENO" 5; } ;; #(
15386 *) :
15387 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
15388 esac
15389
15390 fi
15391
15392 fi
15393
15394
15395
15396 ntp_pkgconfig_min_version='0.15.0'
15397 if test -n "$ac_tool_prefix"; then
15398 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15399 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15401 printf %s "checking for $ac_word... " >&6; }
15402 if test ${ac_cv_path_PKG_CONFIG+y}
15403 then :
15404 printf %s "(cached) " >&6
15405 else case e in #(
15406 e) case $PKG_CONFIG in
15407 [\\/]* | ?:[\\/]*)
15408 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15409 ;;
15410 *)
15411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15412 for as_dir in $PATH
15413 do
15414 IFS=$as_save_IFS
15415 case $as_dir in #(((
15416 '') as_dir=./ ;;
15417 */) ;;
15418 *) as_dir=$as_dir/ ;;
15419 esac
15420 for ac_exec_ext in '' $ac_executable_extensions; do
15421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15422 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15424 break 2
15425 fi
15426 done
15427 done
15428 IFS=$as_save_IFS
15429
15430 ;;
15431 esac ;;
15432 esac
15433 fi
15434 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15435 if test -n "$PKG_CONFIG"; then
15436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15437 printf "%s\n" "$PKG_CONFIG" >&6; }
15438 else
15439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15440 printf "%s\n" "no" >&6; }
15441 fi
15442
15443
15444 fi
15445 if test -z "$ac_cv_path_PKG_CONFIG"; then
15446 ac_pt_PKG_CONFIG=$PKG_CONFIG
15447 # Extract the first word of "pkg-config", so it can be a program name with args.
15448 set dummy pkg-config; ac_word=$2
15449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15450 printf %s "checking for $ac_word... " >&6; }
15451 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
15452 then :
15453 printf %s "(cached) " >&6
15454 else case e in #(
15455 e) case $ac_pt_PKG_CONFIG in
15456 [\\/]* | ?:[\\/]*)
15457 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15458 ;;
15459 *)
15460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15461 for as_dir in $PATH
15462 do
15463 IFS=$as_save_IFS
15464 case $as_dir in #(((
15465 '') as_dir=./ ;;
15466 */) ;;
15467 *) as_dir=$as_dir/ ;;
15468 esac
15469 for ac_exec_ext in '' $ac_executable_extensions; do
15470 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15471 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
15472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15473 break 2
15474 fi
15475 done
15476 done
15477 IFS=$as_save_IFS
15478
15479 ;;
15480 esac ;;
15481 esac
15482 fi
15483 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15484 if test -n "$ac_pt_PKG_CONFIG"; then
15485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15486 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
15487 else
15488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15489 printf "%s\n" "no" >&6; }
15490 fi
15491
15492 if test "x$ac_pt_PKG_CONFIG" = x; then
15493 PKG_CONFIG=""
15494 else
15495 case $cross_compiling:$ac_tool_warned in
15496 yes:)
15497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15498 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15499 ac_tool_warned=yes ;;
15500 esac
15501 PKG_CONFIG=$ac_pt_PKG_CONFIG
15502 fi
15503 else
15504 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15505 fi
15506
15507 { ac_cv_path_PKG_CONFIG=; unset ac_cv_path_PKG_CONFIG;}
15508 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;}
15509
15510 case "$PKG_CONFIG" in
15511 /*)
15512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if pkg-config is at least version $ntp_pkgconfig_min_version" >&5
15513 printf %s "checking if pkg-config is at least version $ntp_pkgconfig_min_version... " >&6; }
15514 if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then
15515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15516 printf "%s\n" "yes" >&6; }
15517 else
15518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15519 printf "%s\n" "no" >&6; }
15520 PKG_CONFIG=""
15521 fi
15522 ;;
15523 esac
15524
15525
15526
15527
15528 case "$enable_openssl" in
15529 yes)
15530 have_openssl=no
15531 case "$PKG_CONFIG" in
15532 '')
15533 ;;
15534 *)
15535 OPENSSL_LIBS=`$PKG_CONFIG --libs openssl 2>/dev/null`
15536 case "$OPENSSL_LIBS" in
15537 '') ;;
15538 *) OPENSSL_LIBS="$OPENSSL_LIBS $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
15539 have_openssl=yes
15540 ;;
15541 esac
15542 OPENSSL_INCS=`$PKG_CONFIG --cflags openssl 2>/dev/null`
15543 ;;
15544 esac
15545 case "$have_openssl" in
15546 yes) ;;
15547 *)
15548 save_LIBS="$LIBS"
15549 LIBS=""
15550 OPENSSL_LIBS=""
15551 for lib in crypto eay32; do
15552 # clear cache
15553 unset ac_cv_search_SSL_new
15554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing SSL_new" >&5
15555 printf %s "checking for library containing SSL_new... " >&6; }
15556 if test ${ac_cv_search_SSL_new+y}
15557 then :
15558 printf %s "(cached) " >&6
15559 else case e in #(
15560 e) ac_func_search_save_LIBS=$LIBS
15561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562 /* end confdefs.h. */
15563
15564 /* Override any GCC internal prototype to avoid an error.
15565 Use char because int might match the return type of a GCC
15566 builtin and then its argument prototype would still apply.
15567 The 'extern "C"' is for builds by C++ compilers;
15568 although this is not generally supported in C code supporting it here
15569 has little cost and some practical benefit (sr 110532). */
15570 #ifdef __cplusplus
15571 extern "C"
15572 #endif
15573 char SSL_new (void);
15574 int
15575 main (void)
15576 {
15577 return SSL_new ();
15578 ;
15579 return 0;
15580 }
15581 _ACEOF
15582 for ac_lib in '' ssl ssl32
15583 do
15584 if test -z "$ac_lib"; then
15585 ac_res="none required"
15586 else
15587 ac_res=-l$ac_lib
15588 LIBS="-l$ac_lib -l$lib $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD $ac_func_search_save_LIBS"
15589 fi
15590 if ac_fn_c_try_link "$LINENO"
15591 then :
15592 ac_cv_search_SSL_new=$ac_res
15593 fi
15594 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15595 conftest$ac_exeext
15596 if test ${ac_cv_search_SSL_new+y}
15597 then :
15598 break
15599 fi
15600 done
15601 if test ${ac_cv_search_SSL_new+y}
15602 then :
15603
15604 else case e in #(
15605 e) ac_cv_search_SSL_new=no ;;
15606 esac
15607 fi
15608 rm conftest.$ac_ext
15609 LIBS=$ac_func_search_save_LIBS ;;
15610 esac
15611 fi
15612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_SSL_new" >&5
15613 printf "%s\n" "$ac_cv_search_SSL_new" >&6; }
15614 ac_res=$ac_cv_search_SSL_new
15615 if test "$ac_res" != no
15616 then :
15617 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15618 have_openssl=yes
15619 OPENSSL_LIBS="$LIBS -l$lib $EV_LIB_GDI $EV_LIB_WS32 $OPENSSL_LIBADD"
15620 else case e in #(
15621 e) have_openssl=no ;;
15622 esac
15623 fi
15624
15625 LIBS="$save_LIBS"
15626 test "$have_openssl" = "yes" && break
15627 done
15628 ;;
15629 esac
15630 CPPFLAGS_SAVE=$CPPFLAGS
15631 CPPFLAGS="$CPPFLAGS $OPENSSL_INCS"
15632 for ac_header in openssl/ssl.h
15633 do :
15634 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
15635 if test "x$ac_cv_header_openssl_ssl_h" = xyes
15636 then :
15637 printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
15638
15639 else case e in #(
15640 e) have_openssl=no ;;
15641 esac
15642 fi
15643
15644 done
15645 CPPFLAGS=$CPPFLAGS_SAVE
15646
15647
15648 case "$have_openssl" in
15649 yes)
15650 printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h
15651 ;;
15652 *) as_fn_error $? "openssl is a must but can not be found. You should add the \
15653 directory containing \`openssl.pc' to the \`PKG_CONFIG_PATH' environment variable, \
15654 or set \`CFLAGS' and \`LDFLAGS' directly for openssl, or use \`--disable-openssl' \
15655 to disable support for openssl encryption" "$LINENO" 5
15656 ;;
15657 esac
15658 ;;
15659 esac
15660
15661 # check if we have and should use openssl
15662 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
15663 OPENSSL_TRUE=
15664 OPENSSL_FALSE='#'
15665 else
15666 OPENSSL_TRUE='#'
15667 OPENSSL_FALSE=
15668 fi
15669
15670
15671
15672 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15673 if test "x$ac_cv_header_arpa_inet_h" = xyes
15674 then :
15675 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
15676
15677 fi
15678 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
15679 if test "x$ac_cv_header_fcntl_h" = xyes
15680 then :
15681 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
15682
15683 fi
15684 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
15685 if test "x$ac_cv_header_ifaddrs_h" = xyes
15686 then :
15687 printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h
15688
15689 fi
15690 ac_fn_c_check_header_compile "$LINENO" "mach/mach_time.h" "ac_cv_header_mach_mach_time_h" "$ac_includes_default"
15691 if test "x$ac_cv_header_mach_mach_time_h" = xyes
15692 then :
15693 printf "%s\n" "#define HAVE_MACH_MACH_TIME_H 1" >>confdefs.h
15694
15695 fi
15696 ac_fn_c_check_header_compile "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
15697 if test "x$ac_cv_header_mach_mach_h" = xyes
15698 then :
15699 printf "%s\n" "#define HAVE_MACH_MACH_H 1" >>confdefs.h
15700
15701 fi
15702 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
15703 if test "x$ac_cv_header_netdb_h" = xyes
15704 then :
15705 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
15706
15707 fi
15708 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
15709 if test "x$ac_cv_header_netinet_in_h" = xyes
15710 then :
15711 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
15712
15713 fi
15714 ac_fn_c_check_header_compile "$LINENO" "netinet/in6.h" "ac_cv_header_netinet_in6_h" "$ac_includes_default"
15715 if test "x$ac_cv_header_netinet_in6_h" = xyes
15716 then :
15717 printf "%s\n" "#define HAVE_NETINET_IN6_H 1" >>confdefs.h
15718
15719 fi
15720 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
15721 if test "x$ac_cv_header_netinet_tcp_h" = xyes
15722 then :
15723 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
15724
15725 fi
15726 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
15727 if test "x$ac_cv_header_sys_un_h" = xyes
15728 then :
15729 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
15730
15731 fi
15732 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
15733 if test "x$ac_cv_header_poll_h" = xyes
15734 then :
15735 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
15736
15737 fi
15738 ac_fn_c_check_header_compile "$LINENO" "port.h" "ac_cv_header_port_h" "$ac_includes_default"
15739 if test "x$ac_cv_header_port_h" = xyes
15740 then :
15741 printf "%s\n" "#define HAVE_PORT_H 1" >>confdefs.h
15742
15743 fi
15744 ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
15745 if test "x$ac_cv_header_stdarg_h" = xyes
15746 then :
15747 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
15748
15749 fi
15750 ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default"
15751 if test "x$ac_cv_header_stddef_h" = xyes
15752 then :
15753 printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h
15754
15755 fi
15756 ac_fn_c_check_header_compile "$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default"
15757 if test "x$ac_cv_header_sys_devpoll_h" = xyes
15758 then :
15759 printf "%s\n" "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
15760
15761 fi
15762 ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default"
15763 if test "x$ac_cv_header_sys_epoll_h" = xyes
15764 then :
15765 printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h
15766
15767 fi
15768 ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
15769 if test "x$ac_cv_header_sys_event_h" = xyes
15770 then :
15771 printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h
15772
15773 fi
15774 ac_fn_c_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default"
15775 if test "x$ac_cv_header_sys_eventfd_h" = xyes
15776 then :
15777 printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h
15778
15779 fi
15780 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
15781 if test "x$ac_cv_header_sys_ioctl_h" = xyes
15782 then :
15783 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
15784
15785 fi
15786 ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15787 if test "x$ac_cv_header_sys_mman_h" = xyes
15788 then :
15789 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
15790
15791 fi
15792 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
15793 if test "x$ac_cv_header_sys_param_h" = xyes
15794 then :
15795 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
15796
15797 fi
15798 ac_fn_c_check_header_compile "$LINENO" "sys/queue.h" "ac_cv_header_sys_queue_h" "$ac_includes_default"
15799 if test "x$ac_cv_header_sys_queue_h" = xyes
15800 then :
15801 printf "%s\n" "#define HAVE_SYS_QUEUE_H 1" >>confdefs.h
15802
15803 fi
15804 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
15805 if test "x$ac_cv_header_sys_resource_h" = xyes
15806 then :
15807 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
15808
15809 fi
15810 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
15811 if test "x$ac_cv_header_sys_select_h" = xyes
15812 then :
15813 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
15814
15815 fi
15816 ac_fn_c_check_header_compile "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default"
15817 if test "x$ac_cv_header_sys_sendfile_h" = xyes
15818 then :
15819 printf "%s\n" "#define HAVE_SYS_SENDFILE_H 1" >>confdefs.h
15820
15821 fi
15822 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
15823 if test "x$ac_cv_header_sys_socket_h" = xyes
15824 then :
15825 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
15826
15827 fi
15828 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
15829 if test "x$ac_cv_header_sys_stat_h" = xyes
15830 then :
15831 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
15832
15833 fi
15834 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
15835 if test "x$ac_cv_header_sys_time_h" = xyes
15836 then :
15837 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
15838
15839 fi
15840 ac_fn_c_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
15841 if test "x$ac_cv_header_sys_timerfd_h" = xyes
15842 then :
15843 printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h
15844
15845 fi
15846 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
15847 if test "x$ac_cv_header_sys_uio_h" = xyes
15848 then :
15849 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
15850
15851 fi
15852 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
15853 if test "x$ac_cv_header_sys_wait_h" = xyes
15854 then :
15855 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15856
15857 fi
15858 ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
15859 if test "x$ac_cv_header_sys_random_h" = xyes
15860 then :
15861 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
15862
15863 fi
15864 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
15865 if test "x$ac_cv_header_errno_h" = xyes
15866 then :
15867 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
15868
15869 fi
15870 ac_fn_c_check_header_compile "$LINENO" "afunix.h" "ac_cv_header_afunix_h" "$ac_includes_default"
15871 if test "x$ac_cv_header_afunix_h" = xyes
15872 then :
15873 printf "%s\n" "#define HAVE_AFUNIX_H 1" >>confdefs.h
15874
15875 fi
15876
15877
15878 case "${host_os}" in
15879 linux*) ;;
15880 *)
15881 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
15882 #ifdef HAVE_SYS_PARAM_H
15883 #include <sys/param.h>
15884 #endif
15885
15886 "
15887 if test "x$ac_cv_header_sys_sysctl_h" = xyes
15888 then :
15889 printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
15890
15891 fi
15892
15893 esac
15894
15895 if test "x$ac_cv_header_sys_queue_h" = "xyes"; then
15896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TAILQ_FOREACH in sys/queue.h" >&5
15897 printf %s "checking for TAILQ_FOREACH in sys/queue.h... " >&6; }
15898 ac_ext=c
15899 ac_cpp='$CPP $CPPFLAGS'
15900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
15904 printf %s "checking how to run the C preprocessor... " >&6; }
15905 # On Suns, sometimes $CPP names a directory.
15906 if test -n "$CPP" && test -d "$CPP"; then
15907 CPP=
15908 fi
15909 if test -z "$CPP"; then
15910 if test ${ac_cv_prog_CPP+y}
15911 then :
15912 printf %s "(cached) " >&6
15913 else case e in #(
15914 e) # Double quotes because $CC needs to be expanded
15915 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
15916 do
15917 ac_preproc_ok=false
15918 for ac_c_preproc_warn_flag in '' yes
15919 do
15920 # Use a header file that comes with gcc, so configuring glibc
15921 # with a fresh cross-compiler works.
15922 # On the NeXT, cc -E runs the code through the compiler's parser,
15923 # not just through cpp. "Syntax error" is here to catch this case.
15924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15925 /* end confdefs.h. */
15926 #include <limits.h>
15927 Syntax error
15928 _ACEOF
15929 if ac_fn_c_try_cpp "$LINENO"
15930 then :
15931
15932 else case e in #(
15933 e) # Broken: fails on valid input.
15934 continue ;;
15935 esac
15936 fi
15937 rm -f conftest.err conftest.i conftest.$ac_ext
15938
15939 # OK, works on sane cases. Now check whether nonexistent headers
15940 # can be detected and how.
15941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942 /* end confdefs.h. */
15943 #include <ac_nonexistent.h>
15944 _ACEOF
15945 if ac_fn_c_try_cpp "$LINENO"
15946 then :
15947 # Broken: success on invalid input.
15948 continue
15949 else case e in #(
15950 e) # Passes both tests.
15951 ac_preproc_ok=:
15952 break ;;
15953 esac
15954 fi
15955 rm -f conftest.err conftest.i conftest.$ac_ext
15956
15957 done
15958 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15959 rm -f conftest.i conftest.err conftest.$ac_ext
15960 if $ac_preproc_ok
15961 then :
15962 break
15963 fi
15964
15965 done
15966 ac_cv_prog_CPP=$CPP
15967 ;;
15968 esac
15969 fi
15970 CPP=$ac_cv_prog_CPP
15971 else
15972 ac_cv_prog_CPP=$CPP
15973 fi
15974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
15975 printf "%s\n" "$CPP" >&6; }
15976 ac_preproc_ok=false
15977 for ac_c_preproc_warn_flag in '' yes
15978 do
15979 # Use a header file that comes with gcc, so configuring glibc
15980 # with a fresh cross-compiler works.
15981 # On the NeXT, cc -E runs the code through the compiler's parser,
15982 # not just through cpp. "Syntax error" is here to catch this case.
15983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15984 /* end confdefs.h. */
15985 #include <limits.h>
15986 Syntax error
15987 _ACEOF
15988 if ac_fn_c_try_cpp "$LINENO"
15989 then :
15990
15991 else case e in #(
15992 e) # Broken: fails on valid input.
15993 continue ;;
15994 esac
15995 fi
15996 rm -f conftest.err conftest.i conftest.$ac_ext
15997
15998 # OK, works on sane cases. Now check whether nonexistent headers
15999 # can be detected and how.
16000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16001 /* end confdefs.h. */
16002 #include <ac_nonexistent.h>
16003 _ACEOF
16004 if ac_fn_c_try_cpp "$LINENO"
16005 then :
16006 # Broken: success on invalid input.
16007 continue
16008 else case e in #(
16009 e) # Passes both tests.
16010 ac_preproc_ok=:
16011 break ;;
16012 esac
16013 fi
16014 rm -f conftest.err conftest.i conftest.$ac_ext
16015
16016 done
16017 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16018 rm -f conftest.i conftest.err conftest.$ac_ext
16019 if $ac_preproc_ok
16020 then :
16021
16022 else case e in #(
16023 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16024 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16025 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
16026 See 'config.log' for more details" "$LINENO" 5; } ;;
16027 esac
16028 fi
16029
16030 ac_ext=c
16031 ac_cpp='$CPP $CPPFLAGS'
16032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16035
16036
16037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
16038 printf %s "checking for egrep -e... " >&6; }
16039 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
16040 then :
16041 printf %s "(cached) " >&6
16042 else case e in #(
16043 e) if test -z "$EGREP_TRADITIONAL"; then
16044 ac_path_EGREP_TRADITIONAL_found=false
16045 # Loop through the user's path and test for each of PROGNAME-LIST
16046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16047 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16048 do
16049 IFS=$as_save_IFS
16050 case $as_dir in #(((
16051 '') as_dir=./ ;;
16052 */) ;;
16053 *) as_dir=$as_dir/ ;;
16054 esac
16055 for ac_prog in grep ggrep
16056 do
16057 for ac_exec_ext in '' $ac_executable_extensions; do
16058 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
16059 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
16060 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
16061 # Check for GNU $ac_path_EGREP_TRADITIONAL
16062 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
16063 *GNU*)
16064 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
16065 #(
16066 *)
16067 ac_count=0
16068 printf %s 0123456789 >"conftest.in"
16069 while :
16070 do
16071 cat "conftest.in" "conftest.in" >"conftest.tmp"
16072 mv "conftest.tmp" "conftest.in"
16073 cp "conftest.in" "conftest.nl"
16074 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
16075 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16077 as_fn_arith $ac_count + 1 && ac_count=$as_val
16078 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
16079 # Best one so far, save it but keep looking for a better one
16080 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
16081 ac_path_EGREP_TRADITIONAL_max=$ac_count
16082 fi
16083 # 10*(2^10) chars as input seems more than enough
16084 test $ac_count -gt 10 && break
16085 done
16086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16087 esac
16088
16089 $ac_path_EGREP_TRADITIONAL_found && break 3
16090 done
16091 done
16092 done
16093 IFS=$as_save_IFS
16094 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
16095 :
16096 fi
16097 else
16098 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
16099 fi
16100
16101 if test "$ac_cv_path_EGREP_TRADITIONAL"
16102 then :
16103 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
16104 else case e in #(
16105 e) if test -z "$EGREP_TRADITIONAL"; then
16106 ac_path_EGREP_TRADITIONAL_found=false
16107 # Loop through the user's path and test for each of PROGNAME-LIST
16108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16109 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16110 do
16111 IFS=$as_save_IFS
16112 case $as_dir in #(((
16113 '') as_dir=./ ;;
16114 */) ;;
16115 *) as_dir=$as_dir/ ;;
16116 esac
16117 for ac_prog in egrep
16118 do
16119 for ac_exec_ext in '' $ac_executable_extensions; do
16120 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
16121 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
16122 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
16123 # Check for GNU $ac_path_EGREP_TRADITIONAL
16124 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
16125 *GNU*)
16126 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
16127 #(
16128 *)
16129 ac_count=0
16130 printf %s 0123456789 >"conftest.in"
16131 while :
16132 do
16133 cat "conftest.in" "conftest.in" >"conftest.tmp"
16134 mv "conftest.tmp" "conftest.in"
16135 cp "conftest.in" "conftest.nl"
16136 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
16137 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16139 as_fn_arith $ac_count + 1 && ac_count=$as_val
16140 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
16141 # Best one so far, save it but keep looking for a better one
16142 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
16143 ac_path_EGREP_TRADITIONAL_max=$ac_count
16144 fi
16145 # 10*(2^10) chars as input seems more than enough
16146 test $ac_count -gt 10 && break
16147 done
16148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16149 esac
16150
16151 $ac_path_EGREP_TRADITIONAL_found && break 3
16152 done
16153 done
16154 done
16155 IFS=$as_save_IFS
16156 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
16157 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
16158 fi
16159 else
16160 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
16161 fi
16162 ;;
16163 esac
16164 fi ;;
16165 esac
16166 fi
16167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
16168 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
16169 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
16170
16171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16172 /* end confdefs.h. */
16173
16174 #include <sys/queue.h>
16175 #ifdef TAILQ_FOREACH
16176 yes
16177 #endif
16178
16179 _ACEOF
16180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16181 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
16182 then :
16183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16184 printf "%s\n" "yes" >&6; }
16185
16186 printf "%s\n" "#define HAVE_TAILQFOREACH 1" >>confdefs.h
16187
16188 else case e in #(
16189 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16190 printf "%s\n" "no" >&6; }
16191 ;;
16192 esac
16193 fi
16194 rm -rf conftest*
16195
16196 fi
16197
16198 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
16199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timeradd in sys/time.h" >&5
16200 printf %s "checking for timeradd in sys/time.h... " >&6; }
16201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16202 /* end confdefs.h. */
16203
16204 #include <sys/time.h>
16205 #ifdef timeradd
16206 yes
16207 #endif
16208
16209 _ACEOF
16210 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16211 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
16212 then :
16213
16214 printf "%s\n" "#define HAVE_TIMERADD 1" >>confdefs.h
16215
16216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16217 printf "%s\n" "yes" >&6; }
16218 else case e in #(
16219 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16220 printf "%s\n" "no" >&6; }
16221 ;;
16222 esac
16223 fi
16224 rm -rf conftest*
16225
16226 fi
16227
16228 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
16229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timercmp in sys/time.h" >&5
16230 printf %s "checking for timercmp in sys/time.h... " >&6; }
16231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16232 /* end confdefs.h. */
16233
16234 #include <sys/time.h>
16235 #ifdef timercmp
16236 yes
16237 #endif
16238
16239 _ACEOF
16240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16241 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
16242 then :
16243
16244 printf "%s\n" "#define HAVE_TIMERCMP 1" >>confdefs.h
16245
16246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16247 printf "%s\n" "yes" >&6; }
16248 else case e in #(
16249 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16250 printf "%s\n" "no" >&6; }
16251 ;;
16252 esac
16253 fi
16254 rm -rf conftest*
16255
16256 fi
16257
16258 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
16259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timerclear in sys/time.h" >&5
16260 printf %s "checking for timerclear in sys/time.h... " >&6; }
16261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16262 /* end confdefs.h. */
16263
16264 #include <sys/time.h>
16265 #ifdef timerclear
16266 yes
16267 #endif
16268
16269 _ACEOF
16270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16271 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
16272 then :
16273
16274 printf "%s\n" "#define HAVE_TIMERCLEAR 1" >>confdefs.h
16275
16276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16277 printf "%s\n" "yes" >&6; }
16278 else case e in #(
16279 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16280 printf "%s\n" "no" >&6; }
16281 ;;
16282 esac
16283 fi
16284 rm -rf conftest*
16285
16286 fi
16287
16288 if test "x$ac_cv_header_sys_time_h" = "xyes"; then
16289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timerisset in sys/time.h" >&5
16290 printf %s "checking for timerisset in sys/time.h... " >&6; }
16291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16292 /* end confdefs.h. */
16293
16294 #include <sys/time.h>
16295 #ifdef timerisset
16296 yes
16297 #endif
16298
16299 _ACEOF
16300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16301 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
16302 then :
16303
16304 printf "%s\n" "#define HAVE_TIMERISSET 1" >>confdefs.h
16305
16306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16307 printf "%s\n" "yes" >&6; }
16308 else case e in #(
16309 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16310 printf "%s\n" "no" >&6; }
16311 ;;
16312 esac
16313 fi
16314 rm -rf conftest*
16315
16316 fi
16317
16318 if test "x$ac_cv_header_sys_sysctl_h" = "xyes"; then
16319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
16320 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
16321 if test ${ac_cv_c_undeclared_builtin_options+y}
16322 then :
16323 printf %s "(cached) " >&6
16324 else case e in #(
16325 e) ac_save_CFLAGS=$CFLAGS
16326 ac_cv_c_undeclared_builtin_options='cannot detect'
16327 for ac_arg in '' -fno-builtin; do
16328 CFLAGS="$ac_save_CFLAGS $ac_arg"
16329 # This test program should *not* compile successfully.
16330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16331 /* end confdefs.h. */
16332
16333 int
16334 main (void)
16335 {
16336 (void) strchr;
16337 ;
16338 return 0;
16339 }
16340 _ACEOF
16341 if ac_fn_c_try_compile "$LINENO"
16342 then :
16343
16344 else case e in #(
16345 e) # This test program should compile successfully.
16346 # No library function is consistently available on
16347 # freestanding implementations, so test against a dummy
16348 # declaration. Include always-available headers on the
16349 # off chance that they somehow elicit warnings.
16350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16351 /* end confdefs.h. */
16352 #include <float.h>
16353 #include <limits.h>
16354 #include <stdarg.h>
16355 #include <stddef.h>
16356 extern void ac_decl (int, char *);
16357
16358 int
16359 main (void)
16360 {
16361 (void) ac_decl (0, (char *) 0);
16362 (void) ac_decl;
16363
16364 ;
16365 return 0;
16366 }
16367 _ACEOF
16368 if ac_fn_c_try_compile "$LINENO"
16369 then :
16370 if test x"$ac_arg" = x
16371 then :
16372 ac_cv_c_undeclared_builtin_options='none needed'
16373 else case e in #(
16374 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
16375 esac
16376 fi
16377 break
16378 fi
16379 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16380 esac
16381 fi
16382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16383 done
16384 CFLAGS=$ac_save_CFLAGS
16385 ;;
16386 esac
16387 fi
16388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
16389 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
16390 case $ac_cv_c_undeclared_builtin_options in #(
16391 'cannot detect') :
16392 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16393 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16394 as_fn_error $? "cannot make $CC report undeclared builtins
16395 See 'config.log' for more details" "$LINENO" 5; } ;; #(
16396 'none needed') :
16397 ac_c_undeclared_builtin_options='' ;; #(
16398 *) :
16399 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
16400 esac
16401
16402 ac_fn_check_decl "$LINENO" "CTL_KERN" "ac_cv_have_decl_CTL_KERN" "#include <sys/types.h>
16403 #include <sys/sysctl.h>
16404
16405 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16406 if test "x$ac_cv_have_decl_CTL_KERN" = xyes
16407 then :
16408 ac_have_decl=1
16409 else case e in #(
16410 e) ac_have_decl=0 ;;
16411 esac
16412 fi
16413 printf "%s\n" "#define HAVE_DECL_CTL_KERN $ac_have_decl" >>confdefs.h
16414 ac_fn_check_decl "$LINENO" "KERN_ARND" "ac_cv_have_decl_KERN_ARND" "#include <sys/types.h>
16415 #include <sys/sysctl.h>
16416
16417 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16418 if test "x$ac_cv_have_decl_KERN_ARND" = xyes
16419 then :
16420 ac_have_decl=1
16421 else case e in #(
16422 e) ac_have_decl=0 ;;
16423 esac
16424 fi
16425 printf "%s\n" "#define HAVE_DECL_KERN_ARND $ac_have_decl" >>confdefs.h
16426
16427 fi
16428
16429 if test x$bwin32 = xtrue; then
16430 BUILD_WIN32_TRUE=
16431 BUILD_WIN32_FALSE='#'
16432 else
16433 BUILD_WIN32_TRUE='#'
16434 BUILD_WIN32_FALSE=
16435 fi
16436
16437 if test x$cygwin = xtrue; then
16438 BUILD_CYGWIN_TRUE=
16439 BUILD_CYGWIN_FALSE='#'
16440 else
16441 BUILD_CYGWIN_TRUE='#'
16442 BUILD_CYGWIN_FALSE=
16443 fi
16444
16445 if test x$midipix = xtrue; then
16446 BUILD_MIDIPIX_TRUE=
16447 BUILD_MIDIPIX_FALSE='#'
16448 else
16449 BUILD_MIDIPIX_TRUE='#'
16450 BUILD_MIDIPIX_FALSE=
16451 fi
16452
16453 if test x$bwin32 = xtrue || test x$cygwin = xtrue || test x$midipix = xtrue; then
16454 BUILD_WITH_NO_UNDEFINED_TRUE=
16455 BUILD_WITH_NO_UNDEFINED_FALSE='#'
16456 else
16457 BUILD_WITH_NO_UNDEFINED_TRUE='#'
16458 BUILD_WITH_NO_UNDEFINED_FALSE=
16459 fi
16460
16461
16462 if test x$bwin32 = xtrue; then
16463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
16464 printf %s "checking for main in -lws2_32... " >&6; }
16465 if test ${ac_cv_lib_ws2_32_main+y}
16466 then :
16467 printf %s "(cached) " >&6
16468 else case e in #(
16469 e) ac_check_lib_save_LIBS=$LIBS
16470 LIBS="-lws2_32 $LIBS"
16471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h. */
16473
16474
16475 int
16476 main (void)
16477 {
16478 return main ();
16479 ;
16480 return 0;
16481 }
16482 _ACEOF
16483 if ac_fn_c_try_link "$LINENO"
16484 then :
16485 ac_cv_lib_ws2_32_main=yes
16486 else case e in #(
16487 e) ac_cv_lib_ws2_32_main=no ;;
16488 esac
16489 fi
16490 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16491 conftest$ac_exeext conftest.$ac_ext
16492 LIBS=$ac_check_lib_save_LIBS ;;
16493 esac
16494 fi
16495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
16496 printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
16497 if test "x$ac_cv_lib_ws2_32_main" = xyes
16498 then :
16499 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
16500
16501 LIBS="-lws2_32 $LIBS"
16502
16503 fi
16504 ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
16505
16506 fi
16507
16508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16509 printf %s "checking for an ANSI C-conforming const... " >&6; }
16510 if test ${ac_cv_c_const+y}
16511 then :
16512 printf %s "(cached) " >&6
16513 else case e in #(
16514 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16515 /* end confdefs.h. */
16516
16517 int
16518 main (void)
16519 {
16520
16521 #ifndef __cplusplus
16522 /* Ultrix mips cc rejects this sort of thing. */
16523 typedef int charset[2];
16524 const charset cs = { 0, 0 };
16525 /* SunOS 4.1.1 cc rejects this. */
16526 char const *const *pcpcc;
16527 char **ppc;
16528 /* NEC SVR4.0.2 mips cc rejects this. */
16529 struct point {int x, y;};
16530 static struct point const zero = {0,0};
16531 /* IBM XL C 1.02.0.0 rejects this.
16532 It does not let you subtract one const X* pointer from another in
16533 an arm of an if-expression whose if-part is not a constant
16534 expression */
16535 const char *g = "string";
16536 pcpcc = &g + (g ? g-g : 0);
16537 /* HPUX 7.0 cc rejects these. */
16538 ++pcpcc;
16539 ppc = (char**) pcpcc;
16540 pcpcc = (char const *const *) ppc;
16541 { /* SCO 3.2v4 cc rejects this sort of thing. */
16542 char tx;
16543 char *t = &tx;
16544 char const *s = 0 ? (char *) 0 : (char const *) 0;
16545
16546 *t++ = 0;
16547 if (s) return 0;
16548 }
16549 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16550 int x[] = {25, 17};
16551 const int *foo = &x[0];
16552 ++foo;
16553 }
16554 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16555 typedef const int *iptr;
16556 iptr p = 0;
16557 ++p;
16558 }
16559 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
16560 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16561 struct s { int j; const int *ap[3]; } bx;
16562 struct s *b = &bx; b->j = 5;
16563 }
16564 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16565 const int foo = 10;
16566 if (!foo) return 0;
16567 }
16568 return !cs[0] && !zero.x;
16569 #endif
16570
16571 ;
16572 return 0;
16573 }
16574 _ACEOF
16575 if ac_fn_c_try_compile "$LINENO"
16576 then :
16577 ac_cv_c_const=yes
16578 else case e in #(
16579 e) ac_cv_c_const=no ;;
16580 esac
16581 fi
16582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16583 esac
16584 fi
16585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16586 printf "%s\n" "$ac_cv_c_const" >&6; }
16587 if test $ac_cv_c_const = no; then
16588
16589 printf "%s\n" "#define const /**/" >>confdefs.h
16590
16591 fi
16592
16593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16594 printf %s "checking for inline... " >&6; }
16595 if test ${ac_cv_c_inline+y}
16596 then :
16597 printf %s "(cached) " >&6
16598 else case e in #(
16599 e) ac_cv_c_inline=no
16600 for ac_kw in inline __inline__ __inline; do
16601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16602 /* end confdefs.h. */
16603 #ifndef __cplusplus
16604 typedef int foo_t;
16605 static $ac_kw foo_t static_foo (void) {return 0; }
16606 $ac_kw foo_t foo (void) {return 0; }
16607 #endif
16608
16609 _ACEOF
16610 if ac_fn_c_try_compile "$LINENO"
16611 then :
16612 ac_cv_c_inline=$ac_kw
16613 fi
16614 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16615 test "$ac_cv_c_inline" != no && break
16616 done
16617 ;;
16618 esac
16619 fi
16620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16621 printf "%s\n" "$ac_cv_c_inline" >&6; }
16622
16623 case $ac_cv_c_inline in
16624 inline | yes) ;;
16625 *)
16626 case $ac_cv_c_inline in
16627 no) ac_val=;;
16628 *) ac_val=$ac_cv_c_inline;;
16629 esac
16630 cat >>confdefs.h <<_ACEOF
16631 #ifndef __cplusplus
16632 #define inline $ac_val
16633 #endif
16634 _ACEOF
16635 ;;
16636 esac
16637
16638
16639
16640 # Obsolete code to be removed.
16641 if test $ac_cv_header_sys_time_h = yes; then
16642
16643 printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16644
16645 fi
16646 # End of obsolete code.
16647
16648
16649 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
16650 if test "x$ac_cv_func_accept4" = xyes
16651 then :
16652 printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h
16653
16654 fi
16655 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
16656 if test "x$ac_cv_func_arc4random" = xyes
16657 then :
16658 printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h
16659
16660 fi
16661 ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf"
16662 if test "x$ac_cv_func_arc4random_buf" = xyes
16663 then :
16664 printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h
16665
16666 fi
16667 ac_fn_c_check_func "$LINENO" "arc4random_addrandom" "ac_cv_func_arc4random_addrandom"
16668 if test "x$ac_cv_func_arc4random_addrandom" = xyes
16669 then :
16670 printf "%s\n" "#define HAVE_ARC4RANDOM_ADDRANDOM 1" >>confdefs.h
16671
16672 fi
16673 ac_fn_c_check_func "$LINENO" "eventfd" "ac_cv_func_eventfd"
16674 if test "x$ac_cv_func_eventfd" = xyes
16675 then :
16676 printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h
16677
16678 fi
16679 ac_fn_c_check_func "$LINENO" "epoll_create1" "ac_cv_func_epoll_create1"
16680 if test "x$ac_cv_func_epoll_create1" = xyes
16681 then :
16682 printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
16683
16684 fi
16685 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
16686 if test "x$ac_cv_func_fcntl" = xyes
16687 then :
16688 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
16689
16690 fi
16691 ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid"
16692 if test "x$ac_cv_func_getegid" = xyes
16693 then :
16694 printf "%s\n" "#define HAVE_GETEGID 1" >>confdefs.h
16695
16696 fi
16697 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
16698 if test "x$ac_cv_func_geteuid" = xyes
16699 then :
16700 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
16701
16702 fi
16703 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
16704 if test "x$ac_cv_func_getifaddrs" = xyes
16705 then :
16706 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
16707
16708 fi
16709 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16710 if test "x$ac_cv_func_gettimeofday" = xyes
16711 then :
16712 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
16713
16714 fi
16715 ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid"
16716 if test "x$ac_cv_func_issetugid" = xyes
16717 then :
16718 printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h
16719
16720 fi
16721 ac_fn_c_check_func "$LINENO" "mach_absolute_time" "ac_cv_func_mach_absolute_time"
16722 if test "x$ac_cv_func_mach_absolute_time" = xyes
16723 then :
16724 printf "%s\n" "#define HAVE_MACH_ABSOLUTE_TIME 1" >>confdefs.h
16725
16726 fi
16727 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16728 if test "x$ac_cv_func_mmap" = xyes
16729 then :
16730 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
16731
16732 fi
16733 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
16734 if test "x$ac_cv_func_nanosleep" = xyes
16735 then :
16736 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
16737
16738 fi
16739 ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
16740 if test "x$ac_cv_func_pipe" = xyes
16741 then :
16742 printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h
16743
16744 fi
16745 ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2"
16746 if test "x$ac_cv_func_pipe2" = xyes
16747 then :
16748 printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h
16749
16750 fi
16751 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv"
16752 if test "x$ac_cv_func_putenv" = xyes
16753 then :
16754 printf "%s\n" "#define HAVE_PUTENV 1" >>confdefs.h
16755
16756 fi
16757 ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile"
16758 if test "x$ac_cv_func_sendfile" = xyes
16759 then :
16760 printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h
16761
16762 fi
16763 ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
16764 if test "x$ac_cv_func_setenv" = xyes
16765 then :
16766 printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h
16767
16768 fi
16769 ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit"
16770 if test "x$ac_cv_func_setrlimit" = xyes
16771 then :
16772 printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h
16773
16774 fi
16775 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
16776 if test "x$ac_cv_func_sigaction" = xyes
16777 then :
16778 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
16779
16780 fi
16781 ac_fn_c_check_func "$LINENO" "signal" "ac_cv_func_signal"
16782 if test "x$ac_cv_func_signal" = xyes
16783 then :
16784 printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h
16785
16786 fi
16787 ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice"
16788 if test "x$ac_cv_func_splice" = xyes
16789 then :
16790 printf "%s\n" "#define HAVE_SPLICE 1" >>confdefs.h
16791
16792 fi
16793 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
16794 if test "x$ac_cv_func_strlcpy" = xyes
16795 then :
16796 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
16797
16798 fi
16799 ac_fn_c_check_func "$LINENO" "strsep" "ac_cv_func_strsep"
16800 if test "x$ac_cv_func_strsep" = xyes
16801 then :
16802 printf "%s\n" "#define HAVE_STRSEP 1" >>confdefs.h
16803
16804 fi
16805 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
16806 if test "x$ac_cv_func_strtok_r" = xyes
16807 then :
16808 printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
16809
16810 fi
16811 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
16812 if test "x$ac_cv_func_strtoll" = xyes
16813 then :
16814 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
16815
16816 fi
16817 ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
16818 if test "x$ac_cv_func_sysctl" = xyes
16819 then :
16820 printf "%s\n" "#define HAVE_SYSCTL 1" >>confdefs.h
16821
16822 fi
16823 ac_fn_c_check_func "$LINENO" "timerfd_create" "ac_cv_func_timerfd_create"
16824 if test "x$ac_cv_func_timerfd_create" = xyes
16825 then :
16826 printf "%s\n" "#define HAVE_TIMERFD_CREATE 1" >>confdefs.h
16827
16828 fi
16829 ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
16830 if test "x$ac_cv_func_umask" = xyes
16831 then :
16832 printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h
16833
16834 fi
16835 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
16836 if test "x$ac_cv_func_unsetenv" = xyes
16837 then :
16838 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
16839
16840 fi
16841 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
16842 if test "x$ac_cv_func_usleep" = xyes
16843 then :
16844 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
16845
16846 fi
16847 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
16848 if test "x$ac_cv_func_vasprintf" = xyes
16849 then :
16850 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
16851
16852 fi
16853 ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
16854 if test "x$ac_cv_func_getrandom" = xyes
16855 then :
16856 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
16857
16858 fi
16859
16860
16861 if test x$bwin32 = xtrue
16862 then :
16863
16864 for ac_func in _gmtime64_s
16865 do :
16866 ac_fn_c_check_func "$LINENO" "_gmtime64_s" "ac_cv_func__gmtime64_s"
16867 if test "x$ac_cv_func__gmtime64_s" = xyes
16868 then :
16869 printf "%s\n" "#define HAVE__GMTIME64_S 1" >>confdefs.h
16870
16871 else case e in #(
16872 e) ac_fn_c_check_func "$LINENO" "_gmtime64" "ac_cv_func__gmtime64"
16873 if test "x$ac_cv_func__gmtime64" = xyes
16874 then :
16875 printf "%s\n" "#define HAVE__GMTIME64 1" >>confdefs.h
16876
16877 fi
16878 ;;
16879 esac
16880 fi
16881
16882 done
16883
16884 fi
16885
16886 if test x"$ac_cv_func_strlcpy" = xno; then
16887 STRLCPY_IMPL_TRUE=
16888 STRLCPY_IMPL_FALSE='#'
16889 else
16890 STRLCPY_IMPL_TRUE='#'
16891 STRLCPY_IMPL_FALSE=
16892 fi
16893
16894
16895
16896
16897 if test x$bwin32 = xtrue
16898 then :
16899 if test "x#ifdef _WIN32
16900 #include <winsock2.h>
16901 #include <ws2tcpip.h>
16902 #endif" = "x"
16903 then :
16904 as_fn_error $? "header not privided" "$LINENO" 5
16905 fi
16906 if test "x#ifdef _WIN32
16907 #include <winsock2.h>
16908 #include <ws2tcpip.h>
16909 #endif" = "x"
16910 then :
16911 as_fn_error $? "header not privided" "$LINENO" 5
16912 fi
16913
16914 ac_fn_check_decl "$LINENO" "getnameinfo" "ac_cv_have_decl_decl" " #ifdef _WIN32
16915 #include <winsock2.h>
16916 #include <ws2tcpip.h>
16917 #endif
16918 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16919 if test "x$ac_cv_have_decl_decl" = xyes
16920 then :
16921
16922 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h
16923
16924 fi
16925 if test "x#ifdef _WIN32
16926 #include <winsock2.h>
16927 #include <ws2tcpip.h>
16928 #endif" = "x"
16929 then :
16930 as_fn_error $? "header not privided" "$LINENO" 5
16931 fi
16932
16933 ac_fn_check_decl "$LINENO" "getprotobynumber" "ac_cv_have_decl_decl" " #ifdef _WIN32
16934 #include <winsock2.h>
16935 #include <ws2tcpip.h>
16936 #endif
16937 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16938 if test "x$ac_cv_have_decl_decl" = xyes
16939 then :
16940
16941 printf "%s\n" "#define HAVE_GETPROTOBYNUMBER 1" >>confdefs.h
16942
16943 fi
16944 if test "x#ifdef _WIN32
16945 #include <winsock2.h>
16946 #include <ws2tcpip.h>
16947 #endif" = "x"
16948 then :
16949 as_fn_error $? "header not privided" "$LINENO" 5
16950 fi
16951
16952 ac_fn_check_decl "$LINENO" "getservbyname" "ac_cv_have_decl_decl" " #ifdef _WIN32
16953 #include <winsock2.h>
16954 #include <ws2tcpip.h>
16955 #endif
16956 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16957 if test "x$ac_cv_have_decl_decl" = xyes
16958 then :
16959
16960 printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h
16961
16962 fi
16963 if test "x#ifdef _WIN32
16964 #include <winsock2.h>
16965 #include <ws2tcpip.h>
16966 #endif" = "x"
16967 then :
16968 as_fn_error $? "header not privided" "$LINENO" 5
16969 fi
16970
16971 ac_fn_check_decl "$LINENO" "inet_ntop" "ac_cv_have_decl_decl" " #ifdef _WIN32
16972 #include <winsock2.h>
16973 #include <ws2tcpip.h>
16974 #endif
16975 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16976 if test "x$ac_cv_have_decl_decl" = xyes
16977 then :
16978
16979 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
16980
16981 fi
16982 if test "x#ifdef _WIN32
16983 #include <winsock2.h>
16984 #include <ws2tcpip.h>
16985 #endif" = "x"
16986 then :
16987 as_fn_error $? "header not privided" "$LINENO" 5
16988 fi
16989
16990 ac_fn_check_decl "$LINENO" "inet_pton" "ac_cv_have_decl_decl" " #ifdef _WIN32
16991 #include <winsock2.h>
16992 #include <ws2tcpip.h>
16993 #endif
16994 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16995 if test "x$ac_cv_have_decl_decl" = xyes
16996 then :
16997
16998 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
16999
17000 fi
17001 if test "x#ifdef _WIN32
17002 #include <winsock2.h>
17003 #include <ws2tcpip.h>
17004 #endif" = "x"
17005 then :
17006 as_fn_error $? "header not privided" "$LINENO" 5
17007 fi
17008
17009 ac_fn_check_decl "$LINENO" "getaddrinfo" "ac_cv_have_decl_decl" " #ifdef _WIN32
17010 #include <winsock2.h>
17011 #include <ws2tcpip.h>
17012 #endif
17013 " "$ac_c_undeclared_builtin_options" "CFLAGS"
17014 if test "x$ac_cv_have_decl_decl" = xyes
17015 then :
17016
17017 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
17018
17019 fi
17020
17021
17022 else case e in #(
17023 e) ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
17024 if test "x$ac_cv_func_getnameinfo" = xyes
17025 then :
17026 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h
17027
17028 fi
17029 ac_fn_c_check_func "$LINENO" "getprotobynumber" "ac_cv_func_getprotobynumber"
17030 if test "x$ac_cv_func_getprotobynumber" = xyes
17031 then :
17032 printf "%s\n" "#define HAVE_GETPROTOBYNUMBER 1" >>confdefs.h
17033
17034 fi
17035 ac_fn_c_check_func "$LINENO" "getservbyname" "ac_cv_func_getservbyname"
17036 if test "x$ac_cv_func_getservbyname" = xyes
17037 then :
17038 printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h
17039
17040 fi
17041 ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
17042 if test "x$ac_cv_func_inet_ntop" = xyes
17043 then :
17044 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
17045
17046 fi
17047 ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
17048 if test "x$ac_cv_func_inet_pton" = xyes
17049 then :
17050 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
17051
17052 fi
17053
17054 ;;
17055 esac
17056 fi
17057
17058
17059
17060 if test x$bwin32 = xfalse
17061 then :
17062
17063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
17064 printf %s "checking for getaddrinfo... " >&6; }
17065 if test ${libevent_cv_getaddrinfo+y}
17066 then :
17067 printf %s "(cached) " >&6
17068 else case e in #(
17069 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17070 /* end confdefs.h. */
17071
17072 #ifdef HAVE_NETDB_H
17073 #include <netdb.h>
17074 #endif
17075
17076 int
17077 main (void)
17078 {
17079
17080 getaddrinfo;
17081
17082
17083 ;
17084 return 0;
17085 }
17086 _ACEOF
17087 if ac_fn_c_try_link "$LINENO"
17088 then :
17089 libevent_cv_getaddrinfo=yes
17090 else case e in #(
17091 e) libevent_cv_getaddrinfo=no
17092 ;;
17093 esac
17094 fi
17095 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17096 conftest$ac_exeext conftest.$ac_ext
17097 ;;
17098 esac
17099 fi
17100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_getaddrinfo" >&5
17101 printf "%s\n" "$libevent_cv_getaddrinfo" >&6; }
17102 if test "$libevent_cv_getaddrinfo" = "yes" ; then
17103
17104 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
17105
17106 else
17107
17108 # Check for gethostbyname_r in all its glorious incompatible versions.
17109 # (This is cut-and-pasted from Tor, which based its logic on
17110 # Python's configure.in.)
17111
17112
17113 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
17114 if test "x$ac_cv_func_gethostbyname_r" = xyes
17115 then :
17116
17117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() wants" >&5
17118 printf %s "checking how many arguments gethostbyname_r() wants... " >&6; }
17119 OLD_CFLAGS=$CFLAGS
17120 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
17121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17122 /* end confdefs.h. */
17123
17124 #include <netdb.h>
17125
17126 int
17127 main (void)
17128 {
17129
17130 char *cp1, *cp2;
17131 struct hostent *h1, *h2;
17132 int i1, i2;
17133 (void)gethostbyname_r(cp1,h1,cp2,i1,&h2,&i2);
17134
17135 ;
17136 return 0;
17137 }
17138 _ACEOF
17139 if ac_fn_c_try_compile "$LINENO"
17140 then :
17141
17142 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
17143
17144
17145 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
17146
17147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 6" >&5
17148 printf "%s\n" "6" >&6; }
17149
17150 else case e in #(
17151 e)
17152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17153 /* end confdefs.h. */
17154
17155 #include <netdb.h>
17156
17157 int
17158 main (void)
17159 {
17160
17161 char *cp1, *cp2;
17162 struct hostent *h1;
17163 int i1, i2;
17164 (void)gethostbyname_r(cp1,h1,cp2,i1,&i2);
17165
17166 ;
17167 return 0;
17168 }
17169 _ACEOF
17170 if ac_fn_c_try_compile "$LINENO"
17171 then :
17172
17173 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
17174
17175
17176 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
17177
17178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 5" >&5
17179 printf "%s\n" "5" >&6; }
17180
17181 else case e in #(
17182 e)
17183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17184 /* end confdefs.h. */
17185
17186 #include <netdb.h>
17187
17188 int
17189 main (void)
17190 {
17191
17192 char *cp1;
17193 struct hostent *h1;
17194 struct hostent_data hd;
17195 (void) gethostbyname_r(cp1,h1,&hd);
17196
17197 ;
17198 return 0;
17199 }
17200 _ACEOF
17201 if ac_fn_c_try_compile "$LINENO"
17202 then :
17203
17204 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
17205
17206
17207 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
17208
17209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 3" >&5
17210 printf "%s\n" "3" >&6; }
17211
17212 else case e in #(
17213 e)
17214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: 0" >&5
17215 printf "%s\n" "0" >&6; }
17216 ;;
17217 esac
17218 fi
17219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17220 ;;
17221 esac
17222 fi
17223 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17224 ;;
17225 esac
17226 fi
17227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17228 CFLAGS=$OLD_CFLAGS
17229
17230 fi
17231
17232
17233 fi
17234
17235 fi
17236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for F_SETFD in fcntl.h" >&5
17237 printf %s "checking for F_SETFD in fcntl.h... " >&6; }
17238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17239 /* end confdefs.h. */
17240
17241 #define _GNU_SOURCE 1
17242 #include <fcntl.h>
17243 #ifdef F_SETFD
17244 yes
17245 #endif
17246
17247 _ACEOF
17248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17249 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
17250 then :
17251
17252 printf "%s\n" "#define HAVE_SETFD 1" >>confdefs.h
17253
17254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17255 printf "%s\n" "yes" >&6; }
17256 else case e in #(
17257 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17258 printf "%s\n" "no" >&6; } ;;
17259 esac
17260 fi
17261 rm -rf conftest*
17262
17263
17264 needsignal=no
17265 haveselect=no
17266 if test x$bwin32 != xtrue; then
17267
17268 for ac_func in select
17269 do :
17270 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
17271 if test "x$ac_cv_func_select" = xyes
17272 then :
17273 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
17274 haveselect=yes
17275 fi
17276
17277 done
17278 if test "x$haveselect" = "xyes" ; then
17279 needsignal=yes
17280 fi
17281 fi
17282 if test "x$haveselect" = "xyes"; then
17283 SELECT_BACKEND_TRUE=
17284 SELECT_BACKEND_FALSE='#'
17285 else
17286 SELECT_BACKEND_TRUE='#'
17287 SELECT_BACKEND_FALSE=
17288 fi
17289
17290
17291 havepoll=no
17292
17293 for ac_func in poll
17294 do :
17295 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
17296 if test "x$ac_cv_func_poll" = xyes
17297 then :
17298 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
17299 havepoll=yes
17300 fi
17301
17302 done
17303 if test "x$havepoll" = "xyes" ; then
17304 needsignal=yes
17305 fi
17306 if test "x$havepoll" = "xyes"; then
17307 POLL_BACKEND_TRUE=
17308 POLL_BACKEND_FALSE='#'
17309 else
17310 POLL_BACKEND_TRUE='#'
17311 POLL_BACKEND_FALSE=
17312 fi
17313
17314
17315 havedevpoll=no
17316 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
17317
17318 printf "%s\n" "#define HAVE_DEVPOLL 1" >>confdefs.h
17319
17320 fi
17321 if test "x$ac_cv_header_sys_devpoll_h" = "xyes"; then
17322 DEVPOLL_BACKEND_TRUE=
17323 DEVPOLL_BACKEND_FALSE='#'
17324 else
17325 DEVPOLL_BACKEND_TRUE='#'
17326 DEVPOLL_BACKEND_FALSE=
17327 fi
17328
17329
17330 havekqueue=no
17331 if test "x$ac_cv_header_sys_event_h" = "xyes"; then
17332
17333 for ac_func in kqueue
17334 do :
17335 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
17336 if test "x$ac_cv_func_kqueue" = xyes
17337 then :
17338 printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h
17339 havekqueue=yes
17340 fi
17341
17342 done
17343 if test "x$havekqueue" = "xyes" ; then
17344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working kqueue" >&5
17345 printf %s "checking for working kqueue... " >&6; }
17346 if test "$cross_compiling" = yes
17347 then :
17348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17349 printf "%s\n" "no" >&6; }
17350
17351 else case e in #(
17352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17353 /* end confdefs.h. */
17354
17355 #ifdef HAVE_STDLIB_H
17356 #include <stdlib.h>
17357 #endif
17358 #ifdef HAVE_STRING_H
17359 #include <string.h>
17360 #endif
17361 #include <sys/types.h>
17362 #include <sys/time.h>
17363 #include <sys/event.h>
17364 #include <stdio.h>
17365 #include <unistd.h>
17366 #include <fcntl.h>
17367
17368 int
17369 main (void)
17370 {
17371
17372 int kq;
17373 int n;
17374 int fd[2];
17375 struct kevent ev;
17376 struct timespec ts;
17377 char buf[80000];
17378
17379 if (pipe(fd) == -1)
17380 return 1;
17381 if (fcntl(fd[1], F_SETFL, O_NONBLOCK) == -1)
17382 return 1;
17383
17384 while ((n = write(fd[1], buf, sizeof(buf))) == sizeof(buf))
17385 ;
17386
17387 if ((kq = kqueue()) == -1)
17388 return 1;
17389
17390 memset(&ev, 0, sizeof(ev));
17391 ev.ident = fd[1];
17392 ev.filter = EVFILT_WRITE;
17393 ev.flags = EV_ADD | EV_ENABLE;
17394 n = kevent(kq, &ev, 1, NULL, 0, NULL);
17395 if (n == -1)
17396 return 1;
17397
17398 read(fd[0], buf, sizeof(buf));
17399
17400 ts.tv_sec = 0;
17401 ts.tv_nsec = 0;
17402 n = kevent(kq, NULL, 0, &ev, 1, &ts);
17403 if (n == -1 || n == 0)
17404 return 1;
17405
17406 return 0;
17407
17408
17409 ;
17410 return 0;
17411 }
17412 _ACEOF
17413 if ac_fn_c_try_run "$LINENO"
17414 then :
17415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17416 printf "%s\n" "yes" >&6; }
17417
17418 printf "%s\n" "#define HAVE_WORKING_KQUEUE 1" >>confdefs.h
17419
17420 havekqueue=yes
17421
17422 else case e in #(
17423 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17424 printf "%s\n" "no" >&6; } ;;
17425 esac
17426 fi
17427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17428 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17429 esac
17430 fi
17431
17432 fi
17433 fi
17434 if test "x$havekqueue" = "xyes"; then
17435 KQUEUE_BACKEND_TRUE=
17436 KQUEUE_BACKEND_FALSE='#'
17437 else
17438 KQUEUE_BACKEND_TRUE='#'
17439 KQUEUE_BACKEND_FALSE=
17440 fi
17441
17442
17443 haveepollsyscall=no
17444 haveepoll=no
17445
17446 for ac_func in epoll_ctl
17447 do :
17448 ac_fn_c_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
17449 if test "x$ac_cv_func_epoll_ctl" = xyes
17450 then :
17451 printf "%s\n" "#define HAVE_EPOLL_CTL 1" >>confdefs.h
17452 haveepoll=yes
17453 fi
17454
17455 done
17456 if test "x$haveepoll" = "xyes" ; then
17457
17458 printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h
17459
17460 needsignal=yes
17461 fi
17462 if test "x$ac_cv_header_sys_epoll_h" = "xyes"; then
17463 if test "x$haveepoll" = "xno" ; then
17464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll system call" >&5
17465 printf %s "checking for epoll system call... " >&6; }
17466 if test "$cross_compiling" = yes
17467 then :
17468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17469 printf "%s\n" "no" >&6; }
17470
17471 else case e in #(
17472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473 /* end confdefs.h. */
17474
17475 #include <stdint.h>
17476 #include <sys/param.h>
17477 #include <sys/types.h>
17478 #include <sys/syscall.h>
17479 #include <sys/epoll.h>
17480 #include <unistd.h>
17481
17482 int
17483 epoll_create(int size)
17484 {
17485 return (syscall(__NR_epoll_create, size));
17486 }
17487
17488 int
17489 main (void)
17490 {
17491
17492 int epfd;
17493
17494 epfd = epoll_create(256);
17495 return (epfd == -1 ? 1 : 0);
17496
17497
17498 ;
17499 return 0;
17500 }
17501 _ACEOF
17502 if ac_fn_c_try_run "$LINENO"
17503 then :
17504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17505 printf "%s\n" "yes" >&6; }
17506
17507 printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h
17508
17509 needsignal=yes
17510 have_epoll=yes
17511 case " $LIBOBJS " in
17512 *" epoll_sub.$ac_objext "* ) ;;
17513 *) LIBOBJS="$LIBOBJS epoll_sub.$ac_objext"
17514 ;;
17515 esac
17516
17517
17518 else case e in #(
17519 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17520 printf "%s\n" "no" >&6; } ;;
17521 esac
17522 fi
17523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17524 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17525 esac
17526 fi
17527
17528 fi
17529 fi
17530 if test "x$haveepoll" = "xyes"; then
17531 EPOLL_BACKEND_TRUE=
17532 EPOLL_BACKEND_FALSE='#'
17533 else
17534 EPOLL_BACKEND_TRUE='#'
17535 EPOLL_BACKEND_FALSE=
17536 fi
17537
17538
17539 haveeventports=no
17540
17541 for ac_func in port_create
17542 do :
17543 ac_fn_c_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
17544 if test "x$ac_cv_func_port_create" = xyes
17545 then :
17546 printf "%s\n" "#define HAVE_PORT_CREATE 1" >>confdefs.h
17547 haveeventports=yes
17548 fi
17549
17550 done
17551 if test "x$haveeventports" = "xyes" ; then
17552
17553 printf "%s\n" "#define HAVE_EVENT_PORTS 1" >>confdefs.h
17554
17555 needsignal=yes
17556 fi
17557 if test "x$haveeventports" = "xyes"; then
17558 EVPORT_BACKEND_TRUE=
17559 EVPORT_BACKEND_FALSE='#'
17560 else
17561 EVPORT_BACKEND_TRUE='#'
17562 EVPORT_BACKEND_FALSE=
17563 fi
17564
17565
17566 if test "x$bwin32" = "xtrue"; then
17567 needsignal=yes
17568 fi
17569
17570 if test "x$needsignal" = "xyes"; then
17571 SIGNAL_SUPPORT_TRUE=
17572 SIGNAL_SUPPORT_FALSE='#'
17573 else
17574 SIGNAL_SUPPORT_TRUE='#'
17575 SIGNAL_SUPPORT_FALSE=
17576 fi
17577
17578
17579
17580 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
17581 "
17582 if test "x$ac_cv_type_pid_t" = xyes
17583 then :
17584
17585 else case e in #(
17586 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17587 /* end confdefs.h. */
17588
17589 #if defined _WIN64 && !defined __CYGWIN__
17590 LLP64
17591 #endif
17592
17593 int
17594 main (void)
17595 {
17596
17597 ;
17598 return 0;
17599 }
17600
17601 _ACEOF
17602 if ac_fn_c_try_compile "$LINENO"
17603 then :
17604 ac_pid_type='int'
17605 else case e in #(
17606 e) ac_pid_type='__int64' ;;
17607 esac
17608 fi
17609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17610
17611 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
17612
17613 ;;
17614 esac
17615 fi
17616
17617
17618 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17619 if test "x$ac_cv_type_size_t" = xyes
17620 then :
17621
17622 else case e in #(
17623 e)
17624 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
17625 ;;
17626 esac
17627 fi
17628
17629 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
17630 if test "x$ac_cv_type_ssize_t" = xyes
17631 then :
17632
17633 else case e in #(
17634 e)
17635 printf "%s\n" "#define ssize_t int" >>confdefs.h
17636 ;;
17637 esac
17638 fi
17639
17640
17641 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H
17642 #include <stdint.h>
17643 #elif defined(HAVE_INTTYPES_H)
17644 #include <inttypes.h>
17645 #endif
17646 #ifdef HAVE_SYS_TYPES_H
17647 #include <sys/types.h>
17648 #endif
17649 "
17650 if test "x$ac_cv_type_uint64_t" = xyes
17651 then :
17652
17653 printf "%s\n" "#define HAVE_UINT64_T 1" >>confdefs.h
17654
17655
17656 fi
17657 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H
17658 #include <stdint.h>
17659 #elif defined(HAVE_INTTYPES_H)
17660 #include <inttypes.h>
17661 #endif
17662 #ifdef HAVE_SYS_TYPES_H
17663 #include <sys/types.h>
17664 #endif
17665 "
17666 if test "x$ac_cv_type_uint32_t" = xyes
17667 then :
17668
17669 printf "%s\n" "#define HAVE_UINT32_T 1" >>confdefs.h
17670
17671
17672 fi
17673 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H
17674 #include <stdint.h>
17675 #elif defined(HAVE_INTTYPES_H)
17676 #include <inttypes.h>
17677 #endif
17678 #ifdef HAVE_SYS_TYPES_H
17679 #include <sys/types.h>
17680 #endif
17681 "
17682 if test "x$ac_cv_type_uint16_t" = xyes
17683 then :
17684
17685 printf "%s\n" "#define HAVE_UINT16_T 1" >>confdefs.h
17686
17687
17688 fi
17689 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H
17690 #include <stdint.h>
17691 #elif defined(HAVE_INTTYPES_H)
17692 #include <inttypes.h>
17693 #endif
17694 #ifdef HAVE_SYS_TYPES_H
17695 #include <sys/types.h>
17696 #endif
17697 "
17698 if test "x$ac_cv_type_uint8_t" = xyes
17699 then :
17700
17701 printf "%s\n" "#define HAVE_UINT8_T 1" >>confdefs.h
17702
17703
17704 fi
17705 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H
17706 #include <stdint.h>
17707 #elif defined(HAVE_INTTYPES_H)
17708 #include <inttypes.h>
17709 #endif
17710 #ifdef HAVE_SYS_TYPES_H
17711 #include <sys/types.h>
17712 #endif
17713 "
17714 if test "x$ac_cv_type_uintptr_t" = xyes
17715 then :
17716
17717 printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h
17718
17719
17720 fi
17721
17722
17723 ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "#ifdef HAVE_SYS_TYPES_H
17724 #include <sys/types.h>
17725 #endif
17726 #ifdef HAVE_SYS_SELECT_H
17727 #include <sys/select.h>
17728 #endif
17729 "
17730 if test "x$ac_cv_type_fd_mask" = xyes
17731 then :
17732
17733 printf "%s\n" "#define HAVE_FD_MASK 1" >>confdefs.h
17734
17735
17736 fi
17737
17738
17739 # The cast to long int works around a bug in the HP C Compiler
17740 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17741 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
17742 # This bug is HP SR number 8606223364.
17743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
17744 printf %s "checking size of long long... " >&6; }
17745 if test ${ac_cv_sizeof_long_long+y}
17746 then :
17747 printf %s "(cached) " >&6
17748 else case e in #(
17749 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
17750 then :
17751
17752 else case e in #(
17753 e) if test "$ac_cv_type_long_long" = yes; then
17754 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17755 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17756 as_fn_error 77 "cannot compute sizeof (long long)
17757 See 'config.log' for more details" "$LINENO" 5; }
17758 else
17759 ac_cv_sizeof_long_long=0
17760 fi ;;
17761 esac
17762 fi
17763 ;;
17764 esac
17765 fi
17766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
17767 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
17768
17769
17770
17771 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
17772
17773
17774 # The cast to long int works around a bug in the HP C Compiler
17775 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17776 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
17777 # This bug is HP SR number 8606223364.
17778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
17779 printf %s "checking size of long... " >&6; }
17780 if test ${ac_cv_sizeof_long+y}
17781 then :
17782 printf %s "(cached) " >&6
17783 else case e in #(
17784 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
17785 then :
17786
17787 else case e in #(
17788 e) if test "$ac_cv_type_long" = yes; then
17789 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17790 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17791 as_fn_error 77 "cannot compute sizeof (long)
17792 See 'config.log' for more details" "$LINENO" 5; }
17793 else
17794 ac_cv_sizeof_long=0
17795 fi ;;
17796 esac
17797 fi
17798 ;;
17799 esac
17800 fi
17801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
17802 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
17803
17804
17805
17806 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
17807
17808
17809 # The cast to long int works around a bug in the HP C Compiler
17810 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17811 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
17812 # This bug is HP SR number 8606223364.
17813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
17814 printf %s "checking size of int... " >&6; }
17815 if test ${ac_cv_sizeof_int+y}
17816 then :
17817 printf %s "(cached) " >&6
17818 else case e in #(
17819 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
17820 then :
17821
17822 else case e in #(
17823 e) if test "$ac_cv_type_int" = yes; then
17824 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17825 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17826 as_fn_error 77 "cannot compute sizeof (int)
17827 See 'config.log' for more details" "$LINENO" 5; }
17828 else
17829 ac_cv_sizeof_int=0
17830 fi ;;
17831 esac
17832 fi
17833 ;;
17834 esac
17835 fi
17836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
17837 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
17838
17839
17840
17841 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
17842
17843
17844 # The cast to long int works around a bug in the HP C Compiler
17845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17846 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
17847 # This bug is HP SR number 8606223364.
17848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
17849 printf %s "checking size of short... " >&6; }
17850 if test ${ac_cv_sizeof_short+y}
17851 then :
17852 printf %s "(cached) " >&6
17853 else case e in #(
17854 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
17855 then :
17856
17857 else case e in #(
17858 e) if test "$ac_cv_type_short" = yes; then
17859 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17860 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17861 as_fn_error 77 "cannot compute sizeof (short)
17862 See 'config.log' for more details" "$LINENO" 5; }
17863 else
17864 ac_cv_sizeof_short=0
17865 fi ;;
17866 esac
17867 fi
17868 ;;
17869 esac
17870 fi
17871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
17872 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
17873
17874
17875
17876 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
17877
17878
17879 # The cast to long int works around a bug in the HP C Compiler
17880 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17881 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
17882 # This bug is HP SR number 8606223364.
17883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
17884 printf %s "checking size of size_t... " >&6; }
17885 if test ${ac_cv_sizeof_size_t+y}
17886 then :
17887 printf %s "(cached) " >&6
17888 else case e in #(
17889 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"
17890 then :
17891
17892 else case e in #(
17893 e) if test "$ac_cv_type_size_t" = yes; then
17894 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17895 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17896 as_fn_error 77 "cannot compute sizeof (size_t)
17897 See 'config.log' for more details" "$LINENO" 5; }
17898 else
17899 ac_cv_sizeof_size_t=0
17900 fi ;;
17901 esac
17902 fi
17903 ;;
17904 esac
17905 fi
17906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
17907 printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
17908
17909
17910
17911 printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
17912
17913
17914 # The cast to long int works around a bug in the HP C Compiler
17915 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17916 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
17917 # This bug is HP SR number 8606223364.
17918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17919 printf %s "checking size of void *... " >&6; }
17920 if test ${ac_cv_sizeof_void_p+y}
17921 then :
17922 printf %s "(cached) " >&6
17923 else case e in #(
17924 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
17925 then :
17926
17927 else case e in #(
17928 e) if test "$ac_cv_type_void_p" = yes; then
17929 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17930 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17931 as_fn_error 77 "cannot compute sizeof (void *)
17932 See 'config.log' for more details" "$LINENO" 5; }
17933 else
17934 ac_cv_sizeof_void_p=0
17935 fi ;;
17936 esac
17937 fi
17938 ;;
17939 esac
17940 fi
17941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17942 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
17943
17944
17945
17946 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
17947
17948
17949 # The cast to long int works around a bug in the HP C Compiler
17950 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17951 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
17952 # This bug is HP SR number 8606223364.
17953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
17954 printf %s "checking size of off_t... " >&6; }
17955 if test ${ac_cv_sizeof_off_t+y}
17956 then :
17957 printf %s "(cached) " >&6
17958 else case e in #(
17959 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"
17960 then :
17961
17962 else case e in #(
17963 e) if test "$ac_cv_type_off_t" = yes; then
17964 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
17965 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
17966 as_fn_error 77 "cannot compute sizeof (off_t)
17967 See 'config.log' for more details" "$LINENO" 5; }
17968 else
17969 ac_cv_sizeof_off_t=0
17970 fi ;;
17971 esac
17972 fi
17973 ;;
17974 esac
17975 fi
17976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
17977 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
17978
17979
17980
17981 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
17982
17983
17984 # The cast to long int works around a bug in the HP C Compiler
17985 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17986 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
17987 # This bug is HP SR number 8606223364.
17988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
17989 printf %s "checking size of time_t... " >&6; }
17990 if test ${ac_cv_sizeof_time_t+y}
17991 then :
17992 printf %s "(cached) " >&6
17993 else case e in #(
17994 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"
17995 then :
17996
17997 else case e in #(
17998 e) if test "$ac_cv_type_time_t" = yes; then
17999 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18000 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18001 as_fn_error 77 "cannot compute sizeof (time_t)
18002 See 'config.log' for more details" "$LINENO" 5; }
18003 else
18004 ac_cv_sizeof_time_t=0
18005 fi ;;
18006 esac
18007 fi
18008 ;;
18009 esac
18010 fi
18011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
18012 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
18013
18014
18015
18016 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
18017
18018
18019
18020 ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#define _GNU_SOURCE 1
18021 #include <sys/types.h>
18022 #ifdef HAVE_NETINET_IN_H
18023 #include <netinet/in.h>
18024 #endif
18025 #ifdef HAVE_NETINET_IN6_H
18026 #include <netinet/in6.h>
18027 #endif
18028 #ifdef HAVE_SYS_UN_H
18029 #include <sys/un.h>
18030 #endif
18031 #ifdef HAVE_SYS_SOCKET_H
18032 #include <sys/socket.h>
18033 #endif
18034 #ifdef HAVE_NETDB_H
18035 #include <netdb.h>
18036 #endif
18037 #ifdef _WIN32
18038 #define WIN32_WINNT 0x400
18039 #define _WIN32_WINNT 0x400
18040 #define WIN32_LEAN_AND_MEAN
18041 #if defined(_MSC_VER) && (_MSC_VER < 1300)
18042 #include <winsock.h>
18043 #else
18044 #include <winsock2.h>
18045 #include <ws2tcpip.h>
18046 #endif
18047 #endif
18048
18049 "
18050 if test "x$ac_cv_type_struct_in6_addr" = xyes
18051 then :
18052
18053 printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR 1" >>confdefs.h
18054
18055
18056 fi
18057 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#define _GNU_SOURCE 1
18058 #include <sys/types.h>
18059 #ifdef HAVE_NETINET_IN_H
18060 #include <netinet/in.h>
18061 #endif
18062 #ifdef HAVE_NETINET_IN6_H
18063 #include <netinet/in6.h>
18064 #endif
18065 #ifdef HAVE_SYS_UN_H
18066 #include <sys/un.h>
18067 #endif
18068 #ifdef HAVE_SYS_SOCKET_H
18069 #include <sys/socket.h>
18070 #endif
18071 #ifdef HAVE_NETDB_H
18072 #include <netdb.h>
18073 #endif
18074 #ifdef _WIN32
18075 #define WIN32_WINNT 0x400
18076 #define _WIN32_WINNT 0x400
18077 #define WIN32_LEAN_AND_MEAN
18078 #if defined(_MSC_VER) && (_MSC_VER < 1300)
18079 #include <winsock.h>
18080 #else
18081 #include <winsock2.h>
18082 #include <ws2tcpip.h>
18083 #endif
18084 #endif
18085
18086 "
18087 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes
18088 then :
18089
18090 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6 1" >>confdefs.h
18091
18092
18093 fi
18094 ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#define _GNU_SOURCE 1
18095 #include <sys/types.h>
18096 #ifdef HAVE_NETINET_IN_H
18097 #include <netinet/in.h>
18098 #endif
18099 #ifdef HAVE_NETINET_IN6_H
18100 #include <netinet/in6.h>
18101 #endif
18102 #ifdef HAVE_SYS_UN_H
18103 #include <sys/un.h>
18104 #endif
18105 #ifdef HAVE_SYS_SOCKET_H
18106 #include <sys/socket.h>
18107 #endif
18108 #ifdef HAVE_NETDB_H
18109 #include <netdb.h>
18110 #endif
18111 #ifdef _WIN32
18112 #define WIN32_WINNT 0x400
18113 #define _WIN32_WINNT 0x400
18114 #define WIN32_LEAN_AND_MEAN
18115 #if defined(_MSC_VER) && (_MSC_VER < 1300)
18116 #include <winsock.h>
18117 #else
18118 #include <winsock2.h>
18119 #include <ws2tcpip.h>
18120 #endif
18121 #endif
18122
18123 "
18124 if test "x$ac_cv_type_struct_sockaddr_un" = xyes
18125 then :
18126
18127 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_UN 1" >>confdefs.h
18128
18129
18130 fi
18131 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#define _GNU_SOURCE 1
18132 #include <sys/types.h>
18133 #ifdef HAVE_NETINET_IN_H
18134 #include <netinet/in.h>
18135 #endif
18136 #ifdef HAVE_NETINET_IN6_H
18137 #include <netinet/in6.h>
18138 #endif
18139 #ifdef HAVE_SYS_UN_H
18140 #include <sys/un.h>
18141 #endif
18142 #ifdef HAVE_SYS_SOCKET_H
18143 #include <sys/socket.h>
18144 #endif
18145 #ifdef HAVE_NETDB_H
18146 #include <netdb.h>
18147 #endif
18148 #ifdef _WIN32
18149 #define WIN32_WINNT 0x400
18150 #define _WIN32_WINNT 0x400
18151 #define WIN32_LEAN_AND_MEAN
18152 #if defined(_MSC_VER) && (_MSC_VER < 1300)
18153 #include <winsock.h>
18154 #else
18155 #include <winsock2.h>
18156 #include <ws2tcpip.h>
18157 #endif
18158 #endif
18159
18160 "
18161 if test "x$ac_cv_type_sa_family_t" = xyes
18162 then :
18163
18164 printf "%s\n" "#define HAVE_SA_FAMILY_T 1" >>confdefs.h
18165
18166
18167 fi
18168 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#define _GNU_SOURCE 1
18169 #include <sys/types.h>
18170 #ifdef HAVE_NETINET_IN_H
18171 #include <netinet/in.h>
18172 #endif
18173 #ifdef HAVE_NETINET_IN6_H
18174 #include <netinet/in6.h>
18175 #endif
18176 #ifdef HAVE_SYS_UN_H
18177 #include <sys/un.h>
18178 #endif
18179 #ifdef HAVE_SYS_SOCKET_H
18180 #include <sys/socket.h>
18181 #endif
18182 #ifdef HAVE_NETDB_H
18183 #include <netdb.h>
18184 #endif
18185 #ifdef _WIN32
18186 #define WIN32_WINNT 0x400
18187 #define _WIN32_WINNT 0x400
18188 #define WIN32_LEAN_AND_MEAN
18189 #if defined(_MSC_VER) && (_MSC_VER < 1300)
18190 #include <winsock.h>
18191 #else
18192 #include <winsock2.h>
18193 #include <ws2tcpip.h>
18194 #endif
18195 #endif
18196
18197 "
18198 if test "x$ac_cv_type_struct_addrinfo" = xyes
18199 then :
18200
18201 printf "%s\n" "#define HAVE_STRUCT_ADDRINFO 1" >>confdefs.h
18202
18203
18204 fi
18205 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#define _GNU_SOURCE 1
18206 #include <sys/types.h>
18207 #ifdef HAVE_NETINET_IN_H
18208 #include <netinet/in.h>
18209 #endif
18210 #ifdef HAVE_NETINET_IN6_H
18211 #include <netinet/in6.h>
18212 #endif
18213 #ifdef HAVE_SYS_UN_H
18214 #include <sys/un.h>
18215 #endif
18216 #ifdef HAVE_SYS_SOCKET_H
18217 #include <sys/socket.h>
18218 #endif
18219 #ifdef HAVE_NETDB_H
18220 #include <netdb.h>
18221 #endif
18222 #ifdef _WIN32
18223 #define WIN32_WINNT 0x400
18224 #define _WIN32_WINNT 0x400
18225 #define WIN32_LEAN_AND_MEAN
18226 #if defined(_MSC_VER) && (_MSC_VER < 1300)
18227 #include <winsock.h>
18228 #else
18229 #include <winsock2.h>
18230 #include <ws2tcpip.h>
18231 #endif
18232 #endif
18233
18234 "
18235 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
18236 then :
18237
18238 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
18239
18240
18241 fi
18242
18243 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr32" "ac_cv_member_struct_in6_addr_s6_addr32" "#include <sys/types.h>
18244 #ifdef HAVE_NETINET_IN_H
18245 #include <netinet/in.h>
18246 #endif
18247 #ifdef HAVE_NETINET_IN6_H
18248 #include <netinet/in6.h>
18249 #endif
18250 #ifdef HAVE_SYS_SOCKET_H
18251 #include <sys/socket.h>
18252 #endif
18253 #ifdef _WIN32
18254 #define WIN32_WINNT 0x400
18255 #define _WIN32_WINNT 0x400
18256 #define WIN32_LEAN_AND_MEAN
18257 #if defined(_MSC_VER) && (_MSC_VER < 1300)
18258 #include <winsock.h>
18259 #else
18260 #include <winsock2.h>
18261 #include <ws2tcpip.h>
18262 #endif
18263 #endif
18264
18265 "
18266 if test "x$ac_cv_member_struct_in6_addr_s6_addr32" = xyes
18267 then :
18268
18269 printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR_S6_ADDR32 1" >>confdefs.h
18270
18271
18272 fi
18273 ac_fn_c_check_member "$LINENO" "struct in6_addr" "s6_addr16" "ac_cv_member_struct_in6_addr_s6_addr16" "#include <sys/types.h>
18274 #ifdef HAVE_NETINET_IN_H
18275 #include <netinet/in.h>
18276 #endif
18277 #ifdef HAVE_NETINET_IN6_H
18278 #include <netinet/in6.h>
18279 #endif
18280 #ifdef HAVE_SYS_SOCKET_H
18281 #include <sys/socket.h>
18282 #endif
18283 #ifdef _WIN32
18284 #define WIN32_WINNT 0x400
18285 #define _WIN32_WINNT 0x400
18286 #define WIN32_LEAN_AND_MEAN
18287 #if defined(_MSC_VER) && (_MSC_VER < 1300)
18288 #include <winsock.h>
18289 #else
18290 #include <winsock2.h>
18291 #include <ws2tcpip.h>
18292 #endif
18293 #endif
18294
18295 "
18296 if test "x$ac_cv_member_struct_in6_addr_s6_addr16" = xyes
18297 then :
18298
18299 printf "%s\n" "#define HAVE_STRUCT_IN6_ADDR_S6_ADDR16 1" >>confdefs.h
18300
18301
18302 fi
18303 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
18304 #ifdef HAVE_NETINET_IN_H
18305 #include <netinet/in.h>
18306 #endif
18307 #ifdef HAVE_NETINET_IN6_H
18308 #include <netinet/in6.h>
18309 #endif
18310 #ifdef HAVE_SYS_SOCKET_H
18311 #include <sys/socket.h>
18312 #endif
18313 #ifdef _WIN32
18314 #define WIN32_WINNT 0x400
18315 #define _WIN32_WINNT 0x400
18316 #define WIN32_LEAN_AND_MEAN
18317 #if defined(_MSC_VER) && (_MSC_VER < 1300)
18318 #include <winsock.h>
18319 #else
18320 #include <winsock2.h>
18321 #include <ws2tcpip.h>
18322 #endif
18323 #endif
18324
18325 "
18326 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
18327 then :
18328
18329 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h
18330
18331
18332 fi
18333 ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" "#include <sys/types.h>
18334 #ifdef HAVE_NETINET_IN_H
18335 #include <netinet/in.h>
18336 #endif
18337 #ifdef HAVE_NETINET_IN6_H
18338 #include <netinet/in6.h>
18339 #endif
18340 #ifdef HAVE_SYS_SOCKET_H
18341 #include <sys/socket.h>
18342 #endif
18343 #ifdef _WIN32
18344 #define WIN32_WINNT 0x400
18345 #define _WIN32_WINNT 0x400
18346 #define WIN32_LEAN_AND_MEAN
18347 #if defined(_MSC_VER) && (_MSC_VER < 1300)
18348 #include <winsock.h>
18349 #else
18350 #include <winsock2.h>
18351 #include <ws2tcpip.h>
18352 #endif
18353 #endif
18354
18355 "
18356 if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes
18357 then :
18358
18359 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1" >>confdefs.h
18360
18361
18362 fi
18363 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_family" "ac_cv_member_struct_sockaddr_storage_ss_family" "#include <sys/types.h>
18364 #ifdef HAVE_NETINET_IN_H
18365 #include <netinet/in.h>
18366 #endif
18367 #ifdef HAVE_NETINET_IN6_H
18368 #include <netinet/in6.h>
18369 #endif
18370 #ifdef HAVE_SYS_SOCKET_H
18371 #include <sys/socket.h>
18372 #endif
18373 #ifdef _WIN32
18374 #define WIN32_WINNT 0x400
18375 #define _WIN32_WINNT 0x400
18376 #define WIN32_LEAN_AND_MEAN
18377 #if defined(_MSC_VER) && (_MSC_VER < 1300)
18378 #include <winsock.h>
18379 #else
18380 #include <winsock2.h>
18381 #include <ws2tcpip.h>
18382 #endif
18383 #endif
18384
18385 "
18386 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = xyes
18387 then :
18388
18389 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1" >>confdefs.h
18390
18391
18392 fi
18393 ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "__ss_family" "ac_cv_member_struct_sockaddr_storage___ss_family" "#include <sys/types.h>
18394 #ifdef HAVE_NETINET_IN_H
18395 #include <netinet/in.h>
18396 #endif
18397 #ifdef HAVE_NETINET_IN6_H
18398 #include <netinet/in6.h>
18399 #endif
18400 #ifdef HAVE_SYS_SOCKET_H
18401 #include <sys/socket.h>
18402 #endif
18403 #ifdef _WIN32
18404 #define WIN32_WINNT 0x400
18405 #define _WIN32_WINNT 0x400
18406 #define WIN32_LEAN_AND_MEAN
18407 #if defined(_MSC_VER) && (_MSC_VER < 1300)
18408 #include <winsock.h>
18409 #else
18410 #include <winsock2.h>
18411 #include <ws2tcpip.h>
18412 #endif
18413 #endif
18414
18415 "
18416 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = xyes
18417 then :
18418
18419 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1" >>confdefs.h
18420
18421
18422 fi
18423
18424
18425 ac_fn_c_check_type "$LINENO" "struct linger" "ac_cv_type_struct_linger" "
18426 #ifdef HAVE_SYS_SOCKET_H
18427 #include <sys/socket.h>
18428 #endif
18429 #ifdef _WIN32
18430 #include <winsock2.h>
18431 #endif
18432
18433 "
18434 if test "x$ac_cv_type_struct_linger" = xyes
18435 then :
18436
18437 printf "%s\n" "#define HAVE_STRUCT_LINGER 1" >>confdefs.h
18438
18439
18440 fi
18441
18442
18443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
18444 printf %s "checking for socklen_t... " >&6; }
18445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446 /* end confdefs.h. */
18447
18448 #include <sys/types.h>
18449 #ifdef _WIN32
18450 #include <ws2tcpip.h>
18451 #else
18452 #include <sys/socket.h>
18453 #endif
18454
18455 int
18456 main (void)
18457 {
18458 socklen_t x;
18459
18460 ;
18461 return 0;
18462 }
18463 _ACEOF
18464 if ac_fn_c_try_compile "$LINENO"
18465 then :
18466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18467 printf "%s\n" "yes" >&6; }
18468 else case e in #(
18469 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18470 printf "%s\n" "no" >&6; }
18471
18472 printf "%s\n" "#define socklen_t unsigned int" >>confdefs.h
18473
18474 ;;
18475 esac
18476 fi
18477 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18478
18479 # __func__/__FUNCTION__ is not a macros in general
18480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
18481 printf %s "checking whether our compiler supports __func__... " >&6; }
18482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18483 /* end confdefs.h. */
18484
18485 int
18486 main (void)
18487 {
18488 const char *cp = __func__;
18489
18490 ;
18491 return 0;
18492 }
18493 _ACEOF
18494 if ac_fn_c_try_compile "$LINENO"
18495 then :
18496
18497 printf "%s\n" "#define HAVE___func__ 1" >>confdefs.h
18498
18499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18500 printf "%s\n" "yes" >&6; }
18501
18502 else case e in #(
18503 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18504 printf "%s\n" "no" >&6; }
18505 ;;
18506 esac
18507 fi
18508 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
18510 printf %s "checking whether our compiler supports __FUNCTION__... " >&6; }
18511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18512 /* end confdefs.h. */
18513
18514 int
18515 main (void)
18516 {
18517 const char *cp = __FUNCTION__;
18518
18519 ;
18520 return 0;
18521 }
18522 _ACEOF
18523 if ac_fn_c_try_compile "$LINENO"
18524 then :
18525
18526 printf "%s\n" "#define HAVE___FUNCTION__ 1" >>confdefs.h
18527
18528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18529 printf "%s\n" "yes" >&6; }
18530
18531 else case e in #(
18532 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18533 printf "%s\n" "no" >&6; }
18534 ;;
18535 esac
18536 fi
18537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18538
18539 # check if we can compile with pthreads
18540 have_pthreads=no
18541 if test x$bwin32 != xtrue && test "$enable_thread_support" != "no"; then
18542
18543
18544
18545 ac_ext=c
18546 ac_cpp='$CPP $CPPFLAGS'
18547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18550
18551 acx_pthread_ok=no
18552
18553 # We used to check for pthread.h first, but this fails if pthread.h
18554 # requires special compiler flags (e.g. on True64 or Sequent).
18555 # It gets checked for in the link test anyway.
18556
18557 # First of all, check if the user has set any of the PTHREAD_LIBS,
18558 # etcetera environment variables, and if threads linking works using
18559 # them:
18560 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18561 save_CFLAGS="$CFLAGS"
18562 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18563 save_LIBS="$LIBS"
18564 LIBS="$PTHREAD_LIBS $LIBS"
18565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18566 printf %s "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18568 /* end confdefs.h. */
18569
18570 /* Override any GCC internal prototype to avoid an error.
18571 Use char because int might match the return type of a GCC
18572 builtin and then its argument prototype would still apply.
18573 The 'extern "C"' is for builds by C++ compilers;
18574 although this is not generally supported in C code supporting it here
18575 has little cost and some practical benefit (sr 110532). */
18576 #ifdef __cplusplus
18577 extern "C"
18578 #endif
18579 char pthread_join (void);
18580 int
18581 main (void)
18582 {
18583 return pthread_join ();
18584 ;
18585 return 0;
18586 }
18587 _ACEOF
18588 if ac_fn_c_try_link "$LINENO"
18589 then :
18590 acx_pthread_ok=yes
18591 fi
18592 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18593 conftest$ac_exeext conftest.$ac_ext
18594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
18595 printf "%s\n" "$acx_pthread_ok" >&6; }
18596 if test x"$acx_pthread_ok" = xno; then
18597 PTHREAD_LIBS=""
18598 PTHREAD_CFLAGS=""
18599 fi
18600 LIBS="$save_LIBS"
18601 CFLAGS="$save_CFLAGS"
18602 fi
18603
18604 # We must check for the threads library under a number of different
18605 # names; the ordering is very important because some systems
18606 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18607 # libraries is broken (non-POSIX).
18608
18609 # Create a list of thread flags to try. Items starting with a "-" are
18610 # C compiler flags, and other items are library names, except for "none"
18611 # which indicates that we try without any flags at all, and "pthread-config"
18612 # which is a program returning the flags for the Pth emulation library.
18613
18614 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18615
18616 # The ordering *is* (sometimes) important. Some notes on the
18617 # individual items follow:
18618
18619 # pthreads: AIX (must check this before -lpthread)
18620 # none: in case threads are in libc; should be tried before -Kthread and
18621 # other compiler flags to prevent continual compiler warnings
18622 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18623 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18624 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18625 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18626 # -pthreads: Solaris/gcc
18627 # -mthreads: Mingw32/gcc, Lynx/gcc
18628 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18629 # doesn't hurt to check since this sometimes defines pthreads too;
18630 # also defines -D_REENTRANT)
18631 # ... -mt is also the pthreads flag for HP/aCC
18632 # pthread: Linux, etcetera
18633 # --thread-safe: KAI C++
18634 # pthread-config: use pthread-config program (for GNU Pth library)
18635
18636 case "${host_cpu}-${host_os}" in
18637 *solaris*)
18638
18639 # On Solaris (at least, for some versions), libc contains stubbed
18640 # (non-functional) versions of the pthreads routines, so link-based
18641 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
18642 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
18643 # a function called by this macro, so we could check for that, but
18644 # who knows whether they'll stub that too in a future libc.) So,
18645 # we'll just look for -pthreads and -lpthread first:
18646
18647 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
18648 ;;
18649 esac
18650
18651 if test x"$acx_pthread_ok" = xno; then
18652 for flag in $acx_pthread_flags; do
18653
18654 case $flag in
18655 none)
18656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18657 printf %s "checking whether pthreads work without any flags... " >&6; }
18658 ;;
18659
18660 -*)
18661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18662 printf %s "checking whether pthreads work with $flag... " >&6; }
18663 PTHREAD_CFLAGS="$flag"
18664 ;;
18665
18666 pthread-config)
18667 # Extract the first word of "pthread-config", so it can be a program name with args.
18668 set dummy pthread-config; ac_word=$2
18669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18670 printf %s "checking for $ac_word... " >&6; }
18671 if test ${ac_cv_prog_acx_pthread_config+y}
18672 then :
18673 printf %s "(cached) " >&6
18674 else case e in #(
18675 e) if test -n "$acx_pthread_config"; then
18676 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18677 else
18678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18679 for as_dir in $PATH
18680 do
18681 IFS=$as_save_IFS
18682 case $as_dir in #(((
18683 '') as_dir=./ ;;
18684 */) ;;
18685 *) as_dir=$as_dir/ ;;
18686 esac
18687 for ac_exec_ext in '' $ac_executable_extensions; do
18688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18689 ac_cv_prog_acx_pthread_config="yes"
18690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18691 break 2
18692 fi
18693 done
18694 done
18695 IFS=$as_save_IFS
18696
18697 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18698 fi ;;
18699 esac
18700 fi
18701 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18702 if test -n "$acx_pthread_config"; then
18703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
18704 printf "%s\n" "$acx_pthread_config" >&6; }
18705 else
18706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18707 printf "%s\n" "no" >&6; }
18708 fi
18709
18710
18711 if test x"$acx_pthread_config" = xno; then continue; fi
18712 PTHREAD_CFLAGS="`pthread-config --cflags`"
18713 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18714 ;;
18715
18716 *)
18717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
18718 printf %s "checking for the pthreads library -l$flag... " >&6; }
18719 PTHREAD_LIBS="-l$flag"
18720 ;;
18721 esac
18722
18723 save_LIBS="$LIBS"
18724 save_CFLAGS="$CFLAGS"
18725 LIBS="$PTHREAD_LIBS $LIBS"
18726 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18727
18728 # Check for various functions. We must include pthread.h,
18729 # since some functions may be macros. (On the Sequent, we
18730 # need a special flag -Kthread to make this header compile.)
18731 # We check for pthread_join because it is in -lpthread on IRIX
18732 # while pthread_create is in libc. We check for pthread_attr_init
18733 # due to DEC craziness with -lpthreads. We check for
18734 # pthread_cleanup_push because it is one of the few pthread
18735 # functions on Solaris that doesn't have a non-functional libc stub.
18736 # We try pthread_create on general principles.
18737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18738 /* end confdefs.h. */
18739 #include <pthread.h>
18740 int
18741 main (void)
18742 {
18743 pthread_t th; pthread_join(th, 0);
18744 pthread_attr_init(0); pthread_cleanup_push(0, 0);
18745 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18746 ;
18747 return 0;
18748 }
18749 _ACEOF
18750 if ac_fn_c_try_link "$LINENO"
18751 then :
18752 acx_pthread_ok=yes
18753 fi
18754 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18755 conftest$ac_exeext conftest.$ac_ext
18756
18757 LIBS="$save_LIBS"
18758 CFLAGS="$save_CFLAGS"
18759
18760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
18761 printf "%s\n" "$acx_pthread_ok" >&6; }
18762 if test "x$acx_pthread_ok" = xyes; then
18763 break;
18764 fi
18765
18766 PTHREAD_LIBS=""
18767 PTHREAD_CFLAGS=""
18768 done
18769 fi
18770
18771 # Various other checks:
18772 if test "x$acx_pthread_ok" = xyes; then
18773 save_LIBS="$LIBS"
18774 LIBS="$PTHREAD_LIBS $LIBS"
18775 save_CFLAGS="$CFLAGS"
18776 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18777
18778 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
18779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
18780 printf %s "checking for joinable pthread attribute... " >&6; }
18781 attr_name=unknown
18782 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
18783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18784 /* end confdefs.h. */
18785 #include <pthread.h>
18786 int
18787 main (void)
18788 {
18789 int attr=$attr; return attr;
18790 ;
18791 return 0;
18792 }
18793 _ACEOF
18794 if ac_fn_c_try_link "$LINENO"
18795 then :
18796 attr_name=$attr; break
18797 fi
18798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18799 conftest$ac_exeext conftest.$ac_ext
18800 done
18801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
18802 printf "%s\n" "$attr_name" >&6; }
18803 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
18804
18805 printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $attr_name" >>confdefs.h
18806
18807 fi
18808
18809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
18810 printf %s "checking if more special flags are required for pthreads... " >&6; }
18811 flag=no
18812 case "${host_cpu}-${host_os}" in
18813 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
18814 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
18815 esac
18816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
18817 printf "%s\n" "${flag}" >&6; }
18818 if test "x$flag" != xno; then
18819 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
18820 fi
18821
18822 LIBS="$save_LIBS"
18823 CFLAGS="$save_CFLAGS"
18824
18825 # More AIX lossage: must compile with xlc_r or cc_r
18826 if test x"$GCC" != xyes; then
18827 for ac_prog in xlc_r cc_r
18828 do
18829 # Extract the first word of "$ac_prog", so it can be a program name with args.
18830 set dummy $ac_prog; ac_word=$2
18831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18832 printf %s "checking for $ac_word... " >&6; }
18833 if test ${ac_cv_prog_PTHREAD_CC+y}
18834 then :
18835 printf %s "(cached) " >&6
18836 else case e in #(
18837 e) if test -n "$PTHREAD_CC"; then
18838 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
18839 else
18840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18841 for as_dir in $PATH
18842 do
18843 IFS=$as_save_IFS
18844 case $as_dir in #(((
18845 '') as_dir=./ ;;
18846 */) ;;
18847 *) as_dir=$as_dir/ ;;
18848 esac
18849 for ac_exec_ext in '' $ac_executable_extensions; do
18850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18851 ac_cv_prog_PTHREAD_CC="$ac_prog"
18852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18853 break 2
18854 fi
18855 done
18856 done
18857 IFS=$as_save_IFS
18858
18859 fi ;;
18860 esac
18861 fi
18862 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
18863 if test -n "$PTHREAD_CC"; then
18864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
18865 printf "%s\n" "$PTHREAD_CC" >&6; }
18866 else
18867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18868 printf "%s\n" "no" >&6; }
18869 fi
18870
18871
18872 test -n "$PTHREAD_CC" && break
18873 done
18874 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
18875
18876 else
18877 PTHREAD_CC=$CC
18878 fi
18879 else
18880 PTHREAD_CC="$CC"
18881 fi
18882
18883
18884
18885
18886
18887 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
18888 if test x"$acx_pthread_ok" = xyes; then
18889
18890
18891 printf "%s\n" "#define HAVE_PTHREADS 1" >>confdefs.h
18892
18893 have_pthreads=yes
18894 :
18895 else
18896 acx_pthread_ok=no
18897
18898 fi
18899 ac_ext=c
18900 ac_cpp='$CPP $CPPFLAGS'
18901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18904
18905
18906 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18907 # The cast to long int works around a bug in the HP C Compiler
18908 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18909 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
18910 # This bug is HP SR number 8606223364.
18911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
18912 printf %s "checking size of pthread_t... " >&6; }
18913 if test ${ac_cv_sizeof_pthread_t+y}
18914 then :
18915 printf %s "(cached) " >&6
18916 else case e in #(
18917 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "$ac_includes_default
18918 #include <pthread.h>
18919
18920 "
18921 then :
18922
18923 else case e in #(
18924 e) if test "$ac_cv_type_pthread_t" = yes; then
18925 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
18926 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
18927 as_fn_error 77 "cannot compute sizeof (pthread_t)
18928 See 'config.log' for more details" "$LINENO" 5; }
18929 else
18930 ac_cv_sizeof_pthread_t=0
18931 fi ;;
18932 esac
18933 fi
18934 ;;
18935 esac
18936 fi
18937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
18938 printf "%s\n" "$ac_cv_sizeof_pthread_t" >&6; }
18939
18940
18941
18942 printf "%s\n" "#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t" >>confdefs.h
18943
18944
18945 fi
18946 if test "$enable_thread_support" != "no"; then
18947 THREADS_TRUE=
18948 THREADS_FALSE='#'
18949 else
18950 THREADS_TRUE='#'
18951 THREADS_FALSE=
18952 fi
18953
18954 if test "$have_pthreads" != "no" && test "$enable_thread_support" != "no"; then
18955 PTHREADS_TRUE=
18956 PTHREADS_FALSE='#'
18957 else
18958 PTHREADS_TRUE='#'
18959 PTHREADS_FALSE=
18960 fi
18961
18962
18963 # check if we should compile locking into the library
18964 if test x$enable_thread_support = xno; then
18965
18966 printf "%s\n" "#define DISABLE_THREAD_SUPPORT 1" >>confdefs.h
18967
18968 fi
18969
18970 # check if we should hard-code the mm functions.
18971 if test x$enable_malloc_replacement = xno; then
18972
18973 printf "%s\n" "#define DISABLE_MM_REPLACEMENT 1" >>confdefs.h
18974
18975 fi
18976
18977 # check if we should hard-code debugging out
18978 if test x$enable_debug_mode = xno; then
18979
18980 printf "%s\n" "#define DISABLE_DEBUG_MODE 1" >>confdefs.h
18981
18982 fi
18983
18984 # check if we should enable verbose debugging
18985 if test x$enable_verbose_debug = xyes; then
18986 CFLAGS="$CFLAGS -DUSE_DEBUG"
18987 fi
18988
18989 # check if we have and should use openssl
18990 if test "$enable_openssl" != "no" && test "$have_openssl" = "yes"; then
18991 OPENSSL_TRUE=
18992 OPENSSL_FALSE='#'
18993 else
18994 OPENSSL_TRUE='#'
18995 OPENSSL_FALSE=
18996 fi
18997
18998
18999 # Add some more warnings which we use in development but not in the
19000 # released versions. (Some relevant gcc versions can't handle these.)
19001 if test x$enable_gcc_warnings != xno && test "$GCC" = "yes"; then
19002
19003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19004 /* end confdefs.h. */
19005
19006 int
19007 main (void)
19008 {
19009
19010 #if !defined(__GNUC__) || (__GNUC__ < 4)
19011 #error
19012 #endif
19013 ;
19014 return 0;
19015 }
19016 _ACEOF
19017 if ac_fn_c_try_compile "$LINENO"
19018 then :
19019 have_gcc4=yes
19020 else case e in #(
19021 e) have_gcc4=no ;;
19022 esac
19023 fi
19024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19025
19026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19027 /* end confdefs.h. */
19028
19029 int
19030 main (void)
19031 {
19032
19033 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 2)
19034 #error
19035 #endif
19036 ;
19037 return 0;
19038 }
19039 _ACEOF
19040 if ac_fn_c_try_compile "$LINENO"
19041 then :
19042 have_gcc42=yes
19043 else case e in #(
19044 e) have_gcc42=no ;;
19045 esac
19046 fi
19047 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19048
19049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19050 /* end confdefs.h. */
19051
19052 int
19053 main (void)
19054 {
19055
19056 #if !defined(__GNUC__) || (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
19057 #error
19058 #endif
19059 ;
19060 return 0;
19061 }
19062 _ACEOF
19063 if ac_fn_c_try_compile "$LINENO"
19064 then :
19065 have_gcc45=yes
19066 else case e in #(
19067 e) have_gcc45=no ;;
19068 esac
19069 fi
19070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19071
19072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19073 /* end confdefs.h. */
19074
19075 int
19076 main (void)
19077 {
19078
19079 #if !defined(__clang__)
19080 #error
19081 #endif
19082 ;
19083 return 0;
19084 }
19085 _ACEOF
19086 if ac_fn_c_try_compile "$LINENO"
19087 then :
19088 have_clang=yes
19089 else case e in #(
19090 e) have_clang=no ;;
19091 esac
19092 fi
19093 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19094
19095 # -W is the same as -Wextra
19096 CFLAGS="$CFLAGS -W -Wfloat-equal -Wundef -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wredundant-decls -Wmissing-declarations -Wnested-externs -Wbad-function-cast"
19097 if test x$enable_gcc_warnings = xyes; then
19098 CFLAGS="$CFLAGS -Werror"
19099 fi
19100
19101 CFLAGS="$CFLAGS -Wno-unused-parameter -Wstrict-aliasing"
19102
19103 if test x$have_gcc4 = xyes ; then
19104 # These warnings break gcc 3.3.5 and work on gcc 4.0.2
19105 CFLAGS="$CFLAGS -Winit-self -Wmissing-field-initializers -Wdeclaration-after-statement"
19106 #CFLAGS="$CFLAGS -Wold-style-definition"
19107 fi
19108
19109 if test x$have_gcc42 = xyes ; then
19110 # These warnings break gcc 4.0.2 and work on gcc 4.2
19111 CFLAGS="$CFLAGS -Waddress"
19112 fi
19113
19114 if test x$have_gcc42 = xyes && test x$have_clang = xno; then
19115 # These warnings break gcc 4.0.2 and clang, but work on gcc 4.2
19116 CFLAGS="$CFLAGS -Wnormalized=id -Woverride-init"
19117 fi
19118
19119 if test x$have_gcc45 = xyes ; then
19120 # These warnings work on gcc 4.5
19121 CFLAGS="$CFLAGS -Wlogical-op"
19122 fi
19123
19124 if test x$have_clang = xyes; then
19125 # Disable the unused-function warnings, because these trigger
19126 # for minheap-internal.h related code.
19127 CFLAGS="$CFLAGS -Wno-unused-function"
19128
19129 # clang on macosx emits warnings for each directory specified which
19130 # isn't "used" generating a lot of build noise (typically 3 warnings
19131 # per file
19132 case "$host_os" in
19133 darwin*)
19134 CFLAGS="$CFLAGS -Qunused-arguments"
19135 ;;
19136 esac
19137 fi
19138
19139 ##This will break the world on some 64-bit architectures
19140 # CFLAGS="$CFLAGS -Winline"
19141
19142 fi
19143
19144 LIBEVENT_GC_SECTIONS=
19145 if test "$GCC" = yes && test "$enable_function_sections" = yes ; then
19146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if linker supports omitting unused code and data" >&5
19147 printf %s "checking if linker supports omitting unused code and data... " >&6; }
19148 if test ${libevent_cv_gc_sections_runs+y}
19149 then :
19150 printf %s "(cached) " >&6
19151 else case e in #(
19152 e)
19153 origCFLAGS="$CFLAGS"
19154 CFLAGS="$CFLAGS -Wl,--gc-sections"
19155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19156 /* end confdefs.h. */
19157
19158 #include <stdlib.h>
19159 #include <stdio.h>
19160
19161 int
19162 main (void)
19163 {
19164
19165 FILE * fpC;
19166 char buf[32];
19167 size_t cch;
19168 int read_success_once;
19169
19170 fpC = fopen("conftest.c", "r");
19171 if (NULL == fpC)
19172 exit(1);
19173 do {
19174 cch = fread(buf, sizeof(buf), 1, fpC);
19175 read_success_once |= (0 != cch);
19176 } while (0 != cch);
19177 if (!read_success_once)
19178 exit(2);
19179 if (!feof(fpC))
19180 exit(3);
19181 if (0 != fclose(fpC))
19182 exit(4);
19183
19184 exit(EXIT_SUCCESS);
19185
19186
19187 ;
19188 return 0;
19189 }
19190 _ACEOF
19191 if ac_fn_c_try_link "$LINENO"
19192 then :
19193
19194 if test "X$cross_compiling" = "Xyes" || grep gc-sections conftest.err ; then
19195 libevent_cv_gc_sections_runs=no
19196 else
19197 libevent_cv_gc_sections_runs=no
19198 ./conftest >/dev/null 2>&1 && libevent_cv_gc_sections_runs=yes
19199 fi
19200
19201 else case e in #(
19202 e) libevent_cv_gc_sections_runs=no
19203 ;;
19204 esac
19205 fi
19206 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19207 conftest$ac_exeext conftest.$ac_ext
19208 CFLAGS="$origCFLAGS"
19209 { origCFLAGS=; unset origCFLAGS;}
19210
19211 ;;
19212 esac
19213 fi
19214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libevent_cv_gc_sections_runs" >&5
19215 printf "%s\n" "$libevent_cv_gc_sections_runs" >&6; }
19216 case "$libevent_cv_gc_sections_runs" in
19217 yes)
19218 CFLAGS="-ffunction-sections -fdata-sections $CFLAGS"
19219 LIBEVENT_GC_SECTIONS="-Wl,--gc-sections"
19220 ;;
19221 esac
19222 fi
19223
19224
19225 if test "$enable_libevent_install" = "yes"; then
19226 INSTALL_LIBEVENT_TRUE=
19227 INSTALL_LIBEVENT_FALSE='#'
19228 else
19229 INSTALL_LIBEVENT_TRUE='#'
19230 INSTALL_LIBEVENT_FALSE=
19231 fi
19232
19233
19234 # Doxygen support
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245 # Files:
19246 DX_PROJECT=libevent
19247
19248 DX_CONFIG='${top_srcdir}/Doxyfile'
19249
19250 DX_DOCDIR='doxygen'
19251
19252
19253 # Environment variables used inside doxygen.cfg:
19254 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
19255 SRCDIR=$srcdir
19256
19257 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
19258 PROJECT=$DX_PROJECT
19259
19260 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
19261
19262
19263 # Doxygen itself:
19264
19265
19266
19267 # Check whether --enable-doxygen-doc was given.
19268 if test ${enable_doxygen_doc+y}
19269 then :
19270 enableval=$enable_doxygen_doc;
19271 case "$enableval" in
19272 #(
19273 y|Y|yes|Yes|YES)
19274 DX_FLAG_doc=1
19275
19276
19277 ;; #(
19278 n|N|no|No|NO)
19279 DX_FLAG_doc=0
19280
19281 ;; #(
19282 *)
19283 as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5
19284 ;;
19285 esac
19286
19287 else case e in #(
19288 e)
19289 DX_FLAG_doc=0
19290
19291
19292 ;;
19293 esac
19294 fi
19295
19296 if test "$DX_FLAG_doc" = 1; then
19297
19298 if test -n "$ac_tool_prefix"; then
19299 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
19300 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
19301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19302 printf %s "checking for $ac_word... " >&6; }
19303 if test ${ac_cv_path_DX_DOXYGEN+y}
19304 then :
19305 printf %s "(cached) " >&6
19306 else case e in #(
19307 e) case $DX_DOXYGEN in
19308 [\\/]* | ?:[\\/]*)
19309 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
19310 ;;
19311 *)
19312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19313 for as_dir in $PATH
19314 do
19315 IFS=$as_save_IFS
19316 case $as_dir in #(((
19317 '') as_dir=./ ;;
19318 */) ;;
19319 *) as_dir=$as_dir/ ;;
19320 esac
19321 for ac_exec_ext in '' $ac_executable_extensions; do
19322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19323 ac_cv_path_DX_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
19324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19325 break 2
19326 fi
19327 done
19328 done
19329 IFS=$as_save_IFS
19330
19331 ;;
19332 esac ;;
19333 esac
19334 fi
19335 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
19336 if test -n "$DX_DOXYGEN"; then
19337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5
19338 printf "%s\n" "$DX_DOXYGEN" >&6; }
19339 else
19340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19341 printf "%s\n" "no" >&6; }
19342 fi
19343
19344
19345 fi
19346 if test -z "$ac_cv_path_DX_DOXYGEN"; then
19347 ac_pt_DX_DOXYGEN=$DX_DOXYGEN
19348 # Extract the first word of "doxygen", so it can be a program name with args.
19349 set dummy doxygen; ac_word=$2
19350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19351 printf %s "checking for $ac_word... " >&6; }
19352 if test ${ac_cv_path_ac_pt_DX_DOXYGEN+y}
19353 then :
19354 printf %s "(cached) " >&6
19355 else case e in #(
19356 e) case $ac_pt_DX_DOXYGEN in
19357 [\\/]* | ?:[\\/]*)
19358 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
19359 ;;
19360 *)
19361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19362 for as_dir in $PATH
19363 do
19364 IFS=$as_save_IFS
19365 case $as_dir in #(((
19366 '') as_dir=./ ;;
19367 */) ;;
19368 *) as_dir=$as_dir/ ;;
19369 esac
19370 for ac_exec_ext in '' $ac_executable_extensions; do
19371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19372 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
19373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19374 break 2
19375 fi
19376 done
19377 done
19378 IFS=$as_save_IFS
19379
19380 ;;
19381 esac ;;
19382 esac
19383 fi
19384 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
19385 if test -n "$ac_pt_DX_DOXYGEN"; then
19386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5
19387 printf "%s\n" "$ac_pt_DX_DOXYGEN" >&6; }
19388 else
19389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19390 printf "%s\n" "no" >&6; }
19391 fi
19392
19393 if test "x$ac_pt_DX_DOXYGEN" = x; then
19394 DX_DOXYGEN=""
19395 else
19396 case $cross_compiling:$ac_tool_warned in
19397 yes:)
19398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19399 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19400 ac_tool_warned=yes ;;
19401 esac
19402 DX_DOXYGEN=$ac_pt_DX_DOXYGEN
19403 fi
19404 else
19405 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
19406 fi
19407
19408 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
19409 if test "xdoxygen" = "xdoxygen"; then
19410 as_fn_error $? "doxygen not found - will not generate any doxygen documentation" "$LINENO" 5
19411 else
19412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
19413 printf "%s\n" "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
19414 fi
19415 DX_FLAG_doc=0
19416
19417 fi
19418
19419
19420 if test -n "$ac_tool_prefix"; then
19421 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
19422 set dummy ${ac_tool_prefix}perl; ac_word=$2
19423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19424 printf %s "checking for $ac_word... " >&6; }
19425 if test ${ac_cv_path_DX_PERL+y}
19426 then :
19427 printf %s "(cached) " >&6
19428 else case e in #(
19429 e) case $DX_PERL in
19430 [\\/]* | ?:[\\/]*)
19431 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
19432 ;;
19433 *)
19434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19435 for as_dir in $PATH
19436 do
19437 IFS=$as_save_IFS
19438 case $as_dir in #(((
19439 '') as_dir=./ ;;
19440 */) ;;
19441 *) as_dir=$as_dir/ ;;
19442 esac
19443 for ac_exec_ext in '' $ac_executable_extensions; do
19444 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19445 ac_cv_path_DX_PERL="$as_dir$ac_word$ac_exec_ext"
19446 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19447 break 2
19448 fi
19449 done
19450 done
19451 IFS=$as_save_IFS
19452
19453 ;;
19454 esac ;;
19455 esac
19456 fi
19457 DX_PERL=$ac_cv_path_DX_PERL
19458 if test -n "$DX_PERL"; then
19459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5
19460 printf "%s\n" "$DX_PERL" >&6; }
19461 else
19462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19463 printf "%s\n" "no" >&6; }
19464 fi
19465
19466
19467 fi
19468 if test -z "$ac_cv_path_DX_PERL"; then
19469 ac_pt_DX_PERL=$DX_PERL
19470 # Extract the first word of "perl", so it can be a program name with args.
19471 set dummy perl; ac_word=$2
19472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19473 printf %s "checking for $ac_word... " >&6; }
19474 if test ${ac_cv_path_ac_pt_DX_PERL+y}
19475 then :
19476 printf %s "(cached) " >&6
19477 else case e in #(
19478 e) case $ac_pt_DX_PERL in
19479 [\\/]* | ?:[\\/]*)
19480 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
19481 ;;
19482 *)
19483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19484 for as_dir in $PATH
19485 do
19486 IFS=$as_save_IFS
19487 case $as_dir in #(((
19488 '') as_dir=./ ;;
19489 */) ;;
19490 *) as_dir=$as_dir/ ;;
19491 esac
19492 for ac_exec_ext in '' $ac_executable_extensions; do
19493 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19494 ac_cv_path_ac_pt_DX_PERL="$as_dir$ac_word$ac_exec_ext"
19495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19496 break 2
19497 fi
19498 done
19499 done
19500 IFS=$as_save_IFS
19501
19502 ;;
19503 esac ;;
19504 esac
19505 fi
19506 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
19507 if test -n "$ac_pt_DX_PERL"; then
19508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5
19509 printf "%s\n" "$ac_pt_DX_PERL" >&6; }
19510 else
19511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19512 printf "%s\n" "no" >&6; }
19513 fi
19514
19515 if test "x$ac_pt_DX_PERL" = x; then
19516 DX_PERL=""
19517 else
19518 case $cross_compiling:$ac_tool_warned in
19519 yes:)
19520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19521 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19522 ac_tool_warned=yes ;;
19523 esac
19524 DX_PERL=$ac_pt_DX_PERL
19525 fi
19526 else
19527 DX_PERL="$ac_cv_path_DX_PERL"
19528 fi
19529
19530 if test "$DX_FLAG_doc$DX_PERL" = 1; then
19531 if test "xperl" = "xdoxygen"; then
19532 as_fn_error $? "perl not found - will not generate any doxygen documentation" "$LINENO" 5
19533 else
19534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5
19535 printf "%s\n" "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
19536 fi
19537 DX_FLAG_doc=0
19538
19539 fi
19540
19541 :
19542 fi
19543 if test "$DX_FLAG_doc" = 1; then
19544 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
19545 PERL_PATH=$DX_PERL
19546
19547 :
19548 else
19549
19550 :
19551 fi
19552
19553
19554 # Dot for graphics:
19555
19556
19557
19558 # Check whether --enable-doxygen-dot was given.
19559 if test ${enable_doxygen_dot+y}
19560 then :
19561 enableval=$enable_doxygen_dot;
19562 case "$enableval" in
19563 #(
19564 y|Y|yes|Yes|YES)
19565 DX_FLAG_dot=1
19566
19567
19568 test "$DX_FLAG_doc" = "1" \
19569 || as_fn_error $? "doxygen-dot requires doxygen-doc" "$LINENO" 5
19570
19571 ;; #(
19572 n|N|no|No|NO)
19573 DX_FLAG_dot=0
19574
19575 ;; #(
19576 *)
19577 as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5
19578 ;;
19579 esac
19580
19581 else case e in #(
19582 e)
19583 DX_FLAG_dot=0
19584
19585
19586 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
19587
19588
19589 ;;
19590 esac
19591 fi
19592
19593 if test "$DX_FLAG_dot" = 1; then
19594
19595 if test -n "$ac_tool_prefix"; then
19596 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
19597 set dummy ${ac_tool_prefix}dot; ac_word=$2
19598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19599 printf %s "checking for $ac_word... " >&6; }
19600 if test ${ac_cv_path_DX_DOT+y}
19601 then :
19602 printf %s "(cached) " >&6
19603 else case e in #(
19604 e) case $DX_DOT in
19605 [\\/]* | ?:[\\/]*)
19606 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
19607 ;;
19608 *)
19609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19610 for as_dir in $PATH
19611 do
19612 IFS=$as_save_IFS
19613 case $as_dir in #(((
19614 '') as_dir=./ ;;
19615 */) ;;
19616 *) as_dir=$as_dir/ ;;
19617 esac
19618 for ac_exec_ext in '' $ac_executable_extensions; do
19619 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19620 ac_cv_path_DX_DOT="$as_dir$ac_word$ac_exec_ext"
19621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19622 break 2
19623 fi
19624 done
19625 done
19626 IFS=$as_save_IFS
19627
19628 ;;
19629 esac ;;
19630 esac
19631 fi
19632 DX_DOT=$ac_cv_path_DX_DOT
19633 if test -n "$DX_DOT"; then
19634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5
19635 printf "%s\n" "$DX_DOT" >&6; }
19636 else
19637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19638 printf "%s\n" "no" >&6; }
19639 fi
19640
19641
19642 fi
19643 if test -z "$ac_cv_path_DX_DOT"; then
19644 ac_pt_DX_DOT=$DX_DOT
19645 # Extract the first word of "dot", so it can be a program name with args.
19646 set dummy dot; ac_word=$2
19647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19648 printf %s "checking for $ac_word... " >&6; }
19649 if test ${ac_cv_path_ac_pt_DX_DOT+y}
19650 then :
19651 printf %s "(cached) " >&6
19652 else case e in #(
19653 e) case $ac_pt_DX_DOT in
19654 [\\/]* | ?:[\\/]*)
19655 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
19656 ;;
19657 *)
19658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19659 for as_dir in $PATH
19660 do
19661 IFS=$as_save_IFS
19662 case $as_dir in #(((
19663 '') as_dir=./ ;;
19664 */) ;;
19665 *) as_dir=$as_dir/ ;;
19666 esac
19667 for ac_exec_ext in '' $ac_executable_extensions; do
19668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19669 ac_cv_path_ac_pt_DX_DOT="$as_dir$ac_word$ac_exec_ext"
19670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19671 break 2
19672 fi
19673 done
19674 done
19675 IFS=$as_save_IFS
19676
19677 ;;
19678 esac ;;
19679 esac
19680 fi
19681 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
19682 if test -n "$ac_pt_DX_DOT"; then
19683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5
19684 printf "%s\n" "$ac_pt_DX_DOT" >&6; }
19685 else
19686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19687 printf "%s\n" "no" >&6; }
19688 fi
19689
19690 if test "x$ac_pt_DX_DOT" = x; then
19691 DX_DOT=""
19692 else
19693 case $cross_compiling:$ac_tool_warned in
19694 yes:)
19695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19696 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19697 ac_tool_warned=yes ;;
19698 esac
19699 DX_DOT=$ac_pt_DX_DOT
19700 fi
19701 else
19702 DX_DOT="$ac_cv_path_DX_DOT"
19703 fi
19704
19705 if test "$DX_FLAG_dot$DX_DOT" = 1; then
19706 if test "xdot" = "xdoxygen"; then
19707 as_fn_error $? "dot not found - will not generate graphics for doxygen documentation" "$LINENO" 5
19708 else
19709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
19710 printf "%s\n" "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
19711 fi
19712 DX_FLAG_dot=0
19713
19714 fi
19715
19716 :
19717 fi
19718 if test "$DX_FLAG_dot" = 1; then
19719 DX_ENV="$DX_ENV HAVE_DOT='YES'"
19720 HAVE_DOT=YES
19721
19722 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
19723 DOT_PATH=`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`
19724
19725 :
19726 else
19727 DX_ENV="$DX_ENV HAVE_DOT='NO'"
19728 HAVE_DOT=NO
19729
19730 :
19731 fi
19732
19733
19734 # Man pages generation:
19735
19736
19737
19738 # Check whether --enable-doxygen-man was given.
19739 if test ${enable_doxygen_man+y}
19740 then :
19741 enableval=$enable_doxygen_man;
19742 case "$enableval" in
19743 #(
19744 y|Y|yes|Yes|YES)
19745 DX_FLAG_man=1
19746
19747
19748 test "$DX_FLAG_doc" = "1" \
19749 || as_fn_error $? "doxygen-man requires doxygen-doc" "$LINENO" 5
19750
19751 ;; #(
19752 n|N|no|No|NO)
19753 DX_FLAG_man=0
19754
19755 ;; #(
19756 *)
19757 as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5
19758 ;;
19759 esac
19760
19761 else case e in #(
19762 e)
19763 DX_FLAG_man=0
19764
19765
19766 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
19767
19768
19769 ;;
19770 esac
19771 fi
19772
19773 if test "$DX_FLAG_man" = 1; then
19774
19775 :
19776 fi
19777 if test "$DX_FLAG_man" = 1; then
19778 DX_ENV="$DX_ENV GENERATE_MAN='YES'"
19779 GENERATE_MAN=YES
19780
19781 :
19782 else
19783 DX_ENV="$DX_ENV GENERATE_MAN='NO'"
19784 GENERATE_MAN=NO
19785
19786 :
19787 fi
19788
19789
19790 # RTF file generation:
19791
19792
19793
19794 # Check whether --enable-doxygen-rtf was given.
19795 if test ${enable_doxygen_rtf+y}
19796 then :
19797 enableval=$enable_doxygen_rtf;
19798 case "$enableval" in
19799 #(
19800 y|Y|yes|Yes|YES)
19801 DX_FLAG_rtf=1
19802
19803
19804 test "$DX_FLAG_doc" = "1" \
19805 || as_fn_error $? "doxygen-rtf requires doxygen-doc" "$LINENO" 5
19806
19807 ;; #(
19808 n|N|no|No|NO)
19809 DX_FLAG_rtf=0
19810
19811 ;; #(
19812 *)
19813 as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5
19814 ;;
19815 esac
19816
19817 else case e in #(
19818 e)
19819 DX_FLAG_rtf=0
19820
19821
19822 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
19823
19824
19825 ;;
19826 esac
19827 fi
19828
19829 if test "$DX_FLAG_rtf" = 1; then
19830
19831 :
19832 fi
19833 if test "$DX_FLAG_rtf" = 1; then
19834 DX_ENV="$DX_ENV GENERATE_RTF='YES'"
19835 GENERATE_RTF=YES
19836
19837 :
19838 else
19839 DX_ENV="$DX_ENV GENERATE_RTF='NO'"
19840 GENERATE_RTF=NO
19841
19842 :
19843 fi
19844
19845
19846 # XML file generation:
19847
19848
19849
19850 # Check whether --enable-doxygen-xml was given.
19851 if test ${enable_doxygen_xml+y}
19852 then :
19853 enableval=$enable_doxygen_xml;
19854 case "$enableval" in
19855 #(
19856 y|Y|yes|Yes|YES)
19857 DX_FLAG_xml=1
19858
19859
19860 test "$DX_FLAG_doc" = "1" \
19861 || as_fn_error $? "doxygen-xml requires doxygen-doc" "$LINENO" 5
19862
19863 ;; #(
19864 n|N|no|No|NO)
19865 DX_FLAG_xml=0
19866
19867 ;; #(
19868 *)
19869 as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5
19870 ;;
19871 esac
19872
19873 else case e in #(
19874 e)
19875 DX_FLAG_xml=0
19876
19877
19878 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
19879
19880
19881 ;;
19882 esac
19883 fi
19884
19885 if test "$DX_FLAG_xml" = 1; then
19886
19887 :
19888 fi
19889 if test "$DX_FLAG_xml" = 1; then
19890 DX_ENV="$DX_ENV GENERATE_XML='YES'"
19891 GENERATE_XML=YES
19892
19893 :
19894 else
19895 DX_ENV="$DX_ENV GENERATE_XML='NO'"
19896 GENERATE_XML=NO
19897
19898 :
19899 fi
19900
19901
19902 # (Compressed) HTML help generation:
19903
19904
19905
19906 # Check whether --enable-doxygen-chm was given.
19907 if test ${enable_doxygen_chm+y}
19908 then :
19909 enableval=$enable_doxygen_chm;
19910 case "$enableval" in
19911 #(
19912 y|Y|yes|Yes|YES)
19913 DX_FLAG_chm=1
19914
19915
19916 test "$DX_FLAG_doc" = "1" \
19917 || as_fn_error $? "doxygen-chm requires doxygen-doc" "$LINENO" 5
19918
19919 ;; #(
19920 n|N|no|No|NO)
19921 DX_FLAG_chm=0
19922
19923 ;; #(
19924 *)
19925 as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5
19926 ;;
19927 esac
19928
19929 else case e in #(
19930 e)
19931 DX_FLAG_chm=0
19932
19933
19934 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
19935
19936
19937 ;;
19938 esac
19939 fi
19940
19941 if test "$DX_FLAG_chm" = 1; then
19942
19943 if test -n "$ac_tool_prefix"; then
19944 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
19945 set dummy ${ac_tool_prefix}hhc; ac_word=$2
19946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19947 printf %s "checking for $ac_word... " >&6; }
19948 if test ${ac_cv_path_DX_HHC+y}
19949 then :
19950 printf %s "(cached) " >&6
19951 else case e in #(
19952 e) case $DX_HHC in
19953 [\\/]* | ?:[\\/]*)
19954 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
19955 ;;
19956 *)
19957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19958 for as_dir in $PATH
19959 do
19960 IFS=$as_save_IFS
19961 case $as_dir in #(((
19962 '') as_dir=./ ;;
19963 */) ;;
19964 *) as_dir=$as_dir/ ;;
19965 esac
19966 for ac_exec_ext in '' $ac_executable_extensions; do
19967 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19968 ac_cv_path_DX_HHC="$as_dir$ac_word$ac_exec_ext"
19969 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19970 break 2
19971 fi
19972 done
19973 done
19974 IFS=$as_save_IFS
19975
19976 ;;
19977 esac ;;
19978 esac
19979 fi
19980 DX_HHC=$ac_cv_path_DX_HHC
19981 if test -n "$DX_HHC"; then
19982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5
19983 printf "%s\n" "$DX_HHC" >&6; }
19984 else
19985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19986 printf "%s\n" "no" >&6; }
19987 fi
19988
19989
19990 fi
19991 if test -z "$ac_cv_path_DX_HHC"; then
19992 ac_pt_DX_HHC=$DX_HHC
19993 # Extract the first word of "hhc", so it can be a program name with args.
19994 set dummy hhc; ac_word=$2
19995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19996 printf %s "checking for $ac_word... " >&6; }
19997 if test ${ac_cv_path_ac_pt_DX_HHC+y}
19998 then :
19999 printf %s "(cached) " >&6
20000 else case e in #(
20001 e) case $ac_pt_DX_HHC in
20002 [\\/]* | ?:[\\/]*)
20003 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
20004 ;;
20005 *)
20006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20007 for as_dir in $PATH
20008 do
20009 IFS=$as_save_IFS
20010 case $as_dir in #(((
20011 '') as_dir=./ ;;
20012 */) ;;
20013 *) as_dir=$as_dir/ ;;
20014 esac
20015 for ac_exec_ext in '' $ac_executable_extensions; do
20016 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20017 ac_cv_path_ac_pt_DX_HHC="$as_dir$ac_word$ac_exec_ext"
20018 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20019 break 2
20020 fi
20021 done
20022 done
20023 IFS=$as_save_IFS
20024
20025 ;;
20026 esac ;;
20027 esac
20028 fi
20029 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
20030 if test -n "$ac_pt_DX_HHC"; then
20031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5
20032 printf "%s\n" "$ac_pt_DX_HHC" >&6; }
20033 else
20034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20035 printf "%s\n" "no" >&6; }
20036 fi
20037
20038 if test "x$ac_pt_DX_HHC" = x; then
20039 DX_HHC=""
20040 else
20041 case $cross_compiling:$ac_tool_warned in
20042 yes:)
20043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20044 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20045 ac_tool_warned=yes ;;
20046 esac
20047 DX_HHC=$ac_pt_DX_HHC
20048 fi
20049 else
20050 DX_HHC="$ac_cv_path_DX_HHC"
20051 fi
20052
20053 if test "$DX_FLAG_chm$DX_HHC" = 1; then
20054 if test "xhhc" = "xdoxygen"; then
20055 as_fn_error $? "hhc not found - will not generate doxygen compressed HTML help documentation" "$LINENO" 5
20056 else
20057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
20058 printf "%s\n" "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
20059 fi
20060 DX_FLAG_chm=0
20061
20062 fi
20063
20064 :
20065 fi
20066 if test "$DX_FLAG_chm" = 1; then
20067 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
20068 HHC_PATH=$DX_HHC
20069
20070 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
20071 GENERATE_HTML=YES
20072
20073 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
20074 GENERATE_HTMLHELP=YES
20075
20076 :
20077 else
20078 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
20079 GENERATE_HTMLHELP=NO
20080
20081 :
20082 fi
20083
20084
20085 # Separate CHI file generation.
20086
20087
20088
20089 # Check whether --enable-doxygen-chi was given.
20090 if test ${enable_doxygen_chi+y}
20091 then :
20092 enableval=$enable_doxygen_chi;
20093 case "$enableval" in
20094 #(
20095 y|Y|yes|Yes|YES)
20096 DX_FLAG_chi=1
20097
20098
20099 test "$DX_FLAG_chm" = "1" \
20100 || as_fn_error $? "doxygen-chi requires doxygen-chm" "$LINENO" 5
20101
20102 ;; #(
20103 n|N|no|No|NO)
20104 DX_FLAG_chi=0
20105
20106 ;; #(
20107 *)
20108 as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5
20109 ;;
20110 esac
20111
20112 else case e in #(
20113 e)
20114 DX_FLAG_chi=0
20115
20116
20117 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
20118
20119
20120 ;;
20121 esac
20122 fi
20123
20124 if test "$DX_FLAG_chi" = 1; then
20125
20126 :
20127 fi
20128 if test "$DX_FLAG_chi" = 1; then
20129 DX_ENV="$DX_ENV GENERATE_CHI='YES'"
20130 GENERATE_CHI=YES
20131
20132 :
20133 else
20134 DX_ENV="$DX_ENV GENERATE_CHI='NO'"
20135 GENERATE_CHI=NO
20136
20137 :
20138 fi
20139
20140
20141 # Plain HTML pages generation:
20142
20143
20144
20145 # Check whether --enable-doxygen-html was given.
20146 if test ${enable_doxygen_html+y}
20147 then :
20148 enableval=$enable_doxygen_html;
20149 case "$enableval" in
20150 #(
20151 y|Y|yes|Yes|YES)
20152 DX_FLAG_html=1
20153
20154
20155 test "$DX_FLAG_doc" = "1" \
20156 || as_fn_error $? "doxygen-html requires doxygen-doc" "$LINENO" 5
20157
20158 test "$DX_FLAG_chm" = "0" \
20159 || as_fn_error $? "doxygen-html contradicts doxygen-chm" "$LINENO" 5
20160
20161 ;; #(
20162 n|N|no|No|NO)
20163 DX_FLAG_html=0
20164
20165 ;; #(
20166 *)
20167 as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5
20168 ;;
20169 esac
20170
20171 else case e in #(
20172 e)
20173 DX_FLAG_html=1
20174
20175
20176 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
20177
20178
20179 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
20180
20181
20182 ;;
20183 esac
20184 fi
20185
20186 if test "$DX_FLAG_html" = 1; then
20187
20188 :
20189 fi
20190 if test "$DX_FLAG_html" = 1; then
20191 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
20192 GENERATE_HTML=YES
20193
20194 :
20195 else
20196 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
20197 GENERATE_HTML=NO
20198
20199 :
20200 fi
20201
20202
20203 # PostScript file generation:
20204
20205
20206
20207 # Check whether --enable-doxygen-ps was given.
20208 if test ${enable_doxygen_ps+y}
20209 then :
20210 enableval=$enable_doxygen_ps;
20211 case "$enableval" in
20212 #(
20213 y|Y|yes|Yes|YES)
20214 DX_FLAG_ps=1
20215
20216
20217 test "$DX_FLAG_doc" = "1" \
20218 || as_fn_error $? "doxygen-ps requires doxygen-doc" "$LINENO" 5
20219
20220 ;; #(
20221 n|N|no|No|NO)
20222 DX_FLAG_ps=0
20223
20224 ;; #(
20225 *)
20226 as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5
20227 ;;
20228 esac
20229
20230 else case e in #(
20231 e)
20232 DX_FLAG_ps=0
20233
20234
20235 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
20236
20237
20238 ;;
20239 esac
20240 fi
20241
20242 if test "$DX_FLAG_ps" = 1; then
20243
20244 if test -n "$ac_tool_prefix"; then
20245 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
20246 set dummy ${ac_tool_prefix}latex; ac_word=$2
20247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20248 printf %s "checking for $ac_word... " >&6; }
20249 if test ${ac_cv_path_DX_LATEX+y}
20250 then :
20251 printf %s "(cached) " >&6
20252 else case e in #(
20253 e) case $DX_LATEX in
20254 [\\/]* | ?:[\\/]*)
20255 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
20256 ;;
20257 *)
20258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20259 for as_dir in $PATH
20260 do
20261 IFS=$as_save_IFS
20262 case $as_dir in #(((
20263 '') as_dir=./ ;;
20264 */) ;;
20265 *) as_dir=$as_dir/ ;;
20266 esac
20267 for ac_exec_ext in '' $ac_executable_extensions; do
20268 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20269 ac_cv_path_DX_LATEX="$as_dir$ac_word$ac_exec_ext"
20270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20271 break 2
20272 fi
20273 done
20274 done
20275 IFS=$as_save_IFS
20276
20277 ;;
20278 esac ;;
20279 esac
20280 fi
20281 DX_LATEX=$ac_cv_path_DX_LATEX
20282 if test -n "$DX_LATEX"; then
20283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5
20284 printf "%s\n" "$DX_LATEX" >&6; }
20285 else
20286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20287 printf "%s\n" "no" >&6; }
20288 fi
20289
20290
20291 fi
20292 if test -z "$ac_cv_path_DX_LATEX"; then
20293 ac_pt_DX_LATEX=$DX_LATEX
20294 # Extract the first word of "latex", so it can be a program name with args.
20295 set dummy latex; ac_word=$2
20296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20297 printf %s "checking for $ac_word... " >&6; }
20298 if test ${ac_cv_path_ac_pt_DX_LATEX+y}
20299 then :
20300 printf %s "(cached) " >&6
20301 else case e in #(
20302 e) case $ac_pt_DX_LATEX in
20303 [\\/]* | ?:[\\/]*)
20304 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
20305 ;;
20306 *)
20307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20308 for as_dir in $PATH
20309 do
20310 IFS=$as_save_IFS
20311 case $as_dir in #(((
20312 '') as_dir=./ ;;
20313 */) ;;
20314 *) as_dir=$as_dir/ ;;
20315 esac
20316 for ac_exec_ext in '' $ac_executable_extensions; do
20317 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20318 ac_cv_path_ac_pt_DX_LATEX="$as_dir$ac_word$ac_exec_ext"
20319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20320 break 2
20321 fi
20322 done
20323 done
20324 IFS=$as_save_IFS
20325
20326 ;;
20327 esac ;;
20328 esac
20329 fi
20330 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
20331 if test -n "$ac_pt_DX_LATEX"; then
20332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5
20333 printf "%s\n" "$ac_pt_DX_LATEX" >&6; }
20334 else
20335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20336 printf "%s\n" "no" >&6; }
20337 fi
20338
20339 if test "x$ac_pt_DX_LATEX" = x; then
20340 DX_LATEX=""
20341 else
20342 case $cross_compiling:$ac_tool_warned in
20343 yes:)
20344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20345 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20346 ac_tool_warned=yes ;;
20347 esac
20348 DX_LATEX=$ac_pt_DX_LATEX
20349 fi
20350 else
20351 DX_LATEX="$ac_cv_path_DX_LATEX"
20352 fi
20353
20354 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
20355 if test "xlatex" = "xdoxygen"; then
20356 as_fn_error $? "latex not found - will not generate doxygen PostScript documentation" "$LINENO" 5
20357 else
20358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
20359 printf "%s\n" "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
20360 fi
20361 DX_FLAG_ps=0
20362
20363 fi
20364
20365
20366 if test -n "$ac_tool_prefix"; then
20367 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
20368 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
20369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20370 printf %s "checking for $ac_word... " >&6; }
20371 if test ${ac_cv_path_DX_MAKEINDEX+y}
20372 then :
20373 printf %s "(cached) " >&6
20374 else case e in #(
20375 e) case $DX_MAKEINDEX in
20376 [\\/]* | ?:[\\/]*)
20377 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
20378 ;;
20379 *)
20380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20381 for as_dir in $PATH
20382 do
20383 IFS=$as_save_IFS
20384 case $as_dir in #(((
20385 '') as_dir=./ ;;
20386 */) ;;
20387 *) as_dir=$as_dir/ ;;
20388 esac
20389 for ac_exec_ext in '' $ac_executable_extensions; do
20390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20391 ac_cv_path_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext"
20392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20393 break 2
20394 fi
20395 done
20396 done
20397 IFS=$as_save_IFS
20398
20399 ;;
20400 esac ;;
20401 esac
20402 fi
20403 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
20404 if test -n "$DX_MAKEINDEX"; then
20405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
20406 printf "%s\n" "$DX_MAKEINDEX" >&6; }
20407 else
20408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20409 printf "%s\n" "no" >&6; }
20410 fi
20411
20412
20413 fi
20414 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
20415 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
20416 # Extract the first word of "makeindex", so it can be a program name with args.
20417 set dummy makeindex; ac_word=$2
20418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20419 printf %s "checking for $ac_word... " >&6; }
20420 if test ${ac_cv_path_ac_pt_DX_MAKEINDEX+y}
20421 then :
20422 printf %s "(cached) " >&6
20423 else case e in #(
20424 e) case $ac_pt_DX_MAKEINDEX in
20425 [\\/]* | ?:[\\/]*)
20426 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
20427 ;;
20428 *)
20429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20430 for as_dir in $PATH
20431 do
20432 IFS=$as_save_IFS
20433 case $as_dir in #(((
20434 '') as_dir=./ ;;
20435 */) ;;
20436 *) as_dir=$as_dir/ ;;
20437 esac
20438 for ac_exec_ext in '' $ac_executable_extensions; do
20439 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20440 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext"
20441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20442 break 2
20443 fi
20444 done
20445 done
20446 IFS=$as_save_IFS
20447
20448 ;;
20449 esac ;;
20450 esac
20451 fi
20452 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
20453 if test -n "$ac_pt_DX_MAKEINDEX"; then
20454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
20455 printf "%s\n" "$ac_pt_DX_MAKEINDEX" >&6; }
20456 else
20457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20458 printf "%s\n" "no" >&6; }
20459 fi
20460
20461 if test "x$ac_pt_DX_MAKEINDEX" = x; then
20462 DX_MAKEINDEX=""
20463 else
20464 case $cross_compiling:$ac_tool_warned in
20465 yes:)
20466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20467 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20468 ac_tool_warned=yes ;;
20469 esac
20470 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
20471 fi
20472 else
20473 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
20474 fi
20475
20476 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
20477 if test "xmakeindex" = "xdoxygen"; then
20478 as_fn_error $? "makeindex not found - will not generate doxygen PostScript documentation" "$LINENO" 5
20479 else
20480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
20481 printf "%s\n" "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
20482 fi
20483 DX_FLAG_ps=0
20484
20485 fi
20486
20487
20488 if test -n "$ac_tool_prefix"; then
20489 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
20490 set dummy ${ac_tool_prefix}dvips; ac_word=$2
20491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20492 printf %s "checking for $ac_word... " >&6; }
20493 if test ${ac_cv_path_DX_DVIPS+y}
20494 then :
20495 printf %s "(cached) " >&6
20496 else case e in #(
20497 e) case $DX_DVIPS in
20498 [\\/]* | ?:[\\/]*)
20499 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
20500 ;;
20501 *)
20502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20503 for as_dir in $PATH
20504 do
20505 IFS=$as_save_IFS
20506 case $as_dir in #(((
20507 '') as_dir=./ ;;
20508 */) ;;
20509 *) as_dir=$as_dir/ ;;
20510 esac
20511 for ac_exec_ext in '' $ac_executable_extensions; do
20512 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20513 ac_cv_path_DX_DVIPS="$as_dir$ac_word$ac_exec_ext"
20514 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20515 break 2
20516 fi
20517 done
20518 done
20519 IFS=$as_save_IFS
20520
20521 ;;
20522 esac ;;
20523 esac
20524 fi
20525 DX_DVIPS=$ac_cv_path_DX_DVIPS
20526 if test -n "$DX_DVIPS"; then
20527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5
20528 printf "%s\n" "$DX_DVIPS" >&6; }
20529 else
20530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20531 printf "%s\n" "no" >&6; }
20532 fi
20533
20534
20535 fi
20536 if test -z "$ac_cv_path_DX_DVIPS"; then
20537 ac_pt_DX_DVIPS=$DX_DVIPS
20538 # Extract the first word of "dvips", so it can be a program name with args.
20539 set dummy dvips; ac_word=$2
20540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20541 printf %s "checking for $ac_word... " >&6; }
20542 if test ${ac_cv_path_ac_pt_DX_DVIPS+y}
20543 then :
20544 printf %s "(cached) " >&6
20545 else case e in #(
20546 e) case $ac_pt_DX_DVIPS in
20547 [\\/]* | ?:[\\/]*)
20548 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
20549 ;;
20550 *)
20551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20552 for as_dir in $PATH
20553 do
20554 IFS=$as_save_IFS
20555 case $as_dir in #(((
20556 '') as_dir=./ ;;
20557 */) ;;
20558 *) as_dir=$as_dir/ ;;
20559 esac
20560 for ac_exec_ext in '' $ac_executable_extensions; do
20561 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20562 ac_cv_path_ac_pt_DX_DVIPS="$as_dir$ac_word$ac_exec_ext"
20563 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20564 break 2
20565 fi
20566 done
20567 done
20568 IFS=$as_save_IFS
20569
20570 ;;
20571 esac ;;
20572 esac
20573 fi
20574 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
20575 if test -n "$ac_pt_DX_DVIPS"; then
20576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5
20577 printf "%s\n" "$ac_pt_DX_DVIPS" >&6; }
20578 else
20579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20580 printf "%s\n" "no" >&6; }
20581 fi
20582
20583 if test "x$ac_pt_DX_DVIPS" = x; then
20584 DX_DVIPS=""
20585 else
20586 case $cross_compiling:$ac_tool_warned in
20587 yes:)
20588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20589 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20590 ac_tool_warned=yes ;;
20591 esac
20592 DX_DVIPS=$ac_pt_DX_DVIPS
20593 fi
20594 else
20595 DX_DVIPS="$ac_cv_path_DX_DVIPS"
20596 fi
20597
20598 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
20599 if test "xdvips" = "xdoxygen"; then
20600 as_fn_error $? "dvips not found - will not generate doxygen PostScript documentation" "$LINENO" 5
20601 else
20602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
20603 printf "%s\n" "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
20604 fi
20605 DX_FLAG_ps=0
20606
20607 fi
20608
20609
20610 if test -n "$ac_tool_prefix"; then
20611 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
20612 set dummy ${ac_tool_prefix}egrep; ac_word=$2
20613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20614 printf %s "checking for $ac_word... " >&6; }
20615 if test ${ac_cv_path_DX_EGREP+y}
20616 then :
20617 printf %s "(cached) " >&6
20618 else case e in #(
20619 e) case $DX_EGREP in
20620 [\\/]* | ?:[\\/]*)
20621 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
20622 ;;
20623 *)
20624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20625 for as_dir in $PATH
20626 do
20627 IFS=$as_save_IFS
20628 case $as_dir in #(((
20629 '') as_dir=./ ;;
20630 */) ;;
20631 *) as_dir=$as_dir/ ;;
20632 esac
20633 for ac_exec_ext in '' $ac_executable_extensions; do
20634 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20635 ac_cv_path_DX_EGREP="$as_dir$ac_word$ac_exec_ext"
20636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20637 break 2
20638 fi
20639 done
20640 done
20641 IFS=$as_save_IFS
20642
20643 ;;
20644 esac ;;
20645 esac
20646 fi
20647 DX_EGREP=$ac_cv_path_DX_EGREP
20648 if test -n "$DX_EGREP"; then
20649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
20650 printf "%s\n" "$DX_EGREP" >&6; }
20651 else
20652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20653 printf "%s\n" "no" >&6; }
20654 fi
20655
20656
20657 fi
20658 if test -z "$ac_cv_path_DX_EGREP"; then
20659 ac_pt_DX_EGREP=$DX_EGREP
20660 # Extract the first word of "egrep", so it can be a program name with args.
20661 set dummy egrep; ac_word=$2
20662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20663 printf %s "checking for $ac_word... " >&6; }
20664 if test ${ac_cv_path_ac_pt_DX_EGREP+y}
20665 then :
20666 printf %s "(cached) " >&6
20667 else case e in #(
20668 e) case $ac_pt_DX_EGREP in
20669 [\\/]* | ?:[\\/]*)
20670 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
20671 ;;
20672 *)
20673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20674 for as_dir in $PATH
20675 do
20676 IFS=$as_save_IFS
20677 case $as_dir in #(((
20678 '') as_dir=./ ;;
20679 */) ;;
20680 *) as_dir=$as_dir/ ;;
20681 esac
20682 for ac_exec_ext in '' $ac_executable_extensions; do
20683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20684 ac_cv_path_ac_pt_DX_EGREP="$as_dir$ac_word$ac_exec_ext"
20685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20686 break 2
20687 fi
20688 done
20689 done
20690 IFS=$as_save_IFS
20691
20692 ;;
20693 esac ;;
20694 esac
20695 fi
20696 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
20697 if test -n "$ac_pt_DX_EGREP"; then
20698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
20699 printf "%s\n" "$ac_pt_DX_EGREP" >&6; }
20700 else
20701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20702 printf "%s\n" "no" >&6; }
20703 fi
20704
20705 if test "x$ac_pt_DX_EGREP" = x; then
20706 DX_EGREP=""
20707 else
20708 case $cross_compiling:$ac_tool_warned in
20709 yes:)
20710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20711 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20712 ac_tool_warned=yes ;;
20713 esac
20714 DX_EGREP=$ac_pt_DX_EGREP
20715 fi
20716 else
20717 DX_EGREP="$ac_cv_path_DX_EGREP"
20718 fi
20719
20720 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
20721 if test "xegrep" = "xdoxygen"; then
20722 as_fn_error $? "egrep not found - will not generate doxygen PostScript documentation" "$LINENO" 5
20723 else
20724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
20725 printf "%s\n" "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
20726 fi
20727 DX_FLAG_ps=0
20728
20729 fi
20730
20731 :
20732 fi
20733 if test "$DX_FLAG_ps" = 1; then
20734
20735 :
20736 else
20737
20738 :
20739 fi
20740
20741
20742 # PDF file generation:
20743
20744
20745
20746 # Check whether --enable-doxygen-pdf was given.
20747 if test ${enable_doxygen_pdf+y}
20748 then :
20749 enableval=$enable_doxygen_pdf;
20750 case "$enableval" in
20751 #(
20752 y|Y|yes|Yes|YES)
20753 DX_FLAG_pdf=1
20754
20755
20756 test "$DX_FLAG_doc" = "1" \
20757 || as_fn_error $? "doxygen-pdf requires doxygen-doc" "$LINENO" 5
20758
20759 ;; #(
20760 n|N|no|No|NO)
20761 DX_FLAG_pdf=0
20762
20763 ;; #(
20764 *)
20765 as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5
20766 ;;
20767 esac
20768
20769 else case e in #(
20770 e)
20771 DX_FLAG_pdf=0
20772
20773
20774 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
20775
20776
20777 ;;
20778 esac
20779 fi
20780
20781 if test "$DX_FLAG_pdf" = 1; then
20782
20783 if test -n "$ac_tool_prefix"; then
20784 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
20785 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
20786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20787 printf %s "checking for $ac_word... " >&6; }
20788 if test ${ac_cv_path_DX_PDFLATEX+y}
20789 then :
20790 printf %s "(cached) " >&6
20791 else case e in #(
20792 e) case $DX_PDFLATEX in
20793 [\\/]* | ?:[\\/]*)
20794 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
20795 ;;
20796 *)
20797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20798 for as_dir in $PATH
20799 do
20800 IFS=$as_save_IFS
20801 case $as_dir in #(((
20802 '') as_dir=./ ;;
20803 */) ;;
20804 *) as_dir=$as_dir/ ;;
20805 esac
20806 for ac_exec_ext in '' $ac_executable_extensions; do
20807 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20808 ac_cv_path_DX_PDFLATEX="$as_dir$ac_word$ac_exec_ext"
20809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20810 break 2
20811 fi
20812 done
20813 done
20814 IFS=$as_save_IFS
20815
20816 ;;
20817 esac ;;
20818 esac
20819 fi
20820 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
20821 if test -n "$DX_PDFLATEX"; then
20822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5
20823 printf "%s\n" "$DX_PDFLATEX" >&6; }
20824 else
20825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20826 printf "%s\n" "no" >&6; }
20827 fi
20828
20829
20830 fi
20831 if test -z "$ac_cv_path_DX_PDFLATEX"; then
20832 ac_pt_DX_PDFLATEX=$DX_PDFLATEX
20833 # Extract the first word of "pdflatex", so it can be a program name with args.
20834 set dummy pdflatex; ac_word=$2
20835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20836 printf %s "checking for $ac_word... " >&6; }
20837 if test ${ac_cv_path_ac_pt_DX_PDFLATEX+y}
20838 then :
20839 printf %s "(cached) " >&6
20840 else case e in #(
20841 e) case $ac_pt_DX_PDFLATEX in
20842 [\\/]* | ?:[\\/]*)
20843 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
20844 ;;
20845 *)
20846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20847 for as_dir in $PATH
20848 do
20849 IFS=$as_save_IFS
20850 case $as_dir in #(((
20851 '') as_dir=./ ;;
20852 */) ;;
20853 *) as_dir=$as_dir/ ;;
20854 esac
20855 for ac_exec_ext in '' $ac_executable_extensions; do
20856 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20857 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir$ac_word$ac_exec_ext"
20858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20859 break 2
20860 fi
20861 done
20862 done
20863 IFS=$as_save_IFS
20864
20865 ;;
20866 esac ;;
20867 esac
20868 fi
20869 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
20870 if test -n "$ac_pt_DX_PDFLATEX"; then
20871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5
20872 printf "%s\n" "$ac_pt_DX_PDFLATEX" >&6; }
20873 else
20874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20875 printf "%s\n" "no" >&6; }
20876 fi
20877
20878 if test "x$ac_pt_DX_PDFLATEX" = x; then
20879 DX_PDFLATEX=""
20880 else
20881 case $cross_compiling:$ac_tool_warned in
20882 yes:)
20883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20884 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20885 ac_tool_warned=yes ;;
20886 esac
20887 DX_PDFLATEX=$ac_pt_DX_PDFLATEX
20888 fi
20889 else
20890 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
20891 fi
20892
20893 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
20894 if test "xpdflatex" = "xdoxygen"; then
20895 as_fn_error $? "pdflatex not found - will not generate doxygen PDF documentation" "$LINENO" 5
20896 else
20897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
20898 printf "%s\n" "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
20899 fi
20900 DX_FLAG_pdf=0
20901
20902 fi
20903
20904
20905 if test -n "$ac_tool_prefix"; then
20906 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
20907 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
20908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20909 printf %s "checking for $ac_word... " >&6; }
20910 if test ${ac_cv_path_DX_MAKEINDEX+y}
20911 then :
20912 printf %s "(cached) " >&6
20913 else case e in #(
20914 e) case $DX_MAKEINDEX in
20915 [\\/]* | ?:[\\/]*)
20916 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
20917 ;;
20918 *)
20919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20920 for as_dir in $PATH
20921 do
20922 IFS=$as_save_IFS
20923 case $as_dir in #(((
20924 '') as_dir=./ ;;
20925 */) ;;
20926 *) as_dir=$as_dir/ ;;
20927 esac
20928 for ac_exec_ext in '' $ac_executable_extensions; do
20929 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20930 ac_cv_path_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext"
20931 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20932 break 2
20933 fi
20934 done
20935 done
20936 IFS=$as_save_IFS
20937
20938 ;;
20939 esac ;;
20940 esac
20941 fi
20942 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
20943 if test -n "$DX_MAKEINDEX"; then
20944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5
20945 printf "%s\n" "$DX_MAKEINDEX" >&6; }
20946 else
20947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20948 printf "%s\n" "no" >&6; }
20949 fi
20950
20951
20952 fi
20953 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
20954 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
20955 # Extract the first word of "makeindex", so it can be a program name with args.
20956 set dummy makeindex; ac_word=$2
20957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20958 printf %s "checking for $ac_word... " >&6; }
20959 if test ${ac_cv_path_ac_pt_DX_MAKEINDEX+y}
20960 then :
20961 printf %s "(cached) " >&6
20962 else case e in #(
20963 e) case $ac_pt_DX_MAKEINDEX in
20964 [\\/]* | ?:[\\/]*)
20965 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
20966 ;;
20967 *)
20968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20969 for as_dir in $PATH
20970 do
20971 IFS=$as_save_IFS
20972 case $as_dir in #(((
20973 '') as_dir=./ ;;
20974 */) ;;
20975 *) as_dir=$as_dir/ ;;
20976 esac
20977 for ac_exec_ext in '' $ac_executable_extensions; do
20978 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20979 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext"
20980 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20981 break 2
20982 fi
20983 done
20984 done
20985 IFS=$as_save_IFS
20986
20987 ;;
20988 esac ;;
20989 esac
20990 fi
20991 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
20992 if test -n "$ac_pt_DX_MAKEINDEX"; then
20993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5
20994 printf "%s\n" "$ac_pt_DX_MAKEINDEX" >&6; }
20995 else
20996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20997 printf "%s\n" "no" >&6; }
20998 fi
20999
21000 if test "x$ac_pt_DX_MAKEINDEX" = x; then
21001 DX_MAKEINDEX=""
21002 else
21003 case $cross_compiling:$ac_tool_warned in
21004 yes:)
21005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21006 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21007 ac_tool_warned=yes ;;
21008 esac
21009 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
21010 fi
21011 else
21012 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
21013 fi
21014
21015 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
21016 if test "xmakeindex" = "xdoxygen"; then
21017 as_fn_error $? "makeindex not found - will not generate doxygen PDF documentation" "$LINENO" 5
21018 else
21019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
21020 printf "%s\n" "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
21021 fi
21022 DX_FLAG_pdf=0
21023
21024 fi
21025
21026
21027 if test -n "$ac_tool_prefix"; then
21028 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
21029 set dummy ${ac_tool_prefix}egrep; ac_word=$2
21030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21031 printf %s "checking for $ac_word... " >&6; }
21032 if test ${ac_cv_path_DX_EGREP+y}
21033 then :
21034 printf %s "(cached) " >&6
21035 else case e in #(
21036 e) case $DX_EGREP in
21037 [\\/]* | ?:[\\/]*)
21038 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
21039 ;;
21040 *)
21041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21042 for as_dir in $PATH
21043 do
21044 IFS=$as_save_IFS
21045 case $as_dir in #(((
21046 '') as_dir=./ ;;
21047 */) ;;
21048 *) as_dir=$as_dir/ ;;
21049 esac
21050 for ac_exec_ext in '' $ac_executable_extensions; do
21051 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21052 ac_cv_path_DX_EGREP="$as_dir$ac_word$ac_exec_ext"
21053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21054 break 2
21055 fi
21056 done
21057 done
21058 IFS=$as_save_IFS
21059
21060 ;;
21061 esac ;;
21062 esac
21063 fi
21064 DX_EGREP=$ac_cv_path_DX_EGREP
21065 if test -n "$DX_EGREP"; then
21066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5
21067 printf "%s\n" "$DX_EGREP" >&6; }
21068 else
21069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21070 printf "%s\n" "no" >&6; }
21071 fi
21072
21073
21074 fi
21075 if test -z "$ac_cv_path_DX_EGREP"; then
21076 ac_pt_DX_EGREP=$DX_EGREP
21077 # Extract the first word of "egrep", so it can be a program name with args.
21078 set dummy egrep; ac_word=$2
21079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21080 printf %s "checking for $ac_word... " >&6; }
21081 if test ${ac_cv_path_ac_pt_DX_EGREP+y}
21082 then :
21083 printf %s "(cached) " >&6
21084 else case e in #(
21085 e) case $ac_pt_DX_EGREP in
21086 [\\/]* | ?:[\\/]*)
21087 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
21088 ;;
21089 *)
21090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21091 for as_dir in $PATH
21092 do
21093 IFS=$as_save_IFS
21094 case $as_dir in #(((
21095 '') as_dir=./ ;;
21096 */) ;;
21097 *) as_dir=$as_dir/ ;;
21098 esac
21099 for ac_exec_ext in '' $ac_executable_extensions; do
21100 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21101 ac_cv_path_ac_pt_DX_EGREP="$as_dir$ac_word$ac_exec_ext"
21102 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21103 break 2
21104 fi
21105 done
21106 done
21107 IFS=$as_save_IFS
21108
21109 ;;
21110 esac ;;
21111 esac
21112 fi
21113 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
21114 if test -n "$ac_pt_DX_EGREP"; then
21115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5
21116 printf "%s\n" "$ac_pt_DX_EGREP" >&6; }
21117 else
21118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21119 printf "%s\n" "no" >&6; }
21120 fi
21121
21122 if test "x$ac_pt_DX_EGREP" = x; then
21123 DX_EGREP=""
21124 else
21125 case $cross_compiling:$ac_tool_warned in
21126 yes:)
21127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21128 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21129 ac_tool_warned=yes ;;
21130 esac
21131 DX_EGREP=$ac_pt_DX_EGREP
21132 fi
21133 else
21134 DX_EGREP="$ac_cv_path_DX_EGREP"
21135 fi
21136
21137 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
21138 if test "xegrep" = "xdoxygen"; then
21139 as_fn_error $? "egrep not found - will not generate doxygen PDF documentation" "$LINENO" 5
21140 else
21141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
21142 printf "%s\n" "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
21143 fi
21144 DX_FLAG_pdf=0
21145
21146 fi
21147
21148 :
21149 fi
21150 if test "$DX_FLAG_pdf" = 1; then
21151
21152 :
21153 else
21154
21155 :
21156 fi
21157
21158
21159 # LaTeX generation for PS and/or PDF:
21160 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
21161 DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
21162 GENERATE_LATEX=YES
21163
21164 else
21165 DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
21166 GENERATE_LATEX=NO
21167
21168 fi
21169
21170 # Paper size for PS and/or PDF:
21171
21172 case "$DOXYGEN_PAPER_SIZE" in
21173 #(
21174 "")
21175 DOXYGEN_PAPER_SIZE=""
21176
21177 ;; #(
21178 a4wide|a4|letter|legal|executive)
21179 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
21180 PAPER_SIZE=$DOXYGEN_PAPER_SIZE
21181
21182 ;; #(
21183 *)
21184 as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5
21185 ;;
21186 esac
21187
21188 # Rules:
21189 if test $DX_FLAG_html -eq 1
21190 then :
21191 DX_SNIPPET_html="## ------------------------------- ##
21192 ## Rules specific for HTML output. ##
21193 ## ------------------------------- ##
21194
21195 DX_CLEAN_HTML = \$(DX_DOCDIR)/html\\
21196 \$(DX_DOCDIR)/html
21197
21198 "
21199 else case e in #(
21200 e) DX_SNIPPET_html="" ;;
21201 esac
21202 fi
21203 if test $DX_FLAG_chi -eq 1
21204 then :
21205 DX_SNIPPET_chi="
21206 DX_CLEAN_CHI = \$(DX_DOCDIR)/\$(PACKAGE).chi\\
21207 \$(DX_DOCDIR)/\$(PACKAGE).chi"
21208 else case e in #(
21209 e) DX_SNIPPET_chi="" ;;
21210 esac
21211 fi
21212 if test $DX_FLAG_chm -eq 1
21213 then :
21214 DX_SNIPPET_chm="## ------------------------------ ##
21215 ## Rules specific for CHM output. ##
21216 ## ------------------------------ ##
21217
21218 DX_CLEAN_CHM = \$(DX_DOCDIR)/chm\\
21219 \$(DX_DOCDIR)/chm\
21220 ${DX_SNIPPET_chi}
21221
21222 "
21223 else case e in #(
21224 e) DX_SNIPPET_chm="" ;;
21225 esac
21226 fi
21227 if test $DX_FLAG_man -eq 1
21228 then :
21229 DX_SNIPPET_man="## ------------------------------ ##
21230 ## Rules specific for MAN output. ##
21231 ## ------------------------------ ##
21232
21233 DX_CLEAN_MAN = \$(DX_DOCDIR)/man\\
21234 \$(DX_DOCDIR)/man
21235
21236 "
21237 else case e in #(
21238 e) DX_SNIPPET_man="" ;;
21239 esac
21240 fi
21241 if test $DX_FLAG_rtf -eq 1
21242 then :
21243 DX_SNIPPET_rtf="## ------------------------------ ##
21244 ## Rules specific for RTF output. ##
21245 ## ------------------------------ ##
21246
21247 DX_CLEAN_RTF = \$(DX_DOCDIR)/rtf\\
21248 \$(DX_DOCDIR)/rtf
21249
21250 "
21251 else case e in #(
21252 e) DX_SNIPPET_rtf="" ;;
21253 esac
21254 fi
21255 if test $DX_FLAG_xml -eq 1
21256 then :
21257 DX_SNIPPET_xml="## ------------------------------ ##
21258 ## Rules specific for XML output. ##
21259 ## ------------------------------ ##
21260
21261 DX_CLEAN_XML = \$(DX_DOCDIR)/xml\\
21262 \$(DX_DOCDIR)/xml
21263
21264 "
21265 else case e in #(
21266 e) DX_SNIPPET_xml="" ;;
21267 esac
21268 fi
21269 if test $DX_FLAG_ps -eq 1
21270 then :
21271 DX_SNIPPET_ps="## ----------------------------- ##
21272 ## Rules specific for PS output. ##
21273 ## ----------------------------- ##
21274
21275 DX_CLEAN_PS = \$(DX_DOCDIR)/\$(PACKAGE).ps\\
21276 \$(DX_DOCDIR)/\$(PACKAGE).ps
21277
21278 DX_PS_GOAL = doxygen-ps
21279
21280 doxygen-ps: \$(DX_CLEAN_PS)
21281
21282 \$(DX_DOCDIR)/\$(PACKAGE).ps: \$(DX_DOCDIR)/\$(PACKAGE).tag
21283 \$(DX_V_LATEX)cd \$(DX_DOCDIR)/latex; \\
21284 rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \\
21285 \$(DX_LATEX) refman.tex; \\
21286 \$(DX_MAKEINDEX) refman.idx; \\
21287 \$(DX_LATEX) refman.tex; \\
21288 countdown=5; \\
21289 while \$(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \\
21290 refman.log > /dev/null 2>&1 \\
21291 && test \$\$countdown -gt 0; do \\
21292 \$(DX_LATEX) refman.tex; \\
21293 countdown=\`expr \$\$countdown - 1\`; \\
21294 done; \\
21295 \$(DX_DVIPS) -o ../\$(PACKAGE).ps refman.dvi
21296
21297 "
21298 else case e in #(
21299 e) DX_SNIPPET_ps="" ;;
21300 esac
21301 fi
21302 if test $DX_FLAG_pdf -eq 1
21303 then :
21304 DX_SNIPPET_pdf="## ------------------------------ ##
21305 ## Rules specific for PDF output. ##
21306 ## ------------------------------ ##
21307
21308 DX_CLEAN_PDF = \$(DX_DOCDIR)/\$(PACKAGE).pdf\\
21309 \$(DX_DOCDIR)/\$(PACKAGE).pdf
21310
21311 DX_PDF_GOAL = doxygen-pdf
21312
21313 doxygen-pdf: \$(DX_CLEAN_PDF)
21314
21315 \$(DX_DOCDIR)/\$(PACKAGE).pdf: \$(DX_DOCDIR)/\$(PACKAGE).tag
21316 \$(DX_V_LATEX)cd \$(DX_DOCDIR)/latex; \\
21317 rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \\
21318 \$(DX_PDFLATEX) refman.tex; \\
21319 \$(DX_MAKEINDEX) refman.idx; \\
21320 \$(DX_PDFLATEX) refman.tex; \\
21321 countdown=5; \\
21322 while \$(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \\
21323 refman.log > /dev/null 2>&1 \\
21324 && test \$\$countdown -gt 0; do \\
21325 \$(DX_PDFLATEX) refman.tex; \\
21326 countdown=\`expr \$\$countdown - 1\`; \\
21327 done; \\
21328 mv refman.pdf ../\$(PACKAGE).pdf
21329
21330 "
21331 else case e in #(
21332 e) DX_SNIPPET_pdf="" ;;
21333 esac
21334 fi
21335 if test $DX_FLAG_ps -eq 1 -o $DX_FLAG_pdf -eq 1
21336 then :
21337 DX_SNIPPET_latex="## ------------------------------------------------- ##
21338 ## Rules specific for LaTeX (shared for PS and PDF). ##
21339 ## ------------------------------------------------- ##
21340
21341 DX_V_LATEX = \$(_DX_v_LATEX_\$(V))
21342 _DX_v_LATEX_ = \$(_DX_v_LATEX_\$(AM_DEFAULT_VERBOSITY))
21343 _DX_v_LATEX_0 = @echo \" LATEX \" \$@;
21344
21345 DX_CLEAN_LATEX = \$(DX_DOCDIR)/latex\\
21346 \$(DX_DOCDIR)/latex
21347
21348 "
21349 else case e in #(
21350 e) DX_SNIPPET_latex="" ;;
21351 esac
21352 fi
21353
21354 if test $DX_FLAG_doc -eq 1
21355 then :
21356 DX_SNIPPET_doc="## --------------------------------- ##
21357 ## Format-independent Doxygen rules. ##
21358 ## --------------------------------- ##
21359
21360 ${DX_SNIPPET_html}\
21361 ${DX_SNIPPET_chm}\
21362 ${DX_SNIPPET_man}\
21363 ${DX_SNIPPET_rtf}\
21364 ${DX_SNIPPET_xml}\
21365 ${DX_SNIPPET_ps}\
21366 ${DX_SNIPPET_pdf}\
21367 ${DX_SNIPPET_latex}\
21368 DX_V_DXGEN = \$(_DX_v_DXGEN_\$(V))
21369 _DX_v_DXGEN_ = \$(_DX_v_DXGEN_\$(AM_DEFAULT_VERBOSITY))
21370 _DX_v_DXGEN_0 = @echo \" DXGEN \" \$<;
21371
21372 .PHONY: doxygen-run doxygen-doc \$(DX_PS_GOAL) \$(DX_PDF_GOAL)
21373
21374 .INTERMEDIATE: doxygen-run \$(DX_PS_GOAL) \$(DX_PDF_GOAL)
21375
21376 doxygen-run: \$(DX_DOCDIR)/\$(PACKAGE).tag
21377
21378 doxygen-doc: doxygen-run \$(DX_PS_GOAL) \$(DX_PDF_GOAL)
21379
21380 \$(DX_DOCDIR)/\$(PACKAGE).tag: \$(DX_CONFIG) \$(pkginclude_HEADERS)
21381 \$(A""M_V_at)rm -rf \$(DX_DOCDIR)
21382 \$(DX_V_DXGEN)\$(DX_ENV) DOCDIR=\$(DX_DOCDIR) \$(DX_DOXYGEN) \$(DX_CONFIG)
21383 \$(A""M_V_at)echo Timestamp >\$@
21384
21385 DX_CLEANFILES = \\
21386 \$(DX_DOCDIR)/doxygen_sqlite3.db \\
21387 \$(DX_DOCDIR)/\$(PACKAGE).tag \\
21388 -r \\
21389 \$(DX_CLEAN_HTML) \\
21390 \$(DX_CLEAN_CHM) \\
21391 \$(DX_CLEAN_CHI) \\
21392 \$(DX_CLEAN_MAN) \\
21393 \$(DX_CLEAN_RTF) \\
21394 \$(DX_CLEAN_XML) \\
21395 \$(DX_CLEAN_PS) \\
21396 \$(DX_CLEAN_PDF) \\
21397 \$(DX_CLEAN_LATEX)
21398 DX_INSTALL_DOCS = \\
21399 \$(DX_CLEAN_HTML) \\
21400 \$(DX_CLEAN_CHM) \\
21401 \$(DX_CLEAN_CHI) \\
21402 \$(DX_CLEAN_RTF) \\
21403 \$(DX_CLEAN_XML) \\
21404 \$(DX_CLEAN_PS) \\
21405 \$(DX_CLEAN_PDF) \\
21406 \$(DX_CLEAN_LATEX)
21407 "
21408 else case e in #(
21409 e) DX_SNIPPET_doc="" ;;
21410 esac
21411 fi
21412 DX_RULES="${DX_SNIPPET_doc}"
21413
21414
21415 #For debugging:
21416 #echo DX_FLAG_doc=$DX_FLAG_doc
21417 #echo DX_FLAG_dot=$DX_FLAG_dot
21418 #echo DX_FLAG_man=$DX_FLAG_man
21419 #echo DX_FLAG_html=$DX_FLAG_html
21420 #echo DX_FLAG_chm=$DX_FLAG_chm
21421 #echo DX_FLAG_chi=$DX_FLAG_chi
21422 #echo DX_FLAG_rtf=$DX_FLAG_rtf
21423 #echo DX_FLAG_xml=$DX_FLAG_xml
21424 #echo DX_FLAG_pdf=$DX_FLAG_pdf
21425 #echo DX_FLAG_ps=$DX_FLAG_ps
21426 #echo DX_ENV=$DX_ENV
21427
21428
21429 if test "$DX_FLAG_doc" = "1"; then
21430 ENABLE_DOXYGEN_TRUE=
21431 ENABLE_DOXYGEN_FALSE='#'
21432 else
21433 ENABLE_DOXYGEN_TRUE='#'
21434 ENABLE_DOXYGEN_FALSE=
21435 fi
21436
21437 if test "$DX_FLAG_man" = "1"; then
21438 ENABLE_DOXYGEN_MAN_TRUE=
21439 ENABLE_DOXYGEN_MAN_FALSE='#'
21440 else
21441 ENABLE_DOXYGEN_MAN_TRUE='#'
21442 ENABLE_DOXYGEN_MAN_FALSE=
21443 fi
21444
21445
21446 ac_config_files="$ac_config_files libevent.pc libevent_openssl.pc libevent_pthreads.pc libevent_core.pc libevent_extra.pc"
21447
21448 ac_config_files="$ac_config_files Makefile"
21449
21450 cat >confcache <<\_ACEOF
21451 # This file is a shell script that caches the results of configure
21452 # tests run on this system so they can be shared between configure
21453 # scripts and configure runs, see configure's option --config-cache.
21454 # It is not useful on other systems. If it contains results you don't
21455 # want to keep, you may remove or edit it.
21456 #
21457 # config.status only pays attention to the cache file if you give it
21458 # the --recheck option to rerun configure.
21459 #
21460 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
21461 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
21462 # following values.
21463
21464 _ACEOF
21465
21466 # The following way of writing the cache mishandles newlines in values,
21467 # but we know of no workaround that is simple, portable, and efficient.
21468 # So, we kill variables containing newlines.
21469 # Ultrix sh set writes to stderr and can't be redirected directly,
21470 # and sets the high bit in the cache file unless we assign to the vars.
21471 (
21472 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21473 eval ac_val=\$$ac_var
21474 case $ac_val in #(
21475 *${as_nl}*)
21476 case $ac_var in #(
21477 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21478 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21479 esac
21480 case $ac_var in #(
21481 _ | IFS | as_nl) ;; #(
21482 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21483 *) { eval $ac_var=; unset $ac_var;} ;;
21484 esac ;;
21485 esac
21486 done
21487
21488 (set) 2>&1 |
21489 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21490 *${as_nl}ac_space=\ *)
21491 # 'set' does not quote correctly, so add quotes: double-quote
21492 # substitution turns \\\\ into \\, and sed turns \\ into \.
21493 sed -n \
21494 "s/'/'\\\\''/g;
21495 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21496 ;; #(
21497 *)
21498 # 'set' quotes correctly as required by POSIX, so do not add quotes.
21499 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21500 ;;
21501 esac |
21502 sort
21503 ) |
21504 sed '
21505 /^ac_cv_env_/b end
21506 t clear
21507 :clear
21508 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21509 t end
21510 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21511 :end' >>confcache
21512 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21513 if test -w "$cache_file"; then
21514 if test "x$cache_file" != "x/dev/null"; then
21515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21516 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21517 if test ! -f "$cache_file" || test -h "$cache_file"; then
21518 cat confcache >"$cache_file"
21519 else
21520 case $cache_file in #(
21521 */* | ?:*)
21522 mv -f confcache "$cache_file"$$ &&
21523 mv -f "$cache_file"$$ "$cache_file" ;; #(
21524 *)
21525 mv -f confcache "$cache_file" ;;
21526 esac
21527 fi
21528 fi
21529 else
21530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21531 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21532 fi
21533 fi
21534 rm -f confcache
21535
21536 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21537 # Let make expand exec_prefix.
21538 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21539
21540 DEFS=-DHAVE_CONFIG_H
21541
21542 ac_libobjs=
21543 ac_ltlibobjs=
21544 U=
21545 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21546 # 1. Remove the extension, and $U if already installed.
21547 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21548 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21549 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21550 # will be set to the directory where LIBOBJS objects are built.
21551 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21552 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21553 done
21554 LIBOBJS=$ac_libobjs
21555
21556 LTLIBOBJS=$ac_ltlibobjs
21557
21558
21559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21560 printf %s "checking that generated files are newer than configure... " >&6; }
21561 if test -n "$am_sleep_pid"; then
21562 # Hide warnings about reused PIDs.
21563 wait $am_sleep_pid 2>/dev/null
21564 fi
21565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21566 printf "%s\n" "done" >&6; }
21567 case $enable_silent_rules in # (((
21568 yes) AM_DEFAULT_VERBOSITY=0;;
21569 no) AM_DEFAULT_VERBOSITY=1;;
21570 esac
21571 if test $am_cv_make_support_nested_variables = yes; then
21572 AM_V='$(V)'
21573 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
21574 else
21575 AM_V=$AM_DEFAULT_VERBOSITY
21576 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
21577 fi
21578
21579 if test -n "$EXEEXT"; then
21580 am__EXEEXT_TRUE=
21581 am__EXEEXT_FALSE='#'
21582 else
21583 am__EXEEXT_TRUE='#'
21584 am__EXEEXT_FALSE=
21585 fi
21586
21587 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21588 as_fn_error $? "conditional \"AMDEP\" was never defined.
21589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21590 fi
21591 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21592 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21594 fi
21595 if test -z "${BUILD_SAMPLES_TRUE}" && test -z "${BUILD_SAMPLES_FALSE}"; then
21596 as_fn_error $? "conditional \"BUILD_SAMPLES\" was never defined.
21597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21598 fi
21599 if test -z "${BUILD_REGRESS_TRUE}" && test -z "${BUILD_REGRESS_FALSE}"; then
21600 as_fn_error $? "conditional \"BUILD_REGRESS\" was never defined.
21601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21602 fi
21603 if test -z "${ZLIB_REGRESS_TRUE}" && test -z "${ZLIB_REGRESS_FALSE}"; then
21604 as_fn_error $? "conditional \"ZLIB_REGRESS\" was never defined.
21605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21606 fi
21607 # Check whether --enable-year2038 was given.
21608 if test ${enable_year2038+y}
21609 then :
21610 enableval=$enable_year2038;
21611 fi
21612
21613 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
21614 as_fn_error $? "conditional \"OPENSSL\" was never defined.
21615 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21616 fi
21617 if test -z "${BUILD_WIN32_TRUE}" && test -z "${BUILD_WIN32_FALSE}"; then
21618 as_fn_error $? "conditional \"BUILD_WIN32\" was never defined.
21619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21620 fi
21621 if test -z "${BUILD_CYGWIN_TRUE}" && test -z "${BUILD_CYGWIN_FALSE}"; then
21622 as_fn_error $? "conditional \"BUILD_CYGWIN\" was never defined.
21623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21624 fi
21625 if test -z "${BUILD_MIDIPIX_TRUE}" && test -z "${BUILD_MIDIPIX_FALSE}"; then
21626 as_fn_error $? "conditional \"BUILD_MIDIPIX\" was never defined.
21627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21628 fi
21629 if test -z "${BUILD_WITH_NO_UNDEFINED_TRUE}" && test -z "${BUILD_WITH_NO_UNDEFINED_FALSE}"; then
21630 as_fn_error $? "conditional \"BUILD_WITH_NO_UNDEFINED\" was never defined.
21631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21632 fi
21633 if test -z "${STRLCPY_IMPL_TRUE}" && test -z "${STRLCPY_IMPL_FALSE}"; then
21634 as_fn_error $? "conditional \"STRLCPY_IMPL\" was never defined.
21635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21636 fi
21637 if test -z "${SELECT_BACKEND_TRUE}" && test -z "${SELECT_BACKEND_FALSE}"; then
21638 as_fn_error $? "conditional \"SELECT_BACKEND\" was never defined.
21639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21640 fi
21641 if test -z "${POLL_BACKEND_TRUE}" && test -z "${POLL_BACKEND_FALSE}"; then
21642 as_fn_error $? "conditional \"POLL_BACKEND\" was never defined.
21643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21644 fi
21645 if test -z "${DEVPOLL_BACKEND_TRUE}" && test -z "${DEVPOLL_BACKEND_FALSE}"; then
21646 as_fn_error $? "conditional \"DEVPOLL_BACKEND\" was never defined.
21647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21648 fi
21649 if test -z "${KQUEUE_BACKEND_TRUE}" && test -z "${KQUEUE_BACKEND_FALSE}"; then
21650 as_fn_error $? "conditional \"KQUEUE_BACKEND\" was never defined.
21651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21652 fi
21653 if test -z "${EPOLL_BACKEND_TRUE}" && test -z "${EPOLL_BACKEND_FALSE}"; then
21654 as_fn_error $? "conditional \"EPOLL_BACKEND\" was never defined.
21655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21656 fi
21657 if test -z "${EVPORT_BACKEND_TRUE}" && test -z "${EVPORT_BACKEND_FALSE}"; then
21658 as_fn_error $? "conditional \"EVPORT_BACKEND\" was never defined.
21659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21660 fi
21661 if test -z "${SIGNAL_SUPPORT_TRUE}" && test -z "${SIGNAL_SUPPORT_FALSE}"; then
21662 as_fn_error $? "conditional \"SIGNAL_SUPPORT\" was never defined.
21663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21664 fi
21665 if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
21666 as_fn_error $? "conditional \"THREADS\" was never defined.
21667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21668 fi
21669 if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then
21670 as_fn_error $? "conditional \"PTHREADS\" was never defined.
21671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21672 fi
21673 if test -z "${OPENSSL_TRUE}" && test -z "${OPENSSL_FALSE}"; then
21674 as_fn_error $? "conditional \"OPENSSL\" was never defined.
21675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21676 fi
21677 if test -z "${INSTALL_LIBEVENT_TRUE}" && test -z "${INSTALL_LIBEVENT_FALSE}"; then
21678 as_fn_error $? "conditional \"INSTALL_LIBEVENT\" was never defined.
21679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21680 fi
21681 if test -z "${ENABLE_DOXYGEN_TRUE}" && test -z "${ENABLE_DOXYGEN_FALSE}"; then
21682 as_fn_error $? "conditional \"ENABLE_DOXYGEN\" was never defined.
21683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21684 fi
21685 if test -z "${ENABLE_DOXYGEN_MAN_TRUE}" && test -z "${ENABLE_DOXYGEN_MAN_FALSE}"; then
21686 as_fn_error $? "conditional \"ENABLE_DOXYGEN_MAN\" was never defined.
21687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21688 fi
21689
21690 : "${CONFIG_STATUS=./config.status}"
21691 ac_write_fail=0
21692 ac_clean_files_save=$ac_clean_files
21693 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21695 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21696 as_write_fail=0
21697 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21698 #! $SHELL
21699 # Generated by $as_me.
21700 # Run this file to recreate the current configuration.
21701 # Compiler output produced by configure, useful for debugging
21702 # configure, is in config.log if it exists.
21703
21704 debug=false
21705 ac_cs_recheck=false
21706 ac_cs_silent=false
21707
21708 SHELL=\${CONFIG_SHELL-$SHELL}
21709 export SHELL
21710 _ASEOF
21711 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21712 ## -------------------- ##
21713 ## M4sh Initialization. ##
21714 ## -------------------- ##
21715
21716 # Be more Bourne compatible
21717 DUALCASE=1; export DUALCASE # for MKS sh
21718 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21719 then :
21720 emulate sh
21721 NULLCMD=:
21722 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21723 # is contrary to our usage. Disable this feature.
21724 alias -g '${1+"$@"}'='"$@"'
21725 setopt NO_GLOB_SUBST
21726 else case e in #(
21727 e) case `(set -o) 2>/dev/null` in #(
21728 *posix*) :
21729 set -o posix ;; #(
21730 *) :
21731 ;;
21732 esac ;;
21733 esac
21734 fi
21735
21736
21737
21738 # Reset variables that may have inherited troublesome values from
21739 # the environment.
21740
21741 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21742 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21743 # side effect of setting IFS to empty, thus disabling word splitting.)
21744 # Quoting is to prevent editors from complaining about space-tab.
21745 as_nl='
21746 '
21747 export as_nl
21748 IFS=" "" $as_nl"
21749
21750 PS1='$ '
21751 PS2='> '
21752 PS4='+ '
21753
21754 # Ensure predictable behavior from utilities with locale-dependent output.
21755 LC_ALL=C
21756 export LC_ALL
21757 LANGUAGE=C
21758 export LANGUAGE
21759
21760 # We cannot yet rely on "unset" to work, but we need these variables
21761 # to be unset--not just set to an empty or harmless value--now, to
21762 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21763 # also avoids known problems related to "unset" and subshell syntax
21764 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21765 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21766 do eval test \${$as_var+y} \
21767 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21768 done
21769
21770 # Ensure that fds 0, 1, and 2 are open.
21771 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21772 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21773 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21774
21775 # The user is always right.
21776 if ${PATH_SEPARATOR+false} :; then
21777 PATH_SEPARATOR=:
21778 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21779 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21780 PATH_SEPARATOR=';'
21781 }
21782 fi
21783
21784
21785 # Find who we are. Look in the path if we contain no directory separator.
21786 as_myself=
21787 case $0 in #((
21788 *[\\/]* ) as_myself=$0 ;;
21789 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21790 for as_dir in $PATH
21791 do
21792 IFS=$as_save_IFS
21793 case $as_dir in #(((
21794 '') as_dir=./ ;;
21795 */) ;;
21796 *) as_dir=$as_dir/ ;;
21797 esac
21798 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21799 done
21800 IFS=$as_save_IFS
21801
21802 ;;
21803 esac
21804 # We did not find ourselves, most probably we were run as 'sh COMMAND'
21805 # in which case we are not to be found in the path.
21806 if test "x$as_myself" = x; then
21807 as_myself=$0
21808 fi
21809 if test ! -f "$as_myself"; then
21810 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21811 exit 1
21812 fi
21813
21814
21815
21816 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21817 # ----------------------------------------
21818 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21819 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21820 # script with STATUS, using 1 if that was 0.
21821 as_fn_error ()
21822 {
21823 as_status=$1; test $as_status -eq 0 && as_status=1
21824 if test "$4"; then
21825 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21827 fi
21828 printf "%s\n" "$as_me: error: $2" >&2
21829 as_fn_exit $as_status
21830 } # as_fn_error
21831
21832
21833 # as_fn_set_status STATUS
21834 # -----------------------
21835 # Set $? to STATUS, without forking.
21836 as_fn_set_status ()
21837 {
21838 return $1
21839 } # as_fn_set_status
21840
21841 # as_fn_exit STATUS
21842 # -----------------
21843 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21844 as_fn_exit ()
21845 {
21846 set +e
21847 as_fn_set_status $1
21848 exit $1
21849 } # as_fn_exit
21850
21851 # as_fn_unset VAR
21852 # ---------------
21853 # Portably unset VAR.
21854 as_fn_unset ()
21855 {
21856 { eval $1=; unset $1;}
21857 }
21858 as_unset=as_fn_unset
21859
21860 # as_fn_append VAR VALUE
21861 # ----------------------
21862 # Append the text in VALUE to the end of the definition contained in VAR. Take
21863 # advantage of any shell optimizations that allow amortized linear growth over
21864 # repeated appends, instead of the typical quadratic growth present in naive
21865 # implementations.
21866 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21867 then :
21868 eval 'as_fn_append ()
21869 {
21870 eval $1+=\$2
21871 }'
21872 else case e in #(
21873 e) as_fn_append ()
21874 {
21875 eval $1=\$$1\$2
21876 } ;;
21877 esac
21878 fi # as_fn_append
21879
21880 # as_fn_arith ARG...
21881 # ------------------
21882 # Perform arithmetic evaluation on the ARGs, and store the result in the
21883 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21884 # must be portable across $(()) and expr.
21885 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21886 then :
21887 eval 'as_fn_arith ()
21888 {
21889 as_val=$(( $* ))
21890 }'
21891 else case e in #(
21892 e) as_fn_arith ()
21893 {
21894 as_val=`expr "$@" || test $? -eq 1`
21895 } ;;
21896 esac
21897 fi # as_fn_arith
21898
21899
21900 if expr a : '\(a\)' >/dev/null 2>&1 &&
21901 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21902 as_expr=expr
21903 else
21904 as_expr=false
21905 fi
21906
21907 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21908 as_basename=basename
21909 else
21910 as_basename=false
21911 fi
21912
21913 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21914 as_dirname=dirname
21915 else
21916 as_dirname=false
21917 fi
21918
21919 as_me=`$as_basename -- "$0" ||
21920 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21921 X"$0" : 'X\(//\)$' \| \
21922 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21923 printf "%s\n" X/"$0" |
21924 sed '/^.*\/\([^/][^/]*\)\/*$/{
21925 s//\1/
21926 q
21927 }
21928 /^X\/\(\/\/\)$/{
21929 s//\1/
21930 q
21931 }
21932 /^X\/\(\/\).*/{
21933 s//\1/
21934 q
21935 }
21936 s/.*/./; q'`
21937
21938 # Avoid depending upon Character Ranges.
21939 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21940 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21941 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21942 as_cr_digits='0123456789'
21943 as_cr_alnum=$as_cr_Letters$as_cr_digits
21944
21945
21946 # Determine whether it's possible to make 'echo' print without a newline.
21947 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21948 # for compatibility with existing Makefiles.
21949 ECHO_C= ECHO_N= ECHO_T=
21950 case `echo -n x` in #(((((
21951 -n*)
21952 case `echo 'xy\c'` in
21953 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21954 xy) ECHO_C='\c';;
21955 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21956 ECHO_T=' ';;
21957 esac;;
21958 *)
21959 ECHO_N='-n';;
21960 esac
21961
21962 # For backward compatibility with old third-party macros, we provide
21963 # the shell variables $as_echo and $as_echo_n. New code should use
21964 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21965 as_echo='printf %s\n'
21966 as_echo_n='printf %s'
21967
21968 rm -f conf$$ conf$$.exe conf$$.file
21969 if test -d conf$$.dir; then
21970 rm -f conf$$.dir/conf$$.file
21971 else
21972 rm -f conf$$.dir
21973 mkdir conf$$.dir 2>/dev/null
21974 fi
21975 if (echo >conf$$.file) 2>/dev/null; then
21976 if ln -s conf$$.file conf$$ 2>/dev/null; then
21977 as_ln_s='ln -s'
21978 # ... but there are two gotchas:
21979 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21980 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21981 # In both cases, we have to default to 'cp -pR'.
21982 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21983 as_ln_s='cp -pR'
21984 elif ln conf$$.file conf$$ 2>/dev/null; then
21985 as_ln_s=ln
21986 else
21987 as_ln_s='cp -pR'
21988 fi
21989 else
21990 as_ln_s='cp -pR'
21991 fi
21992 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21993 rmdir conf$$.dir 2>/dev/null
21994
21995
21996 # as_fn_mkdir_p
21997 # -------------
21998 # Create "$as_dir" as a directory, including parents if necessary.
21999 as_fn_mkdir_p ()
22000 {
22001
22002 case $as_dir in #(
22003 -*) as_dir=./$as_dir;;
22004 esac
22005 test -d "$as_dir" || eval $as_mkdir_p || {
22006 as_dirs=
22007 while :; do
22008 case $as_dir in #(
22009 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22010 *) as_qdir=$as_dir;;
22011 esac
22012 as_dirs="'$as_qdir' $as_dirs"
22013 as_dir=`$as_dirname -- "$as_dir" ||
22014 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22015 X"$as_dir" : 'X\(//\)[^/]' \| \
22016 X"$as_dir" : 'X\(//\)$' \| \
22017 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22018 printf "%s\n" X"$as_dir" |
22019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22020 s//\1/
22021 q
22022 }
22023 /^X\(\/\/\)[^/].*/{
22024 s//\1/
22025 q
22026 }
22027 /^X\(\/\/\)$/{
22028 s//\1/
22029 q
22030 }
22031 /^X\(\/\).*/{
22032 s//\1/
22033 q
22034 }
22035 s/.*/./; q'`
22036 test -d "$as_dir" && break
22037 done
22038 test -z "$as_dirs" || eval "mkdir $as_dirs"
22039 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22040
22041
22042 } # as_fn_mkdir_p
22043 if mkdir -p . 2>/dev/null; then
22044 as_mkdir_p='mkdir -p "$as_dir"'
22045 else
22046 test -d ./-p && rmdir ./-p
22047 as_mkdir_p=false
22048 fi
22049
22050
22051 # as_fn_executable_p FILE
22052 # -----------------------
22053 # Test if FILE is an executable regular file.
22054 as_fn_executable_p ()
22055 {
22056 test -f "$1" && test -x "$1"
22057 } # as_fn_executable_p
22058 as_test_x='test -x'
22059 as_executable_p=as_fn_executable_p
22060
22061 # Sed expression to map a string onto a valid CPP name.
22062 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
22063 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
22064
22065 # Sed expression to map a string onto a valid variable name.
22066 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
22067 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
22068
22069
22070 exec 6>&1
22071 ## ----------------------------------- ##
22072 ## Main body of $CONFIG_STATUS script. ##
22073 ## ----------------------------------- ##
22074 _ASEOF
22075 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22076
22077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22078 # Save the log message, to keep $0 and so on meaningful, and to
22079 # report actual input values of CONFIG_FILES etc. instead of their
22080 # values after options handling.
22081 ac_log="
22082 This file was extended by libevent $as_me 2.1.13-stable, which was
22083 generated by GNU Autoconf 2.72. Invocation command line was
22084
22085 CONFIG_FILES = $CONFIG_FILES
22086 CONFIG_HEADERS = $CONFIG_HEADERS
22087 CONFIG_LINKS = $CONFIG_LINKS
22088 CONFIG_COMMANDS = $CONFIG_COMMANDS
22089 $ $0 $@
22090
22091 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22092 "
22093
22094 _ACEOF
22095
22096 case $ac_config_files in *"
22097 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22098 esac
22099
22100 case $ac_config_headers in *"
22101 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22102 esac
22103
22104
22105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22106 # Files that config.status was made for.
22107 config_files="$ac_config_files"
22108 config_headers="$ac_config_headers"
22109 config_commands="$ac_config_commands"
22110
22111 _ACEOF
22112
22113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22114 ac_cs_usage="\
22115 '$as_me' instantiates files and other configuration actions
22116 from templates according to the current configuration. Unless the files
22117 and actions are specified as TAGs, all are instantiated by default.
22118
22119 Usage: $0 [OPTION]... [TAG]...
22120
22121 -h, --help print this help, then exit
22122 -V, --version print version number and configuration settings, then exit
22123 --config print configuration, then exit
22124 -q, --quiet, --silent
22125 do not print progress messages
22126 -d, --debug don't remove temporary files
22127 --recheck update $as_me by reconfiguring in the same conditions
22128 --file=FILE[:TEMPLATE]
22129 instantiate the configuration file FILE
22130 --header=FILE[:TEMPLATE]
22131 instantiate the configuration header FILE
22132
22133 Configuration files:
22134 $config_files
22135
22136 Configuration headers:
22137 $config_headers
22138
22139 Configuration commands:
22140 $config_commands
22141
22142 Report bugs to the package provider."
22143
22144 _ACEOF
22145 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
22146 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
22147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22148 ac_cs_config='$ac_cs_config_escaped'
22149 ac_cs_version="\\
22150 libevent config.status 2.1.13-stable
22151 configured by $0, generated by GNU Autoconf 2.72,
22152 with options \\"\$ac_cs_config\\"
22153
22154 Copyright (C) 2023 Free Software Foundation, Inc.
22155 This config.status script is free software; the Free Software Foundation
22156 gives unlimited permission to copy, distribute and modify it."
22157
22158 ac_pwd='$ac_pwd'
22159 srcdir='$srcdir'
22160 INSTALL='$INSTALL'
22161 MKDIR_P='$MKDIR_P'
22162 AWK='$AWK'
22163 test -n "\$AWK" || AWK=awk
22164 _ACEOF
22165
22166 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22167 # The default lists apply if the user does not specify any file.
22168 ac_need_defaults=:
22169 while test $# != 0
22170 do
22171 case $1 in
22172 --*=?*)
22173 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22174 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22175 ac_shift=:
22176 ;;
22177 --*=)
22178 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22179 ac_optarg=
22180 ac_shift=:
22181 ;;
22182 *)
22183 ac_option=$1
22184 ac_optarg=$2
22185 ac_shift=shift
22186 ;;
22187 esac
22188
22189 case $ac_option in
22190 # Handling of the options.
22191 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22192 ac_cs_recheck=: ;;
22193 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22194 printf "%s\n" "$ac_cs_version"; exit ;;
22195 --config | --confi | --conf | --con | --co | --c )
22196 printf "%s\n" "$ac_cs_config"; exit ;;
22197 --debug | --debu | --deb | --de | --d | -d )
22198 debug=: ;;
22199 --file | --fil | --fi | --f )
22200 $ac_shift
22201 case $ac_optarg in
22202 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22203 '') as_fn_error $? "missing file argument" ;;
22204 esac
22205 as_fn_append CONFIG_FILES " '$ac_optarg'"
22206 ac_need_defaults=false;;
22207 --header | --heade | --head | --hea )
22208 $ac_shift
22209 case $ac_optarg in
22210 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22211 esac
22212 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22213 ac_need_defaults=false;;
22214 --he | --h)
22215 # Conflict between --help and --header
22216 as_fn_error $? "ambiguous option: '$1'
22217 Try '$0 --help' for more information.";;
22218 --help | --hel | -h )
22219 printf "%s\n" "$ac_cs_usage"; exit ;;
22220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22221 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22222 ac_cs_silent=: ;;
22223
22224 # This is an error.
22225 -*) as_fn_error $? "unrecognized option: '$1'
22226 Try '$0 --help' for more information." ;;
22227
22228 *) as_fn_append ac_config_targets " $1"
22229 ac_need_defaults=false ;;
22230
22231 esac
22232 shift
22233 done
22234
22235 ac_configure_extra_args=
22236
22237 if $ac_cs_silent; then
22238 exec 6>/dev/null
22239 ac_configure_extra_args="$ac_configure_extra_args --silent"
22240 fi
22241
22242 _ACEOF
22243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22244 if \$ac_cs_recheck; then
22245 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22246 shift
22247 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
22248 CONFIG_SHELL='$SHELL'
22249 export CONFIG_SHELL
22250 exec "\$@"
22251 fi
22252
22253 _ACEOF
22254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22255 exec 5>>config.log
22256 {
22257 echo
22258 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22259 ## Running $as_me. ##
22260 _ASBOX
22261 printf "%s\n" "$ac_log"
22262 } >&5
22263
22264 _ACEOF
22265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22266 #
22267 # INIT-COMMANDS
22268 #
22269 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22270
22271
22272 # The HP-UX ksh and POSIX shell print the target directory to stdout
22273 # if CDPATH is set.
22274 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22275
22276 sed_quote_subst='$sed_quote_subst'
22277 double_quote_subst='$double_quote_subst'
22278 delay_variable_subst='$delay_variable_subst'
22279 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22280 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22281 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22282 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22283 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22284 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22285 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22286 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22287 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22288 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22289 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22290 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22291 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22292 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22293 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22294 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22295 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22296 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22297 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22298 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22299 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22300 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22301 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22302 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22303 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22304 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22305 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22306 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22307 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22308 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22309 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22310 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22311 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22312 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22313 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
22314 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22315 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22316 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22317 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22318 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22319 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22320 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22321 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22322 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
22323 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22324 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22325 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22326 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22327 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22328 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22329 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22330 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22331 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22332 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22333 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22334 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22335 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22336 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22337 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22338 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22339 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"`'
22340 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22341 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22342 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22343 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22344 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22345 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22346 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22347 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22348 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22349 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22350 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22351 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22352 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22353 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22354 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22355 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22356 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22357 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22358 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22359 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22360 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22361 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22362 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22363 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22364 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22365 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22366 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22367 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22368 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22369 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22370 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22371 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22372 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22373 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22374 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22375 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22376 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22377 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22378 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22379 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22380 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22381 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22382 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22383 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22384 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22385 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22386 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22387 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22388 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22389 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22390 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22391 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22392 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22393 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22394 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22395 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22396 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22397 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22398 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22399 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22400 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22401 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22402 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22403 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22404 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22405 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22406 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22407 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22408 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22409 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22410 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22411 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22412 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22413 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22414 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22415 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22416
22417 LTCC='$LTCC'
22418 LTCFLAGS='$LTCFLAGS'
22419 compiler='$compiler_DEFAULT'
22420
22421 # A function that is used when there is no print builtin or printf.
22422 func_fallback_echo ()
22423 {
22424 eval 'cat <<_LTECHO_EOF
22425 \$1
22426 _LTECHO_EOF'
22427 }
22428
22429 # Quote evaled strings.
22430 for var in SHELL \
22431 ECHO \
22432 PATH_SEPARATOR \
22433 SED \
22434 GREP \
22435 EGREP \
22436 FGREP \
22437 LD \
22438 NM \
22439 LN_S \
22440 lt_SP2NL \
22441 lt_NL2SP \
22442 reload_flag \
22443 FILECMD \
22444 OBJDUMP \
22445 deplibs_check_method \
22446 file_magic_cmd \
22447 file_magic_glob \
22448 want_nocaseglob \
22449 DLLTOOL \
22450 sharedlib_from_linklib_cmd \
22451 AR \
22452 archiver_list_spec \
22453 STRIP \
22454 RANLIB \
22455 CC \
22456 CFLAGS \
22457 compiler \
22458 lt_cv_sys_global_symbol_pipe \
22459 lt_cv_sys_global_symbol_to_cdecl \
22460 lt_cv_sys_global_symbol_to_import \
22461 lt_cv_sys_global_symbol_to_c_name_address \
22462 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22463 lt_cv_nm_interface \
22464 nm_file_list_spec \
22465 lt_cv_truncate_bin \
22466 lt_prog_compiler_no_builtin_flag \
22467 lt_prog_compiler_pic \
22468 lt_prog_compiler_wl \
22469 lt_prog_compiler_static \
22470 lt_cv_prog_compiler_c_o \
22471 need_locks \
22472 MANIFEST_TOOL \
22473 DSYMUTIL \
22474 NMEDIT \
22475 LIPO \
22476 OTOOL \
22477 OTOOL64 \
22478 shrext_cmds \
22479 export_dynamic_flag_spec \
22480 whole_archive_flag_spec \
22481 compiler_needs_object \
22482 with_gnu_ld \
22483 allow_undefined_flag \
22484 no_undefined_flag \
22485 hardcode_libdir_flag_spec \
22486 hardcode_libdir_separator \
22487 exclude_expsyms \
22488 include_expsyms \
22489 file_list_spec \
22490 variables_saved_for_relink \
22491 libname_spec \
22492 library_names_spec \
22493 soname_spec \
22494 install_override_mode \
22495 finish_eval \
22496 old_striplib \
22497 striplib; do
22498 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22499 *[\\\\\\\`\\"\\\$]*)
22500 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22501 ;;
22502 *)
22503 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22504 ;;
22505 esac
22506 done
22507
22508 # Double-quote double-evaled strings.
22509 for var in reload_cmds \
22510 old_postinstall_cmds \
22511 old_postuninstall_cmds \
22512 old_archive_cmds \
22513 extract_expsyms_cmds \
22514 old_archive_from_new_cmds \
22515 old_archive_from_expsyms_cmds \
22516 archive_cmds \
22517 archive_expsym_cmds \
22518 module_cmds \
22519 module_expsym_cmds \
22520 export_symbols_cmds \
22521 prelink_cmds \
22522 postlink_cmds \
22523 postinstall_cmds \
22524 postuninstall_cmds \
22525 finish_cmds \
22526 sys_lib_search_path_spec \
22527 configure_time_dlsearch_path \
22528 configure_time_lt_sys_library_path; do
22529 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22530 *[\\\\\\\`\\"\\\$]*)
22531 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22532 ;;
22533 *)
22534 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22535 ;;
22536 esac
22537 done
22538
22539 ac_aux_dir='$ac_aux_dir'
22540
22541 # See if we are running on zsh, and set the options that allow our
22542 # commands through without removal of \ escapes INIT.
22543 if test -n "\${ZSH_VERSION+set}"; then
22544 setopt NO_GLOB_SUBST
22545 fi
22546
22547
22548 PACKAGE='$PACKAGE'
22549 VERSION='$VERSION'
22550 RM='$RM'
22551 ofile='$ofile'
22552
22553
22554
22555
22556 _ACEOF
22557
22558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22559
22560 # Handling of arguments.
22561 for ac_config_target in $ac_config_targets
22562 do
22563 case $ac_config_target in
22564 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22565 "evconfig-private.h") CONFIG_HEADERS="$CONFIG_HEADERS evconfig-private.h:evconfig-private.h.in" ;;
22566 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22567 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22568 "libevent.pc") CONFIG_FILES="$CONFIG_FILES libevent.pc" ;;
22569 "libevent_openssl.pc") CONFIG_FILES="$CONFIG_FILES libevent_openssl.pc" ;;
22570 "libevent_pthreads.pc") CONFIG_FILES="$CONFIG_FILES libevent_pthreads.pc" ;;
22571 "libevent_core.pc") CONFIG_FILES="$CONFIG_FILES libevent_core.pc" ;;
22572 "libevent_extra.pc") CONFIG_FILES="$CONFIG_FILES libevent_extra.pc" ;;
22573 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22574
22575 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
22576 esac
22577 done
22578
22579
22580 # If the user did not use the arguments to specify the items to instantiate,
22581 # then the envvar interface is used. Set only those that are not.
22582 # We use the long form for the default assignment because of an extremely
22583 # bizarre bug on SunOS 4.1.3.
22584 if $ac_need_defaults; then
22585 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22586 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22587 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22588 fi
22589
22590 # Have a temporary directory for convenience. Make it in the build tree
22591 # simply because there is no reason against having it here, and in addition,
22592 # creating and moving files from /tmp can sometimes cause problems.
22593 # Hook for its removal unless debugging.
22594 # Note that there is a small window in which the directory will not be cleaned:
22595 # after its creation but before its name has been assigned to '$tmp'.
22596 $debug ||
22597 {
22598 tmp= ac_tmp=
22599 trap 'exit_status=$?
22600 : "${ac_tmp:=$tmp}"
22601 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22602 ' 0
22603 trap 'as_fn_exit 1' 1 2 13 15
22604 }
22605 # Create a (secure) tmp directory for tmp files.
22606
22607 {
22608 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22609 test -d "$tmp"
22610 } ||
22611 {
22612 tmp=./conf$$-$RANDOM
22613 (umask 077 && mkdir "$tmp")
22614 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22615 ac_tmp=$tmp
22616
22617 # Set up the scripts for CONFIG_FILES section.
22618 # No need to generate them if there are no CONFIG_FILES.
22619 # This happens for instance with './config.status config.h'.
22620 if test -n "$CONFIG_FILES"; then
22621
22622
22623 ac_cr=`echo X | tr X '\015'`
22624 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22625 # But we know of no other shell where ac_cr would be empty at this
22626 # point, so we can use a bashism as a fallback.
22627 if test "x$ac_cr" = x; then
22628 eval ac_cr=\$\'\\r\'
22629 fi
22630 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22631 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22632 ac_cs_awk_cr='\\r'
22633 else
22634 ac_cs_awk_cr=$ac_cr
22635 fi
22636
22637 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22638 _ACEOF
22639
22640
22641 {
22642 echo "cat >conf$$subs.awk <<_ACEOF" &&
22643 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22644 echo "_ACEOF"
22645 } >conf$$subs.sh ||
22646 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22647 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22648 ac_delim='%!_!# '
22649 for ac_last_try in false false false false false :; do
22650 . ./conf$$subs.sh ||
22651 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22652
22653 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22654 if test $ac_delim_n = $ac_delim_num; then
22655 break
22656 elif $ac_last_try; then
22657 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22658 else
22659 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22660 fi
22661 done
22662 rm -f conf$$subs.sh
22663
22664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22665 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22666 _ACEOF
22667 sed -n '
22668 h
22669 s/^/S["/; s/!.*/"]=/
22670 p
22671 g
22672 s/^[^!]*!//
22673 :repl
22674 t repl
22675 s/'"$ac_delim"'$//
22676 t delim
22677 :nl
22678 h
22679 s/\(.\{148\}\)..*/\1/
22680 t more1
22681 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22682 p
22683 n
22684 b repl
22685 :more1
22686 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22687 p
22688 g
22689 s/.\{148\}//
22690 t nl
22691 :delim
22692 h
22693 s/\(.\{148\}\)..*/\1/
22694 t more2
22695 s/["\\]/\\&/g; s/^/"/; s/$/"/
22696 p
22697 b
22698 :more2
22699 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22700 p
22701 g
22702 s/.\{148\}//
22703 t delim
22704 ' <conf$$subs.awk | sed '
22705 /^[^""]/{
22706 N
22707 s/\n//
22708 }
22709 ' >>$CONFIG_STATUS || ac_write_fail=1
22710 rm -f conf$$subs.awk
22711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22712 _ACAWK
22713 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22714 for (key in S) S_is_set[key] = 1
22715 FS = ""
22716
22717 }
22718 {
22719 line = $ 0
22720 nfields = split(line, field, "@")
22721 substed = 0
22722 len = length(field[1])
22723 for (i = 2; i < nfields; i++) {
22724 key = field[i]
22725 keylen = length(key)
22726 if (S_is_set[key]) {
22727 value = S[key]
22728 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22729 len += length(value) + length(field[++i])
22730 substed = 1
22731 } else
22732 len += 1 + keylen
22733 }
22734
22735 print line
22736 }
22737
22738 _ACAWK
22739 _ACEOF
22740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22741 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22742 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22743 else
22744 cat
22745 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22746 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22747 _ACEOF
22748
22749 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22750 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22751 # trailing colons and then remove the whole line if VPATH becomes empty
22752 # (actually we leave an empty line to preserve line numbers).
22753 if test "x$srcdir" = x.; then
22754 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22755 h
22756 s///
22757 s/^/:/
22758 s/[ ]*$/:/
22759 s/:\$(srcdir):/:/g
22760 s/:\${srcdir}:/:/g
22761 s/:@srcdir@:/:/g
22762 s/^:*//
22763 s/:*$//
22764 x
22765 s/\(=[ ]*\).*/\1/
22766 G
22767 s/\n//
22768 s/^[^=]*=[ ]*$//
22769 }'
22770 fi
22771
22772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22773 fi # test -n "$CONFIG_FILES"
22774
22775 # Set up the scripts for CONFIG_HEADERS section.
22776 # No need to generate them if there are no CONFIG_HEADERS.
22777 # This happens for instance with './config.status Makefile'.
22778 if test -n "$CONFIG_HEADERS"; then
22779 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22780 BEGIN {
22781 _ACEOF
22782
22783 # Transform confdefs.h into an awk script 'defines.awk', embedded as
22784 # here-document in config.status, that substitutes the proper values into
22785 # config.h.in to produce config.h.
22786
22787 # Create a delimiter string that does not exist in confdefs.h, to ease
22788 # handling of long lines.
22789 ac_delim='%!_!# '
22790 for ac_last_try in false false :; do
22791 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22792 if test -z "$ac_tt"; then
22793 break
22794 elif $ac_last_try; then
22795 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22796 else
22797 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22798 fi
22799 done
22800
22801 # For the awk script, D is an array of macro values keyed by name,
22802 # likewise P contains macro parameters if any. Preserve backslash
22803 # newline sequences.
22804
22805 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22806 sed -n '
22807 s/.\{148\}/&'"$ac_delim"'/g
22808 t rset
22809 :rset
22810 s/^[ ]*#[ ]*define[ ][ ]*/ /
22811 t def
22812 d
22813 :def
22814 s/\\$//
22815 t bsnl
22816 s/["\\]/\\&/g
22817 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22818 D["\1"]=" \3"/p
22819 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22820 d
22821 :bsnl
22822 s/["\\]/\\&/g
22823 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22824 D["\1"]=" \3\\\\\\n"\\/p
22825 t cont
22826 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22827 t cont
22828 d
22829 :cont
22830 n
22831 s/.\{148\}/&'"$ac_delim"'/g
22832 t clear
22833 :clear
22834 s/\\$//
22835 t bsnlc
22836 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22837 d
22838 :bsnlc
22839 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22840 b cont
22841 ' <confdefs.h | sed '
22842 s/'"$ac_delim"'/"\\\
22843 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22844
22845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22846 for (key in D) D_is_set[key] = 1
22847 FS = ""
22848 }
22849 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22850 line = \$ 0
22851 split(line, arg, " ")
22852 if (arg[1] == "#") {
22853 defundef = arg[2]
22854 mac1 = arg[3]
22855 } else {
22856 defundef = substr(arg[1], 2)
22857 mac1 = arg[2]
22858 }
22859 split(mac1, mac2, "(") #)
22860 macro = mac2[1]
22861 prefix = substr(line, 1, index(line, defundef) - 1)
22862 if (D_is_set[macro]) {
22863 # Preserve the white space surrounding the "#".
22864 print prefix "define", macro P[macro] D[macro]
22865 next
22866 } else {
22867 # Replace #undef with comments. This is necessary, for example,
22868 # in the case of _POSIX_SOURCE, which is predefined and required
22869 # on some systems where configure will not decide to define it.
22870 if (defundef == "undef") {
22871 print "/*", prefix defundef, macro, "*/"
22872 next
22873 }
22874 }
22875 }
22876 { print }
22877 _ACAWK
22878 _ACEOF
22879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22880 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22881 fi # test -n "$CONFIG_HEADERS"
22882
22883
22884 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22885 shift
22886 for ac_tag
22887 do
22888 case $ac_tag in
22889 :[FHLC]) ac_mode=$ac_tag; continue;;
22890 esac
22891 case $ac_mode$ac_tag in
22892 :[FHL]*:*);;
22893 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22894 :[FH]-) ac_tag=-:-;;
22895 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22896 esac
22897 ac_save_IFS=$IFS
22898 IFS=:
22899 set x $ac_tag
22900 IFS=$ac_save_IFS
22901 shift
22902 ac_file=$1
22903 shift
22904
22905 case $ac_mode in
22906 :L) ac_source=$1;;
22907 :[FH])
22908 ac_file_inputs=
22909 for ac_f
22910 do
22911 case $ac_f in
22912 -) ac_f="$ac_tmp/stdin";;
22913 *) # Look for the file first in the build tree, then in the source tree
22914 # (if the path is not absolute). The absolute path cannot be DOS-style,
22915 # because $ac_f cannot contain ':'.
22916 test -f "$ac_f" ||
22917 case $ac_f in
22918 [\\/$]*) false;;
22919 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22920 esac ||
22921 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22922 esac
22923 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22924 as_fn_append ac_file_inputs " '$ac_f'"
22925 done
22926
22927 # Let's still pretend it is 'configure' which instantiates (i.e., don't
22928 # use $as_me), people would be surprised to read:
22929 # /* config.h. Generated by config.status. */
22930 configure_input='Generated from '`
22931 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22932 `' by configure.'
22933 if test x"$ac_file" != x-; then
22934 configure_input="$ac_file. $configure_input"
22935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22936 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22937 fi
22938 # Neutralize special characters interpreted by sed in replacement strings.
22939 case $configure_input in #(
22940 *\&* | *\|* | *\\* )
22941 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22942 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22943 *) ac_sed_conf_input=$configure_input;;
22944 esac
22945
22946 case $ac_tag in
22947 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22948 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22949 esac
22950 ;;
22951 esac
22952
22953 ac_dir=`$as_dirname -- "$ac_file" ||
22954 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22955 X"$ac_file" : 'X\(//\)[^/]' \| \
22956 X"$ac_file" : 'X\(//\)$' \| \
22957 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22958 printf "%s\n" X"$ac_file" |
22959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22960 s//\1/
22961 q
22962 }
22963 /^X\(\/\/\)[^/].*/{
22964 s//\1/
22965 q
22966 }
22967 /^X\(\/\/\)$/{
22968 s//\1/
22969 q
22970 }
22971 /^X\(\/\).*/{
22972 s//\1/
22973 q
22974 }
22975 s/.*/./; q'`
22976 as_dir="$ac_dir"; as_fn_mkdir_p
22977 ac_builddir=.
22978
22979 case "$ac_dir" in
22980 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22981 *)
22982 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22983 # A ".." for each directory in $ac_dir_suffix.
22984 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22985 case $ac_top_builddir_sub in
22986 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22987 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22988 esac ;;
22989 esac
22990 ac_abs_top_builddir=$ac_pwd
22991 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22992 # for backward compatibility:
22993 ac_top_builddir=$ac_top_build_prefix
22994
22995 case $srcdir in
22996 .) # We are building in place.
22997 ac_srcdir=.
22998 ac_top_srcdir=$ac_top_builddir_sub
22999 ac_abs_top_srcdir=$ac_pwd ;;
23000 [\\/]* | ?:[\\/]* ) # Absolute name.
23001 ac_srcdir=$srcdir$ac_dir_suffix;
23002 ac_top_srcdir=$srcdir
23003 ac_abs_top_srcdir=$srcdir ;;
23004 *) # Relative name.
23005 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23006 ac_top_srcdir=$ac_top_build_prefix$srcdir
23007 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23008 esac
23009 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23010
23011
23012 case $ac_mode in
23013 :F)
23014 #
23015 # CONFIG_FILE
23016 #
23017
23018 case $INSTALL in
23019 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23020 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23021 esac
23022 ac_MKDIR_P=$MKDIR_P
23023 case $MKDIR_P in
23024 [\\/$]* | ?:[\\/]* ) ;;
23025 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23026 esac
23027 _ACEOF
23028
23029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23030 # If the template does not know about datarootdir, expand it.
23031 # FIXME: This hack should be removed a few years after 2.60.
23032 ac_datarootdir_hack=; ac_datarootdir_seen=
23033 ac_sed_dataroot='
23034 /datarootdir/ {
23035 p
23036 q
23037 }
23038 /@datadir@/p
23039 /@docdir@/p
23040 /@infodir@/p
23041 /@localedir@/p
23042 /@mandir@/p'
23043 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23044 *datarootdir*) ac_datarootdir_seen=yes;;
23045 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23047 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23048 _ACEOF
23049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23050 ac_datarootdir_hack='
23051 s&@datadir@&$datadir&g
23052 s&@docdir@&$docdir&g
23053 s&@infodir@&$infodir&g
23054 s&@localedir@&$localedir&g
23055 s&@mandir@&$mandir&g
23056 s&\\\${datarootdir}&$datarootdir&g' ;;
23057 esac
23058 _ACEOF
23059
23060 # Neutralize VPATH when '$srcdir' = '.'.
23061 # Shell code in configure.ac might set extrasub.
23062 # FIXME: do we really want to maintain this feature?
23063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23064 ac_sed_extra="$ac_vpsub
23065 $extrasub
23066 _ACEOF
23067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23068 :t
23069 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23070 s|@configure_input@|$ac_sed_conf_input|;t t
23071 s&@top_builddir@&$ac_top_builddir_sub&;t t
23072 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23073 s&@srcdir@&$ac_srcdir&;t t
23074 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23075 s&@top_srcdir@&$ac_top_srcdir&;t t
23076 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23077 s&@builddir@&$ac_builddir&;t t
23078 s&@abs_builddir@&$ac_abs_builddir&;t t
23079 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23080 s&@INSTALL@&$ac_INSTALL&;t t
23081 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23082 $ac_datarootdir_hack
23083 "
23084 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23085 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23086
23087 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23088 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23089 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23090 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
23092 which seems to be undefined. Please make sure it is defined" >&5
23093 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
23094 which seems to be undefined. Please make sure it is defined" >&2;}
23095
23096 rm -f "$ac_tmp/stdin"
23097 case $ac_file in
23098 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23099 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23100 esac \
23101 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23102 ;;
23103 :H)
23104 #
23105 # CONFIG_HEADER
23106 #
23107 if test x"$ac_file" != x-; then
23108 {
23109 printf "%s\n" "/* $configure_input */" >&1 \
23110 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23111 } >"$ac_tmp/config.h" \
23112 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23113 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23115 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
23116 else
23117 rm -f "$ac_file"
23118 mv "$ac_tmp/config.h" "$ac_file" \
23119 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23120 fi
23121 else
23122 printf "%s\n" "/* $configure_input */" >&1 \
23123 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23124 || as_fn_error $? "could not create -" "$LINENO" 5
23125 fi
23126 # Compute "$ac_file"'s index in $config_headers.
23127 _am_arg="$ac_file"
23128 _am_stamp_count=1
23129 for _am_header in $config_headers :; do
23130 case $_am_header in
23131 $_am_arg | $_am_arg:* )
23132 break ;;
23133 * )
23134 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23135 esac
23136 done
23137 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23138 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23139 X"$_am_arg" : 'X\(//\)[^/]' \| \
23140 X"$_am_arg" : 'X\(//\)$' \| \
23141 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23142 printf "%s\n" X"$_am_arg" |
23143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23144 s//\1/
23145 q
23146 }
23147 /^X\(\/\/\)[^/].*/{
23148 s//\1/
23149 q
23150 }
23151 /^X\(\/\/\)$/{
23152 s//\1/
23153 q
23154 }
23155 /^X\(\/\).*/{
23156 s//\1/
23157 q
23158 }
23159 s/.*/./; q'`/stamp-h$_am_stamp_count
23160 ;;
23161
23162 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23163 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
23164 ;;
23165 esac
23166
23167
23168 case $ac_file$ac_mode in
23169 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23170 # Older Autoconf quotes --file arguments for eval, but not when files
23171 # are listed without --file. Let's play safe and only enable the eval
23172 # if we detect the quoting.
23173 # TODO: see whether this extra hack can be removed once we start
23174 # requiring Autoconf 2.70 or later.
23175 case $CONFIG_FILES in #(
23176 *\'*) :
23177 eval set x "$CONFIG_FILES" ;; #(
23178 *) :
23179 set x $CONFIG_FILES ;; #(
23180 *) :
23181 ;;
23182 esac
23183 shift
23184 # Used to flag and report bootstrapping failures.
23185 am_rc=0
23186 for am_mf
23187 do
23188 # Strip MF so we end up with the name of the file.
23189 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
23190 # Check whether this is an Automake generated Makefile which includes
23191 # dependency-tracking related rules and includes.
23192 # Grep'ing the whole file directly is not great: AIX grep has a line
23193 # limit of 2048, but all sed's we know have understand at least 4000.
23194 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23195 || continue
23196 am_dirpart=`$as_dirname -- "$am_mf" ||
23197 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23198 X"$am_mf" : 'X\(//\)[^/]' \| \
23199 X"$am_mf" : 'X\(//\)$' \| \
23200 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23201 printf "%s\n" X"$am_mf" |
23202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23203 s//\1/
23204 q
23205 }
23206 /^X\(\/\/\)[^/].*/{
23207 s//\1/
23208 q
23209 }
23210 /^X\(\/\/\)$/{
23211 s//\1/
23212 q
23213 }
23214 /^X\(\/\).*/{
23215 s//\1/
23216 q
23217 }
23218 s/.*/./; q'`
23219 am_filepart=`$as_basename -- "$am_mf" ||
23220 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23221 X"$am_mf" : 'X\(//\)$' \| \
23222 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23223 printf "%s\n" X/"$am_mf" |
23224 sed '/^.*\/\([^/][^/]*\)\/*$/{
23225 s//\1/
23226 q
23227 }
23228 /^X\/\(\/\/\)$/{
23229 s//\1/
23230 q
23231 }
23232 /^X\/\(\/\).*/{
23233 s//\1/
23234 q
23235 }
23236 s/.*/./; q'`
23237 { echo "$as_me:$LINENO: cd "$am_dirpart" \
23238 && sed -e '/# am--include-marker/d' "$am_filepart" \
23239 | $MAKE -f - am--depfiles" >&5
23240 (cd "$am_dirpart" \
23241 && sed -e '/# am--include-marker/d' "$am_filepart" \
23242 | $MAKE -f - am--depfiles) >&5 2>&5
23243 ac_status=$?
23244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245 (exit $ac_status); } || am_rc=$?
23246 done
23247 if test $am_rc -ne 0; then
23248 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
23249 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
23250 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23251 for automatic dependency tracking. If GNU make was not used, consider
23252 re-running the configure script with MAKE=\"gmake\" (or whatever is
23253 necessary). You can also try re-running configure with the
23254 '--disable-dependency-tracking' option to at least be able to build
23255 the package (albeit without support for automatic dependency tracking).
23256 See 'config.log' for more details" "$LINENO" 5; }
23257 fi
23258 { am_dirpart=; unset am_dirpart;}
23259 { am_filepart=; unset am_filepart;}
23260 { am_mf=; unset am_mf;}
23261 { am_rc=; unset am_rc;}
23262 rm -f conftest-deps.mk
23263 }
23264 ;;
23265 "libtool":C)
23266
23267 # See if we are running on zsh, and set the options that allow our
23268 # commands through without removal of \ escapes.
23269 if test -n "${ZSH_VERSION+set}"; then
23270 setopt NO_GLOB_SUBST
23271 fi
23272
23273 cfgfile=${ofile}T
23274 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23275 $RM "$cfgfile"
23276
23277 cat <<_LT_EOF >> "$cfgfile"
23278 #! $SHELL
23279 # Generated automatically by $as_me ($PACKAGE) $VERSION
23280 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23281
23282 # Provide generalized library-building support services.
23283 # Written by Gordon Matzigkeit, 1996
23284
23285 # Copyright (C) 2024 Free Software Foundation, Inc.
23286 # This is free software; see the source for copying conditions. There is NO
23287 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23288
23289 # GNU Libtool is free software; you can redistribute it and/or modify
23290 # it under the terms of the GNU General Public License as published by
23291 # the Free Software Foundation; either version 2 of the License, or
23292 # (at your option) any later version.
23293 #
23294 # As a special exception to the GNU General Public License, if you
23295 # distribute this file as part of a program or library that is built
23296 # using GNU Libtool, you may include this file under the same
23297 # distribution terms that you use for the rest of that program.
23298 #
23299 # GNU Libtool is distributed in the hope that it will be useful, but
23300 # WITHOUT ANY WARRANTY; without even the implied warranty of
23301 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23302 # GNU General Public License for more details.
23303 #
23304 # You should have received a copy of the GNU General Public License
23305 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23306
23307
23308 # The names of the tagged configurations supported by this script.
23309 available_tags=''
23310
23311 # Configured defaults for sys_lib_dlsearch_path munging.
23312 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23313
23314 # ### BEGIN LIBTOOL CONFIG
23315
23316 # Which release of libtool.m4 was used?
23317 macro_version=$macro_version
23318 macro_revision=$macro_revision
23319
23320 # Whether or not to build shared libraries.
23321 build_libtool_libs=$enable_shared
23322
23323 # Whether or not to build static libraries.
23324 build_old_libs=$enable_static
23325
23326 # What type of objects to build.
23327 pic_mode=$pic_mode
23328
23329 # Whether or not to optimize for fast installation.
23330 fast_install=$enable_fast_install
23331
23332 # Shared archive member basename,for filename based shared library versioning on AIX.
23333 shared_archive_member_spec=$shared_archive_member_spec
23334
23335 # Shell to use when invoking shell scripts.
23336 SHELL=$lt_SHELL
23337
23338 # An echo program that protects backslashes.
23339 ECHO=$lt_ECHO
23340
23341 # The PATH separator for the build system.
23342 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23343
23344 # The host system.
23345 host_alias=$host_alias
23346 host=$host
23347 host_os=$host_os
23348
23349 # The build system.
23350 build_alias=$build_alias
23351 build=$build
23352 build_os=$build_os
23353
23354 # A sed program that does not truncate output.
23355 SED=$lt_SED
23356
23357 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23358 Xsed="\$SED -e 1s/^X//"
23359
23360 # A grep program that handles long lines.
23361 GREP=$lt_GREP
23362
23363 # An ERE matcher.
23364 EGREP=$lt_EGREP
23365
23366 # A literal string matcher.
23367 FGREP=$lt_FGREP
23368
23369 # A BSD- or MS-compatible name lister.
23370 NM=$lt_NM
23371
23372 # Whether we need soft or hard links.
23373 LN_S=$lt_LN_S
23374
23375 # What is the maximum length of a command?
23376 max_cmd_len=$max_cmd_len
23377
23378 # Object file suffix (normally "o").
23379 objext=$ac_objext
23380
23381 # Executable file suffix (normally "").
23382 exeext=$exeext
23383
23384 # whether the shell understands "unset".
23385 lt_unset=$lt_unset
23386
23387 # turn spaces into newlines.
23388 SP2NL=$lt_lt_SP2NL
23389
23390 # turn newlines into spaces.
23391 NL2SP=$lt_lt_NL2SP
23392
23393 # convert \$build file names to \$host format.
23394 to_host_file_cmd=$lt_cv_to_host_file_cmd
23395
23396 # convert \$build files to toolchain format.
23397 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23398
23399 # A file(cmd) program that detects file types.
23400 FILECMD=$lt_FILECMD
23401
23402 # An object symbol dumper.
23403 OBJDUMP=$lt_OBJDUMP
23404
23405 # Method to check whether dependent libraries are shared objects.
23406 deplibs_check_method=$lt_deplibs_check_method
23407
23408 # Command to use when deplibs_check_method = "file_magic".
23409 file_magic_cmd=$lt_file_magic_cmd
23410
23411 # How to find potential files when deplibs_check_method = "file_magic".
23412 file_magic_glob=$lt_file_magic_glob
23413
23414 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23415 want_nocaseglob=$lt_want_nocaseglob
23416
23417 # DLL creation program.
23418 DLLTOOL=$lt_DLLTOOL
23419
23420 # Command to associate shared and link libraries.
23421 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23422
23423 # The archiver.
23424 AR=$lt_AR
23425
23426 # Flags to create an archive (by configure).
23427 lt_ar_flags=$lt_ar_flags
23428
23429 # Flags to create an archive.
23430 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
23431
23432 # How to feed a file listing to the archiver.
23433 archiver_list_spec=$lt_archiver_list_spec
23434
23435 # A symbol stripping program.
23436 STRIP=$lt_STRIP
23437
23438 # Commands used to install an old-style archive.
23439 RANLIB=$lt_RANLIB
23440 old_postinstall_cmds=$lt_old_postinstall_cmds
23441 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23442
23443 # Whether to use a lock for old archive extraction.
23444 lock_old_archive_extraction=$lock_old_archive_extraction
23445
23446 # A C compiler.
23447 LTCC=$lt_CC
23448
23449 # LTCC compiler flags.
23450 LTCFLAGS=$lt_CFLAGS
23451
23452 # Take the output of nm and produce a listing of raw symbols and C names.
23453 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23454
23455 # Transform the output of nm in a proper C declaration.
23456 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23457
23458 # Transform the output of nm into a list of symbols to manually relocate.
23459 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23460
23461 # Transform the output of nm in a C name address pair.
23462 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23463
23464 # Transform the output of nm in a C name address pair when lib prefix is needed.
23465 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23466
23467 # The name lister interface.
23468 nm_interface=$lt_lt_cv_nm_interface
23469
23470 # Specify filename containing input files for \$NM.
23471 nm_file_list_spec=$lt_nm_file_list_spec
23472
23473 # The root where to search for dependent libraries,and where our libraries should be installed.
23474 lt_sysroot=$lt_sysroot
23475
23476 # Command to truncate a binary pipe.
23477 lt_truncate_bin=$lt_lt_cv_truncate_bin
23478
23479 # The name of the directory that contains temporary libtool files.
23480 objdir=$objdir
23481
23482 # Used to examine libraries when file_magic_cmd begins with "file".
23483 MAGIC_CMD=$MAGIC_CMD
23484
23485 # Must we lock files when doing compilation?
23486 need_locks=$lt_need_locks
23487
23488 # Manifest tool.
23489 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23490
23491 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23492 DSYMUTIL=$lt_DSYMUTIL
23493
23494 # Tool to change global to local symbols on Mac OS X.
23495 NMEDIT=$lt_NMEDIT
23496
23497 # Tool to manipulate fat objects and archives on Mac OS X.
23498 LIPO=$lt_LIPO
23499
23500 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23501 OTOOL=$lt_OTOOL
23502
23503 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23504 OTOOL64=$lt_OTOOL64
23505
23506 # Old archive suffix (normally "a").
23507 libext=$libext
23508
23509 # Shared library suffix (normally ".so").
23510 shrext_cmds=$lt_shrext_cmds
23511
23512 # The commands to extract the exported symbol list from a shared archive.
23513 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23514
23515 # Variables whose values should be saved in libtool wrapper scripts and
23516 # restored at link time.
23517 variables_saved_for_relink=$lt_variables_saved_for_relink
23518
23519 # Do we need the "lib" prefix for modules?
23520 need_lib_prefix=$need_lib_prefix
23521
23522 # Do we need a version for libraries?
23523 need_version=$need_version
23524
23525 # Library versioning type.
23526 version_type=$version_type
23527
23528 # Shared library runtime path variable.
23529 runpath_var=$runpath_var
23530
23531 # Shared library path variable.
23532 shlibpath_var=$shlibpath_var
23533
23534 # Is shlibpath searched before the hard-coded library search path?
23535 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23536
23537 # Format of library name prefix.
23538 libname_spec=$lt_libname_spec
23539
23540 # List of archive names. First name is the real one, the rest are links.
23541 # The last name is the one that the linker finds with -lNAME
23542 library_names_spec=$lt_library_names_spec
23543
23544 # The coded name of the library, if different from the real name.
23545 soname_spec=$lt_soname_spec
23546
23547 # Permission mode override for installation of shared libraries.
23548 install_override_mode=$lt_install_override_mode
23549
23550 # Command to use after installation of a shared archive.
23551 postinstall_cmds=$lt_postinstall_cmds
23552
23553 # Command to use after uninstallation of a shared archive.
23554 postuninstall_cmds=$lt_postuninstall_cmds
23555
23556 # Commands used to finish a libtool library installation in a directory.
23557 finish_cmds=$lt_finish_cmds
23558
23559 # As "finish_cmds", except a single script fragment to be evaled but
23560 # not shown.
23561 finish_eval=$lt_finish_eval
23562
23563 # Whether we should hardcode library paths into libraries.
23564 hardcode_into_libs=$hardcode_into_libs
23565
23566 # Compile-time system search path for libraries.
23567 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23568
23569 # Detected run-time system search path for libraries.
23570 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23571
23572 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23573 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23574
23575 # Whether dlopen is supported.
23576 dlopen_support=$enable_dlopen
23577
23578 # Whether dlopen of programs is supported.
23579 dlopen_self=$enable_dlopen_self
23580
23581 # Whether dlopen of statically linked programs is supported.
23582 dlopen_self_static=$enable_dlopen_self_static
23583
23584 # Commands to strip libraries.
23585 old_striplib=$lt_old_striplib
23586 striplib=$lt_striplib
23587
23588
23589 # The linker used to build libraries.
23590 LD=$lt_LD
23591
23592 # How to create reloadable object files.
23593 reload_flag=$lt_reload_flag
23594 reload_cmds=$lt_reload_cmds
23595
23596 # Commands used to build an old-style archive.
23597 old_archive_cmds=$lt_old_archive_cmds
23598
23599 # A language specific compiler.
23600 CC=$lt_compiler
23601
23602 # Is the compiler the GNU compiler?
23603 with_gcc=$GCC
23604
23605 # Compiler flag to turn off builtin functions.
23606 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23607
23608 # Additional compiler flags for building library objects.
23609 pic_flag=$lt_lt_prog_compiler_pic
23610
23611 # How to pass a linker flag through the compiler.
23612 wl=$lt_lt_prog_compiler_wl
23613
23614 # Compiler flag to prevent dynamic linking.
23615 link_static_flag=$lt_lt_prog_compiler_static
23616
23617 # Does compiler simultaneously support -c and -o options?
23618 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23619
23620 # Whether or not to add -lc for building shared libraries.
23621 build_libtool_need_lc=$archive_cmds_need_lc
23622
23623 # Whether or not to disallow shared libs when runtime libs are static.
23624 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23625
23626 # Compiler flag to allow reflexive dlopens.
23627 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23628
23629 # Compiler flag to generate shared objects directly from archives.
23630 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23631
23632 # Whether the compiler copes with passing no objects directly.
23633 compiler_needs_object=$lt_compiler_needs_object
23634
23635 # Create an old-style archive from a shared archive.
23636 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23637
23638 # Create a temporary old-style archive to link instead of a shared archive.
23639 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23640
23641 # Commands used to build a shared archive.
23642 archive_cmds=$lt_archive_cmds
23643 archive_expsym_cmds=$lt_archive_expsym_cmds
23644
23645 # Commands used to build a loadable module if different from building
23646 # a shared archive.
23647 module_cmds=$lt_module_cmds
23648 module_expsym_cmds=$lt_module_expsym_cmds
23649
23650 # Whether we are building with GNU ld or not.
23651 with_gnu_ld=$lt_with_gnu_ld
23652
23653 # Flag that allows shared libraries with undefined symbols to be built.
23654 allow_undefined_flag=$lt_allow_undefined_flag
23655
23656 # Flag that enforces no undefined symbols.
23657 no_undefined_flag=$lt_no_undefined_flag
23658
23659 # Flag to hardcode \$libdir into a binary during linking.
23660 # This must work even if \$libdir does not exist
23661 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23662
23663 # Whether we need a single "-rpath" flag with a separated argument.
23664 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23665
23666 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23667 # DIR into the resulting binary.
23668 hardcode_direct=$hardcode_direct
23669
23670 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23671 # DIR into the resulting binary and the resulting library dependency is
23672 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
23673 # library is relocated.
23674 hardcode_direct_absolute=$hardcode_direct_absolute
23675
23676 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23677 # into the resulting binary.
23678 hardcode_minus_L=$hardcode_minus_L
23679
23680 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23681 # into the resulting binary.
23682 hardcode_shlibpath_var=$hardcode_shlibpath_var
23683
23684 # Set to "yes" if building a shared library automatically hardcodes DIR
23685 # into the library and all subsequent libraries and executables linked
23686 # against it.
23687 hardcode_automatic=$hardcode_automatic
23688
23689 # Set to yes if linker adds runtime paths of dependent libraries
23690 # to runtime path list.
23691 inherit_rpath=$inherit_rpath
23692
23693 # Whether libtool must link a program against all its dependency libraries.
23694 link_all_deplibs=$link_all_deplibs
23695
23696 # Set to "yes" if exported symbols are required.
23697 always_export_symbols=$always_export_symbols
23698
23699 # The commands to list exported symbols.
23700 export_symbols_cmds=$lt_export_symbols_cmds
23701
23702 # Symbols that should not be listed in the preloaded symbols.
23703 exclude_expsyms=$lt_exclude_expsyms
23704
23705 # Symbols that must always be exported.
23706 include_expsyms=$lt_include_expsyms
23707
23708 # Commands necessary for linking programs (against libraries) with templates.
23709 prelink_cmds=$lt_prelink_cmds
23710
23711 # Commands necessary for finishing linking programs.
23712 postlink_cmds=$lt_postlink_cmds
23713
23714 # Specify filename containing input files.
23715 file_list_spec=$lt_file_list_spec
23716
23717 # How to hardcode a shared library path into an executable.
23718 hardcode_action=$hardcode_action
23719
23720 # ### END LIBTOOL CONFIG
23721
23722 _LT_EOF
23723
23724 cat <<'_LT_EOF' >> "$cfgfile"
23725
23726 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23727
23728 # func_munge_path_list VARIABLE PATH
23729 # -----------------------------------
23730 # VARIABLE is name of variable containing _space_ separated list of
23731 # directories to be munged by the contents of PATH, which is string
23732 # having a format:
23733 # "DIR[:DIR]:"
23734 # string "DIR[ DIR]" will be prepended to VARIABLE
23735 # ":DIR[:DIR]"
23736 # string "DIR[ DIR]" will be appended to VARIABLE
23737 # "DIRP[:DIRP]::[DIRA:]DIRA"
23738 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23739 # "DIRA[ DIRA]" will be appended to VARIABLE
23740 # "DIR[:DIR]"
23741 # VARIABLE will be replaced by "DIR[ DIR]"
23742 func_munge_path_list ()
23743 {
23744 case x$2 in
23745 x)
23746 ;;
23747 *:)
23748 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23749 ;;
23750 x:*)
23751 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23752 ;;
23753 *::*)
23754 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23755 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23756 ;;
23757 *)
23758 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23759 ;;
23760 esac
23761 }
23762
23763
23764 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23765 func_cc_basename ()
23766 {
23767 for cc_temp in $*""; do
23768 case $cc_temp in
23769 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23770 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23771 \-*) ;;
23772 *) break;;
23773 esac
23774 done
23775 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23776 }
23777
23778
23779 # ### END FUNCTIONS SHARED WITH CONFIGURE
23780
23781 _LT_EOF
23782
23783 case $host_os in
23784 aix3*)
23785 cat <<\_LT_EOF >> "$cfgfile"
23786 # AIX sometimes has problems with the GCC collect2 program. For some
23787 # reason, if we set the COLLECT_NAMES environment variable, the problems
23788 # vanish in a puff of smoke.
23789 if test set != "${COLLECT_NAMES+set}"; then
23790 COLLECT_NAMES=
23791 export COLLECT_NAMES
23792 fi
23793 _LT_EOF
23794 ;;
23795 esac
23796
23797
23798
23799 ltmain=$ac_aux_dir/ltmain.sh
23800
23801
23802 # We use sed instead of cat because bash on DJGPP gets confused if
23803 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23804 # text mode, it properly converts lines to CR/LF. This bash problem
23805 # is reportedly fixed, but why not run on old versions too?
23806 $SED '$q' "$ltmain" >> "$cfgfile" \
23807 || (rm -f "$cfgfile"; exit 1)
23808
23809 mv -f "$cfgfile" "$ofile" ||
23810 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23811 chmod +x "$ofile"
23812
23813 ;;
23814
23815 esac
23816 done # for ac_tag
23817
23818
23819 as_fn_exit 0
23820 _ACEOF
23821 ac_clean_files=$ac_clean_files_save
23822
23823 test $ac_write_fail = 0 ||
23824 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23825
23826
23827 # configure is writing to config.log, and then calls config.status.
23828 # config.status does its own redirection, appending to config.log.
23829 # Unfortunately, on DOS this fails, as config.log is still kept open
23830 # by configure, so config.status won't be able to write to it; its
23831 # output is simply discarded. So we exec the FD to /dev/null,
23832 # effectively closing config.log, so it can be properly (re)opened and
23833 # appended to by config.status. When coming back to configure, we
23834 # need to make the FD available again.
23835 if test "$no_create" != yes; then
23836 ac_cs_success=:
23837 ac_config_status_args=
23838 test "$silent" = yes &&
23839 ac_config_status_args="$ac_config_status_args --quiet"
23840 exec 5>/dev/null
23841 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23842 exec 5>>config.log
23843 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23844 # would make configure fail if this is the last instruction.
23845 $ac_cs_success || as_fn_exit 1
23846 fi
23847 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23849 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23850 fi
23851
23852